I would like to know, how should we execute the rules written in technical rule of IBM ODM. I am using ODM V8.0.1. I have tried as below.
I created a XOM having class named Courier.java
public class Courier { private String courierType; private int distance;
with getters & setters
}
I created a rule project adding this XOM and created respective BOM.
- I have added Courier Object as IN_OUT ruleset parameter with Name as "courier"
Then created a Technical Rule with below code
when { cour : Courier(); }
then { note("Courier Object Check is Satisfied"); }
Created a ruleflow having only one rule task pointing the above technical rule.
Then I run this ruleflow as
Run as --> Run Configuration
- In Run Configuration dailog box, written below function to create courier object and
ran the configuration.
com.seldart.Courier cour= new com.seldart.Courier(); return cour;
Ruleflow execution went for 2 seconds but the statement in note() method has not
printed in the console.- In Run Configuration dailog box, written below function to create courier object and
I am not sure, whether rule flow has not picked the technical rule itself to run or courier object is not recognized ? Kindly guide me on executing this technical rule in right way. Thanks.