I have an array.
var yasin={1,2,3,4,5,6,7];
I want to use this array in my process. For 1 : yasin[0] for 4 yasin[3]
However execution.setVariable is not working on it. Because it is not variable, it is an object.
How can i declare this object to use in my process?
hi @Yasin.Baykan
Wouldn’t a simple script like the one below do the job?
var yasin = yasin();
yasin[0] = 1;
yasin[1] = 2;
yasin[2] = 3;
yasin[3] = 4;
execution.setVariable("yasin",yasin);
When I try your suggesstion, there is an error which is shown in below.
FLW-0001|Script task failed: couldn’t find a variable type that is able to serialize [object Object]