From 41930ba6a8e061c8c82f5b6201f2e2d239569c14 Mon Sep 17 00:00:00 2001 From: David Callizaya Date: Wed, 30 Aug 2023 20:26:19 -0400 Subject: [PATCH] Fix token to be closed on boundary event --- src/ProcessMaker/Nayra/Bpmn/ActivityTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ProcessMaker/Nayra/Bpmn/ActivityTrait.php b/src/ProcessMaker/Nayra/Bpmn/ActivityTrait.php index a2805fb5..162beee1 100755 --- a/src/ProcessMaker/Nayra/Bpmn/ActivityTrait.php +++ b/src/ProcessMaker/Nayra/Bpmn/ActivityTrait.php @@ -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();