ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
PhpIncludeInspection More...
Public Member Functions | |
__construct (ilWorkflow $context) | |
Default constructor. More... | |
setIsExclusiveJoin ($is_exclusive) | |
setIsExclusiveFork ($is_exclusive) | |
activate () | |
Activates the node. More... | |
deactivate () | |
Deactivates the node. More... | |
checkTransitionPreconditions () | |
Checks, if the preconditions of the node to transit are met. More... | |
attemptTransition () | |
Attempts to transit the node. More... | |
executeTransition () | |
Executes the 'then'-transition of the node. More... | |
addEmitter (ilEmitter $emitter, $expression='return true;') | |
Adds an emitter to one of the lists attached to the node. More... | |
notifyDetectorSatisfaction (ilDetector $detector) | |
This method is called by detectors, that just switched to being satisfied. More... | |
Public Member Functions inherited from ilBaseNode | |
addDetector (ilDetector $detector) | |
Adds a detector to the list of detectors. More... | |
getDetectors () | |
Returns all currently set detectors. More... | |
addEmitter (ilEmitter $emitter) | |
Adds an emitter to the list of emitters. More... | |
getEmitters () | |
Returns all currently set emitters. More... | |
addActivity (ilActivity $activity) | |
Adds an activity to the list of activities. More... | |
getActivities () | |
Returns all currently set activities. More... | |
getContext () | |
Returns a reference to the parent workflow object. More... | |
setName ($name) | |
getName () | |
getRuntimeVars () | |
setRuntimeVars ($runtime_vars) | |
getRuntimeVar ($name) | |
setRuntimeVar ($name, $value) | |
onActivate () | |
Method called on activation of the node. More... | |
onDeactivate () | |
Method calles on deactivation of the node. More... | |
isActive () | |
Returns the activation status of the node. More... | |
attemptTransition () | |
checkTransitionPreconditions () | |
executeTransition () | |
activate () | |
deactivate () | |
notifyDetectorSatisfaction (ilDetector $detector) | |
Data Fields | |
$else_emitters | |
$is_exclusive | |
Private Attributes | |
$is_exclusive_join | |
$is_exclusive_fork | |
Additional Inherited Members | |
Protected Attributes inherited from ilBaseNode | |
$context | |
$detectors | |
$emitters | |
$activities | |
$active = false | |
$name | |
$runtime_vars | |
PhpIncludeInspection
Case node of the petri net based workflow engine.
The case node is a deciding node. It features a multiple set of emitters and no activities.
/
Definition at line 18 of file class.ilCaseNode.php.
ilCaseNode::__construct | ( | ilWorkflow | $context | ) |
Default constructor.
ilWorkflow | $context | Reference to the parent workflow. |
Definition at line 37 of file class.ilCaseNode.php.
References ilBaseNode\$context, and array.
ilCaseNode::activate | ( | ) |
Activates the node.
Implements ilNode.
Definition at line 66 of file class.ilCaseNode.php.
References attemptTransition(), and ilBaseNode\onActivate().
ilCaseNode::addEmitter | ( | ilEmitter | $emitter, |
$expression = 'return true;' |
|||
) |
Adds an emitter to one of the lists attached to the node.
ilEmitter | $emitter | |
boolean | $else_emitter | True, if the emitter should be an 'else'-emitter. |
Definition at line 163 of file class.ilCaseNode.php.
References array.
ilCaseNode::attemptTransition | ( | ) |
Attempts to transit the node.
Basically, this checks for preconditions and transits, returning true or false if preconditions are not met, aka detectors are not fully satisfied.
Implements ilNode.
Definition at line 120 of file class.ilCaseNode.php.
References checkTransitionPreconditions(), and executeTransition().
Referenced by activate(), and notifyDetectorSatisfaction().
ilCaseNode::checkTransitionPreconditions | ( | ) |
Checks, if the preconditions of the node to transit are met.
Please note, that in a conditional node, this means the node can transit to one or another outcome. This method only returns false, if the return value of the method is neither true nor false.
Implements ilNode.
Definition at line 97 of file class.ilCaseNode.php.
Referenced by attemptTransition().
ilCaseNode::deactivate | ( | ) |
Deactivates the node.
Implements ilNode.
Definition at line 79 of file class.ilCaseNode.php.
References ilBaseNode\onDeactivate().
Referenced by executeTransition().
ilCaseNode::executeTransition | ( | ) |
Executes the 'then'-transition of the node.
Implements ilNode.
Definition at line 133 of file class.ilCaseNode.php.
References array, and deactivate().
Referenced by attemptTransition().
ilCaseNode::notifyDetectorSatisfaction | ( | ilDetector | $detector | ) |
This method is called by detectors, that just switched to being satisfied.
ilDetector | $detector | ilDetector which is now satisfied. |
Implements ilNode.
Definition at line 178 of file class.ilCaseNode.php.
References attemptTransition(), and ilBaseNode\isActive().
ilCaseNode::setIsExclusiveFork | ( | $is_exclusive | ) |
mixed | $is_exclusive |
Definition at line 58 of file class.ilCaseNode.php.
References $is_exclusive.
ilCaseNode::setIsExclusiveJoin | ( | $is_exclusive | ) |
mixed | $is_exclusive |
Definition at line 50 of file class.ilCaseNode.php.
References $is_exclusive.
ilCaseNode::$else_emitters |
Definition at line 27 of file class.ilCaseNode.php.
ilCaseNode::$is_exclusive |
Definition at line 30 of file class.ilCaseNode.php.
Referenced by setIsExclusiveFork(), and setIsExclusiveJoin().
|
private |
Definition at line 24 of file class.ilCaseNode.php.
|
private |
Definition at line 21 of file class.ilCaseNode.php.