How to list all deployed versions in activiti explorer

I created a model in activiti modeling and deployed it. Since there are some changes, I edited the model and redeployed it. Each time she created a different process definition id.so far, I have a list of process id definitions to the same model as below:

(testprocess:1:657516,testprocess:2:657520,testprocess:3:657524,testprocess:4:657528) 

In the activiti explorer on the tab "Defined process definitions", I can only see the last deployed process (that is, a process with the identifier of the process definition as a test process: 4: 657528)

Is there a way to see the whole list of processes on this tab (Deployed Process definitions)?

+5
source share
1 answer

It is not possible to get them in the explorer interface, but they provided an API for HistoricProcessInstance process definition requests. You can use this and request the desired results. try -

 List<HistoricProcessInstance> listOfOldDefinition = execution.getEngineServices().getHistoryService().createHistoricProcessInstanceQuery().processDefinitionKey("some-key").list(); for(HistoricProcessInstance historicProcessInstance : listOfOldDefinition){ System.out.println(historicProcessInstance.getName()); } 
0
source

All Articles