/**
  * Register the plugin on the workflow environment
  *
  * @param Environment $workflowEnv
  * @return void
  */
 public function registerOn(Environment $workflowEnv)
 {
     $workflowEnv->getWorkflowProcessor()->events()->attachListener('process_was_started_by_message', [$this, 'onProcessWasStartedByMessage']);
     $workflowEnv->getWorkflowProcessor()->events()->attachListener('process_did_finish', [$this, 'onProcessDidFinish']);
     $workflowEnv->getEventStore()->getActionEventDispatcher()->attachListener('commit.post', [$this, 'onEventStorePostCommit']);
 }
 /**
  * Register the plugin on the workflow environment
  *
  * @param Environment $workflowEnv
  * @return void
  */
 public function registerOn(Environment $workflowEnv)
 {
     $workflowEnv->getWorkflowProcessor()->events()->attachListener("process_was_started_by_message", [$this, "onProcessWasStartedByMessage"]);
 }