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

Fix blocking properties #22

Open
dpolivaev opened this issue Aug 26, 2014 · 0 comments
Open

Fix blocking properties #22

dpolivaev opened this issue Aug 26, 2014 · 0 comments
Labels

Comments

@dpolivaev
Copy link
Owner

  1. return blocksRequiredProperties || isBlockedBy(dependentRules);
  2. TriggeredStatefulRule.propertyValueSet :
            if (getCondition().isSatisfied(engineState)) {
+               if(! blocksRequiredProperties)
+                   for(String trigger : getTriggeringProperties()){
+                       final Assignment assignment = engineState.getAssignment(trigger);
+                       final Rule rule = assignment.rule;
+                       if(rule.blocksRequiredProperties() && rule.valueHasChangedNow()) {
+                           setBlocksRequiredProperties(true);
+                           break;
+                       }
+                   }
                addValue(engineState);
@dpolivaev dpolivaev added the bug label Aug 26, 2014
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