Let us now implement the condition regarding the publishing year. Each book, published before 1970, should be automatically delivered to VintageBookstore
. To achieve this, we will perform the following steps:
Add a new
<if>
activity to theBookWarehousingBPEL
process:We will write the condition using the
year-from-dateTime()
XPath function, which returns the publishing year:If the publishing year is lower than 1970, we should prepare the request and invoke the
VintageBookstoreBPEL
process. Otherwise, we should execute the activities previously defined within the BPEL process.