definitionsId = $definitions->id; $this->processId = $process->getId(); $this->data = $data; } /** * Execute the job. * * @return void */ public function action(ProcessInterface $process) { //Create an initial data store for the process instance $dataStorage = $process->getRepository()->createDataStore(); $dataStorage->setData($this->data); //Call the process $instance = $process->call($dataStorage); return $instance; } }