2020-09-23 03:48发布
点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)你好 我根据文档设置了6.6的... 显示全部
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
你好
我根据文档设置了6.6的踪迹
在构建时或在更新/初始化之后均没有错误。
我以内置用户之一的身份登录,并对电子商店中的商品添加了评论。
我以管理员身份登录到后台,并批准了审核。
然后以电子商店中的用户身份将商品添加到cnd单击结帐
升级不会触发,用户也不会添加到相关组中。
其他人有同样的问题吗?
谢谢Bartosz,
是,规则已发布,没有错误。 这是Drules代码:
软件包de.hybris.platform.droolsruleengine;
导入de.hybris.platform.droolsruleengineservices.compiler.impl.DefaultDroolsRuleActionContext; 导入de.hybris.platform.ruleengineservices.rao.CartRAO; 导入de.hybris.platform.ruleengineservices.rao.UserRAO; 导入de.hybris.platform.ruleengineservices.rrd.RuleConfigurationRRD; 导入de.hybris.platform.promotionenginetrail.rao.CustomerReviewRAO; 导入de.hybris.platform.ruleengineservices.rao.RuleEngineResultRAO; 导入de.hybris.platform.ruleengineservices.rao.WebsiteGroupRAO; 导入java.util.Map; 导入de.hybris.platform.ruleengineservices.rao.OrderEntryRAO; 导入de.hybris.platform.ruleengineservices.rao.ProductRAO;
global de.hybris.platform.ruleengineservices.rule.evaluation.RuleExecutableAction addUserToUserGroupAction;
query rule_f1ae1a09c409405cad753deea366d9dd_query(CustomerReviewRAO $ v6,UserRAO $ v7,CartRAO $ v1,RuleEngineResultRAO $ v2,WebsiteGroupRAO $ v3,ProductRAO $ v4,OrderEntryRAO $ v5)($ v1:= CartRAO()和$ 2 和$ v3:= WebsiteGroupRAO(id ==" electronicsPromoGrp")和($ v4:= ProductRAO()和$ v5:= OrderEntryRAO(产品== $ v4)和$ v6:= CustomerReviewRAO(产品== $ v4)和 $ v7:= UserRAO(customerReviews包含$ v6,id不在(" anonymous")中)和$ v1:= CartRAO(条目包含$ v5,用户== $ v7))))
规则" f1ae1a09-c409-405c-ad75-3deea366d9dd" @ruleCode(" reviewed_product_add_customer_to_group")@moduleName(" promotions-module")方言" mvel"显着性500存在时(RuleConfigurationRRD(ruleCode ==" reviewed_product_add_customer_to_group") 和(存在(CartRAO())和存在(RuleEngineResultRAO())和存在(WebsiteGroupRAO(id ==" electronicsPromoGrp"))和($ rao_v4:= ProductRAO()和$ rao_v5:= OrderEntryRAO(product == $ rao_v4) 和$ rao_v6:= CustomerReviewRAO(产品== $ rao_v4)和$ rao_v7:= UserRAO(customerReviews包含$ rao_v6,id不在(" anonymous")中)并且存在(CartRAO(条目包含$ rao_v5,用户== $ rao_v7) )))累积(rule_f1ae1a09c409405cad753deea366d9dd_query($ v6,$ v7,$ v1,$ v2,$ v3,$ v4,$ v5;); $ v6_set:collectSet($ v6),$ v7_set:collectSet($ v7),$ v1_set :collectSet($ v1),$ v2_set:collectSet($ v2),$ v3_set:collectSet($ v3),$ v4_set:collectSet($ v4),$ v5_set:collectSet($ v5),$ result_count:count(1) )eval($ result_count> 0)然后映射variabl es = [" de.hybris.platform.promotionenginetrail.rao.CustomerReviewRAO":$ v6_set," de.hybris.platform.ruleengineservices.rao.UserRAO":$ v7_set," de.hybris.platform.ruleengineservices.rao.CartRAO" :$ v1_set," de.hybris.platform.ruleengineservices.rao.RuleEngineResultRAO":$ v2_set," de.hybris.platform.ruleengineservices.rao.WebsiteGroupRAO":$ v3_set," de.hybris.platform.ruleengineservices.rao.ProductRAO ":$ v4_set," de.hybris.platform.ruleengineservices.rao.OrderEntryRAO":$ v5_set]; addUserToUserGroupAction.executeAction(new DefaultDroolsRuleActionContext(variables,kcontext),[" stackable":Boolean.TRUE," value_uuid":" fd7412ad-c433-43a2-89e8-086852673814"," value":" reviewedProductsCustomerGroup"]); 结束
最多设置5个标签!
谢谢Bartosz,
是,规则已发布,没有错误。 这是Drules代码:
软件包de.hybris.platform.droolsruleengine;
导入de.hybris.platform.droolsruleengineservices.compiler.impl.DefaultDroolsRuleActionContext; 导入de.hybris.platform.ruleengineservices.rao.CartRAO; 导入de.hybris.platform.ruleengineservices.rao.UserRAO; 导入de.hybris.platform.ruleengineservices.rrd.RuleConfigurationRRD; 导入de.hybris.platform.promotionenginetrail.rao.CustomerReviewRAO; 导入de.hybris.platform.ruleengineservices.rao.RuleEngineResultRAO; 导入de.hybris.platform.ruleengineservices.rao.WebsiteGroupRAO; 导入java.util.Map; 导入de.hybris.platform.ruleengineservices.rao.OrderEntryRAO; 导入de.hybris.platform.ruleengineservices.rao.ProductRAO;
global de.hybris.platform.ruleengineservices.rule.evaluation.RuleExecutableAction addUserToUserGroupAction;
query rule_f1ae1a09c409405cad753deea366d9dd_query(CustomerReviewRAO $ v6,UserRAO $ v7,CartRAO $ v1,RuleEngineResultRAO $ v2,WebsiteGroupRAO $ v3,ProductRAO $ v4,OrderEntryRAO $ v5)($ v1:= CartRAO()和$ 2 和$ v3:= WebsiteGroupRAO(id ==" electronicsPromoGrp")和($ v4:= ProductRAO()和$ v5:= OrderEntryRAO(产品== $ v4)和$ v6:= CustomerReviewRAO(产品== $ v4)和 $ v7:= UserRAO(customerReviews包含$ v6,id不在(" anonymous")中)和$ v1:= CartRAO(条目包含$ v5,用户== $ v7))))
规则" f1ae1a09-c409-405c-ad75-3deea366d9dd" @ruleCode(" reviewed_product_add_customer_to_group")@moduleName(" promotions-module")方言" mvel"显着性500存在时(RuleConfigurationRRD(ruleCode ==" reviewed_product_add_customer_to_group") 和(存在(CartRAO())和存在(RuleEngineResultRAO())和存在(WebsiteGroupRAO(id ==" electronicsPromoGrp"))和($ rao_v4:= ProductRAO()和$ rao_v5:= OrderEntryRAO(product == $ rao_v4) 和$ rao_v6:= CustomerReviewRAO(产品== $ rao_v4)和$ rao_v7:= UserRAO(customerReviews包含$ rao_v6,id不在(" anonymous")中)并且存在(CartRAO(条目包含$ rao_v5,用户== $ rao_v7) )))累积(rule_f1ae1a09c409405cad753deea366d9dd_query($ v6,$ v7,$ v1,$ v2,$ v3,$ v4,$ v5;); $ v6_set:collectSet($ v6),$ v7_set:collectSet($ v7),$ v1_set :collectSet($ v1),$ v2_set:collectSet($ v2),$ v3_set:collectSet($ v3),$ v4_set:collectSet($ v4),$ v5_set:collectSet($ v5),$ result_count:count(1) )eval($ result_count> 0)然后映射variabl es = [" de.hybris.platform.promotionenginetrail.rao.CustomerReviewRAO":$ v6_set," de.hybris.platform.ruleengineservices.rao.UserRAO":$ v7_set," de.hybris.platform.ruleengineservices.rao.CartRAO" :$ v1_set," de.hybris.platform.ruleengineservices.rao.RuleEngineResultRAO":$ v2_set," de.hybris.platform.ruleengineservices.rao.WebsiteGroupRAO":$ v3_set," de.hybris.platform.ruleengineservices.rao.ProductRAO ":$ v4_set," de.hybris.platform.ruleengineservices.rao.OrderEntryRAO":$ v5_set]; addUserToUserGroupAction.executeAction(new DefaultDroolsRuleActionContext(variables,kcontext),[" stackable":Boolean.TRUE," value_uuid":" fd7412ad-c433-43a2-89e8-086852673814"," value":" reviewedProductsCustomerGroup"]); 结束
一周热门 更多>