5require_once
'./Services/WorkflowEngine/interfaces/ilEmitter.php';
7require_once
'./Services/WorkflowEngine/interfaces/ilDetector.php';
9require_once
'./Services/WorkflowEngine/interfaces/ilNode.php';
11require_once
'./Services/WorkflowEngine/interfaces/ilWorkflowEngineElement.php';
54 $this->emitted =
false;
92 $instance_vars = $this->context->getContext()->getInstanceVars();
95 foreach ($instance_vars as $instance_var) {
96 if ($instance_var[
'id'] == $this->var_name) {
97 if ($instance_var[
'reference']) {
98 $target = $instance_var[
'target'];
103 foreach ((array) $this->context->getContext()->getInstanceVars() as $value) {
104 if ($value[
'id'] == $target) {
105 $this->
getContext()->getContext()->setInstanceVarById($target, $value[
'value']);
109 if ($this->target_detector instanceof
ilDetector) {
110 $this->target_detector->trigger(array());
112 $this->emitted =
true;
An exception for terminatinating execution or to throw for unit testing.
@noinspection PhpIncludeInspection
__construct(ilNode $context)
Default constructor.
setTargetDetector(ilDetector $target_detector)
Sets the target detector for this emitter.
getTargetDetector()
Gets the currently set target detector of this emitter.
getContext()
Returns a reference to the parent node of this emitter.
emit()
Executes this emitter after activating the target node.
ilDetector Interface is part of the petri net based workflow engine.
ilEmitter Interface is part of the petri net based workflow engine.
@noinspection PhpIncludeInspection
ilWorkflowEngineElement Interface is part of the petri net based workflow engine.