Uses of Interface
de.hybris.platform.ruleengineservices.rule.evaluation.RuleActionContext
Packages that use RuleActionContext
Package
Description
-
Uses of RuleActionContext in de.hybris.platform.couponservices.rule.evaluation.actions.impl
Methods in de.hybris.platform.couponservices.rule.evaluation.actions.impl with parameters of type RuleActionContextModifier and TypeMethodDescriptionprotected voidRuleAddCouponRAOAction.addCoupon(RuleActionContext context, String couponId) booleanRuleAddCouponRAOAction.performActionInternal(RuleActionContext context) -
Uses of RuleActionContext in de.hybris.platform.droolsruleengineservices.compiler.impl
Classes in de.hybris.platform.droolsruleengineservices.compiler.impl that implement RuleActionContextModifier and TypeClassDescriptionclassDefault implementation ofRuleActionContextfor the drools rule engine. -
Uses of RuleActionContext in de.hybris.platform.promotionengineservices.action.strategies
Methods in de.hybris.platform.promotionengineservices.action.strategies with parameters of type RuleActionContextModifier and TypeMethodDescriptionprotected BigDecimalCartTotalThresholdPotentialPromotionMessageActionSupplementStrategy.getValueToDisplay(RuleActionContext context) protected intQualifyingCategoryPotentialPromotionMessageActionSupplementStrategy.getValueToDisplay(RuleActionContext context) protected intQualifyingProductPotentialPromotionMessageActionSupplementStrategy.getValueToDisplay(RuleActionContext context) booleanCartTotalThresholdPotentialPromotionMessageActionSupplementStrategy.isActionProperToHandle(AbstractRuleActionRAO actionRao, RuleActionContext context) booleanNoOpPotentialPromotionMessageActionSupplementStrategy.isActionProperToHandle(AbstractRuleActionRAO actionRao, RuleActionContext context) booleanQualifyingCategoryPotentialPromotionMessageActionSupplementStrategy.isActionProperToHandle(AbstractRuleActionRAO actionRao, RuleActionContext context) booleanQualifyingProductPotentialPromotionMessageActionSupplementStrategy.isActionProperToHandle(AbstractRuleActionRAO actionRao, RuleActionContext context) booleanCartTotalThresholdPotentialPromotionMessageActionSupplementStrategy.shouldPerformAction(AbstractRuleActionRAO actionRao, RuleActionContext context) booleanNoOpPotentialPromotionMessageActionSupplementStrategy.shouldPerformAction(AbstractRuleActionRAO actionRao, RuleActionContext context) booleanQualifyingCategoryPotentialPromotionMessageActionSupplementStrategy.shouldPerformAction(AbstractRuleActionRAO actionRao, RuleActionContext context) booleanQualifyingProductPotentialPromotionMessageActionSupplementStrategy.shouldPerformAction(AbstractRuleActionRAO actionRao, RuleActionContext context) -
Uses of RuleActionContext in de.hybris.platform.ruledefinitions.actions
Methods in de.hybris.platform.ruledefinitions.actions with parameters of type RuleActionContextModifier and TypeMethodDescriptionvoidAbstractRAOActionAware.executeAction(RuleActionContext context, Map<String, Object> parameters) Execute abstract action. -
Uses of RuleActionContext in de.hybris.platform.ruleengineservices.rule.evaluation
Methods in de.hybris.platform.ruleengineservices.rule.evaluation with parameters of type RuleActionContextModifier and TypeMethodDescriptionvoidRuleExecutableAction.executeAction(RuleActionContext context, Map<String, Object> parameters) execute rule consequence -
Uses of RuleActionContext in de.hybris.platform.ruleengineservices.rule.evaluation.actions
Fields in de.hybris.platform.ruleengineservices.rule.evaluation.actions declared as RuleActionContextModifier and TypeFieldDescriptionprotected RuleActionContextAbstractRuleSubsetProductActionUnitTest.ruleActionContextMethods in de.hybris.platform.ruleengineservices.rule.evaluation.actions with parameters of type RuleActionContextModifier and TypeMethodDescriptionprotected List<DiscountRAO>AbstractRuleSubsetProductAction.addDiscountOnMultipleOrderEntryLevelAndConsume(RuleActionContext context, List<OrderEntryRAO> orderEntries, boolean absolute, BigDecimal discount, String currencyISOCode, FixedDiscountDistributeStrategy fixedDiscountDistributeStrategy, RuleEngineResultRAO result) protected voidAbstractRuleExecutableSupport.addMetadataToRao(AbstractRuleActionRAO rao, RuleActionContext context) default intRAOConsumptionSupport.adjustStrategyQuantity(Collection<EntriesSelectionStrategyRPD> selectionStrategyRPDs, RuleActionContext context) Adjusts the quantity fields of EntriesSelectionStrategyRPD such that the maximum possible number of entries will be consumed by the action.default intRAOConsumptionSupport.adjustStrategyQuantity(Collection<EntriesSelectionStrategyRPD> selectionStrategyRPDs, RuleActionContext context, int maxCount) Adjusts the quantity fields of EntriesSelectionStrategyRPD such that the maximum possible number of entries will be consumed by the action.protected org.drools.core.spi.KnowledgeHelperAbstractRuleExecutableSupport.checkAndGetRuleContext(RuleActionContext context) Checks that the givenruleContextis of typeKnowledgeHelper(i.e.<T extends AbstractRuleActionRAO>
voidRAOConsumptionSupport.consumeOrderEntries(RuleActionContext context, Collection<EntriesSelectionStrategyRPD> strategies, T actionRAO) Creates newOrderEntryConusmedRAOs for the given strategies, links them to the givenactionRAOand reduces available quantity of order entry by given quantity for every Order Entry from the set and using quantity fromdiscountedOrderEntryMap.protected List<EntriesSelectionStrategyRPD>AbstractRulePartnerProductAction.createSelectionStrategyRPDsQualifyingProducts(RuleActionContext context, OrderEntrySelectionStrategy selectionStrategy, Map<String, Integer> qualifyingProductsContainers) protected List<EntriesSelectionStrategyRPD>AbstractRulePartnerProductAction.createSelectionStrategyRPDsTargetProducts(RuleActionContext context, OrderEntrySelectionStrategy selectionStrategy, Map<String, Integer> targetProductsContainers) protected Optional<BigDecimal>AbstractRuleExecutableSupport.extractAmountForCurrency(RuleActionContext context, Object currencyAmount) AbstractRuleExecutableSupport.getMetaDataFromRule(RuleActionContext context) protected StringAbstractRuleExecutableSupport.getMetaDataFromRule(RuleActionContext context, String key) Returns the rule's meta-data for the given key (ornull).protected Set<OrderEntryRAO>AbstractRulePartnerProductAction.getOrderEntries(RuleActionContext context, Map.Entry<String, Integer> entry) protected Set<OrderEntryRAO>AbstractRuleSubsetProductAction.getOrderEntries(RuleActionContext context, String containerId) protected StringAbstractRuleExecutableSupport.getRuleCode(RuleActionContext context) Returns the rule's rule code meta data.protected StringAbstractRuleExecutableSupport.getRuleGroupCode(RuleActionContext context) Returns the rule's rule group code meta data.protected RuleAndRuleGroupExecutionTrackerAbstractRuleExecutableSupport.getRuntimeTracker(RuleActionContext context) RAOConsumptionSupport.getSelectedOrderEntryQuantities(RuleActionContext context, Collection<EntriesSelectionStrategyRPD> strategies) Gets Order Entry identifiers (orderEntry.entryNumber) and Unit Quantity To Be Consumed for the Order Entries.protected BigDecimalAbstractRuleSubsetProductAction.getTotalUnconsumePriceOfContainer(RuleActionContext context, String containerId) booleanRAOConsumptionSupport.hasEnoughQuantity(RuleActionContext context, Collection<EntriesSelectionStrategyRPD> selectionStrategyRPDs) Checks if allentriesSelectionStrategyRPDshave enough quantity.protected booleanAbstractRuleSubsetProductAction.hasReachedContainerThreshold(RuleActionContext context, String containerId, BigDecimal threshold) booleanActionSupplementStrategy.isActionProperToHandle(AbstractRuleActionRAO actionRao, RuleActionContext context) Checks if the action result is proper to be processed by the strategyprotected booleanAbstractRuleExecutableSupport.isRuleGroupExclusive(RuleActionContext context) <T> Optional<T>RAOLookupService.lookupRAOByType(Class<T> raoType, RuleActionContext context, Predicate<T>... raoFilters) Performs lookup for the RAO object identified by its type within providedRuleActionContext<T> List<T>RAOLookupService.lookupRAOObjectsByType(Class<T> raoType, RuleActionContext context, Predicate<T>... raoFilters) Performs lookup for the RAO objects identified by its type within providedRuleActionContextprotected booleanAbstractRuleExecutableSupport.mergeDiscounts(RuleActionContext context, DiscountRAO discountRao, OrderEntryRAO entry) voidAbstractRuleExecutableSupport.performAction(RuleActionContext context) voidRAOAction.performAction(RuleActionContext context) perform action on RAO objectsprotected booleanAbstractRuleExecutableSupport.performActionInternal(RuleActionContext context) template method called inside ofAbstractRuleExecutableSupport.performAction(RuleActionContext)protected voidAbstractRuleExecutableSupport.postProcessAction(AbstractRuleActionRAO actionRao, RuleActionContext context) default voidActionSupplementStrategy.postProcessAction(AbstractRuleActionRAO actionRao, RuleActionContext context) Post process ofAbstractRuleActionRAO.voidAbstractRuleExecutableSupport.setRAOMetaData(RuleActionContext context, AbstractRuleActionRAO... raos) protected booleanAbstractRuleExecutableSupport.shouldPerformAction(AbstractRuleActionRAO actionRao, RuleActionContext context) booleanActionSupplementStrategy.shouldPerformAction(AbstractRuleActionRAO actionRao, RuleActionContext context) Gives additional input into whether an action should be performed or notprotected voidAbstractRuleExecutableSupport.trackActionExecution(RuleActionContext context) voidRAOConsumptionSupport.trackConsumedProducts(RuleActionContext context) protected voidAbstractRuleExecutableSupport.validateRule(RuleActionContext context) Validates that the required meta-data is available.protected voidAbstractRuleExecutableSupport.validateSelectionStrategy(Collection<EntriesSelectionStrategyRPD> strategies, RuleActionContext context) ValidatesentriesSelectionStrategyRPDschecking 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. -
Uses of RuleActionContext in de.hybris.platform.ruleengineservices.rule.evaluation.actions.impl
Methods in de.hybris.platform.ruleengineservices.rule.evaluation.actions.impl with parameters of type RuleActionContextModifier and TypeMethodDescriptionprotected voidRuleOrderEntryFixedPriceRAOAction.addDiscount(RuleActionContext context, OrderEntryRAO orderEntryRao, int quantity, DiscountRAO discount) protected voidRuleOrderEntryFixedPriceRAOAction.addDiscount(RuleActionContext context, OrderEntryRAO orderEntryRao, DiscountRAO discount) protected List<DiscountRAO>RulePartnerOrderEntryFixedDiscountRAOAction.addDiscountAndConsume(RuleActionContext context, List<EntriesSelectionStrategyRPD> selectionStrategies, boolean absolute, BigDecimal price, RuleEngineResultRAO result) protected List<DiscountRAO>RulePartnerOrderEntryPercentageDiscountRAOAction.addDiscountAndConsume(RuleActionContext context, List<EntriesSelectionStrategyRPD> selectionStrategies, boolean absolute, BigDecimal price) protected List<DiscountRAO>RuleSubsetOrderEntryPercentageDiscountRAOAction.addDiscountAndConsume(RuleActionContext context, List<EntriesSelectionStrategyRPD> selectionStrategies, boolean absolute, BigDecimal price) protected List<DiscountRAO>RulePartnerOrderEntryFixedPriceRAOAction.addFixedPriceEntryDiscount(List<EntriesSelectionStrategyRPD> selectionStrategies, BigDecimal fixedPrice, RuleActionContext context) protected booleanDefaultRAOConsumptionSupport.adjustMultiplierValid(RuleActionContext context, Collection<EntriesSelectionStrategyRPD> selectionStrategyRPDs, int adjustMultiplier) intDefaultRAOConsumptionSupport.adjustStrategyQuantity(Collection<EntriesSelectionStrategyRPD> selectionStrategyRPDs, RuleActionContext context) intDefaultRAOConsumptionSupport.adjustStrategyQuantity(Collection<EntriesSelectionStrategyRPD> selectionStrategyRPDs, RuleActionContext context, int maxCount) voidRuleChangeDeliveryModeRAOAction.changeDeliveryMode(CartRAO cartRao, DeliveryModeRAO mode, RuleEngineResultRAO result, RuleActionContext context) protected org.drools.core.spi.KnowledgeHelperDefaultRAOLookupService.checkAndGetRuleContext(RuleActionContext context) Checks that the givenruleContextis of typeKnowledgeHelper(i.e.<T extends AbstractRuleActionRAO>
voidDefaultRAOConsumptionSupport.consumeOrderEntries(RuleActionContext context, Collection<EntriesSelectionStrategyRPD> strategies, T actionRAO) protected List<EntriesSelectionStrategyRPD>RuleSubsetOrderEntryPercentageDiscountRAOAction.createSelectionStrategyRPDsTargetProducts(RuleActionContext context, List<String> targetProductsContainers) protected ProductModelRuleFreeGiftRAOAction.findProduct(String productCode, RuleActionContext context) DefaultRAOConsumptionSupport.getSelectedOrderEntryQuantities(RuleActionContext context, Collection<EntriesSelectionStrategyRPD> strategies) booleanDefaultRAOConsumptionSupport.hasEnoughQuantity(RuleActionContext context, Collection<EntriesSelectionStrategyRPD> selectionStrategyRPDs) <T> Optional<T>DefaultRAOLookupService.lookupRAOByType(Class<T> raoType, RuleActionContext context, Predicate<T>... raoFilters) <T> List<T>DefaultRAOLookupService.lookupRAOObjectsByType(Class<T> raoType, RuleActionContext context, Predicate<T>... raoFilters) protected booleanRuleChangeDeliveryModeRAOAction.performAction(RuleActionContext context, String deliveryModeCode) protected booleanRuleFreeGiftRAOAction.performAction(RuleActionContext context, Map<String, Integer> qualifyingProductsContainers, String productCode, Integer quantity) protected booleanRuleOrderEntryFixedDiscountRAOAction.performAction(RuleActionContext context, OrderEntryRAO orderEntryRao, BigDecimal valueForCurrency) protected booleanRuleOrderFixedDiscountRAOAction.performAction(RuleActionContext context, BigDecimal amount) protected booleanRuleOrderPercentageDiscountRAOAction.performAction(RuleActionContext context, BigDecimal amount) protected booleanRulePartnerOrderEntryFixedDiscountRAOAction.performAction(RuleActionContext context, List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDs, BigDecimal amount) booleanRulePartnerOrderEntryFixedPriceRAOAction.performAction(RuleActionContext context, List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDs, BigDecimal amount) protected booleanRulePartnerOrderEntryPercentageDiscountRAOAction.performAction(RuleActionContext context, List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDs, BigDecimal amount) protected booleanRuleSubsetOrderEntryFixedDiscountRAOAction.performAction(RuleActionContext context, Set<OrderEntryRAO> qualifyEntries, Set<OrderEntryRAO> targetEntries, BigDecimal discountValueForCartCurrency, String currencyISOCode, FixedDiscountDistributeStrategy distributeStrategy) protected booleanRuleSubsetOrderEntryPercentageDiscountRAOAction.performAction(RuleActionContext context, Set<OrderEntryRAO> qualifyEntries, List<EntriesSelectionStrategyRPD> targetingSelectionStrategyRPDs, BigDecimal discountValue) To fix the issue: https://jira.tools.sap/browse/CXEC-27649, For every target container, only the cheapest order entry can have the discount and can only apply to 1 quantity, which is similar with RulePartnerOrderEntryPercentageDiscountRAOActionprotected booleanRuleTargetBundlePriceRAOAction.performAction(RuleActionContext context, List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDs, BigDecimal amount) booleanRuleChangeDeliveryModeRAOAction.performActionInternal(RuleActionContext context) booleanRuleFreeGiftRAOAction.performActionInternal(RuleActionContext context) booleanRuleHaltRAOAction.performActionInternal(RuleActionContext context) booleanRuleOrderEntryFixedDiscountRAOAction.performActionInternal(RuleActionContext context) booleanRuleOrderEntryFixedPriceRAOAction.performActionInternal(RuleActionContext context) booleanRuleOrderEntryPercentageDiscountRAOAction.performActionInternal(RuleActionContext context) booleanRuleOrderFixedDiscountRAOAction.performActionInternal(RuleActionContext context) booleanRuleOrderPercentageDiscountRAOAction.performActionInternal(RuleActionContext context) booleanRulePartnerOrderEntryFixedDiscountRAOAction.performActionInternal(RuleActionContext context) booleanRulePartnerOrderEntryFixedPriceRAOAction.performActionInternal(RuleActionContext context) booleanRulePartnerOrderEntryPercentageDiscountRAOAction.performActionInternal(RuleActionContext context) protected booleanRuleSubsetOrderEntryFixedDiscountRAOAction.performActionInternal(RuleActionContext context) protected booleanRuleSubsetOrderEntryPercentageDiscountRAOAction.performActionInternal(RuleActionContext context) booleanRuleTargetBundlePriceRAOAction.performActionInternal(RuleActionContext context) booleanRuleTriggerMessageRAOAction.performActionInternal(RuleActionContext context) protected booleanRuleOrderEntryFixedPriceRAOAction.processOrderEntry(RuleActionContext context, OrderEntryRAO orderEntryRao, BigDecimal valueForCurrency) protected booleanRuleOrderEntryPercentageDiscountRAOAction.processOrderEntry(RuleActionContext context, OrderEntryRAO orderEntryRao, BigDecimal value) protected booleanRuleOrderEntryFixedPriceRAOAction.processWithCartTotalThreshold(RuleActionContext context, boolean discountedPriceIncluded) protected booleanRuleOrderEntryFixedPriceRAOAction.processWithoutCartTotalThreshold(RuleActionContext context) voidDefaultRAOConsumptionSupport.trackConsumedProducts(RuleActionContext context) protected voidRuleFreeGiftRAOAction.updateFactsWithOrderEntries(RuleActionContext context, List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDS) protected voidRulePartnerOrderEntryFixedPriceRAOAction.updateFactsWithOrderEntries(RuleActionContext context, List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDS) protected voidRulePartnerOrderEntryPercentageDiscountRAOAction.updateFactsWithOrderEntries(RuleActionContext context, List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDS) -
Uses of RuleActionContext in de.hybris.platform.sap.productconfig.rules.rule.evaluation.impl
Methods in de.hybris.platform.sap.productconfig.rules.rule.evaluation.impl that return RuleActionContextModifier and TypeMethodDescriptionprotected RuleActionContextAbstractProductConfigRAOActionTCBase.getContext()Methods in de.hybris.platform.sap.productconfig.rules.rule.evaluation.impl with parameters of type RuleActionContextModifier and TypeMethodDescriptionprotected voidProductConfigAbstractRAOAction.logRuleData(RuleActionContext context, Map<String, Object> parameters, String... parameterNames) voidProductConfigAbstractRAOAction.performAction(RuleActionContext context) booleanDisplayCsticReadonlyRAOAction.performActionInternal(RuleActionContext context) booleanDisplayMessageRAOAction.performActionInternal(RuleActionContext context) booleanHideCsticRAOAction.performActionInternal(RuleActionContext context) booleanRemoveAssignableValueRAOAction.performActionInternal(RuleActionContext context) booleanSetCsticValueRAOAction.performActionInternal(RuleActionContext context) protected StringDisplayCsticReadonlyRAOAction.prepareActionLogText(RuleActionContext context, Map<String, Object> parameters) protected StringDisplayMessageRAOAction.prepareActionLogText(RuleActionContext context, Map<String, Object> parameters) protected StringHideCsticRAOAction.prepareActionLogText(RuleActionContext context, Map<String, Object> parameters) protected abstract StringProductConfigAbstractRAOAction.prepareActionLogText(RuleActionContext context, Map<String, Object> parameters) protected StringRemoveAssignableValueRAOAction.prepareActionLogText(RuleActionContext context, Map<String, Object> parameters) protected StringSetCsticValueRAOAction.prepareActionLogText(RuleActionContext context, Map<String, Object> parameters) protected voidProductConfigAbstractRAOAction.updateContext(RuleActionContext context, AbstractRuleActionRAO actionRAO) protected booleanProductConfigAbstractRAOAction.validateProcessStep(RuleActionContext context, Map<String, Object> parameters, ProcessStep... expectedProcessSteps)