Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional policies #635

Open
mouligno opened this issue Dec 28, 2021 · 0 comments
Open

Conditional policies #635

mouligno opened this issue Dec 28, 2021 · 0 comments

Comments

@mouligno
Copy link
Contributor

From 3.15, we'll be adding condition on every policy.
The idea is to add a condition before execution of policy, the condition can use Expression Language.
If the condition is true, the policy is executed. If not, it isn't.

The objective is to avoid flow duplication.
Example : you got the same API but you can have two type of body (Json / XML), you can add both Json / XML transformation policy with a condition on body type on it so you don't have to duplicate the flow for both type of body.

It can be use at platform policy level also.

If a condition is set on a policy, an icon is displayed on the card in the policy studio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant