From f9e71ded2e39d6a21952bc1670ec4947d8c47d00 Mon Sep 17 00:00:00 2001 From: "Straubs, Ralph (rs8887)" Date: Mon, 28 Oct 2019 07:49:56 -0500 Subject: Provide a way to trigger Drools rules when an update occurs An instance of 'DroolsInitFeature.Init' is inserted into a Drools session when it is initialized, updated, or restored from persistent data. This provides an opportunity to catch more initialization scenarios than you can with an empty 'when' clause. Updates: 1) Change 'DroolsInitFeature' to use Policy Engine scheduled executor 2) Add new test to 'DroolsInitFeatureTest' to verify that the 'Init' object is inserted into and deleted from Drools memory 3) Remove trailing spaces Issue-ID: POLICY-1948 Change-Id: I4748c2415c4563e98b4a53d573c9ebe1e96e8e34 Signed-off-by: Straubs, Ralph (rs8887) --- feature-drools-init/src/assembly/assemble_zip.xml | 76 +++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 feature-drools-init/src/assembly/assemble_zip.xml (limited to 'feature-drools-init/src/assembly') diff --git a/feature-drools-init/src/assembly/assemble_zip.xml b/feature-drools-init/src/assembly/assemble_zip.xml new file mode 100644 index 00000000..948cb11c --- /dev/null +++ b/feature-drools-init/src/assembly/assemble_zip.xml @@ -0,0 +1,76 @@ + + + + + + + feature-drools-init-package + + zip + + + false + + + + target + lib/feature + + feature-drools-init-${project.version}.jar + + + + target/assembly/lib + lib/dependencies + + *.jar + + + + src/main/feature/config + config + 0644 + + + + src/main/feature/bin + bin + 0744 + + + + src/main/feature/db + db + 0744 + + + + src/main/feature/install + install + 0744 + + + + + -- cgit 1.2.3-korg