cancel
Showing results for 
Search instead for 
Did you mean: 

BPM: Assign value from variable to message

Former Member
0 Kudos

I have container with data for example:

<data>

<id></id>

<name>Name</name>

</data>

How to assign <id> the value from SimpleType?

I need the following result

<data>

<id>1234</id>

<name>Name</name>

</data>

Do I need mapping step or contaner step?

Accepted Solutions (0)

Answers (3)

Answers (3)

udo_martens
Active Contributor
0 Kudos

Hi Dennis,

the problem is, that you have 2 different source messages which you want to combine to one target message. Use following trick:

define the field "id" as optional, as well the field "name". Create a multiple row container, add the id in a container step like

<data>
<id>123</id>
</data>

and add the message like

<data>
<name>Denis</name>
</data>

Finaly merge the rows to a single message.

Regards,

Udo

Former Member
0 Kudos

Hi,

Is the value of id, a constant?

If so, you could map a constant value to id.

In your mapping editor, choose "constants" from the function list and select "constant" to generate a constant value.

If this value is not a constant, could you explain the scenario in detail?

Regards,

Smitha.

Former Member
0 Kudos

No it is the container with simple type.

I get response (in BPM) assign response id to this container and I have to assign this value to another container(Abstract Interface)

Message was edited by: Denis Ivanov

former_member187339
Active Contributor
0 Kudos

Hi,

Can you give the steps which you are using in the BPM. So that it will be helpful in giving a reply.

Regards

Suraj

former_member187339
Active Contributor
0 Kudos

Hi,

Map Constant = 1234 to ID.

Does this value (1234) changes???

Regrds

Suraj