4require_once 
'./Services/WorkflowEngine/classes/parser/elements/class.ilBaseElement.php';
 
   34    public function load($element_name)
 
   36        preg_match(
'/[A-Z]/', $element_name, $matches, PREG_OFFSET_CAPTURE);
 
   37        $type = strtolower(substr($element_name, @$matches[0][1]));
 
   38        if (
$type == 
'basedgateway') {
 
   43        if (
$type == 
'objectreference') {
 
   48        require_once 
'./Services/WorkflowEngine/classes/parser/elements/' . 
$type . 
'/class.il' . ucfirst($element_name) . 
'Element.php';
 
   49        $classname = 
'il' . ucfirst($element_name) . 
'Element';
 
   50        $instance = 
new $classname;
 
   51        $instance->setBPMN2Array($this->bpmn2_array);
 
An exception for terminatinating execution or to throw for unit testing.
Class ilBPMN2ElementLoader.
__construct($bpmn2_array)
ilBPMN2ElementLoader constructor.