cancel
Showing results for 
Search instead for 
Did you mean: 

Initializing data nodes with constants in mapping activity?

0 Kudos

Hi experts,

In a process i have a complex data structure node with 0..n cardinality. How can i initialize it at the beginning of the process with constant values.

e.g. my structure is like:

ComplexStruct

- string 0..1 name

- string 0..1 url

and in a mapping step i want to init it with:

ComplexStruct

+[0] name="Name1"

        url = "URL1"

+[1] name="Name2"

        url = "URL2"

+[2] name="Name3"

        url = "URL3"

Can anybody help me on this? Is there any documentation on this?

Regards

Michael

View Entire Topic
former_member191643
Active Contributor
0 Kudos

Hi Michael,

There is no need for any new development or any documentation. 'The Galaxy' provides you with an easy way to do it.

These steps might just help you:

1.Open the properties of the mapping activity, double click on the data structure node values to open the function dialog box. pass your desired values in just Double Inverted Commas:

2.Click on the 'Looping' part of the properties of the mapping activity to set the parameters for the for-each loop as and when you wish to increment the value or set a new one.

These steps are just for looping purposes. But as far as your question is concerned, you just want to initialize values to your elements in data structure. That can be acheived easily by just following the 1st step mentioned above.

Hope these steps help you. Don't forget to get back on this.

-Sid