SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 159 | Next

Frank Jennings, David Salter

"Building SOA-Based Composite Applications Using NetBeans IDE 6"

The BPEL process
designer allows you to achieve this by using the Assign activity.
In this figure, we can see that we are using the BPEL designer's Assign activity to
set the fault message that is going to be returned to the calling application. In this
example, we are using the Concat construct to concatenate several strings together.
The resultant string is then assigned to the faultMessage. In this example, the
faultMessage is being assigned the value. The input??”inputRequest, is invalid and
has caused an error where inputRequest is the value of the message received by the
BPEL process.
??? ??? ???
Chapter 9
[ 187 ]
Having decided that a fault needs to be thrown and assigned a fault message, we can
drag the Throw activity from the palette into the BPEL designer to specify that the
fault should be thrown at a specific point in the process.
Throw Activity
To design the fault being thrown, we need to specify some details about the fault as
shown in the following figure:
To complete the definition of the Throw activity, we need to specify three properties:
Name
Fault Name
Fault Variable
The Name property is used purely to help us identify the throw activity within the
BPEL process designer. This is used as an internal name to help us keep track of the
different Throw activities that we may have within a process.


Pages:
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171