[rules-users] Question regarding writing rules to track customers in a retail store

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[rules-users] Question regarding writing rules to track customers in a retail store

prasanna s
Hello Everyone,

I am new to Drools and have some questions. I am working on creating rules which detects customers in departments in a store.
My model is as below: 

Customer : Id, Point (x,y)
Department : Id, Rectangle
CustomerEvent
I currently have customers represented with x,y location or a point and a department is represented by rectangle. 
1.) How do I write a rule to detect if a customer is in a rectangle? 
2.) If a customer changes location within a department at least 2 times, trigger an event. How do I write a rule to detect if the customer is in a department and has changed location two times?
Please let me know.
Thanks!

_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users
Loading...