public interface ExecutionEnvironment
EngineResults
or tracking engine activity and returning values back to
the client of the rules engine.Modifier and Type | Method and Description |
---|---|
void |
addTermResolver(TermResolver<?> termResolver)
Add a
TermResolver |
EngineResults |
getEngineResults()
Return the
EngineResults |
ExecutionOptions |
getExecutionOptions()
Return the
ExecutionOptions |
Map<Term,Object> |
getFacts()
Returns an immutable Map of facts available within this environment.
|
SelectionCriteria |
getSelectionCriteria()
Returns the selection criteria that was used to initialize the environment.
|
Set<Term> |
getTermsForCaller(Object caller)
Return a set of Term for the given value
|
boolean |
publishFact(Term factName,
Object factValue)
Publishes a new fact
|
<T> T |
resolveTerm(Term term,
Object caller)
Resolve
|
SelectionCriteria getSelectionCriteria()
Map<Term,Object> getFacts()
boolean publishFact(Term factName, Object factValue)
factName
- name of the fact to publishfactValue
- value of the fact to publish
// TODO: we don't support updating facts, refactor this methodvoid addTermResolver(TermResolver<?> termResolver)
TermResolver
termResolver
- <T> T resolveTerm(Term term, Object caller) throws TermResolutionException
term
- Term
caller
- {@link
- TermResolutionException}TermResolutionException
Set<Term> getTermsForCaller(Object caller)
caller
- ExecutionOptions getExecutionOptions()
ExecutionOptions
ExecutionOptions
EngineResults getEngineResults()
EngineResults
EngineResults
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.