startedAt = Carbon::now(); $this->signature = "schedule:run"; $this->signature .= ' {--workspace=workflow : ProcessMaker Indicates the workspace to be processed.} {--processmakerPath=./ : ProcessMaker path.} '; $this->description .= ' (ProcessMaker has extended this command)'; parent::__construct($schedule); } /** * Execute the console command. * * @return void */ public function handle() { $that = $this; $workspace = $this->option('workspace'); if (!empty($workspace)) { $webApplication = new WebApplication(); $webApplication->setRootDir($this->option('processmakerPath')); $webApplication->loadEnvironment($workspace, false); } TaskSchedulerBM::executeScheduler($this); parent::handle(); } }