1 Reply Latest reply on Jul 9, 2013 4:29 AM by Maciej Swiderski

    how to stop business process in case of exception

    diomede illuzzi Newbie

      I setup a business process which includes a custom workItem; I want the business process to sop when a particular condition occurs, so in this case I call the abortWorkItem method, whose implementation is very simple (ksession is an instance variable set while registering the wotkitem


      public void abortWorkItem(WorkItem workItem, WorkItemManager manager) {




      Everything works fine if I start the process from a standalone client, but when I start it from the jbpm console, I have no way to set there the ksession, so an exception is raised; so my question is: how to stop the processInstance when it was started through the console?