| Package | Description |
|---|---|
| org.drools.core |
This is the engine that works off binary RuleBases, you will mostly use WorkingMemory, RuleBase and RuleBaseFactory
|
| org.drools.core.base | |
| org.drools.core.base.accumulators | |
| org.drools.core.common | |
| org.drools.core.definitions.rule.impl | |
| org.drools.core.reteoo | |
| org.drools.core.reteoo.builder | |
| org.drools.core.rule |
Contains the binary representations of rule constructs, like Package (which the compiler produces), Rule, and Conditional Elements.
|
| org.drools.core.rule.constraint | |
| org.drools.core.spi | |
| org.drools.core.time | |
| org.drools.core.time.impl |
| Modifier and Type | Field and Description |
|---|---|
protected Declaration[] |
QueryResultsImpl.parameters |
| Modifier and Type | Method and Description |
|---|---|
Declaration[] |
QueryResultsImpl.getParameters() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Declaration> |
QueryResultsRowImpl.getDeclarations()
Return a map of Declarations where the key is the identifier and the value
is the Declaration.
|
Map<String,Declaration> |
QueryResultsImpl.getDeclarations(int subruleIndex) |
| Modifier and Type | Method and Description |
|---|---|
Object |
QueryResultsRowImpl.get(Declaration declaration)
Return the Object for the given Declaration.
|
org.kie.api.runtime.rule.FactHandle |
QueryResultsRowImpl.getFactHandle(Declaration declr) |
| Constructor and Description |
|---|
QueryResultsImpl(List<QueryRowWithSubruleIndex> results,
Map<String,Declaration>[] declarations,
WorkingMemory workingMemory,
Declaration[] parameters) |
| Modifier and Type | Method and Description |
|---|---|
Declaration |
DefaultKnowledgeHelper.getDeclaration(String identifier) |
| Modifier and Type | Method and Description |
|---|---|
Object |
DefaultKnowledgeHelper.get(Declaration declaration) |
boolean |
EnabledBoolean.getValue(Tuple tuple,
Declaration[] declarations,
RuleImpl rule,
WorkingMemory workingMemory) |
| Constructor and Description |
|---|
EvaluatorWrapper(Evaluator evaluator,
Declaration leftBinding,
Declaration rightBinding) |
| Modifier and Type | Method and Description |
|---|---|
Object |
JavaAccumulatorFunctionExecutor.accumulate(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory) |
Object |
JavaAccumulatorFunctionExecutor.accumulate(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory) |
Object |
CollectAccumulator.accumulate(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory) |
Object |
CollectAccumulator.accumulate(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory) |
Object |
JavaAccumulatorFunctionExecutor.getResult(Object workingMemoryContext,
Object context,
Tuple leftTuple,
Declaration[] declarations,
WorkingMemory workingMemory) |
Object |
CollectAccumulator.getResult(Object workingMemoryContext,
Object context,
Tuple leftTuple,
Declaration[] declarations,
WorkingMemory workingMemory) |
Object |
JavaAccumulatorFunctionExecutor.init(Object workingMemoryContext,
Object context,
Tuple leftTuple,
Declaration[] declarations,
WorkingMemory workingMemory) |
Object |
CollectAccumulator.init(Object workingMemoryContext,
Object context,
Tuple leftTuple,
Declaration[] declarations,
WorkingMemory workingMemory) |
boolean |
JavaAccumulatorFunctionExecutor.tryReverse(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Object value,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory) |
boolean |
JavaAccumulatorFunctionExecutor.tryReverse(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Object value,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory) |
boolean |
CollectAccumulator.tryReverse(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Object value,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory) |
boolean |
CollectAccumulator.tryReverse(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Object value,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory) |
| Modifier and Type | Method and Description |
|---|---|
Declaration[] |
TupleStartEqualsConstraint.getRequiredDeclarations() |
Declaration[] |
InstanceNotEqualsConstraint.getRequiredDeclarations() |
| Modifier and Type | Method and Description |
|---|---|
void |
TupleStartEqualsConstraint.replaceDeclaration(Declaration oldDecl,
Declaration newDecl) |
void |
InstanceNotEqualsConstraint.replaceDeclaration(Declaration oldDecl,
Declaration newDecl) |
| Modifier and Type | Method and Description |
|---|---|
Declaration[] |
RuleImpl.findEnabledDeclarations(Map<String,Declaration> decls) |
Declaration[] |
RuleImpl.findSalienceDeclarations(Map<String,Declaration> decls) |
Declaration |
RuleImpl.getDeclaration(String identifier)
Retrieve a parameter
Declaration by identifier. |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Declaration> |
RuleImpl.getDeclarations()
Retrieve the set of all root fact object parameter
Declarations. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
RuleImpl.SafeEnabled.getValue(Tuple tuple,
Declaration[] declarations,
RuleImpl rule,
WorkingMemory workingMemory) |
| Modifier and Type | Method and Description |
|---|---|
Declaration[] |
RuleImpl.findEnabledDeclarations(Map<String,Declaration> decls) |
Declaration[] |
RuleImpl.findSalienceDeclarations(Map<String,Declaration> decls) |
| Modifier and Type | Field and Description |
|---|---|
protected Declaration[] |
RuleTerminalNode.allDeclarations |
protected Declaration[] |
RuleTerminalNode.enabledDeclarations |
protected Declaration[] |
RuleTerminalNode.requiredDeclarations |
protected Declaration[] |
RuleTerminalNode.salienceDeclarations |
| Modifier and Type | Method and Description |
|---|---|
Declaration[] |
TerminalNode.getAllDeclarations() |
Declaration[] |
RuleTerminalNode.getAllDeclarations() |
Declaration[] |
QueryTerminalNode.getAllDeclarations() |
Declaration[] |
RuleTerminalNode.getEnabledDeclarations() |
Declaration[] |
TerminalNode.getRequiredDeclarations() |
Declaration[] |
RuleTerminalNode.getRequiredDeclarations() |
Declaration[] |
QueryTerminalNode.getRequiredDeclarations() |
Declaration[] |
TerminalNode.getSalienceDeclarations() |
Declaration[] |
RuleTerminalNode.getSalienceDeclarations() |
Declaration[] |
QueryTerminalNode.getSalienceDeclarations() |
Declaration[][] |
TimerNode.getStartEndDeclarations() |
| Modifier and Type | Method and Description |
|---|---|
int |
RuleTerminalNode.SortDeclarations.compare(Declaration d1,
Declaration d2) |
InternalFactHandle |
BaseTuple.get(Declaration declaration) |
Object |
BaseTuple.getObject(Declaration declaration) |
void |
RuleTerminalNode.setEnabledDeclarations(Declaration[] enabledDeclarations) |
void |
RuleTerminalNode.setSalienceDeclarations(Declaration[] salienceDeclarations) |
| Modifier and Type | Method and Description |
|---|---|
void |
RuleTerminalNode.setDeclarations(Map<String,Declaration> decls) |
| Constructor and Description |
|---|
TimerNode(int id,
LeftTupleSource tupleSource,
Timer timer,
String[] calendarNames,
Declaration[][] startEndDeclarations,
BuildContext context) |
| Modifier and Type | Method and Description |
|---|---|
TimerNode |
PhreakNodeFactory.buildTimerNode(int id,
Timer timer,
String[] calendarNames,
Declaration[][] declarations,
LeftTupleSource tupleSource,
BuildContext context) |
TimerNode |
NodeFactory.buildTimerNode(int id,
Timer timer,
String[] calendarNames,
Declaration[][] declarations,
LeftTupleSource tupleSource,
BuildContext context) |
| Modifier and Type | Field and Description |
|---|---|
Declaration |
VariableRestriction.VariableContextEntry.declaration |
protected Declaration[] |
Accumulate.innerDeclarationCache |
Declaration[] |
ReturnValueRestriction.ReturnValueContextEntry.localDeclarations |
Declaration[] |
ReturnValueRestriction.ReturnValueContextEntry.previousDeclarations |
protected Declaration[] |
EvalCondition.requiredDeclarations |
protected Declaration[] |
Accumulate.requiredDeclarations |
protected Declaration[] |
AbstractCompositeConstraint.requiredDeclarations |
| Modifier and Type | Method and Description |
|---|---|
Declaration |
Pattern.addDeclaration(String identifier) |
Declaration |
Declaration.clone() |
Declaration |
Declaration.cloneWithPattern(Pattern pattern) |
Declaration |
XpathBackReference.MapAdapter.get(Object key) |
Declaration |
QueryArgument.Declr.getDeclaration() |
Declaration |
Pattern.getDeclaration() |
Declaration |
XpathBackReference.getDeclaration(Pattern pattern,
String id) |
protected Declaration[] |
Accumulate.getInnerDeclarationCache() |
Declaration[] |
ReturnValueRestriction.getLocalDeclarations() |
Declaration[] |
ReturnValueRestriction.ReturnValueContextEntry.getLocalDeclarations() |
Declaration[] |
QueryImpl.getParameters() |
Declaration[] |
ReturnValueRestriction.getPreviousDeclarations() |
Declaration[] |
ReturnValueRestriction.ReturnValueContextEntry.getPreviousDeclarations() |
Declaration[] |
ReturnValueRestriction.getRequiredDeclarations() |
Declaration[] |
QueryElement.getRequiredDeclarations() |
Declaration[] |
PredicateConstraint.getRequiredDeclarations() |
Declaration[] |
Pattern.getRequiredDeclarations() |
Declaration[] |
EvalCondition.getRequiredDeclarations() |
Declaration[] |
Accumulate.getRequiredDeclarations() |
Declaration[] |
AbstractCompositeRestriction.getRequiredDeclarations() |
Declaration[] |
AbstractCompositeConstraint.getRequiredDeclarations()
Returns all the declarations required by the given
constraint implementation.
|
Declaration |
VariableRestriction.VariableContextEntry.getVariableDeclaration() |
Declaration |
Pattern.getXPathDeclaration() |
Declaration |
XpathBackReference.MapAdapter.put(String key,
Declaration value) |
Declaration |
XpathBackReference.MapAdapter.remove(Object key) |
Declaration |
WindowReference.resolveDeclaration(String identifier)
Not possible to resolve any declaration, so always return null.
|
Declaration |
RuleConditionElement.resolveDeclaration(String identifier)
Resolves the given identifier in the current scope and
returns the Declaration object for the declaration.
|
Declaration |
QueryElement.resolveDeclaration(String identifier) |
Declaration |
Pattern.resolveDeclaration(String identifier) |
Declaration |
NamedConsequence.resolveDeclaration(String identifier)
Not possible to resolve any declaration, so always return null.
|
Declaration |
GroupElement.resolveDeclaration(String identifier) |
Declaration |
From.resolveDeclaration(String identifier) |
Declaration |
Forall.resolveDeclaration(String identifier)
Forall can only resolve declarations from its base pattern
|
Declaration |
EvalCondition.resolveDeclaration(String identifier) |
Declaration |
EntryPointId.resolveDeclaration(String identifier)
Not possible to resolve any declaration, so always return null.
|
Declaration |
ConditionalBranch.resolveDeclaration(String identifier)
Not possible to resolve any declaration, so always return null.
|
Declaration |
Collect.resolveDeclaration(String identifier) |
Declaration |
AsyncSend.resolveDeclaration(String identifier) |
Declaration |
AsyncReceive.resolveDeclaration(String identifier) |
Declaration |
Accumulate.resolveDeclaration(String identifier) |
| Modifier and Type | Method and Description |
|---|---|
Set<Map.Entry<String,Declaration>> |
XpathBackReference.MapAdapter.entrySet() |
Map<String,Declaration> |
XpathBackReference.getDeclarationMap() |
Map<String,Declaration> |
Pattern.getDeclarations() |
Map<String,Declaration> |
WindowReference.getInnerDeclarations()
It is not possible to declare any new variables, so always
return an Empty Map
|
Map<String,Declaration> |
RuleConditionElement.getInnerDeclarations()
Returns a Map of declarations that are
visible inside this conditional element
|
Map<String,Declaration> |
QueryElement.getInnerDeclarations() |
Map<String,Declaration> |
Pattern.getInnerDeclarations() |
Map<String,Declaration> |
NamedConsequence.getInnerDeclarations()
It is not possible to declare any new variables, so always
return an Empty Map
|
Map<String,Declaration> |
GroupElement.getInnerDeclarations() |
Map<String,Declaration> |
Forall.getInnerDeclarations()
Forall inner declarations are only provided by the base patterns
since it negates the remaining patterns
|
Map<String,Declaration> |
EvalCondition.getInnerDeclarations() |
Map<String,Declaration> |
EntryPointId.getInnerDeclarations()
It is not possible to declare any new variables, so always
return an Empty Map
|
Map<String,Declaration> |
ConditionalBranch.getInnerDeclarations()
It is not possible to declare any new variables, so always
return an Empty Map
|
Map<String,Declaration> |
Collect.getInnerDeclarations() |
Map<String,Declaration> |
AsyncSend.getInnerDeclarations() |
Map<String,Declaration> |
AsyncReceive.getInnerDeclarations() |
Map<String,Declaration> |
Accumulate.getInnerDeclarations() |
Map<String,Declaration> |
GroupElement.getInnerDeclarations(String consequenceName) |
Map<String,Declaration> |
WindowReference.getOuterDeclarations()
It is not possible to declare and export any variables,
so always return an empty map
|
Map<String,Declaration> |
RuleConditionElement.getOuterDeclarations()
Returns a Map of declarations that are visible
outside this conditional element.
|
Map<String,Declaration> |
QueryElement.getOuterDeclarations() |
Map<String,Declaration> |
Pattern.getOuterDeclarations() |
Map<String,Declaration> |
NamedConsequence.getOuterDeclarations()
It is not possible to declare and export any variables,
so always return an empty map
|
Map<String,Declaration> |
GroupElement.getOuterDeclarations() |
Map<String,Declaration> |
Forall.getOuterDeclarations()
Forall does not export any declarations
|
Map<String,Declaration> |
EvalCondition.getOuterDeclarations() |
Map<String,Declaration> |
EntryPointId.getOuterDeclarations()
It is not possible to declare and export any variables,
so always return an empty map
|
Map<String,Declaration> |
ConditionalBranch.getOuterDeclarations()
It is not possible to declare and export any variables,
so always return an empty map
|
Map<String,Declaration> |
Collect.getOuterDeclarations() |
Map<String,Declaration> |
AsyncSend.getOuterDeclarations() |
Map<String,Declaration> |
AsyncReceive.getOuterDeclarations() |
Map<String,Declaration> |
Accumulate.getOuterDeclarations() |
Map<String,Declaration> |
GroupElement.getOuterDeclarations(String consequenceName) |
Collection<Declaration> |
XpathBackReference.MapAdapter.values() |
| Modifier and Type | Method and Description |
|---|---|
void |
Pattern.addDeclaration(Declaration decl) |
static VariableRestriction.VariableContextEntry |
VariableRestriction.createContextEntry(InternalReadAccessor fieldExtractor,
Declaration declaration,
Evaluator evaluator) |
EvalCondition |
EvalConditionFactoryImpl.createEvalCondition(Declaration[] requiredDeclarations) |
EvalCondition |
EvalConditionFactory.createEvalCondition(Declaration[] requiredDeclarations) |
static Object |
QueryArgument.evaluateDeclaration(InternalWorkingMemory wm,
LeftTuple leftTuple,
Declaration declaration) |
protected void |
AbductiveQuery.findConstructor(Declaration[] declarations) |
Declaration |
XpathBackReference.MapAdapter.put(String key,
Declaration value) |
void |
SingleAccumulate.replaceAccumulatorDeclaration(Declaration declaration,
Declaration resolved) |
void |
MultiAccumulate.replaceAccumulatorDeclaration(Declaration declaration,
Declaration resolved) |
abstract void |
Accumulate.replaceAccumulatorDeclaration(Declaration declaration,
Declaration resolved) |
void |
ReturnValueRestriction.replaceDeclaration(Declaration oldDecl,
Declaration newDecl) |
void |
PredicateConstraint.replaceDeclaration(Declaration oldDecl,
Declaration newDecl) |
void |
EvalCondition.replaceDeclaration(Declaration declaration,
Declaration resolved) |
void |
Accumulate.replaceDeclaration(Declaration declaration,
Declaration resolved) |
void |
AbstractCompositeRestriction.replaceDeclaration(Declaration oldDecl,
Declaration newDecl) |
void |
AbstractCompositeConstraint.replaceDeclaration(Declaration oldDecl,
Declaration newDecl)
When a rule contains multiple logical branches, i.e., makes
use of 'OR' CE, it is required to clone patterns and declarations
for each logical branch.
|
void |
QueryImpl.setParameters(Declaration[] parameters) |
void |
AbductiveQuery.setReturnType(ObjectType objectType,
String[] params,
String[] args,
Declaration[] declarations) |
| Modifier and Type | Method and Description |
|---|---|
void |
XpathBackReference.MapAdapter.putAll(Map<? extends String,? extends Declaration> m) |
void |
EvalCondition.setOuterDeclarations(Map<String,Declaration> outerDeclarations) |
| Modifier and Type | Field and Description |
|---|---|
protected Declaration[] |
EvaluatorConstraint.declarations |
| Modifier and Type | Method and Description |
|---|---|
Declaration |
XpathConstraint.getDeclaration() |
Declaration |
QueryNameConstraint.getIndexExtractor() |
Declaration[] |
XpathConstraint.getRequiredDeclarations() |
Declaration[] |
XpathConstraint.XpathDataProvider.getRequiredDeclarations() |
Declaration[] |
QueryNameConstraint.getRequiredDeclarations() |
Declaration[] |
NegConstraint.getRequiredDeclarations() |
Declaration[] |
EvaluatorConstraint.getRequiredDeclarations() |
Declaration |
XpathConstraint.getXpathStartDeclaration() |
| Modifier and Type | Method and Description |
|---|---|
void |
XpathConstraint.replaceDeclaration(Declaration oldDecl,
Declaration newDecl) |
void |
XpathConstraint.XpathDataProvider.replaceDeclaration(Declaration declaration,
Declaration resolved) |
void |
QueryNameConstraint.replaceDeclaration(Declaration oldDecl,
Declaration newDecl) |
void |
NegConstraint.replaceDeclaration(Declaration oldDecl,
Declaration newDecl) |
void |
EvaluatorConstraint.replaceDeclaration(Declaration oldDecl,
Declaration newDecl) |
void |
XpathConstraint.setDeclaration(Declaration declaration) |
void |
XpathConstraint.setXpathStartDeclaration(Declaration xpathStartDeclaration) |
static Map<String,Object> |
EvaluatorHelper.valuesAsMap(Object object,
InternalWorkingMemory workingMemory,
Tuple tuple,
Declaration[] declarations) |
| Constructor and Description |
|---|
EvaluatorConstraint(Declaration[] declarations,
Evaluator evaluator,
InternalReadAccessor extractor) |
XpathDataProvider(org.drools.core.rule.constraint.XpathConstraint.XpathEvaluator xpathEvaluator,
Declaration declaration) |
| Modifier and Type | Method and Description |
|---|---|
default Declaration[] |
Salience.findDeclarations(Map<String,Declaration> decls) |
default Declaration[] |
Enabled.findDeclarations(Map<String,Declaration> decls) |
Declaration |
KnowledgeHelper.getDeclaration(String identifier) |
Declaration |
DeclarationScopeResolver.getDeclaration(String identifier) |
Declaration[] |
Restriction.getRequiredDeclarations() |
Declaration[] |
MvelAccumulator.getRequiredDeclarations() |
Declaration[] |
DataProvider.getRequiredDeclarations() |
Declaration[] |
Constraint.getRequiredDeclarations()
Returns all the declarations required by the given
constraint implementation.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Declaration> |
DeclarationScopeResolver.getDeclarations(RuleImpl rule) |
Map<String,Declaration> |
DeclarationScopeResolver.getDeclarations(RuleImpl rule,
String consequenceName)
Return all declarations scoped to the current
RuleConditionElement in the build stack
|
| Modifier and Type | Method and Description |
|---|---|
Object |
Accumulator.accumulate(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory)
Executes the accumulate (action) code for the given fact handle
|
Object |
Accumulator.accumulate(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory)
Executes the accumulate (action) code for the given fact handle
|
Object |
Accumulator.SafeAccumulator.accumulate(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory) |
Object |
Accumulator.SafeAccumulator.accumulate(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory) |
FieldValue |
ReturnValueExpression.evaluate(InternalFactHandle handle,
Tuple tuple,
Declaration[] previousDeclarations,
Declaration[] localDeclarations,
WorkingMemory workingMemory,
Object context) |
FieldValue |
ReturnValueExpression.evaluate(InternalFactHandle handle,
Tuple tuple,
Declaration[] previousDeclarations,
Declaration[] localDeclarations,
WorkingMemory workingMemory,
Object context) |
FieldValue |
ReturnValueExpression.SafeReturnValueExpression.evaluate(InternalFactHandle handle,
Tuple tuple,
Declaration[] previousDeclarations,
Declaration[] localDeclarations,
WorkingMemory workingMemory,
Object context) |
FieldValue |
ReturnValueExpression.SafeReturnValueExpression.evaluate(InternalFactHandle handle,
Tuple tuple,
Declaration[] previousDeclarations,
Declaration[] localDeclarations,
WorkingMemory workingMemory,
Object context) |
boolean |
PredicateExpression.evaluate(InternalFactHandle handle,
Tuple tuple,
Declaration[] previousDeclarations,
Declaration[] localDeclarations,
WorkingMemory workingMemory,
Object context) |
boolean |
PredicateExpression.evaluate(InternalFactHandle handle,
Tuple tuple,
Declaration[] previousDeclarations,
Declaration[] localDeclarations,
WorkingMemory workingMemory,
Object context) |
boolean |
PredicateExpression.SafePredicateExpression.evaluate(InternalFactHandle handle,
Tuple tuple,
Declaration[] previousDeclarations,
Declaration[] localDeclarations,
WorkingMemory workingMemory,
Object context) |
boolean |
PredicateExpression.SafePredicateExpression.evaluate(InternalFactHandle handle,
Tuple tuple,
Declaration[] previousDeclarations,
Declaration[] localDeclarations,
WorkingMemory workingMemory,
Object context) |
boolean |
EvalExpression.evaluate(Tuple tuple,
Declaration[] requiredDeclarations,
WorkingMemory workingMemory,
Object context) |
boolean |
EvalExpression.SafeEvalExpression.evaluate(Tuple tuple,
Declaration[] requiredDeclarations,
WorkingMemory workingMemory,
Object context) |
InternalFactHandle |
Tuple.get(Declaration declaration)
Returns the
FactHandle for the given Declaration, which in turn
specifcy the Pattern that they depend on. |
Object |
KnowledgeHelper.get(Declaration declaration) |
Object |
Tuple.getObject(Declaration declaration) |
Object |
Accumulator.getResult(Object workingMemoryContext,
Object context,
Tuple leftTuple,
Declaration[] declarations,
WorkingMemory workingMemory)
Gets the result of the accummulation
|
Object |
Accumulator.SafeAccumulator.getResult(Object workingMemoryContext,
Object context,
Tuple leftTuple,
Declaration[] declarations,
WorkingMemory workingMemory) |
boolean |
Enabled.getValue(Tuple tuple,
Declaration[] declarations,
RuleImpl rule,
WorkingMemory workingMemory) |
Object |
Accumulator.init(Object workingMemoryContext,
Object context,
Tuple leftTuple,
Declaration[] declarations,
WorkingMemory workingMemory)
Executes the initialization block of code
|
Object |
Accumulator.SafeAccumulator.init(Object workingMemoryContext,
Object context,
Tuple leftTuple,
Declaration[] declarations,
WorkingMemory workingMemory) |
void |
ReturnValueExpression.replaceDeclaration(Declaration declaration,
Declaration resolved) |
void |
ReturnValueExpression.SafeReturnValueExpression.replaceDeclaration(Declaration declaration,
Declaration resolved) |
void |
Restriction.replaceDeclaration(Declaration oldDecl,
Declaration newDecl)
A restriction may be required to replace an old
declaration object by a new updated one
|
default void |
MvelAccumulator.replaceDeclaration(Declaration declaration,
Declaration resolved) |
void |
EvalExpression.replaceDeclaration(Declaration declaration,
Declaration resolved) |
void |
EvalExpression.SafeEvalExpression.replaceDeclaration(Declaration declaration,
Declaration resolved) |
void |
DataProvider.replaceDeclaration(Declaration declaration,
Declaration resolved) |
void |
Constraint.replaceDeclaration(Declaration oldDecl,
Declaration newDecl)
When a rule contains multiple logical branches, i.e., makes
use of 'OR' CE, it is required to clone patterns and declarations
for each logical branch.
|
boolean |
Accumulator.tryReverse(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Object value,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory)
Reverses the accumulate action for the given fact handle
|
boolean |
Accumulator.tryReverse(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Object value,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory)
Reverses the accumulate action for the given fact handle
|
boolean |
Accumulator.SafeAccumulator.tryReverse(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Object value,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory) |
boolean |
Accumulator.SafeAccumulator.tryReverse(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Object value,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory) |
| Modifier and Type | Method and Description |
|---|---|
default Declaration[] |
Salience.findDeclarations(Map<String,Declaration> decls) |
default Declaration[] |
Enabled.findDeclarations(Map<String,Declaration> decls) |
static Map<String,Class<?>> |
DeclarationScopeResolver.getDeclarationClasses(Map<String,Declaration> declarations) |
| Modifier and Type | Method and Description |
|---|---|
Declaration[] |
TimerExpression.getDeclarations() |
| Modifier and Type | Method and Description |
|---|---|
static Date |
TimeUtils.evalDateExpression(TimerExpression expr,
Tuple leftTuple,
Declaration[] declrs,
InternalWorkingMemory wm) |
static long |
TimeUtils.evalTimeExpression(TimerExpression expr,
Tuple leftTuple,
Declaration[] declrs,
InternalWorkingMemory wm) |
Object |
TimerExpression.getValue(Tuple leftTuple,
Declaration[] declrs,
InternalWorkingMemory wm) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Declaration> |
BaseTimer.getInnerDeclarations() |
Map<String,Declaration> |
BaseTimer.getOuterDeclarations() |
| Modifier and Type | Method and Description |
|---|---|
Trigger |
Timer.createTrigger(long timestamp,
Tuple leftTuple,
DefaultJobHandle jh,
String[] calendarNames,
org.kie.api.runtime.Calendars calendars,
Declaration[][] declrs,
InternalWorkingMemory wm) |
Trigger |
IntervalTimer.createTrigger(long timestamp,
Tuple leftTuple,
DefaultJobHandle jh,
String[] calendarNames,
org.kie.api.runtime.Calendars calendars,
Declaration[][] declrs,
InternalWorkingMemory wm) |
Trigger |
ExpressionIntervalTimer.createTrigger(long timestamp,
Tuple leftTuple,
DefaultJobHandle jh,
String[] calendarNames,
org.kie.api.runtime.Calendars calendars,
Declaration[][] declrs,
InternalWorkingMemory wm) |
Trigger |
DurationTimer.createTrigger(long timestamp,
Tuple leftTuple,
DefaultJobHandle jh,
String[] calendarNames,
org.kie.api.runtime.Calendars calendars,
Declaration[][] declrs,
InternalWorkingMemory wm) |
Trigger |
CronTimer.createTrigger(long timestamp,
Tuple leftTuple,
DefaultJobHandle jh,
String[] calendarNames,
org.kie.api.runtime.Calendars calendars,
Declaration[][] declrs,
InternalWorkingMemory wm) |
Trigger |
CompositeMaxDurationTimer.createTrigger(long timestamp,
Tuple leftTuple,
DefaultJobHandle jh,
String[] calendarNames,
org.kie.api.runtime.Calendars calendars,
Declaration[][] declrs,
InternalWorkingMemory wm) |
void |
DurationTimer.setEventFactHandle(Declaration eventFactHandle) |
protected Declaration[] |
BaseTimer.sortDeclarations(Map<String,Declaration> outerDeclrs,
Declaration[] declrs) |
| Modifier and Type | Method and Description |
|---|---|
Declaration[][] |
IntervalTimer.getTimerDeclarations(Map<String,Declaration> outerDeclrs) |
Declaration[][] |
ExpressionIntervalTimer.getTimerDeclarations(Map<String,Declaration> outerDeclrs) |
Declaration[][] |
DurationTimer.getTimerDeclarations(Map<String,Declaration> outerDeclrs) |
Declaration[][] |
CronTimer.getTimerDeclarations(Map<String,Declaration> outerDeclrs) |
Declaration[][] |
CompositeMaxDurationTimer.getTimerDeclarations(Map<String,Declaration> outerDeclrs) |
abstract Declaration[][] |
BaseTimer.getTimerDeclarations(Map<String,Declaration> outerDeclrs) |
protected Declaration[] |
BaseTimer.sortDeclarations(Map<String,Declaration> outerDeclrs,
Declaration[] declrs) |
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.