Skip to content

Global parameters will be executed multiple times #714

@zhengbinlong

Description

@zhengbinlong

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"
}
]
}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions