5 Replies Latest reply on Jul 29, 2013 1:51 AM by swiderski.maciej

    How to handle Exception in JBPM5.4?

    hari6025

      Hi All,

       

      Could some suggest me the exception handling mechanism followed by JBPM5.4?

       

      Thanks in advance,

      Harikumar.

        • 1. Re: How to handle Exception in JBPM5.4?
          swiderski.maciej

          Depending on what exception handling you have in mind I see following options:

          • for custom code - add exception handling into your custom work item handler implementations that way you encapsulate the actual logic within "try catch" block so in case of an error you can take appropriate action such as : abort work item, set error process variables, etc
          • extension to point 1 could be to always complete work item with error process variable that allows you to control the flow based on that variable and use gateways to move the execution to different branches, like error handling branch
          • make use of error events to throw errors that can be caught somewhere lese in the process, that is more for handling business errors rather than low level technical errors

           

          HTH

          • 2. Re: How to handle Exception in JBPM5.4?
            ashpcs

            For business Errors I believe use of error eventsis the right approach.   Other important component is usage of Compensation. Compensation can be performed by a compensation handler.

             

            As far as I undrstand,  that compensation handleris not yet supported by JBPM 5.4 . 

            • 3. Re: How to handle Exception in JBPM5.4?
              swiderski.maciej

              that is valid statement!

               

              And yes, compensation is not supported in 5.4 it will be supported in 6.0 together with advanced error handling using events. So stay tuned

              • 4. Re: How to handle Exception in JBPM5.4?
                ashpcs

                Thats a great news! Does it mean that corrosponding eclipse designer/ web designer will also have those constructs to create business process?

                 

                Will try to invest time to go into the JBPM 6 beta. 

                • 5. Re: How to handle Exception in JBPM5.4?
                  swiderski.maciej

                  yes, both editors should be capable of providing support for exception and compensation events.

                   

                  HTH

                  1 of 1 people found this helpful