diff --git a/src/InputOutput/IHMImpl/Params/IHMInputOutputParamsAbstractClass.php b/src/InputOutput/IHMImpl/Params/IHMInputOutputParamsAbstractClass.php index 4d03d59..5f08f74 100644 --- a/src/InputOutput/IHMImpl/Params/IHMInputOutputParamsAbstractClass.php +++ b/src/InputOutput/IHMImpl/Params/IHMInputOutputParamsAbstractClass.php @@ -209,6 +209,7 @@ abstract class IHMInputOutputParamsAbstractClass implements InputOutputInterface $this->paramsData->setCompilationPath(IHMConfigClass::getCompilationPath()); $this->paramsData->setLocalBasePath(IHMConfigClass::getLocalBasePath()); $this->paramsData->setManagerFilePath(IHMConfigClass::getProcessManagerFilePath()); + $this->paramsData->setTask($this->input->nodeType); $this->input = $input; return $this->unmarshallRequest($input); diff --git a/src/Request/ParamsRequestImpl/ParamsRequestClass.php b/src/Request/ParamsRequestImpl/ParamsRequestClass.php index 195b8a4..b38ebee 100644 --- a/src/Request/ParamsRequestImpl/ParamsRequestClass.php +++ b/src/Request/ParamsRequestImpl/ParamsRequestClass.php @@ -221,7 +221,7 @@ class ParamsRequestClass extends ProcessRequestClass public function run() { $amdaStat = new AmdaStats(IHMConfigClass::getUserName()); - $amdaStat->addTaskWithParams(IHMConfigClass::getUserName(), "plot", $this->requestData->getDatasetForStat()); + $amdaStat->addTask(IHMConfigClass::getUserName(), $this->requestData->getTask(), $this->requestData->getDatasetForStat()); return parent::run(); } diff --git a/src/Request/ParamsRequestImpl/ParamsRequestDataClass.php b/src/Request/ParamsRequestImpl/ParamsRequestDataClass.php index ea999f4..443885e 100644 --- a/src/Request/ParamsRequestImpl/ParamsRequestDataClass.php +++ b/src/Request/ParamsRequestImpl/ParamsRequestDataClass.php @@ -30,6 +30,7 @@ class ParamsRequestDataClass extends ProcessRequestDataClass private $paramsToCopy = array(); private $paramId = ""; private $datasetId = array(); + private $task = ""; function __construct() { @@ -66,6 +67,17 @@ class ParamsRequestDataClass extends ProcessRequestDataClass $this->requestType = $requestType; } + public function getTask() + { + return $this->task; + } + + public function setTask($task) + { + $this->task = $task; + error_log($this->task,1,email); + } + public function addRequestNode() { $newRequestNode = new RequestNodeClass(); -- libgit2 0.21.2