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)
Engineexecute in interface EngineselectionCriteria - 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
Terms, 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)
Engineexecute in interface EngineselectionCriteria - 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 - SelectionCriteriafacts - executionOptions - ExecutionOptionsExecutionEnvironment created with the given parametersprotected Context selectContext(SelectionCriteria selectionCriteria, Map<Term,Object> facts, ExecutionOptions executionOptions)
selectionCriteria - facts - executionOptions - ContextIllegalStateException - if the contextProvider is null;loadContextpublic void setContextProvider(ContextProvider contextProvider)
ContextProvidercontextProvider - to loadContext from.Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.