src/Runtime/RuntimeService.php
public function startProcessInstanceByKey($processDefinitionKey, $businessKey = null, array $variables = [])
    {
        $query = $this->engine->getRepositoryService()->createProcessDefinitionQuery();
        $def = $query->processDefinitionKey($processDefinitionKey)->latestVersion()->findOne();
        
        return $this->startProcessInstance($def, $businessKey, $variables);
    }
public function startProcessInstanceByKey($processDefinitionKey, $businessKey = null, array $variables = [])
    {
        $query = $this->engine->getRepositoryService()->createProcessDefinitionQuery();
        $def = $query->processDefinitionKey($processDefinitionKey)->latestVersion()->findOne();
        
        return $this->startProcessInstance($def, $businessKey, $variables);
    }
public function startProcessInstanceByKey ( $ processDefinitionKey , $ businessKey = null , array $ variables = [ ] ) { $ query = $ this -> engine -> getRepositoryService ( ) -> createProcessDefinitionQuery ( ) ; $ def = $ query -> processDefinitionKey ( $ processDefinitionKey ) -> latestVersion ( ) -> findOne ( ) ; return $ this -> startProcessInstance ( $ def , $ businessKey , $ variables ) ; }
Start a process using the latest version of the given process definition.

@param string $processDefinitionKey
@param string $businessKey
@param array<string, mixed> $variables
@return HistoricProcessInstance
Start a process using the latest version of the given process definition .