apache / incubator-kie-issues

Apache License 2.0
12 stars 1 forks source link

Data-Index: `UserTask` data not updated if the task is started within a `AdhocSubProcess` #1318

Open pefernan opened 3 months ago

pefernan commented 3 months ago

This Issue has been found after testing AdhocSubProcesses https://github.com/apache/incubator-kie-issues/issues/1286 with the consoles.

If we start a process instance with an AdhocSubProcess that contains some UserTasks, we can successfully start them and view them in the consoles, but if we try to complete them using the Task Form in Task Inbox, the tasks never appear as Complete. Apparently Data Index isn't getting any Task related event, keeping the data outated.

It seems that the HumanTaskWorkItemDecoratorImpl cannot obtain the KogitoProcessEventSupport because the KieRuntime inside the Node's ProcessInstance is null, so it cannot fire any event.