on 03-10-2009 1:23 PM
Hello! I have an abstract interface "si_AA_mdm_file" using message type "MDMBusinessPartner". In this message type I have an element "ExternalPartnerNumber":
<?xml version="1.0" encoding="UTF-8"?>
<MDMBusinessPartner remoteSystem="" schemeVersionID="">
<Record>
<ExternalPartnerNumber>222</ExternalPartnerNumber>
...
</Record>
</MDMBusinessPartner>
If the message has this element, I need to use one SwitchBranch, if not - other Switch Branch.
How can I do this?
Hi,
Assuming that you are woking on PI7.1
Proceed as follows:
1) Create a condition variable (say cond_var1)with type string (same as of ExternalPartnerNumber) in the condition editor of Switch.
2) To this Condition variable assign the ExternalPartnerNumber (same as you apply to a container variable)
2) Now in the section where you specify the condition go like:
EX cond_var1
and you are done with specifying the condition
This will execute the first switch branch...if not satisfied then the Otherwise branch will be executed....if adding other branches then you ca proceed in the same manner to check exixtence of an element.
Regards,
Abhishek.
Edited by: abhishek salvi on Mar 10, 2009 7:30 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.