Dynamic Paramaters?

Dynamic Paramaters?

Comments

  • Hello,

    I was wondering if I can change the variable that is being passed into a node dynamically? So lets say I have 5 paramaters (lets call them Var1, Var2, etc) and then I have a string that holds the name of the variable that I want to pass in (Lets call it VarToRun). Lets say that I know the data type of all the possible variables are of type string so I dont have to worry about typing. Now in this example lets say there is a Rule that takes in a string as the parameter, can I change the variable that is getting read in based on the value of VarToRun? I originally had this set up so that I ran VarToRun through a string match step and just ran the rule in 5 places based off of what path was taken from the String Match step, I am now looking at data sets much larger than 5 and that are dynamic. If this is something that cannot be done in decisions then is there a way to get an array of all flow variable names so that I can run them through a for each step?

    Thanks,
    Jeremy
    [i]edited by Jeremy on 3/4/2020[/i]

  • Also I should add that if this is not possible I do not need a support ticket. I just dont know what all is possible in decisions so I thought I would ask.

  • Hello!
    Just to confirm your use case includes running 5 rules and want to increase scalability. In addition, you want to use one of the variables based on VarToRun Value, correct?
    If so, you can instead of changing the variable mapped in, change the value of the variable. You can also use a truth table instead of multiple rules.
    For more information on truth tables please use the following documents:
    https://documentation.decisions.com/docs/about-truth-tables
    [url=https://documentation.decisions.com/docs/truth-tables-rule-set]https://documentation.decisions.com/docs/truth-tables-rule-set[/url]
    Please let us know if this answers your questions.

Sign In or Register to comment.