5 require_once
'./Services/WorkflowEngine/interfaces/ilActivity.php';
7 require_once
'./Services/WorkflowEngine/interfaces/ilNode.php';
91 $this->class_and_method_name =
$name;
154 $name = explode(
'::', $this->class_and_method_name);
156 $list = (array) $this->context->getContext()->getInstanceVars();
158 foreach ($this->parameters as
$key => $parameter) {
160 foreach (
$list as $instance_var) {
161 if ($instance_var[
'id'] == $parameter) {
163 $role = $instance_var[
'role'];
164 if ($instance_var[
'reference'] ==
true) {
165 foreach (
$list as $definitions) {
166 if ($definitions[
'id'] == $instance_var[
'target']) {
167 $role = $definitions[
'role'];
171 $params[$role] = $this->context->getContext()->getInstanceVarById($parameter);
175 $params[$parameter] = $parameter;
181 $return_value = call_user_func_array(
183 array($this, array(
$params, $this->outputs))
185 foreach ((array) $return_value as
$key => $value) {
186 $this->context->getContext()->setInstanceVarById(
$key, $value);
if(isset($_REQUEST['delete'])) $list
ilWorkflowEngineElement Interface is part of the petri net based workflow engine. ...
getClassAndMethodName()
Returns the currently set class- and methodname of the method to be called.
__construct(ilNode $context)
Default constructor.
getIncludeFilename()
Returns the currently set filename of the classfile to be included.
getParameters()
Returns the currently set parameters to be passed to the method.
setParameters($params)
Sets an array with params for the method.
ilActivity Interface is part of the petri net based workflow engine.
getContext()
Returns a reference to the parent node.
setClassAndMethodName($name)
setIncludeFilename($filename)
Sets the name of the file to be included prior to calling the method.