Passing dynamical no of parameters to a rule

Certified Senior Developer

Hi, I have a below rule with pre-passed 3 parameters. Now, Is there any way that I can store these parameters (para1, para2, para3) and its values (val1, val2, val3) in variables and pass them to the rule dynamically? The no of parameter will be changed as they could come from rule input or local variable.

Example: [Code] I have two variables local!para and local!val and end result is whats written in the expression is what I want. See, rule can accept 5 parameters but I have given only 2 in this case.

a!localVariables(
  local!para: {"para1", "para2"},
  local!val: {"val1", "val2"},
  rule!JS_abcRule(
    para1: "val1",
    para2: "val2"
  )
)

  Discussion posts and replies are publicly visible