ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
PhpIncludeInspection More...
Public Member Functions | |
__construct () | |
Default constructor. More... | |
startWorkflow () | |
Starts the workflow, activating the start_node. More... | |
stopWorkflow () | |
Stops the workflow, deactivating all nodes. More... | |
onStartWorkflow () | |
Method called on start of the workflow, prior to activating the first node. More... | |
onStopWorkflow () | |
Method called on stopping of the workflow, after deactivating all nodes. More... | |
onWorkflowFinished () | |
Method called after workflow is finished, after detecting no more nodes are active. More... | |
isActive () | |
Returns the activation status of the workflow. More... | |
handleEvent ($params) | |
Handles an event. More... | |
registerDetector (ilDetector $detector) | |
getWorkflowData () | |
Returns the workflow type and content currently set to the workflow. More... | |
getWorkflowSubject () | |
Get the workflow subject set to the workflow. More... | |
getWorkflowContext () | |
Get the event context set to the workflow. More... | |
setDbId ($id) | |
Sets the database id of the detector. More... | |
getDbId () | |
Returns the database id of the detector if set. More... | |
hasDbId () | |
Returns, if the detector has a database id. More... | |
setStartNode (ilNode $node) | |
Sets the start node of the workflow. More... | |
addNode (ilNode $node) | |
This method adds a node to the workflow. More... | |
setWorkflowClass ($class) | |
Sets the classname of the workflow definition. More... | |
getWorkflowClass () | |
Returns the currently set workflow class definition name. More... | |
setWorkflowLocation ($path) | |
Sets the location of the workflow definition file as relative path. More... | |
getWorkflowLocation () | |
Returns the currently set path to the workflow definition. More... | |
getNodes () | |
Returns all nodes attached to the workflow. More... | |
isDataPersistenceRequired () | |
resetDataPersistenceRequirement () | |
defineInstanceVar ($id, $name, $reference=false, $reference_target='', $type='mixed', $role='undefined') | |
hasInstanceVarByName ($name) | |
Returns if an instance variable of the given name is set. More... | |
hasInstanceVarById ($id) | |
Returns if an instance variable of the given id is set. More... | |
getInstanceVarByName ($name) | |
Returns the given instance variables content. More... | |
getInstanceVarById ($id) | |
Returns the given instance variables content. More... | |
setInstanceVarByName ($name, $value) | |
Sets the given instance var with the given content. More... | |
setInstanceVarById ($id, $value) | |
Sets the given instance var with the given content. More... | |
setInstanceVarByRole ($role, $value) | |
Sets the given instance var with the given content. More... | |
getInstanceVars () | |
Returns an array with all set instance variables. More... | |
flushInstanceVars () | |
Empties the instance variables. More... | |
defineInputVar ($name) | |
defineOutputVar ($name) | |
readInputVar ($name) | |
hasInputVar ($name) | |
hasOutputVar ($name) | |
writeInputVar ($name, $value) | |
readOutputVar ($name) | |
writeOutputVar ($name, $value) | |
getInputVars () | |
getOutputVars () | |
registerInputVar ($name, $definition) | |
registerOutputVar ($name) | |
Public Member Functions inherited from ilWorkflow | |
defineInstanceVar ($id, $name) | |
Static Public Member Functions | |
static | autoload ($class_name) |
Autoloader function to dynamically include files for instantiation of objects during deserialization. More... | |
Protected Attributes | |
$nodes | |
$detectors | |
$start_node | |
$active | |
Holds the activation state of the workflow. More... | |
$db_id | |
This holds the database id of the workflow. More... | |
$workflow_type | |
$workflow_content | |
$workflow_class | |
$workflow_location | |
$workflow_subject_type | |
$workflow_subject_identifier | |
$workflow_context_type | |
$workflow_context_identifier | |
$instance_vars = array() | |
$data_inputs | |
$data_outputs | |
$require_data_persistence = false | |
PhpIncludeInspection
PhpIncludeInspection PhpIncludeInspection ilBaseWorkflow is part of the petri net based workflow engine.
The base workflow class is the ancestor for all concrete workflow implementations.
/
Definition at line 21 of file class.ilBaseWorkflow.php.
ilBaseWorkflow::__construct | ( | ) |
Default constructor.
Here the definition of the workflow is to be done.
Definition at line 149 of file class.ilBaseWorkflow.php.
ilBaseWorkflow::addNode | ( | ilNode | $node | ) |
This method adds a node to the workflow.
ilNode | $node |
Implements ilWorkflow.
Definition at line 367 of file class.ilBaseWorkflow.php.
Referenced by StartEvent_Blank\__construct(), ParallelGateway_Simple\__construct(), Task_Simple\__construct(), EndEvent_Blanko_Simple\__construct(), ParallelGateway_Forking\__construct(), Task_ManualTask_Simple\__construct(), ParallelGateway_Joining\__construct(), DataInput_WithProperties\__construct(), Data_Wiring_Input_Task\__construct(), InclusiveGateway_Simple\__construct(), DataObject_Role\__construct(), ComplexGateway_Blanko_Simple\__construct(), DataObject_Simple\__construct(), IntermediateCatchEvent_Message_Simple\__construct(), EndEvent_Message_Simple\__construct(), ExclusiveGateway_Join_Simple\__construct(), IntermediateCatchEvent_Signal_Simple\__construct(), IntermediateCatchEvent_Timer_Simple\__construct(), IntermediateThrowEvent_Message_Simple\__construct(), IntermediateThrowEvent_Signal_Simple\__construct(), ExclusiveGateway_Fork_Simple\__construct(), DataOutput_Simple\__construct(), Task_ScriptTask_Simple\__construct(), DataInput_Simple\__construct(), Task_CallActivity_Simple\__construct(), EndEvent_Signal_Simple\__construct(), EndEvent_Terminate_Simple\__construct(), DataInput_RepositoryObjectSelector\__construct(), DataObject_Wiring_Input_Object_Output\__construct(), EventBasedGateway_Blanko_Simple\__construct(), Task_ReadLearnersFromCourse\__construct(), StartEvent_Message\__construct(), StartEvent_Timer_Date\__construct(), StartEvent_Signal\__construct(), StartEvent_Multistart\__construct(), and Booking_System_FullDiagram\__construct().
|
static |
Autoloader function to dynamically include files for instantiation of objects during deserialization.
string | $class_name |
Definition at line 436 of file class.ilBaseWorkflow.php.
References $filename.
ilBaseWorkflow::defineInputVar | ( | $name | ) |
Definition at line 702 of file class.ilBaseWorkflow.php.
ilBaseWorkflow::defineInstanceVar | ( | $id, | |
$name, | |||
$reference = false , |
|||
$reference_target = '' , |
|||
$type = 'mixed' , |
|||
$role = 'undefined' |
|||
) |
string | $id | |
string | $name | |
bool | $reference | |
string | $reference_target | |
string | $type | |
string | $role |
Definition at line 503 of file class.ilBaseWorkflow.php.
References array.
Referenced by DataInput_RepositoryObjectSelector\__construct(), DataInput_WithProperties\__construct(), Data_Wiring_Input_Task\__construct(), DataOutput_Simple\__construct(), DataObject_Simple\__construct(), DataObject_Role\__construct(), DataInput_Simple\__construct(), DataObject_Wiring_Input_Object_Output\__construct(), Task_ReadLearnersFromCourse\__construct(), and Booking_System_FullDiagram\__construct().
ilBaseWorkflow::defineOutputVar | ( | $name | ) |
Definition at line 711 of file class.ilBaseWorkflow.php.
ilBaseWorkflow::flushInstanceVars | ( | ) |
Empties the instance variables.
Implements ilWorkflow.
Definition at line 690 of file class.ilBaseWorkflow.php.
References array.
ilBaseWorkflow::getDbId | ( | ) |
Returns the database id of the detector if set.
Implements ilWorkflow.
Definition at line 325 of file class.ilBaseWorkflow.php.
References $db_id.
ilBaseWorkflow::getInputVars | ( | ) |
ilBaseWorkflow::getInstanceVarById | ( | $id | ) |
Returns the given instance variables content.
string | $name | Name of the variable. |
Implements ilWorkflow.
Definition at line 585 of file class.ilBaseWorkflow.php.
ilBaseWorkflow::getInstanceVarByName | ( | $name | ) |
Returns the given instance variables content.
string | $name | Name of the variable. |
Implements ilWorkflow.
Definition at line 560 of file class.ilBaseWorkflow.php.
ilBaseWorkflow::getInstanceVars | ( | ) |
Returns an array with all set instance variables.
Implements ilWorkflow.
Definition at line 682 of file class.ilBaseWorkflow.php.
References $instance_vars, and array.
ilBaseWorkflow::getNodes | ( | ) |
Returns all nodes attached to the workflow.
Definition at line 425 of file class.ilBaseWorkflow.php.
References $nodes.
ilBaseWorkflow::getOutputVars | ( | ) |
ilBaseWorkflow::getWorkflowClass | ( | ) |
Returns the currently set workflow class definition name.
Implements ilWorkflow.
Definition at line 391 of file class.ilBaseWorkflow.php.
References $workflow_class.
ilBaseWorkflow::getWorkflowContext | ( | ) |
Get the event context set to the workflow.
Implements ilWorkflow.
Definition at line 304 of file class.ilBaseWorkflow.php.
References array.
ilBaseWorkflow::getWorkflowData | ( | ) |
Returns the workflow type and content currently set to the workflow.
Implements ilWorkflow.
Definition at line 284 of file class.ilBaseWorkflow.php.
References array.
ilBaseWorkflow::getWorkflowLocation | ( | ) |
Returns the currently set path to the workflow definition.
Implements ilWorkflow.
Definition at line 415 of file class.ilBaseWorkflow.php.
References $workflow_location.
ilBaseWorkflow::getWorkflowSubject | ( | ) |
Get the workflow subject set to the workflow.
Implements ilWorkflow.
Definition at line 294 of file class.ilBaseWorkflow.php.
References array.
ilBaseWorkflow::handleEvent | ( | $params | ) |
Handles an event.
The event is passed to all active event handlers.
string[] | $params |
Implements ilWorkflow.
Definition at line 242 of file class.ilBaseWorkflow.php.
References $params, array, and onWorkflowFinished().
ilBaseWorkflow::hasDbId | ( | ) |
Returns, if the detector has a database id.
Implements ilWorkflow.
Definition at line 342 of file class.ilBaseWorkflow.php.
ilBaseWorkflow::hasInputVar | ( | $name | ) |
ilBaseWorkflow::hasInstanceVarById | ( | $id | ) |
Returns if an instance variable of the given id is set.
string | $id |
Implements ilWorkflow.
Definition at line 542 of file class.ilBaseWorkflow.php.
ilBaseWorkflow::hasInstanceVarByName | ( | $name | ) |
Returns if an instance variable of the given name is set.
string | $name |
Implements ilWorkflow.
Definition at line 523 of file class.ilBaseWorkflow.php.
ilBaseWorkflow::hasOutputVar | ( | $name | ) |
ilBaseWorkflow::isActive | ( | ) |
Returns the activation status of the workflow.
Implements ilWorkflow.
Definition at line 230 of file class.ilBaseWorkflow.php.
References $active.
ilBaseWorkflow::isDataPersistenceRequired | ( | ) |
Implements ilWorkflow.
Definition at line 470 of file class.ilBaseWorkflow.php.
References $require_data_persistence.
ilBaseWorkflow::onStartWorkflow | ( | ) |
Method called on start of the workflow, prior to activating the first node.
Implements ilWorkflow.
Definition at line 196 of file class.ilBaseWorkflow.php.
Referenced by startWorkflow().
ilBaseWorkflow::onStopWorkflow | ( | ) |
Method called on stopping of the workflow, after deactivating all nodes.
Please note: Stopping a workflow 'cancels' the execution. The graceful end of a workflow is handled with
Implements ilWorkflow.
Definition at line 208 of file class.ilBaseWorkflow.php.
Referenced by stopWorkflow().
ilBaseWorkflow::onWorkflowFinished | ( | ) |
Method called after workflow is finished, after detecting no more nodes are active.
This is the graceful end of the workflow. Forced shutdown of a workflow is handled in
Implements ilWorkflow.
Definition at line 220 of file class.ilBaseWorkflow.php.
Referenced by handleEvent().
ilBaseWorkflow::readInputVar | ( | $name | ) |
Definition at line 720 of file class.ilBaseWorkflow.php.
ilBaseWorkflow::readOutputVar | ( | $name | ) |
Definition at line 757 of file class.ilBaseWorkflow.php.
ilBaseWorkflow::registerDetector | ( | ilDetector | $detector | ) |
\ilDetector | $detector |
Implements ilWorkflow.
Definition at line 270 of file class.ilBaseWorkflow.php.
ilBaseWorkflow::registerInputVar | ( | $name, | |
$definition | |||
) |
string | $name | |
mixed | $definition |
Definition at line 792 of file class.ilBaseWorkflow.php.
Referenced by DataInput_RepositoryObjectSelector\__construct(), DataInput_WithProperties\__construct(), Data_Wiring_Input_Task\__construct(), DataInput_Simple\__construct(), DataObject_Wiring_Input_Object_Output\__construct(), and Task_ReadLearnersFromCourse\__construct().
ilBaseWorkflow::registerOutputVar | ( | $name | ) |
string | $name |
Definition at line 801 of file class.ilBaseWorkflow.php.
References array.
Referenced by DataOutput_Simple\__construct(), and DataObject_Wiring_Input_Object_Output\__construct().
ilBaseWorkflow::resetDataPersistenceRequirement | ( | ) |
ilBaseWorkflow::setDbId | ( | $id | ) |
Sets the database id of the detector.
integer | $id |
Implements ilWorkflow.
Definition at line 314 of file class.ilBaseWorkflow.php.
ilBaseWorkflow::setInstanceVarById | ( | $id, | |
$value | |||
) |
Sets the given instance var with the given content.
string | $id | Name of the variable |
mixed | $value |
Implements ilWorkflow.
Definition at line 633 of file class.ilBaseWorkflow.php.
Referenced by setInstanceVarByName(), and setInstanceVarByRole().
ilBaseWorkflow::setInstanceVarByName | ( | $name, | |
$value | |||
) |
Sets the given instance var with the given content.
string | $name | Name of the variable |
mixed | $value |
Implements ilWorkflow.
Definition at line 609 of file class.ilBaseWorkflow.php.
References setInstanceVarById().
ilBaseWorkflow::setInstanceVarByRole | ( | $role, | |
$value | |||
) |
Sets the given instance var with the given content.
only during startup to write event params
string | $role | Role of the variable |
mixed | $value |
Definition at line 658 of file class.ilBaseWorkflow.php.
References setInstanceVarById().
ilBaseWorkflow::setStartNode | ( | ilNode | $node | ) |
Sets the start node of the workflow.
This node is activated, when the workflow is started.
ilNode | $node |
Implements ilWorkflow.
Definition at line 357 of file class.ilBaseWorkflow.php.
Referenced by StartEvent_Blank\__construct(), ParallelGateway_Joining\__construct(), EndEvent_Blanko_Simple\__construct(), ParallelGateway_Simple\__construct(), Task_ManualTask_Simple\__construct(), ParallelGateway_Forking\__construct(), Task_Simple\__construct(), DataInput_Simple\__construct(), DataInput_RepositoryObjectSelector\__construct(), DataObject_Role\__construct(), ComplexGateway_Blanko_Simple\__construct(), IntermediateCatchEvent_Timer_Simple\__construct(), EndEvent_Signal_Simple\__construct(), EndEvent_Message_Simple\__construct(), Task_CallActivity_Simple\__construct(), IntermediateThrowEvent_Message_Simple\__construct(), ExclusiveGateway_Join_Simple\__construct(), IntermediateThrowEvent_Signal_Simple\__construct(), IntermediateCatchEvent_Signal_Simple\__construct(), IntermediateCatchEvent_Message_Simple\__construct(), InclusiveGateway_Simple\__construct(), Task_ScriptTask_Simple\__construct(), EndEvent_Terminate_Simple\__construct(), DataObject_Simple\__construct(), Data_Wiring_Input_Task\__construct(), DataInput_WithProperties\__construct(), ExclusiveGateway_Fork_Simple\__construct(), DataOutput_Simple\__construct(), EventBasedGateway_Blanko_Simple\__construct(), DataObject_Wiring_Input_Object_Output\__construct(), Task_ReadLearnersFromCourse\__construct(), and StartEvent_Multistart\__construct().
ilBaseWorkflow::setWorkflowClass | ( | $class | ) |
Sets the classname of the workflow definition.
string | $class |
Definition at line 379 of file class.ilBaseWorkflow.php.
ilBaseWorkflow::setWorkflowLocation | ( | $path | ) |
Sets the location of the workflow definition file as relative path.
string | $path | e.g. Services/WorkflowEngine |
Definition at line 403 of file class.ilBaseWorkflow.php.
References $path.
ilBaseWorkflow::startWorkflow | ( | ) |
Starts the workflow, activating the start_node.
Implements ilWorkflow.
Definition at line 156 of file class.ilBaseWorkflow.php.
References onStartWorkflow().
ilBaseWorkflow::stopWorkflow | ( | ) |
Stops the workflow, deactivating all nodes.
Implements ilWorkflow.
Definition at line 182 of file class.ilBaseWorkflow.php.
References onStopWorkflow().
ilBaseWorkflow::writeInputVar | ( | $name, | |
$value | |||
) |
Definition at line 748 of file class.ilBaseWorkflow.php.
ilBaseWorkflow::writeOutputVar | ( | $name, | |
$value | |||
) |
Definition at line 769 of file class.ilBaseWorkflow.php.
|
protected |
Holds the activation state of the workflow.
Definition at line 49 of file class.ilBaseWorkflow.php.
Referenced by isActive().
|
protected |
Definition at line 136 of file class.ilBaseWorkflow.php.
Referenced by getInputVars().
|
protected |
Definition at line 139 of file class.ilBaseWorkflow.php.
Referenced by getOutputVars().
|
protected |
This holds the database id of the workflow.
Definition at line 56 of file class.ilBaseWorkflow.php.
Referenced by getDbId().
|
protected |
Definition at line 35 of file class.ilBaseWorkflow.php.
|
protected |
Definition at line 133 of file class.ilBaseWorkflow.php.
Referenced by getInstanceVars().
|
protected |
Definition at line 28 of file class.ilBaseWorkflow.php.
Referenced by getNodes().
|
protected |
Definition at line 142 of file class.ilBaseWorkflow.php.
Referenced by isDataPersistenceRequired().
|
protected |
Definition at line 42 of file class.ilBaseWorkflow.php.
|
protected |
Definition at line 85 of file class.ilBaseWorkflow.php.
Referenced by getWorkflowClass().
|
protected |
Definition at line 79 of file class.ilBaseWorkflow.php.
|
protected |
Definition at line 126 of file class.ilBaseWorkflow.php.
|
protected |
Definition at line 117 of file class.ilBaseWorkflow.php.
|
protected |
Definition at line 91 of file class.ilBaseWorkflow.php.
Referenced by getWorkflowLocation().
|
protected |
Definition at line 108 of file class.ilBaseWorkflow.php.
|
protected |
Definition at line 100 of file class.ilBaseWorkflow.php.
|
protected |
Definition at line 68 of file class.ilBaseWorkflow.php.