Changeset 2355


Ignore:
Timestamp:
03/26/10 15:08:47 (14 years ago)
Author:
pedroerp
Message:

Ticket #609 - Correção de errors introduzidos pela nova factory.

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  
    205205                { 
    206206                        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'); 
    208213                        $this->runtime->setDebug(_DEBUG); 
    209214                        //$this->base_activity  = Factory::getInstance('workflow_baseactivity'); 
    210215                        //$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); 
    215220                        // TODO: open a new connection to the database under a different username to allow privilege handling on tables 
    216221                        /* CELEPAR */ 
  • sandbox/workflow/branches/609/inc/engine/src/common/WfRuntime.php

    r2311 r2355  
    272272      return false; 
    273273    } 
    274     $base_activity = &Factory::getInstance('BaseActivity', $this->db); 
     274    $base_activity = &Factory::newInstance('BaseActivity'); 
    275275    $this->activity =& $base_activity->getActivity($activity_id, $with_roles, $with_agents); 
    276276    if (!$this->activity) 
Note: See TracChangeset for help on using the changeset viewer.