Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 34ea6c5

Browse files
author
Richard Shank
committed
fix queue token not being passed to workflow and node
1 parent 285407c commit 34ea6c5

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

lib/Vespolina/Workflow/Task/Queue.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ public function accept(TokenInterface $token)
3838

3939
public function consume(TokenInterface $token)
4040
{
41+
$this->tokens[] = $token;
42+
4143
$success = true;
4244
try {
4345
$success = $success && $this->execute($token);

lib/Vespolina/Workflow/Workflow.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ public function consumeQueue(TokenInterface $token)
186186
{
187187
$location = $token->getLocation();
188188
$node = $this->nodes[$location];
189+
$this->addToken($token);
189190

190191
$message = 'Token is consumed in ' . $location;
191192
$this->logger->info($message, array('token' => $token));

0 commit comments

Comments
 (0)