@@ 391-397 (lines=7) @@ | ||
388 | ||
389 | $transitionEngine = $engineManager->getTransitionEngine(); |
|
390 | foreach ($wf->getGlobalActions() as $actionDesc) { |
|
391 | if ($actionId === $actionDesc->getId()) { |
|
392 | $action = $actionDesc; |
|
393 | ||
394 | if ($transitionEngine->isActionAvailable($action, $transientVars, $ps, 0)) { |
|
395 | $validAction = true; |
|
396 | } |
|
397 | } |
|
398 | } |
|
399 | ||
400 | ||
@@ 410-416 (lines=7) @@ | ||
407 | throw new InternalWorkflowException($errMsg); |
|
408 | } |
|
409 | ||
410 | if ($actionId === $actionDesc->getId()) { |
|
411 | $action = $actionDesc; |
|
412 | ||
413 | if ($transitionEngine->isActionAvailable($action, $transientVars, $ps, $s->getId())) { |
|
414 | $validAction = true; |
|
415 | } |
|
416 | } |
|
417 | } |
|
418 | } |
|
419 |