Skip to content

Commit 50b73ae

Browse files
committed
Fix method name to get the instance ID
1 parent 1989ff1 commit 50b73ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ProcessMaker/Nayra/Bpmn/Models/EventDefinitionBus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function registerCatchEvent(CatchEventInterface $catchEvent, EventDefinit
6565
$instances = $this->getInstancesFor($catchEvent);
6666
foreach ($instances as $instance) {
6767
$targetInstance = $sourceEventDefinition->getProperty('target_instance_id');
68-
if ($targetInstance && $instance->getKey() !== $targetInstance) {
68+
if ($targetInstance && $instance->getId() !== $targetInstance) {
6969
continue;
7070
}
7171
$callable($eventDefinition, $instance, $token);

0 commit comments

Comments
 (0)