ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilWorkflow.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
5 require_once './Services/WorkflowEngine/interfaces/ilDetector.php';
7 require_once './Services/WorkflowEngine/interfaces/ilNode.php';
8 
23 interface ilWorkflow
24 {
25  // Event handling
26 
32  public function handleEvent($params);
33 
34  // Node management
35 
41  public function addNode(ilNode $node);
42 
48  public function setStartNode(ilNode $node);
49 
55  public function registerDetector(ilDetector $detector);
56 
57  // Status
61  public function startWorkflow();
62 
66  public function stopWorkflow();
67 
71  public function isActive();
72 
76  public function onStartWorkflow();
77 
81  public function onStopWorkflow();
82 
86  public function onWorkflowFinished();
87 
88  // Persistence scheme.
92  public function getWorkflowData();
93 
97  public function getWorkflowSubject();
98 
102  public function getWorkflowContext();
103 
107  public function getWorkflowClass();
108 
112  public function getWorkflowLocation();
113 
119  public function setDbId($id);
120 
124  public function getDbId();
125 
129  public function hasDbId();
130 
134  public function isDataPersistenceRequired();
135 
139  public function resetDataPersistenceRequirement();
140 
141  // Instance vars (data objects)
142 
149  public function defineInstanceVar($id, $name);
150 
156  public function hasInstanceVarByName($name);
157 
163  public function hasInstanceVarById($id);
164 
170  public function getInstanceVarByName($name);
171 
177  public function getInstanceVarById($id);
178 
185  public function setInstanceVarByName($name, $value);
186 
193  public function setInstanceVarById($id, $value);
194 
198  public function getInstanceVars();
199 
203  public function flushInstanceVars();
204 }
$params
Definition: disable.php:11
setInstanceVarByName($name, $value)
getWorkflowSubject()
hasInstanceVarById($id)
onWorkflowFinished()
getWorkflowContext()
if(!array_key_exists('StateId', $_REQUEST)) $id
addNode(ilNode $node)
getWorkflowLocation()
isDataPersistenceRequired()
if($format !==null) $name
Definition: metadata.php:146
setStartNode(ilNode $node)
getWorkflowClass()
hasInstanceVarByName($name)
registerDetector(ilDetector $detector)
resetDataPersistenceRequirement()
PhpIncludeInspection
Definition: ilNode.php:25
handleEvent($params)
getInstanceVarById($id)
defineInstanceVar($id, $name)
getInstanceVarByName($name)
flushInstanceVars()
PhpIncludeInspection
Definition: ilWorkflow.php:23
setInstanceVarById($id, $value)
setDbId($id)
ilDetector Interface is part of the petri net based workflow engine.
Definition: ilDetector.php:16