From c214c1139a05ea213f971b6d90bc3802dae3ddc7 Mon Sep 17 00:00:00 2001 From: Ravi Lodhi Date: Fri, 20 Dec 2024 12:46:37 +0530 Subject: [PATCH] Improved: Enhance products processing logic in atp rule execution to use virtual products tags for its variant (#46). --- service/co/hotwax/common/CommonServices.xml | 1 + .../product/ProductFacilityServices.xml | 100 ++++++++++++------ 2 files changed, 71 insertions(+), 30 deletions(-) diff --git a/service/co/hotwax/common/CommonServices.xml b/service/co/hotwax/common/CommonServices.xml index 4240065..077691f 100644 --- a/service/co/hotwax/common/CommonServices.xml +++ b/service/co/hotwax/common/CommonServices.xml @@ -23,6 +23,7 @@ + \ No newline at end of file diff --git a/service/co/hotwax/product/ProductFacilityServices.xml b/service/co/hotwax/product/ProductFacilityServices.xml index 1768aef..bf2b501 100644 --- a/service/co/hotwax/product/ProductFacilityServices.xml +++ b/service/co/hotwax/product/ProductFacilityServices.xml @@ -31,6 +31,7 @@ import org.kie.api.io.ResourceType; import org.kie.api.KieBase; import org.kie.api.KieServices + import co.hotwax.common.CommerceUtil kieServices = KieServices.Factory.get(); kieHelper = new KieHelper(); @@ -41,25 +42,37 @@ productFacilityDetail = [:] - - - + + - + - - - - - - + + + + + + + + + + + + + + + + + + + @@ -70,24 +83,36 @@ + - - - - + + + + + + + + + + + + + + + + + @@ -169,6 +195,8 @@ + + @@ -177,18 +205,30 @@ - + - + + + + + - - + + + + + + + + + +