I want to write a rule that will select a fact that has the minimum
value for an attribute. For example, find the city that has the minimum
population. How would I write such a rule? David
David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
This email communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed.
If you are not the intended recipient, please delete this email immediately.
Is there a way to write a rule in DRL that uses a timer or something that is dynamic. I.E. I want the time that rule waits to fire to be dependent on a variable such as below:
$eventA : MyEvent()
(614) 389-2795 ext: 101
Dear drools experts
Can I get some ideas on how best to do the following.
I would like users of my app to be able to write their own rule(s). For
example, if Joe User buys an item that is more that $200 then he uses XYZ
shipping. If he does not select shipping the he uses ABC shipping.
More precisely, how can I offer the ability, using Guvnor, for the end user
to write a rule, that does not give him the ability to modify a rule
condition regaring user id. The example above, of coures, has a condition
that if user is 'Joe User'.
There are very many places in the app where users should be able to write
rules, so it would be nice to use (embed) guvnor, rather than writing a
special UI for each situation.
Any suggestions welcome.
View this message in context: http://drools.46999.n3.nabble.com/help-with-designing-implementing-a-way-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
Drools & jBPM 6.0 alpha should be out end of next week. 6.0 introduces convention based projects that remove the need for boiler plate code - literally just drop in the drl or bpmn2 and get going. Further we now allow rules and processes to be published as maven artifacts, in maven repositories. These artifacts can either be resolve via the classpath or downloaded dynamically on the fly. We even support out of the box side by side version loading, via the maven ReleaseId conventions.
As a little taster here is a new screenshot showing the annotation driven development. The lines below are all that's needed to dynamically load a module from a local or remote maven repository and start working with it. KieSession is the new, shorter name, for StatefulKnowlegeSession. Kie is an acronym for "Knowledge Is Everything", but I'll talk about Kie in another blog, expect to start hearing a lot about it soon :)
And here is a complete example screen shot. Create the drl, define the kmodule and start using them.
(click image to enlarge)