2 require_once
'./Services/WorkflowEngine/classes/workflows/class.ilBaseWorkflow.php';
3 require_once
'./Services/WorkflowEngine/classes/nodes/class.ilBasicNode.php';
4 require_once
'./Services/WorkflowEngine/classes/activities/class.ilEventRaisingActivity.php';
5 require_once
'./Services/WorkflowEngine/classes/emitters/class.ilActivationEmitter.php';
6 require_once
'./Services/WorkflowEngine/classes/detectors/class.ilSimpleDetector.php';
18 $_v_EndEvent_1->setName(
'$_v_EndEvent_1');
20 $_v_IntermediateThrowEvent_1 =
new ilBasicNode($this);
21 $this->
addNode($_v_IntermediateThrowEvent_1);
22 $_v_IntermediateThrowEvent_1->setName(
'$_v_IntermediateThrowEvent_1');
24 $_v_IntermediateThrowEvent_1_throwEventActivity =
new ilEventRaisingActivity($_v_IntermediateThrowEvent_1);
25 $_v_IntermediateThrowEvent_1_throwEventActivity->setName(
'$_v_IntermediateThrowEvent_1');
26 $_v_IntermediateThrowEvent_1_throwEventActivity->setEventType(
"Course");
27 $_v_IntermediateThrowEvent_1_throwEventActivity->setEventName(
"UserWasAssigned");
28 $_v_IntermediateThrowEvent_1->addActivity($_v_IntermediateThrowEvent_1_throwEventActivity);
31 $this->
addNode($_v_StartEvent_1);
32 $_v_StartEvent_1->setName(
'$_v_StartEvent_1');
37 $_v_EndEvent_1_detector->setName(
'$_v_EndEvent_1_detector');
38 $_v_EndEvent_1_detector->setSourceNode($_v_IntermediateThrowEvent_1);
39 $_v_EndEvent_1->addDetector($_v_EndEvent_1_detector);
40 $_v_IntermediateThrowEvent_1_emitter =
new ilActivationEmitter($_v_IntermediateThrowEvent_1);
41 $_v_IntermediateThrowEvent_1_emitter->setName(
'$_v_IntermediateThrowEvent_1_emitter');
42 $_v_IntermediateThrowEvent_1_emitter->setTargetDetector($_v_EndEvent_1_detector);
43 $_v_IntermediateThrowEvent_1->addEmitter($_v_IntermediateThrowEvent_1_emitter);
45 $_v_IntermediateThrowEvent_1_detector =
new ilSimpleDetector($_v_IntermediateThrowEvent_1);
46 $_v_IntermediateThrowEvent_1_detector->setName(
'$_v_IntermediateThrowEvent_1_detector');
47 $_v_IntermediateThrowEvent_1_detector->setSourceNode($_v_StartEvent_1);
48 $_v_IntermediateThrowEvent_1->addDetector($_v_IntermediateThrowEvent_1_detector);
50 $_v_StartEvent_1_emitter->setName(
'$_v_StartEvent_1_emitter');
51 $_v_StartEvent_1_emitter->setTargetDetector($_v_IntermediateThrowEvent_1_detector);
52 $_v_StartEvent_1->addEmitter($_v_StartEvent_1_emitter);
59 $definitions = array(
'Message_1' => array(
63 return $definitions[
$id];
if(!array_key_exists('StateId', $_REQUEST)) $id
addNode(ilNode $node)
This method adds a node to the workflow.
setStartNode(ilNode $node)
Sets the start node of the workflow.