Discussion:
[jboss-user] [jBPM] - JBPM completing workitems
Raghavendra M
2013-05-13 09:42:17 UTC
Permalink
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]
Loading...