Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 285407c commit 34ea6c5Copy full SHA for 34ea6c5
2 files changed
lib/Vespolina/Workflow/Task/Queue.php
@@ -38,6 +38,8 @@ public function accept(TokenInterface $token)
38
39
public function consume(TokenInterface $token)
40
{
41
+ $this->tokens[] = $token;
42
+
43
$success = true;
44
try {
45
$success = $success && $this->execute($token);
lib/Vespolina/Workflow/Workflow.php
@@ -186,6 +186,7 @@ public function consumeQueue(TokenInterface $token)
186
187
$location = $token->getLocation();
188
$node = $this->nodes[$location];
189
+ $this->addToken($token);
190
191
$message = 'Token is consumed in ' . $location;
192
$this->logger->info($message, array('token' => $token));
0 commit comments