22 die(
"Usage: workflow.php username password client\r\n");
25chdir(dirname(__FILE__));
28include_once
'./Services/Authentication/classes/class.ilAuthFactory.php';
36include_once
'./include/inc.header.php';
39echo
"-------------------------------------------------------------------------------\r\n";
40echo
"Executing tutorial workflow: ilPetriNetWorkflow1\r\n";
41echo
"-------------------------------------------------------------------------------\r\n";
42require_once
'./Services/WorkflowEngine/classes/tutorial/class.ilPetriNetWorkflow1.php';
44echo
"\r\n\r\n\r\n\r\n\r\n";
48echo
"-------------------------------------------------------------------------------\r\n";
49echo
"Executing tutorial workflow: ilPetriNetWorkflow2\r\n";
50echo
"-------------------------------------------------------------------------------\r\n";
51require_once
'./Services/WorkflowEngine/classes/tutorial/class.ilPetriNetWorkflow2.php';
53echo
"\r\n\r\n\r\n\r\n\r\n";
57echo
"-------------------------------------------------------------------------------\r\n";
58echo
"Executing tutorial workflow: ilPetriNetWorkflow3\r\n";
59echo
"-------------------------------------------------------------------------------\r\n";
60require_once
'./Services/WorkflowEngine/classes/tutorial/class.ilPetriNetWorkflow3.php';
62echo
"\r\n\r\n\r\n\r\n\r\n";
66echo
"-------------------------------------------------------------------------------\r\n";
67echo
"Executing tutorial workflow: ilPetriNetWorkflow4\r\n";
68echo
"-------------------------------------------------------------------------------\r\n";
71require_once
'./Services/WorkflowEngine/classes/tutorial/class.ilPetriNetWorkflow4.php';
78require_once
'./Services/WorkflowEngine/classes/utils/class.ilWorkflowDbHelper.php';
86require_once
'./Services/WorkflowEngine/classes/utils/class.ilWorkflowUtils.php';
87#ilWorkflowUtils::handleTimePassedEvent();
89require_once
'./Services/WorkflowEngine/classes/class.ilWorkflowEngine.php';
109echo
"\r\n\r\n\r\n\r\n\r\n";
An exception for terminatinating execution or to throw for unit testing.
static setContext($a_context)
set context
ilWorkflowEngine is part of the petri net based workflow engine.
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']