ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilServiceTaskElement.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3
13{
16
23 public function getPHP($element, ilWorkflowScaffold $class_object)
24 {
25 $code = "";
26 $element_id = ilBPMN2ParserUtils::xsIDToPHPVarname($element['attributes']['id']);
27 $this->element_varname = '$_v_' . $element_id;
28 // TODO Parse extensions to make a static method call.
29 $event_definition = null;
30
31 $class_object->registerRequire('./Services/WorkflowEngine/classes/nodes/class.ilBasicNode.php');
32 $code .= '
33 ' . $this->element_varname . ' = new ilBasicNode($this);
34 $this->addNode(' . $this->element_varname . ');
35 ' . $this->element_varname . '->setName(\'' . $this->element_varname . '\');
36 ';
37
38 $code .= $this->handleDataAssociations($element, $class_object, $this->element_varname);
39
40 return $code;
41 }
42}
An exception for terminatinating execution or to throw for unit testing.
Class ilBaseElement.
Class ilServiceTaskElement.
getPHP($element, ilWorkflowScaffold $class_object)
Class ilWorkflowScaffold.
$code
Definition: example_050.php:99