27 $this->element_varname =
'$_v_' . $element_id;
29 $event_definition =
null;
30 if (count($element[
'children'])) {
31 foreach ($element[
'children'] as $child) {
32 if ($child[
'name'] ==
'messageEventDefinition') {
35 if ($child[
'name'] ==
'signalEventDefinition') {
41 $class_object->
registerRequire(
'./Services/WorkflowEngine/classes/nodes/class.ilBasicNode.php');
43 ' . $this->element_varname .
' = new ilBasicNode($this);
44 $this->addNode(' . $this->element_varname .
');
45 ' . $this->element_varname .
'->setName(\'' . $this->element_varname .
'\');
48 if (isset($event_definition['type
']) && isset($event_definition['content
'])) {
49 $class_object->registerRequire('./
Services/WorkflowEngine/classes/activities/
class.ilEventRaisingActivity.php
');
51 ' . $this->element_varname . '_throwEventActivity =
new ilEventRaisingActivity(
' . $this->element_varname . ');
52 ' . $this->element_varname . '_throwEventActivity->setName(\
'' . $this->element_varname .
'\');
53 ' . $this->element_varname . '_throwEventActivity->setEventType(
"' . $event_definition['type'] . '");
54 ' . $this->element_varname . '_throwEventActivity->setEventName(
"' . $event_definition['content'] . '");
55 ' . $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)