|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StatelessSessionResult
StatelessSessionResults allow inspection of session after it has executed. Querries can still be executed, unless you serialise at which point the WorkingMemory and RuleBase it references to execute thosa querries are lost due to being transient. Globals must be explicitely imported into the StatelessSessionResult to be accessible, otherwise getGlobal and getGlobalResolver return null.
Method Summary | |
---|---|
Object |
getGlobal(String identifier)
Retrieves the global value for the given identifier, note that globals must be exported from the StatelessSession to be accessible. |
GlobalResolver |
getGlobalResolver()
The GlobalResolver returned from the GlobalExporter by the StatelessSessoin |
QueryResults |
getQueryResults(String query)
Retrieve the QueryResults of the specified query. |
QueryResults |
getQueryResults(String query,
Object[] arguments)
Allows for parameters to be passed to a query. |
Iterator |
iterateObjects()
Iterator all Objects inserted into the StatelessSession. |
Iterator |
iterateObjects(org.drools.runtime.ObjectFilter filter)
Iterate only those objects that match the provided ObjectFilter. |
Method Detail |
---|
Iterator iterateObjects()
Iterator iterateObjects(org.drools.runtime.ObjectFilter filter)
filter
- The ObjectFilter instance.
QueryResults getQueryResults(String query)
query
- The name of the query.
IllegalArgumentException.
- if no query named "query" is found in the rulebase.QueryResults getQueryResults(String query, Object[] arguments)
query
- The name of the query.arguments
- The Object[] of arguments to pass to the query's parameters.
Object getGlobal(String identifier)
identifier
- The global identifier.
GlobalResolver getGlobalResolver()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |