- given:
- I have a case diagram with to process tasks (see attached file hostBasedDelegation.cmmn)
- the triggered with an entry point
- The first process task calls a process with a user task
- the second process task calls a process that is automatically completed
- I start the case
- I complete the user task
- when:
- I query for the historic case activity instance of the second process task
- then:
- I can't retrieve the called process instance id
- expected:
- I can retrieve the called process instance id
Hint:
- You can find all diagrams to reproduce this error attached or have a look at the repository, where you can directly run the test from:
https://github.com/JoHeinem/camunda-engine-unittest/blob/SUPPORT-4148/src/test/java/org/camunda/bpm/unittest/SimpleTestCase.java - The column CALL_PROC_INST_ID_ is updated, when the event type is equal to update, see [1]. A solution could be instead of checking the event type, check for example if the field calledProcessInstanceId is not null, then update the column CALL_PROC_INST_ID_.