Hi,
I have created an Expression Rule that returns 3 values (for example).
a!localvariable( ..., { value1: local!myValue1, value2: local!myValue2, value3: local!myValue3 } )
When I call my ER inside an Interface, I do not have any problem to get the 3 data (ex : rule!myRule().value1).
But how would you do it inside a Script Task from a Process model ? because when I call my ER I can only set the result into a single Target.
Maybe is there any way to do it with a Map, or any other solution ?
(obviously I could use a CDT but it would be used only for this case in the whole application, so maybe it might be a good pratice to not create this CDT just for a single using. Or maybe, the good practice would be to use imperatively a CDT ? ;-) )
Regards
Discussion posts and replies are publicly visible
Use a map(). A PV can be of map type.
Thank you Stefan.
and after having stored it, do I just have to use a XOR condiction like this ?
if(pv.mymapvalue("value1") = 1 ...
It would be pv!mymapvalue.value1
oh ok, thanks a lot Stefan.