3 Replies Latest reply on Feb 9, 2011 11:00 AM by odelyaholiday

    Jbpm5 error event

    npereira

      Hi forum,

       

      I was interested in knowing how does the Error Event works and how can we link them to other tasks?

       

      Is there any documentation, tutorials on this?

       

      Regards

        • 1. Re: Jbpm5 error event
          odelyaholiday

          look here http://community.jboss.org/thread/161306

           

          Another solution is to embed it in embedded sub process.

           

          inside you have parameters: error handle.

           

          click on it and add one call it MyError

           

          choose java code and you can write there handling the error. for example:

           

          ((org.drools.workflow.instance.NodeInstance) kcontext.getNodeInstance()).cancel();

          kcontext.getProcessInstance().signalEvent("YourEvent", null);

           

          inside the embedded sub process you can create error event and call it MyError

           

          Hope this helps

          • 2. Jbpm5 error event
            npereira

            Hi,

             

            Thanks Odelya, but that post was started by me.

            And in that one we discussed how to handle java errors and how to create new workitems.

             

            This time, I am focussing specifically on the "Error Event" item.

            This item has in its properties "Fault Name", "FaultVariable" but I can't really undestand how I can link it to a Human Taks, for example....

             

            In BPMN you can link error events to a Task, like in this link: http://en.bpmn-community.org/process/show/909/

             

            My question is how am I abel to do the same in jBPM5?

             

            thanks

            • 3. Re: Jbpm5 error event
              odelyaholiday

              When you stand on the BPMN file you have there Exception Handlers.

               

              you can do what I described in the first step.