| org.drools.StatelessSession
All known Subclasses: org.drools.reteoo.ReteooStatelessSession,
StatelessSession | public interface StatelessSession extends EventManager(Code) | | This represents a working memory session where state is not kept between
invocations.
This is typically used for "decision services" where the rules are
provided all the data in one hit, and a conclusion reached by the engine.
(there is no accumulation of facts/knowledge - each invocation is on a fresh session).
Care should be used when using the async versions of the methods, consult the javadoc for
the specific information.
|
Method Summary | |
void | asyncExecute(Object object) This will assert the object in the background. | void | asyncExecute(Object[] array) This will assert the object array (as SEPARATE facts) in the background. | void | asyncExecute(Collection collection) This will assert the object List (as SEPARATE facts) in the background. | void | execute(Object object) Insert a single fact, an fire the rules, returning when finished. | void | execute(Object[] array) Insert an array of facts, an fire the rules, returning when finished. | void | execute(Collection collection) Insert a List of facts, an fire the rules, returning when finished. | StatelessSessionResult | executeWithResults(Object object) Similar to the normal execute method, but this will return
"results". | StatelessSessionResult | executeWithResults(Object[] array) Similar to the normal execute method, but this will return
"results". | StatelessSessionResult | executeWithResults(Collection collection) Similar to the normal execute method, but this will return
"results". | void | setAgendaFilter(AgendaFilter agendaFilter) | void | setGlobal(String identifer, Object value) | void | setGlobalResolver(GlobalResolver globalResolver) Delegate used to resolve any global names not found in the global map. |
asyncExecute | void asyncExecute(Object object)(Code) | | This will assert the object in the background. This is
"send and forget" execution.
|
asyncExecute | void asyncExecute(Object[] array)(Code) | | This will assert the object array (as SEPARATE facts) in the background. This is
"send and forget" execution.
|
asyncExecute | void asyncExecute(Collection collection)(Code) | | This will assert the object List (as SEPARATE facts) in the background. This is
"send and forget" execution.
|
execute | void execute(Object object)(Code) | | Insert a single fact, an fire the rules, returning when finished.
|
execute | void execute(Object[] array)(Code) | | Insert an array of facts, an fire the rules, returning when finished.
This will assert the list of facts as SEPARATE facts to the engine
(NOT an array).
|
execute | void execute(Collection collection)(Code) | | Insert a List of facts, an fire the rules, returning when finished.
This will assert the list of facts as SEPARATE facts to the engine
(NOT as a List).
|
setGlobalResolver | void setGlobalResolver(GlobalResolver globalResolver)(Code) | | Delegate used to resolve any global names not found in the global map.
Parameters: globalResolver - |
|
|