Changeset 2355 for sandbox/workflow/branches
- Timestamp:
- 03/26/10 15:08:47 (14 years ago)
- Location:
- sandbox/workflow/branches/609/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/workflow/branches/609/inc/class.run_activity.inc.php
r2311 r2355 205 205 { 206 206 parent::WorkflowUtils(); 207 $this->runtime = Factory::getInstance('workflow_wfruntime'); 207 208 /** 209 * We should always use newInstance to instantiate 210 * 'workflow_wfruntime' 211 */ 212 $this->runtime = &Factory::newInstance('workflow_wfruntime'); 208 213 $this->runtime->setDebug(_DEBUG); 209 214 //$this->base_activity = Factory::getInstance('workflow_baseactivity'); 210 215 //$this->process = Factory::getInstance('workflow_process'); 211 $this->GUI =Factory::getInstance('workflow_gui');212 $this->categories =Factory::getInstance('categories');213 214 $this->workflowSmarty =Factory::getInstance('workflow_smarty', false);216 $this->GUI = &Factory::getInstance('workflow_gui'); 217 $this->categories = &Factory::getInstance('categories'); 218 219 $this->workflowSmarty = &Factory::getInstance('workflow_smarty', false); 215 220 // TODO: open a new connection to the database under a different username to allow privilege handling on tables 216 221 /* CELEPAR */ -
sandbox/workflow/branches/609/inc/engine/src/common/WfRuntime.php
r2311 r2355 272 272 return false; 273 273 } 274 $base_activity = &Factory:: getInstance('BaseActivity', $this->db);274 $base_activity = &Factory::newInstance('BaseActivity'); 275 275 $this->activity =& $base_activity->getActivity($activity_id, $with_roles, $with_agents); 276 276 if (!$this->activity)
Note: See TracChangeset
for help on using the changeset viewer.