Skip to content

Commit 4f45166

Browse files
authored
Get EndEvent ID
1 parent e7e4165 commit 4f45166

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Models/ProcessInstance.php

+5
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,9 @@ public function ended()
6666
{
6767
return $this->get('history/process-instance/?processInstanceId=' . $this->id)[0]->state == 'COMPLETED';
6868
}
69+
70+
public function getEndEventId()
71+
{
72+
return optional(Arr::first($this->get('history/activity-instance/?processInstanceId=' . $this->id . '&activityType=noneEndEvent')))->activityId;
73+
}
6974
}

0 commit comments

Comments
 (0)