27 $this->element_varname =
'$_v_'.$element_id;
29 $event_definition =
null;
30 if(count($element[
'children']))
32 foreach ($element[
'children'] as $child)
34 if($child[
'name'] ==
'messageEventDefinition')
38 if($child[
'name'] ==
'signalEventDefinition')
45 $class_object->
registerRequire(
'./Services/WorkflowEngine/classes/nodes/class.ilBasicNode.php');
47 ' . $this->element_varname .
' = new ilBasicNode($this);
48 $this->addNode(' . $this->element_varname .
');
49 ' . $this->element_varname .
'->setName(\'' . $this->element_varname .
'\');
52 if(isset($event_definition['type
']) && isset($event_definition['content
']))
54 $class_object->registerRequire('./
Services/WorkflowEngine/classes/activities/
class.ilEventRaisingActivity.php
');
56 ' . $this->element_varname . '_throwEventActivity =
new ilEventRaisingActivity(
' . $this->element_varname . ');
57 ' . $this->element_varname . '_throwEventActivity->setName(\
'' . $this->element_varname .
'\');
58 ' . $this->element_varname . '_throwEventActivity->setEventType(
"'.$event_definition['type'].'");
59 ' . $this->element_varname . '_throwEventActivity->setEventName(
"'.$event_definition['content'].'");
60 ' . $this->element_varname . '->addActivity(
' . $this->element_varname . '_throwEventActivity);
An exception for terminatinating execution or to throw for unit testing.
static extractILIASEventDefinitionFromProcess($start_event_ref, $type, $bpmn2_array)
static xsIDToPHPVarname($xsID)
@noinspection PhpIncludeInspection
Class ilWorkflowScaffold.
registerRequire($require)