14 #region Requires / File inclusion 36 if (!in_array($require, $this->requires)) {
37 $this->requires[] = $require;
47 foreach ($this->requires as $required_file) {
48 $requires .=
"require_once '" . $required_file .
"';\n";
55 #region StartEvent Message Registration and Handling 65 $this->start_event_refs[] =
array(
'type' =>
'message',
'ref' => $start_event_ref);
73 $this->start_event_refs[] =
array(
'type' =>
'signal',
'ref' => $start_event_ref);
81 $this->start_event_refs[] =
array(
'type' =>
'timeDate',
'ref' => $start_event_ref);
89 $event_definitions =
array();
90 foreach ((
array) $this->start_event_refs as $start_event_ref) {
91 $event_definition =
array();
92 switch ($start_event_ref[
'type']) {
95 $start_event_ref[
'ref'],
102 $start_event_ref[
'ref'],
111 $event_definitions[] = $event_definition;
114 if (count($event_definitions)) {
116 public static $startEventRequired = true; 118 public static function getStartEventInfo() 120 foreach ($event_definitions as $event_definition) {
122 $events[] = ' .
"array( 123 'type' => '" . $event_definition[
'type'] .
"', 124 'content' => '" . $event_definition[
'content'] .
"', 125 'subject_type' => '" . $event_definition[
'subject_type'] .
"', 126 'subject_id' => '" . $event_definition[
'subject_id'] .
"', 127 'context_type' => '" . $event_definition[
'context_type'] .
"', 128 'context_id' => '" . $event_definition[
'context_id'] .
"', 139 public static $startEventRequired = false; 159 $this->auxilliary_methods[] = $auxilliary_method;
164 $this->
registerRequire(
'./Services/WorkflowEngine/classes/workflows/class.ilBaseWorkflow.php');
166 $this->auxilliary_methods =
array();
191 $pre_constructor_content .=
" 192 class " . $this->workflow_name .
" extends ilBaseWorkflow 195 public function __construct() 199 $post_constructor_content =
" 201 foreach ($this->auxilliary_methods as $auxilliary_method) {
202 $post_constructor_content .=
" 204 " . $auxilliary_method .
" 207 $post_constructor_content .=
" 211 return $pre_constructor_content . $this->constructor_method_content . $post_constructor_content;
222 foreach ((
array) $this->bpmn2_array[
'children'] as $elements) {
223 foreach ((
array) $elements[
'children'] as $element) {
224 if ($element[
'name'] ==
'startEvent' && @$element[
'children'][0][
'name'] ==
'timerEventDefinition') {
225 $timer_element = $element[
'children'][0];
226 $content = $timer_element[
'children'][0][
'content'];
231 $start =
date(
'U', strtotime($content));
235 'type' =>
'time_passed',
236 'content' =>
'time_passed',
237 'subject_type' =>
'none',
239 'context_type' =>
'none',
241 'listening_start' => $start,
242 'listening_end' =>
$end
static extractILIASEventDefinitionFromProcess($start_event_ref, $type, $bpmn2_array)
Class ilWorkflowScaffold.
registerStartTimerRef($start_event_ref)
setConstructorMethodContent($constructor_method_content)
setWorkflowName($workflow_name)
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
registerStartSignalRef($start_event_ref)
addAuxilliaryMethod($auxilliary_method)
Create styles array
The data for the language used.
registerStartEventRef($start_event_ref)
getTimeDateEventDefinition($start_event_ref)
registerRequire($require)
__construct($bpmn2_array)
getConstructorMethodContent()
$constructor_method_content