Ignore:
Timestamp:
08/17/10 16:17:12 (14 years ago)
Author:
viani
Message:

Ticket #1135 - Merged r1990:3166 from /trunk/workflow into /branches/2.2/workflow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/workflow/inc/class.workflow_processmanager.inc.php

    r795 r3167  
    55 
    66        require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'ProcessManager' . SEP . 'ProcessManager.php'); 
    7         require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'ProcessManager' . SEP . 'RoleManager.php'); 
    8         require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'ProcessManager' . SEP . 'ActivityManager.php'); 
    9         require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'API' . SEP . 'Process.php'); 
     7 
    108        /** 
    119         * @package Workflow 
     
    2624                        'database_user', 
    2725                        'database_password' 
    28                 );  
     26                ); 
    2927           /** 
    3028                 * Constructor 
     
    3432                function workflow_processmanager() 
    3533                { 
    36                         parent::ProcessManager($GLOBALS['workflow']['workflowObjects']->getDBGalaxia()->Link_ID); 
    37                         $this->workflow_acl = CreateObject('workflow.workflow_acl'); 
    38                          
     34                        parent::ProcessManager(); 
     35                        $this->workflow_acl = Factory::getInstance('workflow_acl'); 
     36 
    3937                        /* allow regular users to see the process graph */ 
    4038                        if ($_GET['menuaction'] == "workflow.ui_adminactivities.show_graph") 
     
    6260                function import_process(&$data) 
    6361                { 
    64                         if (!(isset($this->activity_manager)))  $this->activity_manager = new ActivityManager($this->db); 
     62                        if (!(isset($this->activity_manager)))  $this->activity_manager = &Factory::newInstance('ActivityManager'); 
    6563 
    6664                        if (parent::import_process($data)) 
     
    121119                function serialize_process($pId) 
    122120                { 
    123                         if (!(isset($this->activity_manager)))  $this->activity_manager = new ActivityManager($this->db); 
     121                        if (!(isset($this->activity_manager)))  $this->activity_manager = &Factory::newInstance('ActivityManager'); 
    124122                        if (!isset($this->jobManager)) 
    125                                 $this->jobManager = new JobManager($this->db); 
     123                                $this->jobManager = &Factory::newInstance('JobManager'); 
    126124                 
    127125                        //if (!(isset($this->activity_manager)))  $this->activity_manager = new ActivityManager($this->db); 
     
    228226                          fclose($fp); 
    229227                          $out.='      ]]></code>'; 
    230                           if($res['wf_is_interactive']=='y') { 
    231                                 $out.='      <template><![CDATA['; 
    232                                 $fp=fopen(GALAXIA_PROCESSES.SEP."$wf_procname".SEP."code".SEP."templates".SEP."$name.tpl","r"); 
    233                                 //while(!feof($fp)) { 
    234                                 //      $line=fread($fp,8192); 
    235                                         $out.=''; //all templatess will be exported in another section 
    236                                 //} 
    237                                 fclose($fp); 
    238                                 $out.='      ]]></template>'; 
    239                           } 
    240228                          $out.='    </activity>'."\n";     
    241229                        } 
Note: See TracChangeset for help on using the changeset viewer.