RAOAction hierarchy instead@Deprecated public abstract class AbstractDroolsRuleAction extends Object implements RuleAction
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
LOG
Deprecated.
|
| Constructor and Description |
|---|
AbstractDroolsRuleAction()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected KnowledgeHelper |
checkAndGetRuleContext(Object ruleContext)
Deprecated.
Checks that the given
ruleContext is of type KnowledgeHelper (i.e. |
protected ConfigurationService |
getConfigurationService()
Deprecated.
|
protected Map<String,String> |
getMetaDataFromRule(Rule rule)
Deprecated.
|
protected String |
getMetaDataFromRule(Rule rule,
String key)
Deprecated.
Returns the rule's meta-data for the given key (or
null). |
protected String |
getRuleCode(KnowledgeHelper context)
Deprecated.
Returns the rule's rule code meta data.
|
void |
insertFacts(Object engineContext,
Collection facts)
Deprecated.
Inserts the facts given in collection using the given context.
|
void |
insertFacts(Object engineContext,
Object... facts)
Deprecated.
Inserts the given facts using the given context.
|
void |
setConfigurationService(ConfigurationService configurationService)
Deprecated.
|
void |
updateFacts(Object engineContext,
Object... facts)
Deprecated.
Updates the given facts using the given context.
|
protected void |
validateRule(KnowledgeHelper context)
Deprecated.
Validates that the required meta-data is available.
|
public void insertFacts(Object engineContext, Object... facts)
RuleActioninsertFacts in interface RuleActionengineContext - the contextfacts - the facts to insertpublic void insertFacts(Object engineContext, Collection facts)
RuleActioninsertFacts in interface RuleActionengineContext - the contextfacts - the Collection of facts to insertpublic void updateFacts(Object engineContext, Object... facts)
RuleActionupdateFacts in interface RuleActionengineContext - the contextfacts - the facts to updateprotected KnowledgeHelper checkAndGetRuleContext(Object ruleContext)
ruleContext is of type KnowledgeHelper (i.e. drools-specific)ruleContext - the object to checkKnowledgeHelperprotected void validateRule(KnowledgeHelper context)
droolsruleengineservices.validate.droolsrule.rulecode to false.context - protected String getRuleCode(KnowledgeHelper context)
context - the contextprotected String getMetaDataFromRule(Rule rule, String key)
null). Calls toString() on the meta-data
object.rule - the rulekey - the key of the meta-datapublic void setConfigurationService(ConfigurationService configurationService)
protected ConfigurationService getConfigurationService()
Copyright © 2017 SAP SE. All Rights Reserved.