Hi,
Refer to attached bpmn diagram, both of the condition from the inclusivegateway evaluate true, the summary of the flow is:
usertask1
> inclusivegateway1
> usertask2
> usertask3
> inclusivegateway2
> usertask4
Inclusivegateway1 having a split process, once usertask2 and usertask3 is completed, both join back at inclusivegateway2 and proceed to usertask4.
However, when I look into table act_hi_actinst, it created the following records, sorted by start_time_:
startevent1
usertask1
inclusivegateway1
usertask2
inclusivegateway2
usertask3
inclusivegateway2
usertask4
Questions:
1. Why it created 2 records for inclusivegateway2 but in our diagram we only draw one gateway and it is to join back the split user task?
2. End_time_ was blank for both of the inclusivegateway2 records. After debugging, found that in the HistoryManager.class, method findActivityInstance, the executionId was the execution id of usertask4 but inclusivegateway2 is holding a different executionId in the db. Therefore, it was unable to return the correct activity instance to record the end time. Is this consider as a bug?
Please advise.
Thanks a lot.