In the previous chapter, we introduced three bookstores into our composite BPEL application,
AnotherBookstore. Let's now modify the conditions in the
<if> activity, where we select the bookstore with the lowest book quantity. We have to compare three book quantities of stores in the
AnotherBookstoreResponse variables. To access the
BookstoreAResponse quantity, we should use the following XPath expression:
Similarly, we would access the
AnotherBookstore stock quantities.
To select the lowest quantity, we should do the following comparisons: