Validating the variables with the <assign> activity
This recipe will examine the validation of the variables through the assign activity in a BPEL process. At first glance, there may be no obvious relation to the transformation; however, providing the qualitative data for the transformation is crucial, otherwise the results of the transformation might be surprising.
Getting ready
We will extend the example from the Defining the variable recipe with the validation functionality of the BPEL assign activity.. We will modify the example so that it will fail during validation.
In the AssignWSinput
activity, we set the wrong XML fragment as follows:
<assign name = "AssignWSinput" xml:id = "id_15" validate = "yes"> <copy xml:id="id_52"> <from xml:id = "id_53"><literal xml:id = "id_54"><getAvailableCar xml:id = "id_62"> <from xml:id = "id_63">2001-10-26T21:32:52</from> <to xml:id = "id_64">2010-05-05T20:00:00</to> </getAvailableCar...