27 $this->element_varname =
'$_v_'.$element[
'attributes'][
'id'];
28 $event_definition = null;
29 if(count($element[
'children']))
31 foreach ($element[
'children'] as $child)
33 if($child[
'name'] ==
'messageEventDefinition')
37 if($child[
'name'] ==
'signalEventDefinition')
44 $message_element =
false;
45 if(isset($element[
'attributes'][
'ilias:message']))
47 $message_element = $element[
'attributes'][
'ilias:message'];
50 $class_object->
registerRequire(
'./Services/WorkflowEngine/classes/nodes/class.ilBasicNode.php');
52 ' . $this->element_varname .
' = new ilBasicNode($this); 53 $this->addNode(' . $this->element_varname .
'); 54 ' . $this->element_varname .
'->setName(\'' . $this->element_varname .
'\');
57 if(isset($event_definition['type
']) && isset($event_definition['content
'])) 59 $class_object->registerRequire('./
Services/WorkflowEngine/classes/activities/
class.ilEventRaisingActivity.php
'); 61 ' . $this->element_varname . '_sendTaskActivity =
new ilEventRaisingActivity(
' . $this->element_varname . ');
62 ' . $this->element_varname . '_sendTaskActivity->setName(\
'' . $this->element_varname .
'_sendTaskActivity\'); 63 ' . $this->element_varname .
'_sendTaskActivity->setEventType("'.$event_definition[
'type'].
'"); 64 ' . $this->element_varname .
'_sendTaskActivity->setEventName("'.$event_definition[
'content'].
'"); 65 ' . $this->element_varname .
'->addActivity(' . $this->element_varname .
'_sendTaskActivity); 69 if(isset($element[
'attributes'][
'message']))
72 $task_parameters =
'';
73 $message_name = $element[
'attributes'][
'message'];
74 if(substr($message_name,0, 6) ==
'ilias:')
76 $message_name = substr($message_name,6);
78 if(count($data_inputs))
80 $task_parameters =
'"'.implode(
'","', $data_inputs).
'"';
83 $class_object->registerRequire(
'./Services/WorkflowEngine/classes/activities/class.ilSendMailActivity.php');
85 ' . $this->element_varname .
'_sendTaskActivity = new ilSendMailActivity(' . $this->element_varname .
'); 86 ' . $this->element_varname .
'_sendTaskActivity->setMessageName(\'' . $message_name .
'\');
87 ' . $this->element_varname . '_sendTaskActivity_params =
array(
' . $task_parameters . ');
88 ' . $this->element_varname . '_sendTaskActivity->setParameters(
' . $this->element_varname . '_sendTaskActivity_params);
89 ' . $this->element_varname . '->addActivity(
' . $this->element_varname . '_sendTaskActivity);
93 $code .= $this->handleDataAssociations($element, $class_object, $this->element_varname); getDataInputAssociationIdentifiers($element)
static xsIDToPHPVarname($xsID)
static extractILIASEventDefinitionFromProcess($start_event_ref, $type, $bpmn2_array)
Class ilWorkflowScaffold.
Create styles array
The data for the language used.
registerRequire($require)
getPHP($element, ilWorkflowScaffold $class_object)