On using Validate Activity for a BPEL variable, if the values are failed against corresponding XSD it always raises InvalidVariable Runtime Exception, but the actual message is shown on the Audit Trail on Enterprise Manager.
To get the Detail message about the fault which element value or rule is failed against the XSD please follow the below steps.
To get the Detail message about the fault which element value or rule is failed against the XSD please follow the below steps.
- Create Mediator whose source type is the message is the corresponding validator XSD type.
- Pass the variable which you want to validate as input to the mediator.
- Check the Validate XSD option on the mediator routing rule.
- It will validate the input message against the xsd and raises RemoteFault.
- After that we need to capture the RemoteFault with Catch block.
- Create a Fault variable in the Catch block. It will include Runtime.wsdl automatically into the project.
- Change the Variable type as Rutime.wsdl message type as {http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage.
- Now on executing the BPEL process if any Validation fail the Fault variable part Detail has the actual message.
No comments:
Post a Comment