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/detectors/class.ilEventDetector.php';
14 'type' =>
'time_passed',
15 'content' =>
'time_passed',
16 'subject_type' =>
'none',
18 'context_type' =>
'none',
24 'content' =>
'UserFailedTest',
25 'subject_type' =>
'usr',
27 'context_type' =>
'obj',
38 $this->
addNode($_v_StartEvent_1);
39 $_v_StartEvent_1->setName(
'$_v_StartEvent_1');
42 $_v_StartEvent_1_detector->setName(
'$_v_StartEvent_1_detector');
43 $_v_StartEvent_1_detector->setEvent(
"time_passed",
"time_passed");
44 $_v_StartEvent_1_detector->setEventSubject(
"none",
"0");
45 $_v_StartEvent_1_detector->setEventContext(
"none",
"0");
46 $_v_StartEvent_1_detector->setListeningTimeframe(1399889594, 0);
48 $this->
addNode($_v_StartEvent_2);
49 $_v_StartEvent_2->setName(
'$_v_StartEvent_2');
52 $_v_StartEvent_2_detector->setName(
'$_v_StartEvent_2_detector');
53 $_v_StartEvent_2_detector->setEvent(
"Test",
"UserFailedTest");
54 $_v_StartEvent_2_detector->setEventSubject(
"usr",
"0");
55 $_v_StartEvent_2_detector->setEventContext(
"obj",
"0");
58 $this->
addNode($_v_StartEvent_3);
59 $_v_StartEvent_3->setName(
'$_v_StartEvent_3');
static getStartEventInfo()
static $startEventRequired
addNode(ilNode $node)
This method adds a node to the workflow.
setStartNode(ilNode $node)
Sets the start node of the workflow.