Commit 92a8e6b03b71a1574997da50328cc9ba2564d7d5
1 parent
59eb1b9c
Exists in
master
and in
63 other branches
temporary commot
Showing
3 changed files
with
14 additions
and
1 deletions
Show diff stats
src/InputOutput/IHMImpl/Params/IHMInputOutputParamsAbstractClass.php
... | ... | @@ -209,6 +209,7 @@ abstract class IHMInputOutputParamsAbstractClass implements InputOutputInterface |
209 | 209 | $this->paramsData->setCompilationPath(IHMConfigClass::getCompilationPath()); |
210 | 210 | $this->paramsData->setLocalBasePath(IHMConfigClass::getLocalBasePath()); |
211 | 211 | $this->paramsData->setManagerFilePath(IHMConfigClass::getProcessManagerFilePath()); |
212 | + $this->paramsData->setTask($this->input->nodeType); | |
212 | 213 | $this->input = $input; |
213 | 214 | |
214 | 215 | return $this->unmarshallRequest($input); | ... | ... |
src/Request/ParamsRequestImpl/ParamsRequestClass.php
... | ... | @@ -221,7 +221,7 @@ class ParamsRequestClass extends ProcessRequestClass |
221 | 221 | public function run() |
222 | 222 | { |
223 | 223 | $amdaStat = new AmdaStats(IHMConfigClass::getUserName()); |
224 | - $amdaStat->addTaskWithParams(IHMConfigClass::getUserName(), "plot", $this->requestData->getDatasetForStat()); | |
224 | + $amdaStat->addTask(IHMConfigClass::getUserName(), $this->requestData->getTask(), $this->requestData->getDatasetForStat()); | |
225 | 225 | |
226 | 226 | return parent::run(); |
227 | 227 | } | ... | ... |
src/Request/ParamsRequestImpl/ParamsRequestDataClass.php
... | ... | @@ -30,6 +30,7 @@ class ParamsRequestDataClass extends ProcessRequestDataClass |
30 | 30 | private $paramsToCopy = array(); |
31 | 31 | private $paramId = ""; |
32 | 32 | private $datasetId = array(); |
33 | + private $task = ""; | |
33 | 34 | |
34 | 35 | function __construct() |
35 | 36 | { |
... | ... | @@ -66,6 +67,17 @@ class ParamsRequestDataClass extends ProcessRequestDataClass |
66 | 67 | $this->requestType = $requestType; |
67 | 68 | } |
68 | 69 | |
70 | + public function getTask() | |
71 | + { | |
72 | + return $this->task; | |
73 | + } | |
74 | + | |
75 | + public function setTask($task) | |
76 | + { | |
77 | + $this->task = $task; | |
78 | + error_log($this->task,1,email); | |
79 | + } | |
80 | + | |
69 | 81 | public function addRequestNode() |
70 | 82 | { |
71 | 83 | $newRequestNode = new RequestNodeClass(); | ... | ... |