Skip to main content
swapnar6405
December 1, 2022
Solved

Process model and variables

  • December 1, 2022
  • 1 reply
  • 0 views

Hi,

I have a process model like below

I have the data in each of the variable like below.

Name                    Type          Multiple     Value

--------------------    ----------        ----------     ------------

listOfSubmitters    Text           Yes           [addedby:AA1234]; [addedby:AA1235]; [addedby:AA1236]

I need the value of each "addedby". When I am trying to make a loop and get each addedby like below. I am NOT getting required output. 

a!localVariables(
local!lst: a!forEach(pv!listOfSubmitters,property(fv!item, "addedby", null)),
local!lst[pv!totalCountOfSubmitters]
)

Please advise if I have to declare the process variable with any other type instead of "Text".

Or, let me know if anything wrong in above code.

Thanks in advance.

Best answer by stefanhelzle0001

The images you added are way to small to be able to see anything.

Your variable is a list of text values. Is there a specific reason you did that? A type list of map might be a better fit. Then you can just do

pv!listOfSubmitters.addedby

to get these values.

1 reply

stefanhelzle0001
Brainy
December 1, 2022

The images you added are way to small to be able to see anything.

Your variable is a list of text values. Is there a specific reason you did that? A type list of map might be a better fit. Then you can just do

pv!listOfSubmitters.addedby

to get these values.