cancel
Showing results for 
Search instead for 
Did you mean: 

Using element of message in condition editor in BPM

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

former_member200962
Active Contributor
0 Kudos

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

Former Member
0 Kudos

And how can I assign the ExternalPartnerNumber to this condition?

former_member200962
Active Contributor
0 Kudos

hi,

When you open the Condition Editor of the Switch you :

1) Define a Condition Variable

2) Select the Type of that element

3) then in the next column you can select the erquired element in the message

Regards,

Abhishek

former_member200962
Active Contributor
0 Kudos

<<Sorry content got posted twice>>

Edited by: abhishek salvi on Mar 10, 2009 7:35 PM

Former Member
0 Kudos

Thank you very much!

Answers (0)