-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-Sequencing now has Rule AST for adding a Sequence. Now tests builds …
…it's node from a Rule.
- Loading branch information
Showing
18 changed files
with
345 additions
and
798 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
...ion/src/test/java/org/drools/mvel/integrationtests/phreak/sequencing/AlphaConstraint.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package org.drools.mvel.integrationtests.phreak.sequencing; | ||
|
||
import org.drools.base.base.ValueResolver; | ||
import org.drools.base.reteoo.BaseTuple; | ||
import org.drools.base.rule.Declaration; | ||
import org.drools.base.rule.MutableTypeConstraint; | ||
import org.kie.api.runtime.rule.FactHandle; | ||
|
||
public class AlphaConstraint extends MutableTypeConstraint { | ||
private Predicate1 predicate1; | ||
|
||
public AlphaConstraint(Predicate1 predicate1) { | ||
this.predicate1 = predicate1; | ||
} | ||
|
||
@Override | ||
public Declaration[] getRequiredDeclarations() { | ||
return new Declaration[0]; | ||
} | ||
|
||
@Override | ||
public void replaceDeclaration(Declaration oldDecl, Declaration newDecl) { | ||
|
||
} | ||
|
||
@Override | ||
public MutableTypeConstraint clone() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public boolean isTemporal() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean isAllowed(FactHandle handle, ValueResolver valueResolver) { | ||
return predicate1.test(handle.getObject()); | ||
} | ||
|
||
@Override | ||
public boolean isAllowedCachedLeft(Object context, FactHandle handle) { | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean isAllowedCachedRight(BaseTuple tuple, Object context) { | ||
return false; | ||
} | ||
|
||
@Override | ||
public Object createContext() { | ||
return null; | ||
} | ||
} |
151 changes: 0 additions & 151 deletions
151
...c/test/java/org/drools/mvel/integrationtests/phreak/sequencing/MultiInputNodeBuilder.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.