Time for action – specifying alarm event handler activities
Let's now add the activities that will execute within the alarm event handler. As we have already said, we will notify the client that an event handler has been invoked on the BPEL process.
To achieve this, we will perform the following steps:
- Open the
BookWarehousingBPEL.bpel
process. - Before we can add the
<invoke>
activity, we will prepare the variable for the response message. To achieve this, we add the<assign>
activity into the event handler body (using drag-and-drop). - Rename the
<assign>
activity as AssignAlarmEventCallback, as shown in the following screenshot: - By double-clicking on the
<assign>
activity, we will copy the literal string Alarm Event – 15 Minutes Timeout intooutputVariable
. As some web services can take longer than expected to return a response, it is important that a BPEL process is able to take time out and continue with the rest of the flow after a period of time...