Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

8. Exception Management > Faulting the process

Faulting the process

Faulting the process Deploy the process, following the deployment methods in Chapter 3, Process Deployment and Testing. Now that you have implemented exception handling for the business and system exception points, it's time to test whether they are working. When process token reaches the task ValidateStock, which calls StockValidator_EBS, StockValidator_EBS will raise a SOPFault business exception, if stock is not available.When process token reaches the ValidateStock service task and invokes the StockValidator_EBS service, if the service throws binding/remote fault, it gets propagated as no boundary catch events are defined. For this component, Fault Policies are defined, and hence the Fault Policy framework will handle the exception. You have defined in fault-policy.xml that, on infusion of binding or remote fault, you will just terminate the process. Thus, on error, this process will get terminated.When the Business Analyst rejects the quote, the process token will reach Error End Event and throw BusinessReviewRejectionFault. BPMN Service Engine interrupts the process and throws the exception to the parent process. The parent process has the event subprocess CatchBusinessFault defined, which can catch BusinessReviewRejectionFault, and hence the subprocess CatchBusinessFault will handle the exception.The process token reaches the Finalize Contract Human Task, and the task is assigned to Contracts user to finalize it. A timer checks if the task is not completed in one hour, and if so, the Catch Timer event will execute and the process token will follow via the sequence path defined for Timer Catch event and will reach the CatchSLA subprocess. This subprocess will save the quote with the SLAVoilated request status.

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint