Hi, we are migrating activiti 5.21 to camunda 7.6 (https://blog.camunda.org/post/2016/10/migrate-from-activiti-to-camunda).
We need to recover all completed activities and their transitions from history:
{
“historyElements”: [“SequenceFlow_0qo3sjt”, “SequenceFlow_16igpil”, “StartEvent_0sllthn”, “Task_0v0c3yl”, “BoundaryEvent_11ens6w”, “Task_03kcf68”]
}
In the documentation, we found how we can get all completed activities.
List history = historyService.createHistoricActivityInstanceQuery().processInstanceId(processInstanceId).list();
List activityIds = history.parallelStream().map(HistoricActivityInstance::getActivityId) .collect(Collectors.toList());
For the transitions between activities in Activiti, we get it manually using something like this class (https://github.com/Activiti/Activiti/blob/master/modules/activiti-diagram-rest/src/main/java/org/activiti/rest/diagram/services/ProcessInstanceHighlightsResource.java) - getHighlightedFlows(…).
There is something in camunda-api for recovery transitions of completed activities?