Skip to content

Commit

Permalink
Improve condition
Browse files Browse the repository at this point in the history
  • Loading branch information
caleeli committed Apr 27, 2021
1 parent 8efb197 commit bab58fe
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/ProcessMaker/Nayra/Bpmn/EmptyDataInputTransition.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ class EmptyDataInputTransition implements TransitionInterface
public function assertCondition(TokenInterface $token = null, ExecutionInstanceInterface $executionInstance = null)
{
$loop = $this->getOwner()->getLoopCharacteristics();
if ($loop && $loop->isExecutable()) {
return $loop->isLoopCompleted($executionInstance, $token);
}
return false;
$isLoopCompleted = $loop && $loop->isExecutable() && $loop->isLoopCompleted($executionInstance, $token);
return $isLoopCompleted;
}

/**
Expand Down

0 comments on commit bab58fe

Please sign in to comment.