Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
caleeli committed Apr 27, 2021
1 parent aa2cfd2 commit 1db0f18
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,7 @@ public function iterateNextState(StateInterface $nextState, ExecutionInstanceInt
$loopCounter = $this->getLoopInstanceProperty($token, 'loopCounter', 0);
// Token loopCounter
$tokenLoopCounter = $token->getProperty('data', [])['loopCounter'] ?? 0;
if ($loopCounter!==$tokenLoopCounter) {
continue;
}
if ($loopCounter < $numberOfInstances) {
if ($loopCounter === $tokenLoopCounter && $loopCounter < $numberOfInstances) {
$loopCounter++;
$numberOfActiveInstances = 1;
$this->createInstance(
Expand Down

0 comments on commit 1db0f18

Please sign in to comment.