Class ProviderBasedEngine
java.lang.Object
org.kuali.rice.krms.framework.engine.ProviderBasedEngine
- All Implemented Interfaces:
Engine
An implementation of
Engine- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ExecutionEnvironmentestablishExecutionEnvironment(SelectionCriteria selectionCriteria, Map<Term, Object> facts, ExecutionOptions executionOptions) Return aBasicExecutionEnvironmentusing the given parametersexecute(SelectionCriteria selectionCriteria, Map<String, Object> facts, ExecutionOptions executionOptions) execute(SelectionCriteria selectionCriteria, Facts facts, ExecutionOptions executionOptions) protected ContextselectContext(SelectionCriteria selectionCriteria, Map<Term, Object> facts, ExecutionOptions executionOptions) Load a Context from the contextProvider using the given parametersvoidsetContextProvider(ContextProvider contextProvider) Set theContextProvider
-
Constructor Details
-
ProviderBasedEngine
public ProviderBasedEngine()
-
-
Method Details
-
execute
public EngineResults execute(SelectionCriteria selectionCriteria, Map<String, Object> facts, ExecutionOptions executionOptions) -
execute
public EngineResults execute(SelectionCriteria selectionCriteria, Facts facts, ExecutionOptions executionOptions) -
establishExecutionEnvironment
protected ExecutionEnvironment establishExecutionEnvironment(SelectionCriteria selectionCriteria, Map<Term, Object> facts, ExecutionOptions executionOptions) Return aBasicExecutionEnvironmentusing the given parameters- Parameters:
selectionCriteria-SelectionCriteriafacts-executionOptions-ExecutionOptions- Returns:
ExecutionEnvironmentcreated with the given parameters
-
selectContext
protected Context selectContext(SelectionCriteria selectionCriteria, Map<Term, Object> facts, ExecutionOptions executionOptions) Load a Context from the contextProvider using the given parameters- Parameters:
selectionCriteria-facts-executionOptions-- Returns:
Context- Throws:
IllegalStateException- if the contextProvider is null;- See Also:
-
setContextProvider
Set theContextProvider- Parameters:
contextProvider- to loadContext from.
-