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.audit |
This is a utility for providing audit trails/explanations of rule actions.
|
org.drools.core.base | |
org.drools.core.base.accumulators | |
org.drools.core.base.dataproviders | |
org.drools.core.base.mvel | |
org.drools.core.common | |
org.drools.core.event |
Events provide all sorts of call backs to monitor the engine as it is running.
|
org.drools.core.factmodel.traits | |
org.drools.core.impl | |
org.drools.core.management | |
org.drools.core.reteoo | |
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.builder.dialect.asm | |
org.drools.core.spi | |
org.drools.core.util.debug |
Modifier and Type | Interface and Description |
---|---|
interface |
StatefulSession
A stateful session represents a working memory which keeps state
between invocations (accumulating facts/knowledge).
|
Modifier and Type | Field and Description |
---|---|
protected WorkingMemory |
QueryResults.workingMemory |
Modifier and Type | Method and Description |
---|---|
WorkingMemory |
Agenda.getWorkingMemory()
Returns the WorkignMemory for this Agenda
|
Constructor and Description |
---|
QueryResult(QueryRowWithSubruleIndex row,
WorkingMemory workingMemory,
QueryResults queryResults) |
QueryResults(List<QueryRowWithSubruleIndex> results,
Map<String,Declaration>[] declarations,
WorkingMemory workingMemory,
Declaration[] parameters) |
Constructor and Description |
---|
ThreadedWorkingMemoryFileLogger(WorkingMemory workingMemory) |
WorkingMemoryConsoleLogger(WorkingMemory workingMemory) |
WorkingMemoryFileLogger(WorkingMemory workingMemory)
Creates a new WorkingMemoryFileLogger for the given working memory.
|
WorkingMemoryInMemoryLogger(WorkingMemory workingMemory) |
WorkingMemoryLogger(WorkingMemory workingMemory)
Creates a new working memory logger for the given working memory.
|
Modifier and Type | Method and Description |
---|---|
WorkingMemory |
DefaultKnowledgeHelper.getWorkingMemory() |
WorkingMemory |
JavaFactRegistryEntry.getWorkingMemory() |
WorkingMemory |
SequentialKnowledgeHelper.getWorkingMemory() |
Modifier and Type | Method and Description |
---|---|
GlobalResolver |
CopyIdentifiersGlobalExporter.export(WorkingMemory workingMemory) |
GlobalResolver |
ReferenceOriginalGlobalExporter.export(WorkingMemory workingMemory) |
int |
SalienceInteger.getValue(KnowledgeHelper khelper,
org.kie.api.definition.rule.Rule rule,
WorkingMemory workingMemory) |
boolean |
EnabledBoolean.getValue(Tuple tuple,
Declaration[] declrs,
Rule rule,
WorkingMemory workingMemory) |
void |
DefaultConsequenceExceptionHandler.handleException(Activation activation,
WorkingMemory workingMemory,
Exception exception) |
boolean |
DelegateJavaFactHandler.isRegistered(WorkingMemory workingMemory) |
KnowledgeHelper |
DefaultKnowledgeHelperFactory.newSequentialKnowledgeHelper(WorkingMemory wm) |
KnowledgeHelper |
KnowledgeHelperFactory.newSequentialKnowledgeHelper(WorkingMemory wm) |
KnowledgeHelper |
DefaultKnowledgeHelperFactory.newStatefulKnowledgeHelper(WorkingMemory wm) |
KnowledgeHelper |
KnowledgeHelperFactory.newStatefulKnowledgeHelper(WorkingMemory wm) |
boolean |
DelegateJavaFactHandler.register(WorkingMemory workingMemory) |
boolean |
DelegateJavaFactHandler.unregister(WorkingMemory workingMemory) |
Constructor and Description |
---|
DefaultKnowledgeHelper(Activation activation,
WorkingMemory workingMemory) |
DefaultKnowledgeHelper(WorkingMemory workingMemory) |
JavaFactRegistryEntry(WorkingMemory workingMemory,
FactHandle handle) |
SequentialKnowledgeHelper(WorkingMemory workingMemory) |
Modifier and Type | Method and Description |
---|---|
void |
JavaAccumulatorFunctionExecutor.accumulate(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory) |
void |
CollectAccumulator.accumulate(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory) |
void |
MVELAccumulatorFunctionExecutor.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 |
MVELAccumulatorFunctionExecutor.getResult(Object workingMemoryContext,
Object context,
Tuple leftTuple,
Declaration[] declarations,
WorkingMemory workingMemory) |
void |
JavaAccumulatorFunctionExecutor.init(Object workingMemoryContext,
Object context,
Tuple leftTuple,
Declaration[] declarations,
WorkingMemory workingMemory) |
void |
CollectAccumulator.init(Object workingMemoryContext,
Object context,
Tuple leftTuple,
Declaration[] declarations,
WorkingMemory workingMemory) |
void |
MVELAccumulatorFunctionExecutor.init(Object workingMemoryContext,
Object context,
Tuple leftTuple,
Declaration[] declarations,
WorkingMemory workingMemory) |
void |
JavaAccumulatorFunctionExecutor.reverse(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory) |
void |
CollectAccumulator.reverse(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory) |
void |
MVELAccumulatorFunctionExecutor.reverse(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory) |
Modifier and Type | Method and Description |
---|---|
Iterator |
MVELDataProvider.getResults(Tuple tuple,
WorkingMemory wm,
PropagationContext ctx,
Object executionContext) |
Modifier and Type | Method and Description |
---|---|
void |
MVELAccumulator.accumulate(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory) |
boolean |
MVELPredicateExpression.evaluate(InternalFactHandle handle,
Tuple tuple,
Declaration[] previousDeclarations,
Declaration[] requiredDeclarations,
WorkingMemory workingMemory,
Object context) |
FieldValue |
MVELReturnValueExpression.evaluate(InternalFactHandle handle,
Tuple tuple,
Declaration[] previousDeclarations,
Declaration[] requiredDeclarations,
WorkingMemory workingMemory,
Object ctx) |
void |
MVELConsequence.evaluate(KnowledgeHelper knowledgeHelper,
WorkingMemory workingMemory) |
boolean |
MVELEvalExpression.evaluate(Tuple tuple,
Declaration[] requiredDeclarations,
WorkingMemory workingMemory,
Object context) |
Object |
MVELAccumulator.getResult(Object workingMemoryContext,
Object context,
Tuple leftTuple,
Declaration[] declarations,
WorkingMemory workingMemory) |
int |
MVELSalienceExpression.getValue(KnowledgeHelper khelper,
org.kie.api.definition.rule.Rule rule,
WorkingMemory workingMemory) |
boolean |
MVELEnabledExpression.getValue(Tuple tuple,
Declaration[] declrs,
Rule rule,
WorkingMemory workingMemory) |
void |
MVELAccumulator.init(Object workingMemoryContext,
Object context,
Tuple leftTuple,
Declaration[] declarations,
WorkingMemory workingMemory) |
void |
MVELAccumulator.reverse(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory) |
Modifier and Type | Interface and Description |
---|---|
interface |
InternalWorkingMemory |
interface |
InternalWorkingMemoryActions |
Modifier and Type | Class and Description |
---|---|
class |
AbstractWorkingMemory
Implementation of
WorkingMemory . |
Modifier and Type | Method and Description |
---|---|
WorkingMemory |
DefaultAgenda.getWorkingMemory() |
Modifier and Type | Method and Description |
---|---|
WorkingMemory |
WorkingMemoryEvent.getWorkingMemory() |
Constructor and Description |
---|
ObjectInsertedEvent(WorkingMemory workingMemory,
PropagationContext propagationContext,
FactHandle handle,
Object object) |
ObjectRetractedEvent(WorkingMemory workingMemory,
PropagationContext propagationContext,
FactHandle handle,
Object oldObject) |
ObjectUpdatedEvent(WorkingMemory workingMemory,
PropagationContext propagationContext,
FactHandle handle,
Object oldObject,
Object object) |
WorkingMemoryEvent(WorkingMemory workingMemory,
PropagationContext propagationContext) |
Modifier and Type | Method and Description |
---|---|
Object |
TraitField.don(TraitType trait,
Object defaultValue,
TypeWrapper wrapper,
boolean logical,
WorkingMemory wm) |
void |
TypeCache.init(WorkingMemory wm) |
void |
TraitFieldTMSImpl.init(WorkingMemory wm) |
void |
TraitFieldTMS.init(WorkingMemory wm) |
Object |
TraitField.set(Object value,
TypeWrapper klass,
WorkingMemory wm) |
Object |
TraitField.shed(TraitType trait,
TypeWrapper rangeWrapper,
TypeWrapper asWrapper,
WorkingMemory workingMemory) |
Modifier and Type | Method and Description |
---|---|
void |
StatefulKnowledgeSessionImpl.AgendaEventListenerWrapper.activationCancelled(ActivationCancelledEvent event,
WorkingMemory workingMemory) |
void |
StatefulKnowledgeSessionImpl.AgendaEventListenerWrapper.activationCreated(ActivationCreatedEvent event,
WorkingMemory workingMemory) |
void |
StatefulKnowledgeSessionImpl.AgendaEventListenerWrapper.afterActivationFired(AfterActivationFiredEvent event,
WorkingMemory workingMemory) |
void |
StatefulKnowledgeSessionImpl.AgendaEventListenerWrapper.afterRuleFlowGroupActivated(RuleFlowGroupActivatedEvent event,
WorkingMemory workingMemory) |
void |
StatefulKnowledgeSessionImpl.AgendaEventListenerWrapper.afterRuleFlowGroupDeactivated(RuleFlowGroupDeactivatedEvent event,
WorkingMemory workingMemory) |
void |
StatefulKnowledgeSessionImpl.AgendaEventListenerWrapper.agendaGroupPopped(AgendaGroupPoppedEvent event,
WorkingMemory workingMemory) |
void |
StatefulKnowledgeSessionImpl.AgendaEventListenerWrapper.agendaGroupPushed(AgendaGroupPushedEvent event,
WorkingMemory workingMemory) |
void |
StatefulKnowledgeSessionImpl.AgendaEventListenerWrapper.beforeActivationFired(BeforeActivationFiredEvent event,
WorkingMemory workingMemory) |
void |
StatefulKnowledgeSessionImpl.AgendaEventListenerWrapper.beforeRuleFlowGroupActivated(RuleFlowGroupActivatedEvent event,
WorkingMemory workingMemory) |
void |
StatefulKnowledgeSessionImpl.AgendaEventListenerWrapper.beforeRuleFlowGroupDeactivated(RuleFlowGroupDeactivatedEvent event,
WorkingMemory workingMemory) |
Modifier and Type | Method and Description |
---|---|
void |
KieSessionMonitoringImpl.AgendaStats.activationCancelled(ActivationCancelledEvent event,
WorkingMemory workingMemory) |
void |
KieSessionMonitoringImpl.AgendaStats.activationCreated(ActivationCreatedEvent event,
WorkingMemory workingMemory) |
void |
KieSessionMonitoringImpl.AgendaStats.afterActivationFired(AfterActivationFiredEvent event,
WorkingMemory workingMemory) |
void |
KieSessionMonitoringImpl.AgendaStats.afterRuleFlowGroupActivated(RuleFlowGroupActivatedEvent event,
WorkingMemory workingMemory) |
void |
KieSessionMonitoringImpl.AgendaStats.afterRuleFlowGroupDeactivated(RuleFlowGroupDeactivatedEvent event,
WorkingMemory workingMemory) |
void |
KieSessionMonitoringImpl.AgendaStats.agendaGroupPopped(AgendaGroupPoppedEvent event,
WorkingMemory workingMemory) |
void |
KieSessionMonitoringImpl.AgendaStats.agendaGroupPushed(AgendaGroupPushedEvent event,
WorkingMemory workingMemory) |
void |
KieSessionMonitoringImpl.AgendaStats.beforeActivationFired(BeforeActivationFiredEvent event,
WorkingMemory workingMemory) |
void |
KieSessionMonitoringImpl.AgendaStats.beforeRuleFlowGroupActivated(RuleFlowGroupActivatedEvent event,
WorkingMemory workingMemory) |
void |
KieSessionMonitoringImpl.AgendaStats.beforeRuleFlowGroupDeactivated(RuleFlowGroupDeactivatedEvent event,
WorkingMemory workingMemory) |
Modifier and Type | Interface and Description |
---|---|
interface |
ReteooWorkingMemoryInterface
This is an interface for ReteooWorkingMemory implementations
|
Modifier and Type | Class and Description |
---|---|
class |
DisposedReteooWorkingMemory |
Modifier and Type | Method and Description |
---|---|
ConditionalBranchEvaluator.ConditionalExecution |
ConditionalBranchEvaluator.evaluate(Tuple tuple,
WorkingMemory workingMemory,
Object context) |
Modifier and Type | Method and Description |
---|---|
void |
Accumulate.accumulate(Object[] workingMemoryContext,
Object[] context,
Tuple leftTuple,
InternalFactHandle handle,
WorkingMemory workingMemory)
Executes the accumulate (action) code for the given fact handle
|
boolean |
PredicateConstraint.SafePredicateExpression.evaluate(InternalFactHandle handle,
Tuple tuple,
Declaration[] previousDeclarations,
Declaration[] localDeclarations,
WorkingMemory workingMemory,
Object context) |
void |
Rule.SafeConsequence.evaluate(KnowledgeHelper knowledgeHelper,
WorkingMemory workingMemory) |
boolean |
EvalCondition.SafeEvalExpression.evaluate(Tuple tuple,
Declaration[] requiredDeclarations,
WorkingMemory workingMemory,
Object context) |
Object[] |
Accumulate.getResult(Object[] workingMemoryContext,
Object[] context,
Tuple leftTuple,
WorkingMemory workingMemory)
Gets the result of the accumulation
|
int |
Rule.SafeSalience.getValue(KnowledgeHelper khelper,
org.kie.api.definition.rule.Rule rule,
WorkingMemory workingMemory) |
boolean |
Rule.SafeEnabled.getValue(Tuple tuple,
Declaration[] declrs,
Rule rule,
WorkingMemory workingMemory) |
void |
Accumulate.init(Object[] workingMemoryContext,
Object[] context,
Tuple leftTuple,
WorkingMemory workingMemory)
Executes the initialization block of code
|
boolean |
ReturnValueRestriction.isAllowed(InternalReadAccessor readAccessor,
InternalFactHandle handle,
Tuple tuple,
WorkingMemory workingMemory,
ContextEntry context) |
boolean |
EvalCondition.isAllowed(Tuple tuple,
WorkingMemory workingMemory,
Object context) |
boolean |
Rule.isEffective(Tuple tuple,
RuleTerminalNode rtn,
WorkingMemory workingMemory)
This returns true is the rule is effective.
|
boolean |
Rule.isEnabled(Tuple tuple,
RuleTerminalNode rtn,
WorkingMemory workingMemory) |
void |
Accumulate.reverse(Object[] workingMemoryContext,
Object[] context,
Tuple leftTuple,
InternalFactHandle handle,
WorkingMemory workingMemory)
Executes the reverse (action) code for the given fact handle
|
Modifier and Type | Method and Description |
---|---|
static void |
ConsequenceGenerator.generate(ConsequenceStub stub,
KnowledgeHelper knowledgeHelper,
WorkingMemory workingMemory) |
static void |
EvalGenerator.generate(EvalStub stub,
Tuple tuple,
Declaration[] declarations,
WorkingMemory workingMemory) |
static void |
PredicateGenerator.generate(PredicateStub stub,
Tuple tuple,
Declaration[] previousDeclarations,
Declaration[] localDeclarations,
WorkingMemory workingMemory) |
static void |
ReturnValueGenerator.generate(ReturnValueStub stub,
Tuple tuple,
Declaration[] previousDeclarations,
Declaration[] localDeclarations,
WorkingMemory workingMemory) |
Modifier and Type | Method and Description |
---|---|
WorkingMemory |
KnowledgeHelper.getWorkingMemory() |
Modifier and Type | Method and Description |
---|---|
void |
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
|
void |
Accumulator.SafeAccumulator.accumulate(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory) |
boolean |
PredicateExpression.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) |
void |
Consequence.evaluate(KnowledgeHelper knowledgeHelper,
WorkingMemory workingMemory)
Execute the consequence for the supplied matching
Tuple . |
boolean |
EvalExpression.evaluate(Tuple tuple,
Declaration[] requiredDeclarations,
WorkingMemory workingMemory,
Object context) |
GlobalResolver |
GlobalExporter.export(WorkingMemory workingMemory)
This method is called internally by the StatelessSession, which will provide the WorkingMemory.
|
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) |
Iterator |
DataProvider.getResults(Tuple tuple,
WorkingMemory wm,
PropagationContext ctx,
Object providerContext) |
int |
Salience.getValue(KnowledgeHelper khelper,
org.kie.api.definition.rule.Rule rule,
WorkingMemory workingMemory) |
boolean |
Enabled.getValue(Tuple tuple,
Declaration[] declrs,
Rule rule,
WorkingMemory workingMemory) |
void |
ConsequenceExceptionHandler.handleException(Activation activation,
WorkingMemory workingMemory,
Exception exception) |
void |
AsyncExceptionHandler.handleException(WorkingMemory workingMemory,
ConsequenceException exception) |
void |
Accumulator.init(Object workingMemoryContext,
Object context,
Tuple leftTuple,
Declaration[] declarations,
WorkingMemory workingMemory)
Executes the initialization block of code
|
void |
Accumulator.SafeAccumulator.init(Object workingMemoryContext,
Object context,
Tuple leftTuple,
Declaration[] declarations,
WorkingMemory workingMemory) |
boolean |
JavaFact.isRegistered(WorkingMemory workingMemory) |
boolean |
JavaFact.register(WorkingMemory workingMemory) |
void |
Accumulator.reverse(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory)
Reverses the accumulate action for the given fact handle
|
void |
Accumulator.SafeAccumulator.reverse(Object workingMemoryContext,
Object context,
Tuple leftTuple,
InternalFactHandle handle,
Declaration[] declarations,
Declaration[] innerDeclarations,
WorkingMemory workingMemory) |
boolean |
JavaFact.unregister(WorkingMemory workingMemory) |
Constructor and Description |
---|
SessionInspector(WorkingMemory session) |
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.