public interface StatelessSession extends WorkingMemoryEventManager
Modifier and Type | Method and Description |
---|---|
void |
execute(Collection collection)
Insert a List of facts, an fire the rules, returning when finished.
|
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.
|
StatelessSessionResult |
executeWithResults(Collection collection)
Similar to the normal execute method, but this will return
"results".
|
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".
|
void |
setAgendaFilter(AgendaFilter agendaFilter) |
void |
setGlobal(String identifer,
Object value)
Sets a global value
|
void |
setGlobalExporter(GlobalExporter globalExporter)
Used to specify a global exporting strategy
so that global variables can be available to StatelessSessionResults.
|
void |
setGlobalResolver(GlobalResolver globalResolver)
Delegate used to resolve any global names not found in the global map.
|
addEventListener, addEventListener, getAgendaEventListeners, getWorkingMemoryEventListeners, removeEventListener, removeEventListener
addEventListener, getRuleBaseEventListeners, removeEventListener
void setAgendaFilter(AgendaFilter agendaFilter)
void setGlobalResolver(GlobalResolver globalResolver)
globalResolver
- void setGlobal(String identifer, Object value)
identifer
- value
- void setGlobalExporter(GlobalExporter globalExporter)
globalExporter
- The GlobalExporter instancevoid execute(Object object)
void execute(Object[] array)
void execute(Collection collection)
StatelessSessionResult executeWithResults(Object object)
StatelessSessionResult executeWithResults(Object[] array)
StatelessSessionResult executeWithResults(Collection collection)
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.