Commit c6b591d9718715d2f5d7ba7a10239e7ebc7c2f48
1 parent
62786300
Exists in
master
and in
65 other branches
Send runningPath to AMDA_IHM to activate wenservice batchmode
Showing
4 changed files
with
29 additions
and
8 deletions
Show diff stats
src/InputOutput/IHMImpl/Process/IHMInputOutputRunningInfoProcessClass.php
src/InputOutput/IHMImpl/Tools/IHMJobsManagerClass.php
... | ... | @@ -199,6 +199,12 @@ class IHMJobsManagerClass { |
199 | 199 | return $res; |
200 | 200 | |
201 | 201 | $job = $this->jobXml->getElementById($id); |
202 | + | |
203 | + $attributes = []; | |
204 | + foreach( $job->attributes as $attrName => $attrNode) { | |
205 | + $attributes[$attrName] = $attrNode->nodeValue; | |
206 | + } | |
207 | + | |
202 | 208 | $format = 'unknown'; |
203 | 209 | $compression = 'unknown'; |
204 | 210 | if($job) | ... | ... |
src/Request/ProcessRequestImpl/ProcessRequestClass.php
... | ... | @@ -76,6 +76,8 @@ class ProcessRequestClass extends RequestAbstractClass |
76 | 76 | */ |
77 | 77 | private function updateProcess($processInfo) |
78 | 78 | { |
79 | + $this->requestData->setRunningPath($processInfo['runningpath']); | |
80 | + | |
79 | 81 | $this->requestData->setId($processInfo['id']); |
80 | 82 | if ($processInfo['isrunning']) |
81 | 83 | $this->requestData->setStatus(ProcessStatusEnumClass::RUNNING); | ... | ... |
src/Request/ProcessRequestImpl/ProcessRequestDataClass.php
... | ... | @@ -46,6 +46,7 @@ class ProcessRequestDataClass extends RequestDataClass |
46 | 46 | private $status = ProcessStatusEnumClass::UNKNOWN; |
47 | 47 | private $exitCode = 0; |
48 | 48 | private $start = 0; |
49 | + private $runningPath = ""; | |
49 | 50 | |
50 | 51 | public function getManagerFilePath() |
51 | 52 | { |
... | ... | @@ -107,6 +108,16 @@ class ProcessRequestDataClass extends RequestDataClass |
107 | 108 | $this->id = $id; |
108 | 109 | } |
109 | 110 | |
111 | + public function getRunningPath() | |
112 | + { | |
113 | + return $this->runningPath; | |
114 | + } | |
115 | + | |
116 | + public function setRunningPath($runningPath) | |
117 | + { | |
118 | + $this->runningPath = $runningPath; | |
119 | + } | |
120 | + | |
110 | 121 | public function getType() |
111 | 122 | { |
112 | 123 | return $this->type; |
... | ... | @@ -117,14 +128,14 @@ class ProcessRequestDataClass extends RequestDataClass |
117 | 128 | $this->type = $type; |
118 | 129 | } |
119 | 130 | |
120 | - public function getBatchEnable() | |
121 | - { | |
122 | - return $this->batchEnable; | |
123 | - } | |
124 | - | |
125 | - public function setBatchEnable($batchEnable) | |
126 | - { | |
127 | - $this->batchEnable = $batchEnable; | |
131 | + public function getBatchEnable() | |
132 | + { | |
133 | + return $this->batchEnable; | |
134 | + } | |
135 | + | |
136 | + public function setBatchEnable($batchEnable) | |
137 | + { | |
138 | + $this->batchEnable = $batchEnable; | |
128 | 139 | } |
129 | 140 | |
130 | 141 | public function getStatus() | ... | ... |