Time for action – specifying message event activities

To throw the fault and to exit the process, we will perform the following steps:

  1. Open the BookWarehousingBPEL process. We will drag-and-drop the <throw> activity to the message event handler scope.
  2. Name the <throw> activity ThrowCancelInstance.
  3. Double-click on the ThrowCancelInstance activity and then specify the Fault QName. The Namespace URI is the same as for the BPEL process itself: http://packtpub.com/Bookstore/BookwarehousingBPEL. The Local Part name should be CancelInstance. We will not specify the Fault Variable as the BPEL faults do not require a variable:
    Time for action – specifying message event activities
  4. Next, drag-and-drop the <exit> ...

Get WS-BPEL 2.0 Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.