コード例 #1
0
 /**
  * Returns the current model state.
  *
  * @param ModelInterface $model
  * @param string         $processName
  * @param string         $stepName
  *
  * @return ModelState
  */
 public function findCurrentModelState(ModelInterface $model, $processName, $stepName = null)
 {
     return $this->repository->findLatestModelState($model->getWorkflowIdentifier(), $processName, $stepName);
 }