We are using Activiti 5.13 and Workflow is defined with a main process and sub-processes. We want to retrieve all completed user tasks along with main process instance id( sub-process instance ids are already included), is there any way to get these results?
When you specify an activiti:initiator attribute on the start event then this will be used to store the username of the person who started the process in the defined process variable. You also have to make sure that Authentication.setAuthenticatedUserId is invoked before starting the process instance as well for the username to be known.