Ignore:
Timestamp:
03/29/10 14:46:01 (14 years ago)
Author:
pedroerp
Message:

Ticket #609 - Merged 2197:2356 /sandbox/workflow/branches/609/ em /sandbox/workflow/trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/workflow/trunk/inc/class.JobRunner.inc.php

    r795 r2372  
    4343                $this->parameters = unserialize(base64_decode($parameters)); 
    4444                $this->parameters['currentDate'] = new DateTime($this->parameters['currentDate']); 
    45                 $this->jobManager = &$GLOBALS['workflow']['factory']->getInstance('WorkflowJobManager'); 
     45                $this->jobManager =& Factory::getInstance('WorkflowJobManager'); 
    4646        } 
    4747 
     
    6666        { 
    6767                /* activate the security policy */ 
    68                 $GLOBALS['workflow']['factory']->getInstance('WorkflowSecurity')->enableSecurityPolicy(); 
     68                Factory::getInstance('WorkflowSecurity')->enableSecurityPolicy(); 
     69 
     70                /** 
     71                 * Since all jobs must run in process mode, e. g. it's user code, 
     72                 * we must enable the security. 
     73                 */ 
     74                Security::enable(); 
    6975 
    7076                if (!file_exists($this->parameters['file'])) 
     
    94100 
    95101require_once 'common.inc.php'; 
    96 $GLOBALS['workflow']['factory']->getInstance('WorkflowMacro')->prepareEnvironment(); 
     102Factory::getInstance('WorkflowMacro')->prepareEnvironment(); 
    97103 
    98 $jobRunner = new JobRunner($argv[1]); 
     104$jobRunner = &Factory::newInstance('JobRunner', $argv[1]); 
    99105$jobRunner->run(); 
    100106?> 
Note: See TracChangeset for help on using the changeset viewer.