0 Replies Latest reply on May 13, 2013 5:42 AM by Raghavendra M

    JBPM completing workitems

    Raghavendra M Newbie

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