cancel
Showing results for 
Search instead for 
Did you mean: 

how to check condition if an xml element exist in BPM

Former Member
0 Kudos

Hi,

i have to call two different transformations in my BPM depending if a certain xml element exist in my message.

What is the best way to do this?

thanks,

Peter Ha

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

you can use branch step to do this

and the condition editor of this step:

<b>EX</b> - means exists

Regards,

michal

Message was edited by: Michal Krawczyk

Message was edited by: Michal Krawczyk

Former Member
0 Kudos

Hi Michal,

i try the following but it doesn't work.

(WON_Material.Count(/p1:PMeta/p1:s_PROGRAMMES_EXCHANGE/p1:PROGRAMME_EXCHANGE_DETAIL/p1:MATERIAL_RELATIONSHIPS_DETAILS) = 1)

Peter Ha

MichalKrawczyk
Active Contributor
0 Kudos

if the branch step doesn't work

then do a dummy mapping

form your message to a dummy message

and include your condition over there

(inside this dummy mapping)

then just use the branch step on one value from your dummy target message

Regards,

michal

Former Member
0 Kudos

Michal,

i test your suggestion with EX, i got this error:

'ELEMENT_NAME' is not a component of data object 'PAYLOAD'

when i activate the BPM.

Peter Ha

Former Member
0 Kudos

Hi Peter,

This is a known issue with the BPM since SP14...

Pls check the OSS note 890760 for resolution.

Thanks,

Renjith

Former Member
0 Kudos

Hi Rentjith,

this solve our problem.

thanks.

Peter Ha

Answers (0)