Trading Networks 10.3 | Administering and Monitoring B2B Transactions | Service Development Help | Mapping Data in Flow Services | Working with Transformers | Validating Input and Output for Transformers
 
Validating Input and Output for Transformers
As with any service you insert using an INVOKE, you can validate the inputs and outputs of the transformer service before and/or after it executes. To indicate that you want to validate a transformer’s inputs and outputs, you change the properties of the transformer. You do not have to use validation for all of the transformers you insert into a MAP step.
When Integration Server validates a transformer’s inputs and outputs at run time, Integration Server validates the transformer input and output values against the signature of invoked service. Variables in the service signature may specify content or structural constraints.
Note:
If the Validate input and/or Validate output check boxes are selected on the Input/Output tab of the service acting as a transformer, Integration Server automatically validates the input and/or output for the service every time the service executes. If you set up validation via the properties for a transformer when it is already set up for validation via the service’s Input/Output tab, Integration Server performs validation twice. This can slow down the execution of a transformer and, ultimately, the flow service.
*To specify input/output validation for a transformer
1. In the flow service editor, select the MAP step containing the transformer you want to validate.
2. In the Pipeline view, under Transformers, select the transformer for which you want to specifying input/output validation.
3. In the Properties view, do the following:
*If you want Integration Server to perform input validation, set the Validate input property to True.
*If you want Integration Server to perform output validation, set the Validate output property to True.