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
Hello jagjots3791
Not sure uf i completely understand your question. But from what I understand, you want to use a set of values even if the user/process doesn’t provide values to them.
you can have the values set in locals and use default value function.
If your question is about query filter or rule parameters you can handle it with the apply when or simple if logics.