Sometimes, particularly after assignments (if we did not use the validation in the assignments), it makes sense to validate the variables against their associated XML Schemas and WSDL definitions. By validation, we mean verifying whether the XML stored in a variable corresponds to the XML schema definition (for element type variables) or XML type (for type variables) or WSDL message (for message type variables). Typical scenarios for validation include the following:
To validate the input into the process, that is, to check for valid input before the process starts working on them
To validate the input to a service invocation or, even most often, the response from a service, that is, to check for XML conformance before using the variable
We can validate the variables explicitly using the <validate>
activity.
It is very simple to validate variables. We just have to list all of the variable names that we would like to validate. We separate the variable names with a space...