Class ilReceiveTaskElement.
More...
◆ getPHP()
- Parameters
-
| $element | |
\ilWorkflowScaffold | $class_object | |
- Returns
- string
Definition at line 23 of file class.ilReceiveTaskElement.php.
References $code, ilBPMN2ParserUtils\extractILIASEventDefinitionFromProcess(), ilBPMN2ParserUtils\extractTimeDateEventDefinitionFromElement(), ilWorkflowScaffold\registerRequire(), and ilBPMN2ParserUtils\xsIDToPHPVarname().
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')
37 $child[
'attributes'][
'messageRef'],
'message', $this->bpmn2_array);
39 if($child[
'name'] ==
'signalEventDefinition')
42 $child[
'attributes'][
'signalRef'],
'signal', $this->bpmn2_array);
44 if($child[
'name'] ==
'timerEventDefinition')
47 $child[
'attributes'][
'id'],
'intermediateCatchEvent', $this->bpmn2_array);
52 $class_object->
registerRequire(
'./Services/WorkflowEngine/classes/nodes/class.ilBasicNode.php');
54 ' . $this->element_varname .
' = new ilBasicNode($this); 55 $this->addNode(' . $this->element_varname .
'); 56 ' . $this->element_varname .
'->setName(\'' . $this->element_varname .
'\');
59 if(is_array($event_definition)) 61 $class_object->registerRequire('./
Services/WorkflowEngine/classes/detectors/
class.ilEventDetector.php
'); 63 ' . $this->element_varname . '_detector =
new ilEventDetector(
' . $this->element_varname . ');
64 ' . $this->element_varname . '_detector->setName(\
'' . $this->element_varname .
'\');
65 ' . $this->element_varname . '_detector->setEvent(
"'.$event_definition['type'].'",
"'.$event_definition['content'].'");
66 ' . $this->element_varname . '_detector->setEventSubject(
"'.$event_definition['subject_type'].'",
"'.$event_definition['subject_id'].'");
67 ' . $this->element_varname . '_detector->setEventContext(
"'.$event_definition['context_type'].'",
"'.$event_definition['context_id'].'");
69 if(isset($event_definition['listening_start
']) || isset($event_definition['listening_end
'])) 71 $code .= $this->element_varname . '_detector->setListeningTimeframe(
' .(int) $event_definition['listening_start
'] . 72 ',
' . (int) $event_definition['listening_end
'] . ');
'; 74 else if(isset($event_definition['listening_relative
']) && isset($event_definition['listening_interval
'])) 76 $code .= $this->element_varname . '_detector->setTimerRelative(
true);
'; 77 $code .= $this->element_varname . '_detector->setTimerLimit(
' .(int) $event_definition['listening_interval
'] . ');
'; 81 $code .= $this->handleDataAssociations($element, $class_object, $this->element_varname); static xsIDToPHPVarname($xsID)
static extractILIASEventDefinitionFromProcess($start_event_ref, $type, $bpmn2_array)
registerRequire($require)
static extractTimeDateEventDefinitionFromElement($start_event_ref, $type, $bpmn2_array)
◆ $element_varname
ilReceiveTaskElement::$element_varname |
The documentation for this class was generated from the following file: