public interface RuleActionContext
| Modifier and Type | Method and Description |
|---|---|
CartRAO |
getCartRao()
Get cart RAO
|
Object |
getDelegate()
Returns a rule engine specific context object.
|
String |
getMetaData(String key)
Returns the rule's meta-data for the given key (or
null). |
RuleEngineResultRAO |
getRuleEngineResultRao()
Get rule engine result RAO
|
Map<String,Object> |
getRuleMetadata()
get rule metadata
|
String |
getRuleName()
Get the name of the rule
|
<T> T |
getValue(Class<T> type)
Returns the value for a specific type from the default variables container.
|
<T> T |
getValue(Class<T> type,
String... path)
Returns the value for a specific type and variables container.
|
<T> Set<T> |
getValues(Class<T> type)
Returns the values for a specific type from the default variables container.
|
<T> Set<T> |
getValues(Class<T> type,
String... path)
Returns the values for a specific type and variables container.
|
void |
insertFacts(Collection facts)
Insert the facts in a collection to a context
|
void |
insertFacts(Object... facts)
Insert the facts in an array to a context
|
void |
updateFacts(Object... facts)
Update the facts in a context
|
String getMetaData(String key)
null). Calls toString() on the meta-data
object.key - <T> T getValue(Class<T> type)
type - - the type<T> Set<T> getValues(Class<T> type)
type - - the type<T> T getValue(Class<T> type, String... path)
type - - the typepath - - the path for the variables container<T> Set<T> getValues(Class<T> type, String... path)
type - - the typepath - - the path for the variables containervoid insertFacts(Object... facts)
facts - - the array of factsvoid insertFacts(Collection facts)
facts - - the collection of factsvoid updateFacts(Object... facts)
facts - - the array of factsCartRAO getCartRao()
RuleEngineResultRAO getRuleEngineResultRao()
String getRuleName()
Object getDelegate()
Copyright © 2017 SAP SE. All Rights Reserved.