To wait for the onFault
and onEvent
callbacks, we will do the following:
<onMessage>
branches to the <pick>
activity. We will achieve this by clicking on the Add OnMessage icon next to the <pick>
activity icon. To add two branches, we should click on it twice. We should see the following:<onMessage>
branch. The first branch will react on the onFault message. We will specify the following parameters:We have added the <onMessage>
branches of the <pick>
activity for the OnFault
and OnEvent
callbacks from the WarehousingConfirmationBPEL
service. The following BPEL code has been generated:
To finalize our example, we will add an alarm event to our <pick>
activity for the callback from the WarehousingConfirmationBPEL
service. We will use a duration expression and limit the time for confirmation to 1 day. Similar to the event handlers earlier in this chapter, we will use an <onAlarm>
branch.