public function execute(TokenInterface $token) { if (!$token->getData('autoA')) { return false; } $token->setData('autoB', true); return true; }
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); }