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

Rule Design #60

Closed
snikolayev opened this issue Mar 14, 2017 · 0 comments
Closed

Rule Design #60

snikolayev opened this issue Mar 14, 2017 · 0 comments
Labels

Comments

@snikolayev
Copy link
Member

snikolayev commented Mar 14, 2017

Ok, I'm probably doing something dumb. But my guess is that NRule should probably not run forever and should detect a cycle.

https://gist.github.com/drusellers/d61cf0d9ecfe382b5fb8

When I run these rules, what I'm hoping to get is that it sees the order is for $100 and fires a discount per the rule. It could se that the order is for 100 and over and applies free shipping. But then when the discount is applied it should revoke free shipping if that has already been applied as well.

With the debugger on, I see it going back and forth from rule 3 to rule 2. Is this expected behavior? I feel like I need the repeatability on, since I don't know which rule will fire first.

@snikolayev snikolayev changed the title Placeholder Rule Design Mar 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant