-
Book Overview & Buying
-
Table Of Contents
WS-BPEL 2.0 Beginner's Guide
By :
In the previous chapter, we introduced three bookstores into our composite BPEL application, BookstoreA, BookstoreB, and 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 BookstoreAResponse, BookstoreBResponse, and AnotherBookstoreResponse variables. To access the BookstoreAResponse quantity, we should use the following XPath expression:
$BookstoreAResponse.payload/ns1:StockQuantity
Similarly, we would access the BookstoreB and AnotherBookstore stock quantities.
To select the lowest quantity, we should do the following comparisons:
Compare the BookstoreA stock quantity to BookstoreB and AnotherBookstore. If the BookstoreA stock quantity is lower or equal in both cases, select BookstoreA.
Compare the BookstoreB stock quantity to BookstoreA and AnotherBookstore. If the BookstoreB stock...
Change the font size
Change margin width
Change background colour