This post shows how to use Try Catch node along with Throw node.
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.
Note : "The Form Error Details" compute node should have following property:
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>
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>
Thank you Bro
ReplyDeleteIf 0 then am not getting any output. Can you pls suggest ?
ReplyDeletethanks bro
ReplyDeleteHollanda yurtdışı kargo
ReplyDeleteİrlanda yurtdışı kargo
İspanya yurtdışı kargo
İtalya yurtdışı kargo
Letonya yurtdışı kargo
TBOLU1
Litvanya yurtdışı kargo
ReplyDeleteLüksemburg yurtdışı kargo
Macaristan yurtdışı kargo
Malta yurtdışı kargo
Polonya yurtdışı kargo
H54
Yunanistan yurtdışı kargo
ReplyDeleteAfganistan yurtdışı kargo
Amerika Birleşik Devletleri yurtdışı kargo
Amerika Samoası yurtdışı kargo
Angola yurtdışı kargo
WFQ
رقم مصلحة المجاري بالاحساء PtTWzJwBKx
ReplyDeleteرقم مصلحة المجاري بالاحساء yANK8cXS9A
ReplyDelete