Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Populating LIST variable dynamically in workbench

Abhinav_Sharma
Level 4
Level 4

Hi,

I need to populate a LIST var in process. Currently I am doing it with SET VALUE opr. But it is just like hardcoding. I want to populate list from a input XML file OR some database. Using some loop mechanism I need to append items in list. Currently I didn't get any way to how do this. Please help.

Thanks

-

Abhinav

3 Replies
_Nith_
Level 10
Level 10

I have created a custom DSC for you..

You can download it from here

The input can be any valid XML which can look something similar to:

<any_root>

     <anyTag>Some content to be populated on List Item<anyTag>

     <anyTag>Few more content<anyTag>

      <another_tag> the final text<another_tag>

</any_root>

The output of the DSC will be a java.util.List object.

I hope that help you!

Nith

Abhinav_Sharma
Level 4
Level 4

Thanks a lot Nith.

But I was unable to download the DSC. It shows error : Sorry, the page (or document) you have requested is not available.

Can you please upload it again.

Thanks.

-

Abhinav

_Nith_
Level 10
Level 10

Please share you email with me: nith@mof.gov.bh

I will send you the file directly.

Nith