I have a global parameter that retrieves data from the database, but it will be executed multiple times now. Is there a way to make it execute only once? The rule JSON is as follows,Utils2.FromDb method will be executed multiple times.
[{
"WorkflowName": "workflowWithGlobalParam",
"GlobalParams":[
{
"Name":"myglobal1",
"Expression":"Utils2.FromDb(myInput.hello)"
}
],
"Rules":[
{
"RuleName": "checkGlobalEqualsHello",
"Expression":"myglobal1 == "hello""
},
{
"RuleName": "checkGlobalEqualsInputHello",
"Expression":"myInput.hello.ToLower() == myglobal1"
}
]
}]