From 403ed4d82ad2e6773b1cf3f219317fb34d131a85 Mon Sep 17 00:00:00 2001 From: Ravi Lodhi Date: Fri, 13 Dec 2024 16:31:08 +0530 Subject: [PATCH 1/2] Improved: Enhanced ATP rule group logic: process all products if the rule group is modified since the last run; otherwise, process only products updated since the last successful run (#38). --- .../product/ProductFacilityServices.xml | 33 ++++++++++++++++--- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/service/co/hotwax/product/ProductFacilityServices.xml b/service/co/hotwax/product/ProductFacilityServices.xml index 1768aef..9d79124 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(); @@ -44,11 +45,31 @@ + + + + + + + + + + + + + + + + + + + - - + + @@ -70,15 +91,15 @@ + @@ -98,6 +119,8 @@ + + From b2b8a0b8a27fb9f205caaf3cd07346b7a315d52a Mon Sep 17 00:00:00 2001 From: Ravi Lodhi Date: Tue, 17 Dec 2024 18:13:24 +0530 Subject: [PATCH 2/2] Improved: Modified ATP rule group execution logic to better identify whether all products need to be scaned while running rule group (#38). --- .../product/ProductFacilityServices.xml | 149 ++++++++++++++++-- .../co/hotwax/rule/DecisionRuleServices.xml | 6 +- 2 files changed, 138 insertions(+), 17 deletions(-) diff --git a/service/co/hotwax/product/ProductFacilityServices.xml b/service/co/hotwax/product/ProductFacilityServices.xml index 9d79124..c3c021e 100644 --- a/service/co/hotwax/product/ProductFacilityServices.xml +++ b/service/co/hotwax/product/ProductFacilityServices.xml @@ -1,12 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Executes product facility rules. + @@ -47,22 +173,13 @@ - - - - - - - - - - - - - - - + + + + + + +