Query all process instance history include multipe sub process

cancel
Showing results for 
Search instead for 
Did you mean: 
Member II

Query all process instance history include multipe sub process

Hi all.

I'm using activiti 1.5.22.

I have created some processes, and each process can call to another as calledActiviti.

Example

                 ----- Process A (task A1, task A2)

                        ----- Process B (task B1, task B2)

                              ------ Process C (task C1, task C2).

Now, in task C1, I want show all process history from start to end by order ( A1, A2, B1, B2, C1)

How can I do it ?

Many thanks   

1 Reply
Alfresco Employee

Re: Query all process instance history include multipe sub process

Have you tried just creating a historic process instance or task query ordered by time? See for example Activiti/FullHistoryTest.java at 6.x · Activiti/Activiti · GitHub  Note that you might have to increase the history level, depending upon what you're looking for Activiti User Guide. I'm guessing you just want to list out all the steps that the process instance went through and not to show it diagrammatically. (Showing this diagrammatically with the subprocesses in the same diagram is rather involved but is available as a feature in the Alfresco Process Services enterprise product.)