Skip to content

Commit

Permalink
Merge pull request #223 from ProcessMaker/bugfix/FOUR-10219
Browse files Browse the repository at this point in the history
Fix token to be closed on boundary event
  • Loading branch information
ryancooley authored Aug 31, 2023
2 parents e83d670 + 41930ba commit 31a8661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ProcessMaker/Nayra/Bpmn/ActivityTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function buildTransitions(RepositoryInterface $factory)

$this->activityInterruptedTransition = new ActivityInterruptedTransition($this, true);
$this->activityInterruptedTransition->attachEvent(
TransitionInterface::EVENT_AFTER_TRANSIT,
TransitionInterface::EVENT_BEFORE_TRANSIT,
function ($transition, $consumedTokens) {
foreach ($consumedTokens as $token) {
$previousState = $token->getOwner()->getName();
Expand Down

0 comments on commit 31a8661

Please sign in to comment.