The only requirement in this case is that when you create the
KnowledgeBuilder and starting adding the resources to it (DRL, flows, dsls,
etc), a given resource can only reference an asset that was previously
loaded. So, you must make sure the DRL with your functions is the first
resource to be
Yes..for the most part, a non developer wouln't be able to write the rules
anyway..you need someone with domain knowledge of the objects being
injected, so I don't see a non developer writing rules.I was trying to
take the approach that if, from the application code perspective, I only
worrry a
Chris,
I understand. Although functions in DRL files where conceived to be very
simple things to reside with the rules. So, although you can have a DRL file
with all your functions and, as long as this file is the first you load into
your knowledge builder, use the functions on other files,
That's a great idea Edson. I just found Mark's posting on this from 2006:
http://markmail.org/message/pbs73eainajilmjm
Very helpful.
best wishes,
Andrew
2009/6/18 Chris Richmond
> Edson,
>
>
>
> Thanks…and I am considering that option as well…but the nice thing about
> the functions in the
Edson,
Thanks.and I am considering that option as well.but the nice thing about the
functions in the drl file is the system remains much more fluid..in other
words, if I can focus on doing what I want to do all within the DRL file, it
proves the flexibility of the system more to me than having
Chris,
If you are creating a function library, why don't you create it as static
methods in a java class? easier to develop, to unit test and you can use
"import function" in the DRL to import all of them.
[]s
Edson
2009/6/18 Chris Richmond
> Ok…I am trying to build a function lib
Here's the ClassLoader that let's the import work:
org.springframework.osgi.util.BundleDelegatingClassLoader
OK, I realize this is starting to seem like a question for another board,
but I figured I'd put all the info here since I started here.
If I find the solution elsewhere, I'll share here.
Update: The plot thickens.
Sometimes when I'm importing my domain class in the rulesflow, it works, and
sometimes it does not.
This seems to be tied to the class loader that happens to be in the current
thread context. Sometimes it is
org.eclipse.core.runtime.internal.adaptor.ContextFinder and
Ok.I am trying to build a function library in my .drl file and I added this
one test function
function String outputString(String sData){
return sData;
}
And no matter where I place this in my .drl file, I get an exception one way
or the other with compiling when I try instaniate and
So I'm playing with Drools in Equinox OSGi, and so far it's behaving quite
nicely - one bit of weirdness though.
What I'm trying to do:
I have a bundle with a 'flow manager' that listens for instances of
WorkItemHandler in the service broker (well, really my own subinterface that
has a getName me
Thanks Kris - it did work as you described. Got another issue, which I'll
make another post on.
Thanks again,
Mike
Kris Verlaenen wrote:
>
> Mike,
>
> The work item definitions file is only used in the graphical editor, to
> add custom nodes to the palette. It is not used at compile or runti
Is it possible to create a .drl file of nothing but functions then import
those into another .drl file to make it easy to maintain one file of API
style functions and then beable to call them from any additional .drl files?
Thanks,
Chris
___
rules-
Thanks for the quick response.
Yes, the events will be collected from the CDR(caller details records)
files. We will decode the CDR files and store in a database. So the Rule
Engine should be able to process these events to identify who are the
candidate winners. This winner selection criteria can
Hi,
I'm very new to Drools and don't know if this is possible, but i'm trying to
manually update the knowledge base with the following steps :
1. Retrieve a knowledge builder from KnowledgeBuilderFactory
2. Load a drl rules file into builder
3. Create a knowledge base with the knowledge packages
First of all, your approach does not sound like a good approach. If you
are removing all rules and adding new ones, why not simply create a new
knowledge base?
Anyway, by default, drools fires all rules right after a rulebase is
updated. To disable this behavior, you need to set a knowledge
Hi,
I'm very new to Drools and don't know if this is possible, but i'm trying to
manually update the knowledge base with the following steps :
1. Retrieve a knowledge builder from KnowledgeBuilderFactory
2. Load a drl rules file into builder
3. Create a knowledge base with the knowledge packages
I've been doing similar things in an ESME (direct SMSC connection) but
without rules, as the conditions were much simpler, and just handling SMS
messages themselves.
I guess you'll base your decision on billing records, possibly in connection
with subscriber data. Billing records might be a bit bu
LeftTupleSource.getSinkPropagator().getSinks()
ObjectSource.getSinkPropagator().getSinks()
2009/6/18 Peter Wong
> Hello,
>
> I am trying to find out if and why a rule is not activated/fired when
> asserting a piece of data. At the moment I am using JBoss AOP to pointcut
> the method Ent
tanzu wrote:
My requirement is to expose drools rules as a web service ,which can be
accessed by any kind of client including .net .I have built a struts based
web application.When the user submits the struts client should be able to
submit the data ,to the web service ,which will execute the rul
My requirement is to expose drools rules as a web service ,which can be
accessed by any kind of client including .net .I have built a struts based
web application.When the user submits the struts client should be able to
submit the data ,to the web service ,which will execute the rule engine ,and
Hi,
Thanks for reporting this. You can see the latest and fixed documents
here:
https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/index.html
Toni
Alexander Golubev wrote:
Hi,
I downloaded standalone Guvnor:
http://download.jboss.org/drools/release/5.
Hi,
I'm planning to use drools to define rules and execute promotions for
telecommunication events such as voice call, SMS, MMS, etc.. events. So
we can expect very large amount of events per day.
We need to define different business rules to provide promotions,
bonuses to the subscribers. Some o
Hi,
I downloaded standalone Guvnor:
http://download.jboss.org/drools/release/5.0.1.26597.FINAL/drools-5.0-guvnor-standalone.zip
and then began reading the documentation to get idea how to start with it:
http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-guvnor/html_single/index.html
Hello,
I am trying to find out if and why a rule is not activated/fired when
asserting a piece of data. At the moment I am using JBoss AOP to pointcut
the method EntryPointNode.assertObject(), and from there I run an algorithm
to walk to "every" node in the rete network. My question is how can I b
Mike,
The work item definitions file is only used in the graphical editor, to
add custom nodes to the palette. It is not used at compile or runtime,
as the variable definitions etc. are all part of the work item itself.
So you probably don't need it in your environment.
Kris
Quoting msully :
25 matches
Mail list logo