public class ProviderBasedEngine extends Object implements Engine
Engine
Constructor and Description |
---|
ProviderBasedEngine() |
Modifier and Type | Method and Description |
---|---|
protected ExecutionEnvironment |
establishExecutionEnvironment(SelectionCriteria selectionCriteria,
Map<Term,Object> facts,
ExecutionOptions executionOptions)
Return a
BasicExecutionEnvironment using the given parameters |
EngineResults |
execute(SelectionCriteria selectionCriteria,
Facts facts,
ExecutionOptions executionOptions)
Initiates execution of the rules engine.
|
EngineResults |
execute(SelectionCriteria selectionCriteria,
Map<String,Object> facts,
ExecutionOptions executionOptions)
Initiates execution of the rules engine.
|
protected Context |
selectContext(SelectionCriteria selectionCriteria,
Map<Term,Object> facts,
ExecutionOptions executionOptions)
Load a Context from the contextProvider using the given parameters
|
void |
setContextProvider(ContextProvider contextProvider)
Set the
ContextProvider |
public ProviderBasedEngine()
public EngineResults execute(SelectionCriteria selectionCriteria, Map<String,Object> facts, ExecutionOptions executionOptions)
Engine
execute
in interface Engine
selectionCriteria
- informs the engine of the SelectionCriteria
to use for selection of contexts and agendasfacts
- the facts that the rule engine can use during execution. Since this signature does not pass in
Term
s, all terms are defined with only a name, and term parameters can not be specified.executionOptions
- defines various ExecutionOptions
that instruct the rules engine on how to perform it's executionpublic EngineResults execute(SelectionCriteria selectionCriteria, Facts facts, ExecutionOptions executionOptions)
Engine
execute
in interface Engine
selectionCriteria
- informs the engine of the SelectionCriteria
to use for selection of contexts and agendasfacts
- the facts that the rule engine can use during executionexecutionOptions
- defines various ExecutionOptions
that instruct the rules engine on how to perform it's executionEngineResults
the results of engine executionprotected ExecutionEnvironment establishExecutionEnvironment(SelectionCriteria selectionCriteria, Map<Term,Object> facts, ExecutionOptions executionOptions)
BasicExecutionEnvironment
using the given parametersselectionCriteria
- SelectionCriteria
facts
- executionOptions
- ExecutionOptions
ExecutionEnvironment
created with the given parametersprotected Context selectContext(SelectionCriteria selectionCriteria, Map<Term,Object> facts, ExecutionOptions executionOptions)
selectionCriteria
- facts
- executionOptions
- Context
IllegalStateException
- if the contextProvider is null;loadContext
public void setContextProvider(ContextProvider contextProvider)
ContextProvider
contextProvider
- to loadContext from.Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.