| Modifier and Type | Method and Description |
|---|---|
protected void |
RuleAddCouponRAOAction.addCoupon(RuleActionContext context,
java.lang.String couponId) |
boolean |
RuleAddCouponRAOAction.performActionInternal(RuleActionContext context) |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultDroolsRuleActionContext
Default implementation of
RuleActionContext for the drools rule engine. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
QualifyingCategoryPotentialPromotionMessageActionSupplementStrategy.isActionProperToHandle(AbstractRuleActionRAO actionRao,
RuleActionContext context) |
boolean |
QualifyingProductPotentialPromotionMessageActionSupplementStrategy.isActionProperToHandle(AbstractRuleActionRAO actionRao,
RuleActionContext context) |
boolean |
CartTotalThresholdPotentialPromotionMessageActionSupplementStrategy.isActionProperToHandle(AbstractRuleActionRAO actionRao,
RuleActionContext context) |
void |
QualifyingCategoryPotentialPromotionMessageActionSupplementStrategy.postProcessAction(AbstractRuleActionRAO actionRao,
RuleActionContext context) |
void |
QualifyingProductPotentialPromotionMessageActionSupplementStrategy.postProcessAction(AbstractRuleActionRAO actionRao,
RuleActionContext context) |
void |
CartTotalThresholdPotentialPromotionMessageActionSupplementStrategy.postProcessAction(AbstractRuleActionRAO actionRao,
RuleActionContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractRAOActionAware.executeAction(RuleActionContext context,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Execute abstract action.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RuleExecutableAction.executeAction(RuleActionContext context,
java.util.Map<java.lang.String,java.lang.Object> parameters)
execute rule consequence
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractRuleExecutableSupport.addMetadataToRao(AbstractRuleActionRAO rao,
RuleActionContext context) |
protected boolean |
AbstractRuleExecutableSupport.allowedByRuntimeConfiguration(RuleActionContext context)
query method to allow for rule execution by
RuleConfigurationRRD |
protected KnowledgeHelper |
AbstractRuleExecutableSupport.checkAndGetRuleContext(RuleActionContext context)
Checks that the given
ruleContext is of type KnowledgeHelper (i.e. |
protected <T extends AbstractRuleActionRAO> |
AbstractRuleExecutableSupport.consumeOrderEntries(RuleActionContext context,
java.util.Collection<EntriesSelectionStrategyRPD> strategies,
T actionRAO)
Creates new
OrderEntryConusmedRAOs for the given strategies, links them to the given actionRAO and
reduces available quantity of order entry by given quantity for every Order Entry from the set and using quantity
from discountedOrderEntryMap. |
protected java.util.List<EntriesSelectionStrategyRPD> |
AbstractRulePartnerProductAction.createSelectionStrategyRPDsQualifyingProducts(RuleActionContext context,
OrderEntrySelectionStrategy selectionStrategy,
java.util.Map<java.lang.String,java.lang.Integer> qualifyingProductsContainers) |
protected java.util.List<EntriesSelectionStrategyRPD> |
AbstractRulePartnerProductAction.createSelectionStrategyRPDsTargetProducts(RuleActionContext context,
OrderEntrySelectionStrategy selectionStrategy,
java.util.Map<java.lang.String,java.lang.Integer> targetProductsContainers) |
protected java.util.Optional<java.math.BigDecimal> |
AbstractRuleExecutableSupport.extractAmountForCurrency(RuleActionContext context,
java.lang.Object currencyAmount) |
protected <T> java.util.Optional<T> |
AbstractRuleExecutableSupport.extractFact(RuleActionContext context,
java.util.function.Predicate<java.lang.Object> objectFilter)
Deprecated.
since 6.6. Non type-safe implementation
|
protected java.util.Map<java.lang.String,java.lang.String> |
AbstractRuleExecutableSupport.getMetaDataFromRule(RuleActionContext context) |
protected java.lang.String |
AbstractRuleExecutableSupport.getMetaDataFromRule(RuleActionContext context,
java.lang.String key)
Returns the rule's meta-data for the given key (or
null). |
protected java.util.Set<OrderEntryRAO> |
AbstractRulePartnerProductAction.getOrderEntries(RuleActionContext context,
java.util.Map.Entry<java.lang.String,java.lang.Integer> entry) |
protected java.lang.String |
AbstractRuleExecutableSupport.getRuleCode(RuleActionContext context)
Returns the rule's rule code meta data.
|
protected RuleConfigurationRRD |
AbstractRuleExecutableSupport.getRuleConfigurationRRD(java.lang.String ruleCode,
RuleActionContext context)
retrieves the RuleConfigurationRRD for the given ruleCode from the given context.
|
protected RuleGroupExecutionRRD |
AbstractRuleExecutableSupport.getRuleGroupExecutionRRD(java.lang.String ruleGroupCode,
RuleActionContext context)
retrieves the RuleGroupExecutionRRD for the given ruleGroupCode from the given context.
|
protected java.util.Map<java.lang.Integer,java.lang.Integer> |
AbstractRuleExecutableSupport.getSelectedOrderEntryQuantities(RuleActionContext context,
java.util.Collection<EntriesSelectionStrategyRPD> strategies)
Gets Order Entry identifiers (orderEntry.entryNumber) and Unit Quantity To Be Consumed for the Order Entries.
|
protected boolean |
AbstractRuleExecutableSupport.hasEnoughQuantity(RuleActionContext context,
java.util.Collection<EntriesSelectionStrategyRPD> selectionStrategyRPDs)
Checks if all
entriesSelectionStrategyRPDs have enough quantity. |
boolean |
ActionSupplementStrategy.isActionProperToHandle(AbstractRuleActionRAO actionRao,
RuleActionContext context)
Checks if the action result is proper to be processed by the strategy
|
protected <T> java.util.Optional<T> |
AbstractRuleExecutableSupport.lookupRAOByType(java.lang.Class<T> raoType,
RuleActionContext context,
java.util.function.Predicate<T>... raoFilters) |
protected <T> java.util.List<T> |
AbstractRuleExecutableSupport.lookupRAOObjectsByType(java.lang.Class<T> raoType,
RuleActionContext context,
java.util.function.Predicate<T>... raoFilters) |
protected boolean |
AbstractRuleExecutableSupport.mergeDiscounts(RuleActionContext context,
DiscountRAO discountRao,
OrderEntryRAO entry) |
void |
AbstractRuleExecutableSupport.performAction(RuleActionContext context) |
void |
RAOAction.performAction(RuleActionContext context)
perform action on RAO objects
|
void |
AbstractRuleExecutableSupport.performAction(RuleActionContext context,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Deprecated.
since 6.6 Use the method w/o 'parameters' argument instead.
RuleActionContext should
encapsulate this information. |
void |
RAOAction.performAction(RuleActionContext context,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Deprecated.
since 6.6 Use the method w/o 'parameters' argument instead.
RuleActionContext should
encapsulate this information. |
protected boolean |
AbstractRuleExecutableSupport.performActionInternal(RuleActionContext context)
template method called inside of
AbstractRuleExecutableSupport.performAction(RuleActionContext, Map) |
protected void |
AbstractRuleExecutableSupport.postProcessAction(AbstractRuleActionRAO actionRao,
RuleActionContext context) |
void |
ActionSupplementStrategy.postProcessAction(AbstractRuleActionRAO actionRao,
RuleActionContext context)
Post process of
AbstractRuleActionRAO. |
void |
AbstractRuleExecutableSupport.setRAOMetaData(RuleActionContext context,
AbstractRuleActionRAO... raos) |
protected void |
AbstractRuleExecutableSupport.trackActionExecution(RuleActionContext context) |
protected void |
AbstractRuleExecutableSupport.trackConsumedProducts(RuleActionContext context) |
protected void |
AbstractRuleExecutableSupport.trackRuleExecution(RuleActionContext context)
Deprecated.
since 18.08 no longer used
|
protected void |
AbstractRuleExecutableSupport.trackRuleGroupCode(java.lang.String ruleGroupCode,
RuleActionContext context,
RuleConfigurationRRD config)
Deprecated.
since 18.08 no longer used
|
protected void |
AbstractRuleExecutableSupport.trackRuleGroupExecutions(RuleActionContext context)
Deprecated.
since 18.08 no longer used
|
protected void |
AbstractRuleExecutableSupport.updateOrderConsumedQuantity(OrderConsumedRAO orderConsumedRAO,
RuleActionContext context)
Deprecated.
since 6.7
|
protected void |
AbstractRuleExecutableSupport.validateRule(RuleActionContext context)
Validates that the required meta-data is available.
|
protected void |
AbstractRuleExecutableSupport.validateSelectionStrategy(java.util.Collection<EntriesSelectionStrategyRPD> strategies,
RuleActionContext context)
Validates
entriesSelectionStrategyRPDs checking if the collection is not empty, if orderEntries list of
each entry of entriesSelectionStrategyRPDs is not empty and all the orderEntries are from the same Order. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
RuleOrderEntryFixedPriceRAOAction.addDiscount(RuleActionContext context,
OrderEntryRAO orderEntryRao,
DiscountRAO discount) |
protected void |
RuleOrderEntryFixedPriceRAOAction.addDiscount(RuleActionContext context,
OrderEntryRAO orderEntryRao,
int quantity,
DiscountRAO discount) |
protected java.util.List<DiscountRAO> |
RulePartnerOrderEntryPercentageDiscountRAOAction.addDiscountAndConsume(RuleActionContext context,
java.util.List<EntriesSelectionStrategyRPD> selectionStrategies,
boolean absolute,
java.math.BigDecimal price) |
protected java.util.List<DiscountRAO> |
RuleOrderEntryPercentageDiscountWithStrategyRAOAction.addDiscountAndConsume(RuleActionContext context,
java.util.List<EntriesSelectionStrategyRPD> selectionStrategies,
boolean absolute,
java.math.BigDecimal price)
Deprecated.
|
protected java.util.List<DiscountRAO> |
RulePartnerOrderEntryFixedDiscountRAOAction.addDiscountAndConsume(RuleActionContext context,
java.util.List<EntriesSelectionStrategyRPD> selectionStrategies,
boolean absolute,
java.math.BigDecimal price,
RuleEngineResultRAO result) |
protected java.util.List<DiscountRAO> |
RulePartnerOrderEntryFixedPriceRAOAction.addFixedPriceEntryDiscount(java.util.List<EntriesSelectionStrategyRPD> selectionStrategies,
java.math.BigDecimal fixedPrice,
RuleActionContext context) |
protected java.util.List<DiscountRAO> |
RuleAddFreeProductDiscountRAOAction.addFreeOrderEntryLevelDiscount(java.util.Collection<EntriesSelectionStrategyRPD> strategies,
int consumeableQty,
RuleActionContext context)
Deprecated.
|
protected boolean |
RuleHaltRAOAction.allowedByRuntimeConfiguration(RuleActionContext context) |
void |
RuleChangeDeliveryModeRAOAction.changeDeliveryMode(CartRAO cartRao,
DeliveryModeRAO mode,
RuleEngineResultRAO result,
RuleActionContext context) |
protected java.util.Optional<ProductModel> |
RuleFreeGiftToBundleRAOAction.findProduct(java.lang.String productCode,
RuleActionContext context)
Deprecated.
|
protected ProductModel |
RuleFreeGiftRAOAction.findProduct(java.lang.String productCode,
RuleActionContext context) |
protected void |
RuleAddProductPercentageDiscountRAOAction.performAction(RuleActionContext context,
java.math.BigDecimal amount)
Deprecated.
|
protected boolean |
RuleOrderPercentageDiscountRAOAction.performAction(RuleActionContext context,
java.math.BigDecimal amount) |
protected boolean |
RuleOrderFixedDiscountRAOAction.performAction(RuleActionContext context,
java.math.BigDecimal amount) |
protected void |
RuleAddFreeProductDiscountRAOAction.performAction(RuleActionContext context,
java.util.Collection<EntriesSelectionStrategyRPD> strategies,
int quantity,
int consumed)
Deprecated.
|
protected boolean |
RulePartnerOrderEntryPercentageDiscountRAOAction.performAction(RuleActionContext context,
java.util.List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDs,
java.math.BigDecimal amount) |
protected boolean |
RuleTargetBundlePriceRAOAction.performAction(RuleActionContext context,
java.util.List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDs,
java.math.BigDecimal amount) |
protected boolean |
RuleOrderEntryPercentageDiscountWithStrategyRAOAction.performAction(RuleActionContext context,
java.util.List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDs,
java.math.BigDecimal amount)
Deprecated.
|
boolean |
RulePartnerOrderEntryFixedPriceRAOAction.performAction(RuleActionContext context,
java.util.List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDs,
java.math.BigDecimal amount) |
protected boolean |
RuleOrderEntryGroupFixedDiscountRAOAction.performAction(RuleActionContext context,
java.util.List<EntriesSelectionStrategyRPD> strategies,
java.math.BigDecimal targetPrice)
Deprecated.
|
protected boolean |
RulePartnerOrderEntryFixedDiscountRAOAction.performAction(RuleActionContext context,
java.util.List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDs,
java.math.BigDecimal amount) |
protected boolean |
RuleOrderPercentageDiscountExcludedProductsRAOAction.performAction(RuleActionContext context,
java.util.List<java.lang.String> excludedProducts,
java.math.BigDecimal threshold,
java.math.BigDecimal amount)
Deprecated.
|
protected boolean |
RuleFreeGiftRAOAction.performAction(RuleActionContext context,
java.util.Map<java.lang.String,java.lang.Integer> qualifyingProductsContainers,
java.lang.String productCode,
java.lang.Integer quantity) |
protected boolean |
RuleOrderEntryFixedDiscountRAOAction.performAction(RuleActionContext context,
OrderEntryRAO orderEntryRao,
java.math.BigDecimal valueForCurrency) |
protected boolean |
RuleChangeDeliveryModeRAOAction.performAction(RuleActionContext context,
java.lang.String deliveryModeCode) |
protected boolean |
RuleFreeGiftToBundleRAOAction.performAction(RuleActionContext context,
java.lang.String productCode,
java.util.Collection<EntriesSelectionStrategyRPD> strategies,
java.lang.Integer quantity)
Deprecated.
|
boolean |
RulePartnerOrderEntryPercentageDiscountRAOAction.performActionInternal(RuleActionContext context) |
boolean |
RuleTargetBundlePriceRAOAction.performActionInternal(RuleActionContext context) |
boolean |
RuleTriggerMessageRAOAction.performActionInternal(RuleActionContext context) |
boolean |
RuleOrderEntryPercentageDiscountRAOAction.performActionInternal(RuleActionContext context) |
boolean |
RuleOrderEntryPercentageDiscountWithStrategyRAOAction.performActionInternal(RuleActionContext context)
Deprecated.
|
boolean |
RulePartnerOrderEntryFixedPriceRAOAction.performActionInternal(RuleActionContext context) |
boolean |
RuleOrderEntryFixedDiscountRAOAction.performActionInternal(RuleActionContext context) |
boolean |
RuleOrderPercentageDiscountExcludedProductsRAOAction.performActionInternal(RuleActionContext context)
Deprecated.
|
boolean |
RuleAddFreeProductDiscountRAOAction.performActionInternal(RuleActionContext context)
Deprecated.
|
boolean |
RuleHaltRAOAction.performActionInternal(RuleActionContext context) |
boolean |
RuleOrderEntryGroupFixedDiscountRAOAction.performActionInternal(RuleActionContext context)
Deprecated.
|
boolean |
RuleFreeGiftToBundleRAOAction.performActionInternal(RuleActionContext context)
Deprecated.
|
boolean |
RuleChangeDeliveryModeRAOAction.performActionInternal(RuleActionContext context) |
boolean |
RuleAddProductPercentageDiscountRAOAction.performActionInternal(RuleActionContext context)
Deprecated.
|
boolean |
RuleOrderPercentageDiscountRAOAction.performActionInternal(RuleActionContext context) |
boolean |
RuleOrderFixedDiscountRAOAction.performActionInternal(RuleActionContext context) |
boolean |
RuleOrderEntryFixedPriceRAOAction.performActionInternal(RuleActionContext context) |
boolean |
RuleFreeGiftRAOAction.performActionInternal(RuleActionContext context) |
boolean |
RulePartnerOrderEntryFixedDiscountRAOAction.performActionInternal(RuleActionContext context) |
protected DisplayMessageRAO |
RuleTriggerMessageRAOAction.performDisplayMessageAction(RuleActionContext context) |
protected boolean |
RuleOrderEntryPercentageDiscountRAOAction.processOrderEntry(RuleActionContext context,
OrderEntryRAO orderEntryRao,
java.math.BigDecimal value) |
protected boolean |
RuleOrderEntryFixedPriceRAOAction.processOrderEntry(RuleActionContext context,
OrderEntryRAO orderEntryRao,
java.math.BigDecimal valueForCurrency) |
protected boolean |
RuleOrderEntryFixedPriceRAOAction.processWithCartTotalThreshold(RuleActionContext context,
boolean discountedPriceIncluded) |
protected boolean |
RuleOrderEntryFixedPriceRAOAction.processWithoutCartTotalThreshold(RuleActionContext context) |
protected void |
RulePartnerOrderEntryPercentageDiscountRAOAction.updateFactsWithOrderEntries(RuleActionContext context,
java.util.List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDS) |
protected void |
RuleOrderEntryPercentageDiscountWithStrategyRAOAction.updateFactsWithOrderEntries(RuleActionContext context,
java.util.List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDS)
Deprecated.
|
protected void |
RulePartnerOrderEntryFixedPriceRAOAction.updateFactsWithOrderEntries(RuleActionContext context,
java.util.List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDS) |
protected void |
RuleFreeGiftRAOAction.updateFactsWithOrderEntries(RuleActionContext context,
java.util.List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDS) |
| Modifier and Type | Method and Description |
|---|---|
void |
DisplayPromoMessageRAOAction.performAction(RuleActionContext context) |
void |
PercentageDiscountForOptionRAOAction.performAction(RuleActionContext context) |
protected java.lang.String |
DisplayPromoMessageRAOAction.prepareActionLogText(RuleActionContext context,
java.util.Map<java.lang.String,java.lang.Object> parameters) |
protected java.lang.String |
PercentageDiscountForOptionRAOAction.prepareActionLogText(RuleActionContext context,
java.util.Map<java.lang.String,java.lang.Object> parameters) |
| Modifier and Type | Method and Description |
|---|---|
protected RuleActionContext |
AbstractProductConfigRAOActionTest.getContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
DisplayCsticReadonlyRAOAction.performAction(RuleActionContext context) |
void |
DisplayMessageRAOAction.performAction(RuleActionContext context) |
void |
RemoveAssignableValueRAOAction.performAction(RuleActionContext context) |
void |
SetCsticValueRAOAction.performAction(RuleActionContext context) |
void |
HideCsticRAOAction.performAction(RuleActionContext context) |
protected java.lang.String |
DisplayCsticReadonlyRAOAction.prepareActionLogText(RuleActionContext context,
java.util.Map<java.lang.String,java.lang.Object> parameters) |
protected java.lang.String |
DisplayMessageRAOAction.prepareActionLogText(RuleActionContext context,
java.util.Map<java.lang.String,java.lang.Object> parameters) |
protected java.lang.String |
RemoveAssignableValueRAOAction.prepareActionLogText(RuleActionContext context,
java.util.Map<java.lang.String,java.lang.Object> parameters) |
protected abstract java.lang.String |
ProductConfigAbstractRAOAction.prepareActionLogText(RuleActionContext context,
java.util.Map<java.lang.String,java.lang.Object> parameters) |
protected java.lang.String |
SetCsticValueRAOAction.prepareActionLogText(RuleActionContext context,
java.util.Map<java.lang.String,java.lang.Object> parameters) |
protected java.lang.String |
HideCsticRAOAction.prepareActionLogText(RuleActionContext context,
java.util.Map<java.lang.String,java.lang.Object> parameters) |
protected void |
ProductConfigAbstractRAOAction.updateContext(RuleActionContext context,
AbstractRuleActionRAO actionRAO) |
protected boolean |
ProductConfigAbstractRAOAction.validateAllowedByRuntime(RuleActionContext context) |
protected boolean |
ProductConfigAbstractRAOAction.validateProcessStep(RuleActionContext context,
java.util.Map<java.lang.String,java.lang.Object> parameters,
ProcessStep... expectedProcessSteps) |
protected void |
ProductConfigAbstractRAOAction.validateRuleAndLog(RuleActionContext context,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.lang.String... parameterNames) |
Copyright © 2018 SAP SE. All Rights Reserved.