Running Rules management

Running Rules management

Anonymous
Not applicable
622 Views
5 Replies
Message 1 of 6

Running Rules management

Anonymous
Not applicable

Hi everybody,

I have Rule1 and Rule2 in one assembly file.

Is there any way to manage running Rules?

For example I want to run Rule1 first and then Rule2 and again Rule1(there are some parameters from Rule1 in Rule2, so it is necessary to run Rule1 again after Rule2).

Thanks

 

0 Likes
Accepted solutions (1)
623 Views
5 Replies
Replies (5)
Message 2 of 6

JhoelForshav
Mentor
Mentor

Create one more rule like this 🙂

 

iLogicVb.RunRule("Rule1")
iLogicVb.RunRule("Rule2")
iLogicVB.RunRule("Rule1")
Message 3 of 6

Anonymous
Not applicable

I did this by creating Master Rule on top of the Rule1 and Rule2, but the problem is when I fill the Form, just Rule1 run and I have to go to Rule tab and Right click on the Master Rule and run it. This is not the case that I want.

When I fill the form, all rules must be updated according the Master Rule(Rule1, Rule2, Rule1)

0 Likes
Message 4 of 6

JhoelForshav
Mentor
Mentor

Ok... Do you want the rules to trigger immediatly when a parameter in the form is changed or when you hit OK in the form?

 

0 Likes
Message 5 of 6

Anonymous
Not applicable

exactly

it must run all the rules according to the Master Rule ordering

0 Likes
Message 6 of 6

JhoelForshav
Mentor
Mentor
Accepted solution

Ok... I think I understand what you want.

Make the Master rule like this:

 

TriggerOn = Param1
TriggerOn = Param2

iLogicVb.RunRule("Rule1")
RuleParametersOutput()
iLogicVb.RunRule("Rule2")
RuleParametersOutput()
iLogicVb.RunRule("Rule1")

Just add all your parameters that you want to trigger the rule at the top like I've done in this example.

Have the options for Master Rule like this:

Master.PNG

And then have the options for Rule1 and Rule2 like this:

Rule1_2.PNG