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