Hi! I need to get a subset of elements from an array. I'm using rdrop f

Hi!
I need to get a subset of elements from an array. I'm using rdrop function that return the subset. The elements returned are separated by comma and not by semicolon. So, when I pass this subset to a doforeach function the process generates this error: There is a problem with task “Script Task” in the process. The expression function 'doforeach("rule",{2484.0,2440.93,2352.93})' (user=SuperUser, exprId=536870915) could not be evaluated: java.lang.ArrayStoreException (Data Outputs)

Thanks...

OriginalPostID-37423

OriginalPostID-37423

  Discussion posts and replies are publicly visible

Parents
  • Marco, I am not sure if there is any need to find out what the Tokenizer is. As long as the rules accept a multi value PV! and if you are passing a multi value pv! as input, it should work. What I was trying to say was to identify if the value you are passing is an array or string. For e.g. If I store {"a;b;c;"} into an array, then only the first element of the array is populated as the entire string (even though it looks like its an array of 3 elements. The easy way I'd test this is to pass your pv! array to JOINARRAY function and join by a delimiter to find out how the data tokenizers.
Reply
  • Marco, I am not sure if there is any need to find out what the Tokenizer is. As long as the rules accept a multi value PV! and if you are passing a multi value pv! as input, it should work. What I was trying to say was to identify if the value you are passing is an array or string. For e.g. If I store {"a;b;c;"} into an array, then only the first element of the array is populated as the entire string (even though it looks like its an array of 3 elements. The easy way I'd test this is to pass your pv! array to JOINARRAY function and join by a delimiter to find out how the data tokenizers.
Children
No Data