cancel
Showing results for 
Search instead for 
Did you mean: 

Problem assigning value to container element in BPM

Former Member
0 Kudos

Hi All,

I have a scenario in which I am assigning a value from payload to a container element and then using this value to switch between 2 branches in ccBPM. But when I run the BPM, I find that though the payload carries the right value, its not getting assigned to the container element.

What can be the reasons for this? I need to solve this urgently.

Thanks,

Rashmi.

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

do a F7 on your BPM in IR/ESR. Do you get any messages?

Former Member
0 Kudos

Hi Shabarish,

I can see only warnings and Info messages. No errors. Should I look for anything in particular.

Thanks

former_member200962
Active Contributor
0 Kudos
I can see only warnings and Info messages.

Even warnings can impact working....what are the messages?

Former Member
0 Kudos

Abhishek, Can u tell me how to put the expression in Switch using direct payload values?

I have tried but just to make sure.

Thanks,

Rashmi

Former Member
0 Kudos

Rashmi,

Can u tell me how to put the expression in Switch using direct payload values?

Try this -

Switch -> Condition -> create a Condition Variables (say PayLoadVar) with category strings -> Bindings value -> container element - //*[local-name()='FIELDNAME']. On the Condition Editor -> Condition, also mention "EX PayLoadVar".

This will extract the value from the payload for the field that you want. Hope this helps.

Regards,

Neetesh

former_member200962
Active Contributor
0 Kudos

If you are working on SAP PI7.1, then refer to my replies in the below threads:

Regards,

Abhishek.

Answers (1)

Answers (1)

former_member200962
Active Contributor
0 Kudos
I have a scenario in which I am assigning a value from payload to a container element and then using this value to switch 
between 2 branches in ccBPM.

If you are using a SWITCH, cant the value be directly used from the payload?

Define the contanier as string and then get the value from the payload (assign the payload-field to this container).....we dont do any other configurations here.

Former Member
0 Kudos

Hi Abhishek,

I tried both of your alternatives. I tired to use the switch directly with the payload value.

My container is already defined as string and I am passing a string value to it.

No success. Thanks a lot for your alternatives.

Thanks,

Rashmi.