Hi,
I'm testing jbpm 4.4.
I have created a very simple process :
<process key="2task" name="2taskProcess" version="1" xmlns="http://jbpm.org/jpdl/4.4">
<description>
Process qui se termine quand il démarre pour générer des historiques
</description>
<start g="0,0,80,40" name="init">
<transition to="task1" g="-93,-24"/>
</start>
<task name="task1">
<transition name="to task2" to="task2"/>
</task>
<task name="task2">
<transition name="to theEnd" to="theEnd"/>
</task>
<end g="258,238,80,40" name="theEnd"/>
</process>
When I start it by executionService.startProcessInstanceByKey("2task");
And then execute an historyTaskQuery, I find a task with some empty fields !
A unit test method :
ProcessInstance processInstance = executionService.startProcessInstanceByKey("2task");
List<HistoryTask> historyTasks = historyService.createHistoryTaskQuery().executionId(processInstance.getId()).list();
assertNotNull(historyTasks);
for(HistoryTask historyTask: historyTasks){
logger.info("historyTask : ", historyTask.getId());
logger.info("historyTask : ", historyTask.getState());
}
assertTrue(historyTasks.isEmpty());
Is it normal ? If yes, what is the role of that pseudo-task ?
Regards