|
@@ 206-209 (lines=4) @@
|
| 203 |
|
*/ |
| 204 |
|
protected function populateTransientMap(WorkflowEntryInterface $entry, TransientVarsInterface $transientVars, $registersStorage, $actionId = null, $currentSteps, PropertySetInterface $ps) |
| 205 |
|
{ |
| 206 |
|
if (!is_array($currentSteps) && !$currentSteps instanceof Traversable) { |
| 207 |
|
$errMsg = 'CurrentSteps должен быть массивом, либо реализовывать интерфейс Traversable'; |
| 208 |
|
throw new InvalidArgumentException($errMsg); |
| 209 |
|
} |
| 210 |
|
|
| 211 |
|
if ($registersStorage instanceof Traversable) { |
| 212 |
|
$registers = []; |
|
@@ 653-656 (lines=4) @@
|
| 650 |
|
*/ |
| 651 |
|
protected function completeEntry(ActionDescriptor $action = null, $id, $currentSteps, $state) |
| 652 |
|
{ |
| 653 |
|
if (!($currentSteps instanceof Traversable || is_array($currentSteps))) { |
| 654 |
|
$errMsg = 'CurrentSteps должен быть массивом, либо реализовывать интерфейс Traversable'; |
| 655 |
|
throw new InvalidArgumentException($errMsg); |
| 656 |
|
} |
| 657 |
|
|
| 658 |
|
|
| 659 |
|
$this->getPersistence()->setEntryState($id, $state); |