[jboss-user] [jBPM] - Empty history task at the start of a process !

Jaber C. Mourad do-not-reply at jboss.com
Tue Jun 22 08:44:29 EDT 2010


Jaber C. Mourad [http://community.jboss.org/people/newbeewan] created the discussion

"Empty history task at the start of a process !"

To view the discussion, visit: http://community.jboss.org/message/549100#549100

--------------------------------------------------------------
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

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/549100#549100]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100622/1cbf1cfb/attachment.html 


More information about the jboss-user mailing list