Exemple #1
0
 public function execute(TokenInterface $token)
 {
     if (!$token->getData('autoA')) {
         return false;
     }
     $token->setData('autoB', true);
     return true;
 }
Exemple #2
0
 public function consumeQueue(TokenInterface $token)
 {
     $location = $token->getLocation();
     $node = $this->nodes[$location];
     $this->addToken($token);
     $message = 'Token is consumed in ' . $location;
     $this->logger->info($message, array('token' => $token));
     $node->setWorkflow($this, $this->logger);
     return $node->consume($token);
 }