27 $this->element_varname =
'$_v_'.$element_id;
29 $event_definition = null;
31 $class_object->
registerRequire(
'./Services/WorkflowEngine/classes/nodes/class.ilBasicNode.php');
33 ' . $this->element_varname .
' = new ilBasicNode($this); 34 $this->addNode(' . $this->element_varname .
'); 35 ' . $this->element_varname .
'->setName(\'' . $this->element_varname .
'\');
37 $script_definition = ilBPMN2ParserUtils::extractScriptDefinitionFromElement($element); 39 $class_object->addAuxilliaryMethod( 40 "public function _v_".$element_id . "_script(\$context) 42 " . $script_definition . " 46 $class_object->registerRequire('./
Services/WorkflowEngine/classes/activities/
class.ilScriptActivity.php
'); 49 ". $this->element_varname . "_scriptActivity = new ilScriptActivity(" . $this->element_varname . "); 50 " . $this->element_varname . "_scriptActivity->setName('" . $this->element_varname . "'); 51 ". $this->element_varname . "_scriptActivity->setMethod('".'_v_'.$element_id . "_script
'); 52 " . $this->element_varname . "->addActivity(". $this->element_varname . "_scriptActivity); 55 $code .= $this->handleDataAssociations($element, $class_object, $this->element_varname); static xsIDToPHPVarname($xsID)
Class ilWorkflowScaffold.
getPHP($element, ilWorkflowScaffold $class_object)
registerRequire($require)
Class ilScriptTaskElement.