Hi Pascal, You could consider the JBoss Drools Framework, or, if you want to implement more complex processes, jBPM.
http://www.jboss.org/jbpm http://www.jboss.org/drools/ JBPM comes with a nice Eclipse plugin that even lets you define the process as a nice flowchart and hook it up to your Java code. Advantage: the rules and the process model can be changed without redeploying the app, you just change the file and call a refresh method to read it. I am currently using this for validation rules in an online shop that needs frequent modifications of those rules. It's a piece of cake to integrate this into a WO app. All you need to do is add some Jars to your project. I have built a little test Project as a proof of concept. Let me know if you would like the source. If more people are interested, I might write a Wiki page... Cheers, Ralph Von meinem iPad gesendet Am 14.02.2013 um 13:38 schrieb Pascal Robert <[email protected]>: > Hi guys, > > In a shopping cart, how would you apply discount based on business rules? For > example, if someone buy a quantity of 3 of the same item, you apply discount > X, or if an item is ordered before a certain date, you apply discount Y. > Yes, I can do that all in code, but that's not very flexible. > > Any ideas? > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/ralph.scheuer%40gmx.net > > This email sent to [email protected]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
