Esempio n. 1
0
 /**
  * Called when the workflow completes, regardless of success or failure
  *
  * @param WorkflowAwareEvent $event
  * @return void
  */
 public static function onWorkflowComplete(WorkflowAwareEvent $event)
 {
     $memory_pool = self::getInstance()->getMemoryPoolForWorkflow($event->getWorkflow(), $event->getExecutionId());
     $logger = self::getInstance()->getLogger();
     $logger->debug("Workflow complete");
     $logger->debug("State flag: " . $memory_pool->get('state'));
     $memory_pool->set("complete", '1');
 }
 public function __construct(WorkflowInterface $workflow, $execution_id, $result = null)
 {
     parent::__construct($workflow, $execution_id);
     $this->result = $result;
 }