Ejemplo n.º 1
0
 /**
  * If the passed item is in a failed state, automatically flag this workflow as having a failed activity
  *
  * @param WorkflowHistoryItem $item
  */
 protected function flagActivityFailure(WorkflowHistoryItem $item)
 {
     switch ($item->getState()) {
         case HistoryItemState::FAILED():
         case HistoryItemState::TIMED_OUT():
             $this->setActivityFailed();
             $this->error_messages[] = $item->getErrorMessage();
         default:
             return;
     }
 }