public class DefaultRuleActionService extends Object implements RuleActionService
RuleActionService| Constructor and Description |
|---|
DefaultRuleActionService() |
| Modifier and Type | Method and Description |
|---|---|
List<ItemModel> |
applyAllActions(RuleEngineResultRAO ruleEngineResultRAO)
Takes a RuleEngineResultRAO as argument and gets list of it Actions, then for each Action applies corresponding
RuleActionStrategy specified by it strategy field.
|
Map<String,RuleActionStrategy> |
getActionStrategiesMapping() |
protected RuleActionStrategy |
getRuleActionStrategy(String strategyKey)
returns the
RuleActionStrategy defined in the actionStrategiesMapping attribute of this service by
looking up it's hey. |
void |
setActionStrategiesMapping(Map<String,RuleActionStrategy> actionStrategiesMapping) |
public List<ItemModel> applyAllActions(RuleEngineResultRAO ruleEngineResultRAO)
applyAllActions in interface RuleActionServiceruleEngineResultRAO - contains ActionsItemModel (or it subclasses) as a result of the Actions application.protected RuleActionStrategy getRuleActionStrategy(String strategyKey)
RuleActionStrategy defined in the actionStrategiesMapping attribute of this service by
looking up it's hey.strategyKey - the key of the RuleActionStrategy to look upIllegalArgumentException - if the requested strategy cannot be foundIllegalStateException - if this method is called but no strategies are configuredpublic Map<String,RuleActionStrategy> getActionStrategiesMapping()
public void setActionStrategiesMapping(Map<String,RuleActionStrategy> actionStrategiesMapping)
Copyright © 2017 SAP SE. All Rights Reserved.