|
@@ 136-140 (lines=5) @@
|
| 133 |
|
$this->getEventManager()->trigger(WorkflowEvent::EVENT_DO_ACTION, $this, $event); |
| 134 |
|
|
| 135 |
|
$viewName = $action->getView(); |
| 136 |
|
if (null !== $viewName) { |
| 137 |
|
$event->setViewName($viewName); |
| 138 |
|
$event->setName(WorkflowEvent::EVENT_RENDER); |
| 139 |
|
$this->getEventManager()->trigger($event); |
| 140 |
|
} |
| 141 |
|
} catch (\Exception $e) { |
| 142 |
|
throw new Exception\DoActionException($e->getMessage(), $e->getCode(), $e); |
| 143 |
|
} |
|
@@ 265-269 (lines=5) @@
|
| 262 |
|
|
| 263 |
|
$initialActions = $wf->getInitialAction($actionId); |
| 264 |
|
$viewName = $initialActions->getView(); |
| 265 |
|
if (null !== $viewName) { |
| 266 |
|
$event->setViewName($viewName); |
| 267 |
|
$event->setName(WorkflowEvent::EVENT_RENDER); |
| 268 |
|
$this->getEventManager()->trigger($event); |
| 269 |
|
} |
| 270 |
|
} catch (\Exception $e) { |
| 271 |
|
throw new Exception\InvalidInitializeWorkflowEntryException($e->getMessage(), $e->getCode(), $e); |
| 272 |
|
} |