-
Book Overview & Buying
-
Table Of Contents
BPEL and Java Cookbook
By :
We can identify the logical conditions with a Boolean value. You will learn how to use Boolean values in the variables in this recipe.
This recipe continues the discussion of the BPEL process Manipulate1_1 from the Using mathematical calculations in the variables recipe.
In the Manipulate1_1 BPEL process, we define the Boolean variable as follows:
<variable name = "expensive_item" type = "xsd:boolean"/>
With this variable, we will check if the item is expensive or not.
The following steps explain how to assign and change a Boolean value of a variable:
Open the Manipulate1_1 BPEL process.
Add the assign activity and name it Boolean.
We first initialize the variable to the false value as follows:
<copy> <from expression = "false()"/> <to variable = "expensive_item"/> </copy>
We check if the item is expensive, by comparing the item price against the fixed amount criteria as follows:
<copy> <...
Change the font size
Change margin width
Change background colour