I am looking to add exception for the redirect config, with the following logic. Can you help me create the required rules for it,
condition - http
not in the path
not in the path.
Hi venkata krishna prathab chandran
I am not sure if I understand you scenario fully, but here is one way to solve it as I understood your flow.
In the Property Variables section I create a variable called PMUSER_EXECUTE_LOGIC (which I then use in the configuration).
I then create rules like this (rule "Redirect" have 3 child rules) :
And the rules looks like the following (in my case to execute a redirect in the end, you can adapt that to your case):
I am trying something similar, but i have a question when will the behavior be executed in the child rules? and what happens if i put false in the second child rule, will it override the variable?
Hi venkata krishna prathab chandran.
Normally we try to avoid to add complex logic if not needed but there are scenarios when we need it.
The flow in the configuration is that "the last rule wins", so the variable will get the last executed set logic for the variable, if it first is set to true and then below will be set to false again, the check for the variable value will then be false.
In your case when you check for information available in the incoming request you can create a more advanced logic where you need to enable/disable depending on many conditions and it will work fine (you can also make the matches in multiple levels if you need):
SET variable falseIF some conditions true THEN SET variable trueIF some other conditions true THEN SET variable falseIF some conditions true THEN SET variable true IF some similar conditions true THEN SET variable falseIF variable is true THEN execute wanted logic
SET variable false
IF some conditions true THEN SET variable true
IF some other conditions true THEN SET variable false
IF some similar conditions true THEN SET variable false
IF variable is true THEN execute wanted logic
Perfect, Thanks for the explanation Bengt! It worked for me.
Retrieving data ...