ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilExclusiveGatewayElement.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
29 $event_definition = null;
30
31 $class_object->registerRequire('./Services/WorkflowEngine/classes/nodes/class.ilCaseNode.php');
32 $code .= '
33 ' . $this->element_varname . ' = new ilCaseNode($this);
34 ' . $this->element_varname . '->setName(\'' . $this->element_varname . '\');
35 ' . $this->element_varname . '->setIsExclusiveJoin(true);
36 $this->addNode(' . $this->element_varname . ');
37 ';
38
39 $code .= $this->handleDataAssociations($element, $class_object, $this->element_varname);
40
41 return $code;
42 }
43}
An exception for terminatinating execution or to throw for unit testing.
Class ilBaseElement.
Class ilExclusiveGatewayElement.
getPHP($element, ilWorkflowScaffold $class_object)
Class ilWorkflowScaffold.