@@ 424-430 (lines=7) @@ | ||
421 | $validAction = false; |
|
422 | $transitionEngine = $this->getEngineManager()->getTransitionEngine(); |
|
423 | foreach ($wf->getGlobalActions() as $actionDesc) { |
|
424 | if ($actionId === $actionDesc->getId()) { |
|
425 | $action = $actionDesc; |
|
426 | ||
427 | if ($transitionEngine->isActionAvailable($action, $transientVars, $ps, 0)) { |
|
428 | $validAction = true; |
|
429 | } |
|
430 | } |
|
431 | } |
|
432 | ||
433 | return $validAction; |
|
@@ 467-473 (lines=7) @@ | ||
464 | throw new InternalWorkflowException($errMsg); |
|
465 | } |
|
466 | ||
467 | if ($actionId === $actionDesc->getId()) { |
|
468 | $action = $actionDesc; |
|
469 | ||
470 | if ($transitionEngine->isActionAvailable($action, $transientVars, $ps, $s->getId())) { |
|
471 | $validAction = true; |
|
472 | } |
|
473 | } |
|
474 | } |
|
475 | } |
|
476 |