[jboss-user] [jBPM Development] - JBPM-2835 HistroyDetail not saved in database.

HuiSheng Xu do-not-reply at jboss.com
Wed May 12 02:41:47 EDT 2010

HuiSheng Xu [http://community.jboss.org/people/rebody] created the discussion

"JBPM-2835 HistroyDetail not saved in database."

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

Hi guys,
  I create a patch and testcase as Arul said.

 https://jira.jboss.org/jira/browse/JBPM-2835 https://jira.jboss.org/jira/browse/JBPM-2835

But the behaviour of HistoryTaskDetail is totally weird.  For example, if we use taskService.assignTask() or takeTask(), it won't add any HistoryTaskDetail into database, because AssignTaskCmd didn't notify TaskUpdated event.  So the assignee changed details won't be saved.  If we want to save the detail information, we have to getTask() first, and modify task information, then invoke taskService.saveTask() to save the task into database and notify TaskUpdated event.  But the setAssignee() of TaskImpl must be used in the Environment, otherwise it will throw a None Session in Context Exception. Unfortunately, there is no existing Command for doing this, so we have to create a customized command by ourselves.

So I afraid this part should be rewritten in the future.


Reply to this message by going to Community

Start a new discussion in jBPM Development at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100512/ae0f6df4/attachment-0001.html 

More information about the jboss-user mailing list