How to return multiple values from an ER in a Script task ?

Certified Senior Developer

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

Parents Reply Children
No Data