|
@@ -96,7 +96,10 @@ class WorkflowApplyCommand extends ContainerAwareCommand
|
|
|
}, $wf->getEnabledTransitions($entity));
|
|
|
|
|
|
if (!in_array($transition, $transitions)) {
|
|
|
- throw new \Exception ("Can't apply transition '$transition', only allowed transitions for this entity are '". implode("','", $transitions). "'");
|
|
|
+ // throw new \Exception ("Can't apply transition '$transition', only allowed transitions for this entity are '". implode("','", $transitions). "'");
|
|
|
+ $output->writeln("Can't apply transition '$transition', only allowed transitions for this entity are '". implode("','", $transitions). "'");
|
|
|
+
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
$from = array_keys($wf->getMarking($entity)->getPlaces());
|