cancel
Showing results for 
Search instead for 
Did you mean: 

Stringlist parameter pass to Context.StartWorkflow

adam_bo_
Star Contributor
Star Contributor

How should the stringlist parameter be passed to Context.StartWorkflow in the proper way? I have tried:

participants=@{Context["participants"]}
participants=@{java.util.Arrays.asList(Context["participants"])}
5 REPLIES 5

Vladimir_Pasqui
Star Collaborator
Star Collaborator

Hello,

If you want to put a list like for instance a NodeVariables["assignees"], You can do this:

  • Set Context Variable name: participants value: @{new java.util.ArrayList()}

  • Run Script script: java.util.Collections.addAll(Context["participants"], java.util.Arrays.asList(NodeVariables["assignees"]));

Using Collections.addAll method.

Hope it helps

Hello,

Can you give me your complete use case?

This is an example

Hi,