- Timestamp:
- 08/17/10 16:17:12 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/workflow/inc/class.workflow_processmanager.inc.php
r795 r3167 5 5 6 6 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 10 8 /** 11 9 * @package Workflow … … 26 24 'database_user', 27 25 'database_password' 28 ); 26 ); 29 27 /** 30 28 * Constructor … … 34 32 function workflow_processmanager() 35 33 { 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 39 37 /* allow regular users to see the process graph */ 40 38 if ($_GET['menuaction'] == "workflow.ui_adminactivities.show_graph") … … 62 60 function import_process(&$data) 63 61 { 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'); 65 63 66 64 if (parent::import_process($data)) … … 121 119 function serialize_process($pId) 122 120 { 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'); 124 122 if (!isset($this->jobManager)) 125 $this->jobManager = new JobManager($this->db);123 $this->jobManager = &Factory::newInstance('JobManager'); 126 124 127 125 //if (!(isset($this->activity_manager))) $this->activity_manager = new ActivityManager($this->db); … … 228 226 fclose($fp); 229 227 $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 section236 //}237 fclose($fp);238 $out.=' ]]></template>';239 }240 228 $out.=' </activity>'."\n"; 241 229 }
Note: See TracChangeset
for help on using the changeset viewer.