27 $this->element_varname =
'$_v_' . $element_id;
29 $event_definition =
null;
33 if (count($element[
'children'])) {
34 foreach ($element[
'children'] as $child) {
35 if ($child[
'name'] ==
'messageEventDefinition') {
37 $child[
'attributes'][
'messageRef'],
42 if ($child[
'name'] ==
'signalEventDefinition') {
44 $child[
'attributes'][
'signalRef'],
49 if ($child[
'name'] ==
'terminateEventDefinition') {
55 $class_object->
registerRequire(
'./Services/WorkflowEngine/classes/nodes/class.ilBasicNode.php');
57 ' . $this->element_varname .
' = new ilBasicNode($this);
58 $this->addNode(' . $this->element_varname .
');
59 ' . $this->element_varname .
'->setName(\'' . $this->element_varname .
'\');
62 if (isset($event_definition['type
']) && isset($event_definition['content
'])) {
63 $class_object->registerRequire('./
Services/WorkflowEngine/classes/activities/
class.ilEventRaisingActivity.php
');
65 ' . $this->element_varname . '_throwEventActivity =
new ilEventRaisingActivity(
' . $this->element_varname . ');
66 ' . $this->element_varname . '_throwEventActivity->setName(\
'' . $this->element_varname .
'_throwEventActivity\');
67 ' . $this->element_varname .
'_throwEventActivity->setEventType("' . $event_definition[
'type'] .
'");
68 ' . $this->element_varname .
'_throwEventActivity->setEventName("' . $event_definition[
'content'] .
'");
69 ' . $this->element_varname .
'->addActivity(' . $this->element_varname .
'_throwEventActivity);
74 $class_object->registerRequire(
'./Services/WorkflowEngine/classes/activities/class.ilStopWorkflowActivity.php');
76 ' . $this->element_varname .
'_terminationEventActivity = new ilStopWorkflowActivity(' . $this->element_varname .
');
77 ' . $this->element_varname .
'->addActivity(' . $this->element_varname .
'_terminationEventActivity);
An exception for terminatinating execution or to throw for unit testing.
static extractILIASEventDefinitionFromProcess($start_event_ref, $type, $bpmn2_array)
static xsIDToPHPVarname($xsID)
handleDataAssociations($element, $class_object, $element_varname)
getPHP($element, ilWorkflowScaffold $class_object)
@noinspection PhpIncludeInspection
Class ilWorkflowScaffold.
registerRequire($require)