Hi,
I have a tasklistener that executes within two tasks of a called sub-process. This tasklistener retrieves the parent process id. In the first task, which happens to be the first task of the process, the returned parent process id is null. However, the returned parent process id from the second task with the tasklistener is correct.
Is the null return from the first task something to do with the first task of the called sub-process being in the same transaction as the parent process?
Thanks
Can you share you process definition(s) showing the tasks?
Hi, I've created a couple of simple process definitions plus listener to test this. See attached.
The behaviour I'm now seeing with a JUnit test is that in both cases (Task 1 and 2) the task listener returns null for the parent process id.
Can you structure the files in a maven project that I can test?
Bassam, Thanks for looking into this. See attached.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.