Expand my Community achievements bar.

Use of Map variables and List Variables.

Avatar

Former Community Member
Hi,

I was reading the documentation of creating workflows in which i came through two types of variables called List variables and Map variables. i need to know where and how they are used.please help me.



thank you..

Raghava Kumar V.S.S.
2 Replies

Avatar

Level 9
Hi Raghava



Maps and Lists are two Java datatypes that have been incorporated into Workflow. Basically, a List is like an array, and a Map is like a set of name/value pairs.

The Workflow XPath syntax has been extended to support indexing into Lists and Maps.

For example: /process_data/mylist[1] gives you the first element in the List. (Note that Xpath is 1-based, not zero-based.)

/process_data/mymap[@id="out"] will give you the value of the element with an id of "out" from a Map.

Certain QPACs (for example, EmailReceiver and User) either produce or comsume Lists and Maps.



I hope this helps...

Howard

http://www.avoka.com

Avatar

Former Community Member
Hi Howard,

the information u gave helped.thanks again..