public interface StatefulRuleSession
| Modifier and Type | Method and Description |
|---|---|
void |
addGlobal(String id,
Object value)
Adds one global value.
|
String |
addObject(Object bean)
Adds one bean to the session.
|
void |
executeRules()
Executes all the rules over the session.
|
Object |
getGlobal(String id)
Returns the value of the global according the identifier provided.
|
Map<String,Object> |
getGlobals()
Returns all the globals.
|
Object |
getObject(String id)
Returns the bean according its identifier.
|
Map<String,Object> |
getObjects()
Returns all the objects.
|
void |
release()
Releases this stateful rule session.
|
void |
removeObject(String id)
Removes the bean according the identifier provided
|
void |
reset()
Clean every bean object stored in the session.
|
void |
updateObject(String id,
Object bean)
Replaces the bean with the identifier provided with the new bean given.
|
void release()
void executeRules()
Object getGlobal(String id)
id - Map<String,Object> getGlobals()
id - String addObject(Object bean)
bean - Object getObject(String id)
id - void removeObject(String id)
id - void updateObject(String id, Object bean)
id - bean - void reset()
Copyright © 2017–2020 NTT DATA Corporation. All rights reserved.