Sometimes in loops, but also on other occasions, we may want to program delays into BPEL processes. To do this we can specify durations or deadlines. Typically, we could specify delays to invoke an operation at a specific time, or wait for some time and then invoke an operation. For example, we could choose to wait a few seconds before invoking the BookWarehousing
process, or before we pool the results of a previously initiated operation, or to wait between other iterations of a loop.
The simplest way to specify the delays is to use the <wait>
activity. The <wait>
activity can be: