To declare the BookshelfEvent
business event, we will go to the composite view. We will proceed as follows:
http://packtpub.com/events/edl/BookEDL
, as shown in the following screenshot:BookshelfEvent
business event. After clicking on the green plus sign, the Create Event dialog box will open. We need to specify the event name, which is BookshelfEvent
. We also have to specify the XML Type, which will be used for the event data payload. We will use the BookData
from the Book Warehousing BPEL process schema, as shown in the following screenshot:We have successfully declared the BookshelfEvent
business event. This has generated the BookEDL.edl
file with the source code as shown in the following screenshot:
After declaring the business event, we are ready to develop the event-driven book shelving BPEL process. The process will be triggered by our BookshelfEvent
business event. This means that the process will not have a classic WSDL with the operation declaration. Rather it will be triggered by the BookshelfEvent
business event.