cancel
Showing results for 
Search instead for 
Did you mean: 

Request on history doesn't follow logic flow order but Xml sequence order

cnirparis
Champ in-the-making
Champ in-the-making
I've noticed something strange.
When you modify your BPMN XML using the Activiti Model Editor (in Eclipse), for example if you insert an user task before the rest of the existing flow, the XML tag of new entity is added at the end of the XML.
It's not a problem because the targetRef and sourceRef of sequenceFlows let the engine find the correct flow order.

But some API apparently don't.
For example, this piece of code works but gives list of unfinished tasks not in logic flow order, but in order in which they appear in the BPMN XML :

      List<HistoricActivityInstance>  tList =
                MyHistoryService.createHistoricActivityInstanceQuery()
                .processDefinitionId(MyProcessInstance.getProcessDefinitionId())
                .unfinished()
                .list();


I've fixed modifiying by hand my XML and make the sequential order of XML tags matching the flow logic order.
Is that normal, or have I made a mistake somewhere ?
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
No, that list has nothing to do with the model. It gives you the activities in order of which they are entered.

Do you have a simple unit test that demonstrates what you are seeing?
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.