Using TryCatch Nodes in WMB
Also I am providing few details of ExceptionList tree, this tree has correlation name as ExceptionList; It it initially empty & is only populated if an exception occurs during message flow processing.
We can access the ExceptionList tree in Compute, Database, and Filter nodes, and we can update it in a Compute node. We must use the appropriate correlation name; ExceptionList for a Database or Filter node, and InputExceptionList for a Compute node.
Below example shows the usage of Try Catch & Throw nodes & also how to manipulate the ExceptionList in compute node using the InputExceptionList correlation name.
Message Flow elaborating Try Catch & ExceptionList processing |
Basic Tab -> Compute mode -> Exception and Message.
If input for IN (MQInput) Node is :
<Request><No>0</No></Request>
Output in Catch (MQOutput) Node is :
<ErrorDetails>
<Text>Throwing exception from throw node.</Text>
<Number>1001</Number>
<FlowName.NodeName>Sample.Throw</FlowName.NodeName>
</ErrorDetails>
If input for IN (MQInput) Node is :
<Request><No>10</No></Request>
Output in Catch (MQOutput) Node is :
<ErrorDetails>
<Number>500</Number>
<FlowName.NodeName>Sample.Validation</FlowName.NodeName>
<Text>Request.No is Invalid</Text>
</ErrorDetails>
No comments:
Post a Comment