[jboss-user] [jBPM] - JBPM completing workitems

Raghavendra M do-not-reply at jboss.com
Mon May 13 05:42:17 EDT 2013


Raghavendra M [https://community.jboss.org/people/ragramaiah] created the discussion

"JBPM completing workitems"

To view the discussion, visit: https://community.jboss.org/message/817348#817348

--------------------------------------------------------------
Hi,
          I have a scenario where I need to resume my workflow after exception is handled.
               Scenario: I have a two service tasks in my workflow, an exception is raised in second service task, now transaction goes to wait state and second workitem is persisted in WORKITEMINFO table.Now instead of completing workitem, like
                    ksession.getWorkItemManager().completeWorkItem(workitemid, null), how can I resume or complete this wait state process *which should execute handler code* shown below,
                              public void executeWorkItem(WorkItem workItem, WorkItemManager manager) {
                                   // some business logic here...
                                   }
          NOTE: I'm assuming this is right way to handle exception with asynchrosous processes. Please correct me if I'm wrong.
          Above requirement is needed when i solve business error and resume the same step where it stopped(need to execute now the business logic while resuming).
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://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/20130513/2e0165cd/attachment.html 


More information about the jboss-user mailing list