To add an alarm event to our <pick>
activity, we will do the following:
<onAlarm>
branch to the <pick>
activity. We will achieve this by clicking on the Add OnAlarm icon next to the <pick>
activity icon. We should see the following:1
day:We have added the <onAlarm>
branch of the <pick>
activity for the timeout, which we have set to 1
day. This way we have limited the time our process waits for the book warehousing success confirmation callback. The following BPEL code has been generated:
With this, we have concluded our discussion of the <pick>
activity. We now understand how to handle events with asynchronous callbacks in BPEL processes.
It's your turn now. You should deploy and test the example. To deploy the example, proceed the same way as in the previous example. Then, invoke the BPEL process instance and wait for the message or alarm event to occur.
Q1. What type of events can a BPEL process react on?
Q2. Alarm events can be:
Q3. An event handler can be added to:
Q4. A business event is declared by:
Q5. What does the PT4H10M
expression mean?
Q6. A <pick>
activity can have:
<onMessage>
activities and no <onAlarm>
activities<onMessage>
activity and no <onAlarm>
activities<onMessage>
activities and multiple <onAlarm>
activities<onAlarm>
activities and no <onMessage>
activities