|
@@ 188-191 (lines=4) @@
|
| 185 |
|
*/ |
| 186 |
|
protected function populateTransientMap(WorkflowEntryInterface $entry, TransientVarsInterface $transientVars, $registersStorage, $actionId = null, $currentSteps, PropertySetInterface $ps) |
| 187 |
|
{ |
| 188 |
|
if (!is_array($currentSteps) && !$currentSteps instanceof Traversable) { |
| 189 |
|
$errMsg = 'CurrentSteps должен быть массивом, либо реализовывать интерфейс Traversable'; |
| 190 |
|
throw new InvalidArgumentException($errMsg); |
| 191 |
|
} |
| 192 |
|
|
| 193 |
|
if ($registersStorage instanceof Traversable) { |
| 194 |
|
$registers = []; |
|
@@ 641-644 (lines=4) @@
|
| 638 |
|
*/ |
| 639 |
|
protected function completeEntry(ActionDescriptor $action = null, $id, $currentSteps, $state) |
| 640 |
|
{ |
| 641 |
|
if (!($currentSteps instanceof Traversable || is_array($currentSteps))) { |
| 642 |
|
$errMsg = 'CurrentSteps должен быть массивом, либо реализовывать интерфейс Traversable'; |
| 643 |
|
throw new InvalidArgumentException($errMsg); |
| 644 |
|
} |
| 645 |
|
|
| 646 |
|
|
| 647 |
|
$this->getPersistence()->setEntryState($id, $state); |