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.
Howdy, Stranger!
Categories
- 4.1K All Categories
- 61 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 260 Administration
- 212 Portal
- 489 General Q & A
- 693 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 51 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 178 Pages
- 5 Process Mining
- New Features
- 178 Datastructures
- 69 Repository
- 219 Integrations
- 28 Multi-Tenant
- 27 SDK
- 76 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 66 Lunch And Learn Questions