Determine the activityInstanceId of the parent task on a boundary event?

1
0
-1

If we have a non-interrupting timer on a human task, how do we get the activityInstanceId of the parent task?

The ActivityInstance's parentId returns the processInstanceId.

Our use case: we want to email the possible approvers of the task once it has been initialized as the possible approvers use a custom user filter, so we'll look at processAPI.getPossibleUsersOfPendingHumanTask(processDefInitionId,parentHumanTaskId,0,10) ;

1 answer

1
0
-1

Hello.

If you have the BoundaryEventInstance object, there is an activityInstanceId attribute on it:

https://github.com/bonitasoft/bonita-engine/blob/master/bpm/bonita-common/src/main/java/org/bonitasoft/engine/bpm/flownode/BoundaryEventInstance.java

HTH,

Baptiste.

Notifications