Re: [rules-users] loading rules dynamically
by abarnaramachandran@gmail.com
Hi
Can you please give me an example to explain this? How to serialize
the rulebase and store it in database? The how do you load the rules
in memory?
thanks a lot in advance
ABRA
>>>
I think the better approach if possible is to serialize your rule base
and storing it in the database as such. Storing the DRL and
recompiling your rules at run time will be quite expensive. We have a
similar setup and it has worked out pretty well for us.
>>>>>
Hi,
If the rules,conditions,consequences have to be loaded from the
database. I can think of following two approach. what would be right
approach( I will have upto 1200 rules in the db)
1. Programmatically inject the rules into rule engine using drools API.
2. Read the rules from the database and create drl or dsl file for
them and inject into rule engine.
Thanks
16 years, 9 months
RuleML-2009 Call for Participation -Earlybird Deadline Sept. 25th
by Adrian Paschke
---------------------------------------------------------------------------
Want to learn more about rule technologies, applications and standards?
Want to discuss latest research results and developments?
Want to get in touch with the industry and research experts in rule-based
systems and technologies?
Don't miss RuleML-2009 - early bird registration deadline ends on September
25th
http://2009.ruleml.org/registration
---------------------------------------------------------------------------
RuleML 2009
3rd International Symposium on Rules, Applications and Interoperability
November 5-7 2009, Las Vegas, Nevada, USA
http://2009.ruleml.org/
co-located with the 12th Business Rules Forum
----------------------------
We cordially invite you to participate in the 3rd International Symposium on
Rules, Applications and Interoperability (RuleML-2009) - the premier event
addressing research, applications and standards for rule technologies and
rule-based event processing technologies. It takes place in Las Vegas,
Nevada, USA, Nov. 5-7, collocated with the 12th Business Rules Forum, the
world's largest Business Rules event.
RuleML-2009 has evolved from an annual series of international workshops
since 2002, international conferences in 2005 and 2006, and international
RuleML Symposia since 2007, to the premier event on rule-based systems
addressing industry developments, standards and academic research at the
same time. RuleML-2009 is in the top 100 venues for impact factor (71):
http://citeseerx.ist.psu.edu/stats/venues. It is supported by W3C, OMG, ACM,
EPTS, AAAI, ECCAI, IAAIL, ACM, Belgian Business Rules Forum, MIT Sloan CIO
Symposium, BPM Forum Belgium and a listed EU ICT technology conference.
We are building an excellent program with renowned experts as keynote
speakers, tutorials, standards panel sessions, Open Source Day, W3C RIF
workshop, Int. Rule Challenge with prestigious prizes, etc.
MAKE RULEML-2009 YOUR SHOWCASE!
Submit to the 3rd Int. Rule Challenge at http://2009.ruleml.org/challenge
*******************************************************************
RuleML-2009 highlights and news:
* 3rd Int. Rule Challenge
"Demonstration of benchmarks/evaluations, demos, case studies / use
cases, experience reports, best practice solutions, rule-based
implementations/ tools/ applications, demonstrations engineering methods,
implementations of rule standards"
* Rule Open Source Day
"Discover how Open Source Rules solutions are being deployed in the
marketplace and how they compare to proprietary solutions"
* Lunch Panel on Standards for Business Rules
"Want to learn more about latest business rules standard in W3C, OMG, OASIS,
ISO, RuleML and how these apply in the enterprise business arena"
* W3C Rule Interchange Format Standard Workshop
* Keynotes and special talks by
Sandro Hawke (W3C) about W3C RIF
Donald Chapin (OMG) about OMG SBVR and ISO Terminology standards
Paul Vincent (TIBCO) about CEP and Rules
Jans Aasman (FranzInc. CEO)
* Tutorials by
Mark Proctor (Drools) - Drools Tutorial
Christian Saint Marie (ILog/IBM) - W3C RIF Tutorial
Larry Goldberg and Babara von Halle - Decision Management
Guido Governatori (NICTA) - Business Process Compliance
* Tracks on
Rule-based Event Processing
Rule Systems on the Web
Rule Transformation and Extraction
Process and Data
Rules and Norms
Rules and Uncertainty
* RuleML-2009 Springer LNCS proceedings published
* 3rd Rule Challenge CEUR proceedings to appear
* IEEE TKDE special issue on Rule technologies to appear Dec. 2009
* Forthcoming RuleML-2009 special journal issue
*******************************************************************
Supported by
===================================================================
W3C, OMG, ACM, AAAI, ECCAI, IAAIL, ACM, Belgian Business Rules Forum
MIT Sloan CIO Symposium, EPTS, BPM Forum Belgium
Sponsored by
===================================================================
BBN Technologies
Franz Inc
NICTA (National ICT Australia) Ltd
Corporate Semantic Web
Logic Programming Associated Ltd
ruleCore
JBoss RedHat
Modelsystems Ltd
(sponsoring opportunities: http://2009.ruleml.org/sponsors)
===================================================================
16 years, 9 months
Deploying rules to a cluster.
by Stuart Grimshaw
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm after a little advice on how everyone deploys their rules to
production servers.
We have a cluster of up to 8 machines and the current plan is to deploy
our app exploded, so that we can just deploy the rules without having to
redeploy the whole app.
We're using JBossAS 5.1.0, but in the past we've used 4.0.2 where we
didn't make use of the farm deployments. I notice that this
functionality has been restored in JBoss 5.1, but is undocumented on the
JBoss wiki.
Does anyone have any experience of deploying their rules to a cluster?
I'd like to hear your experiences...
- --
+
| Stuart Grimshaw Broadband Solutions for
| Lead Developer Home & Business @
| Plusnet Plc www.plus.net
| Registered Office: Internet House, 2 Tenter Street, Sheffield, S1 4BY
| Registered in England no: 3279013
+ --------------- Plusnet - ISPA Best Consumer ISP 2008 ---------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkq7UBcACgkQKVVpabZzO7ntfwCeNZbqhtsBmLqsyQspR8/kRQ7o
qiEAnRxGIS3pmArGcohwHIDimpVim7A+
=Z0Fl
-----END PGP SIGNATURE-----
16 years, 9 months
persistent java objects in working memory
by Chris Richmond
Hello,
I am trying to create a set of java objects, which I insert into the session
at startup. Then at regular timed iterations I want to examine the values
of those objects. During the timer iteration, some fields may have been
changed by the primary program. So I have a rule for now that is just
trying to identify that the do indeed exist on each iteration:
rule "Identify Java Objects"
lock-on-active
when
$mo : MyDataObject();
then
System.err.println("MYOBJECT in system: " + $mo.getID + " | " +
$mo.getTestFieldData);
end
As I said, at startup I insert 3 of these objects into my session, then
every 10 seconds I just want to ensure they are there. However the output
from this rule only fires on the firet iteration, after that the rule
doesn't fire. I am not retrcating the objects or even concerning myself
with the FactHandle, as I plan to leave them in working memory and change
values on those 3 objects from the main application in each application
loop, then make decisions in the rule engine based on the values of those 3
objects. However, for now I just nee to find out why the objects only live
for my first loop and call of session.fireAllRules().
Any ideas or what I am doing wrong?
Thanks,
Chris
16 years, 9 months
Problems while trying using drools Guvnor
by Nikhil S. Kulkarni
Hi ,
I am using Drools 5 Guvnor.
I have the following issues :-
1. Big Problem :- If there are more than one worksheets in one workbook then drools-guvnor will
give preference to first Worksheet and ignore remaining worksheets without giving any error while building package.
2. In drools-guvnor, there is no provision to use rule templates.
3. If you upload file e.g. decision table spreadsheet then it will make an entry for each uploaded file in version history irrespective of checking in those files.
It means it will treat file uploading and click on Save Changes button for Check in purpose as two separate tasks and maintain separate Version history for both. Reason behind this is not clear yet.
4. You need to upload jar file for POJO classes separately so that the Package will get references of classes used within rules i.e. import stmts in drl file or decision table.
You cannot delete rule once you have created but you can archive it. But problem with this is you cannot use same name for a file once you have archived file previously with same name
Thanks & Regards,
Nikhil S. Kulkarni
MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16 years, 9 months
How to identify the single condition(s) of a rule that activate it
by cpeike@et-inf.fho-emden.de
Hi all!
I\'am using Drools 5 to manage the rules of a click fraud detection
system. If one rule is fullfilled the click is marked invalid, but all
rules that fire activation should be recorded. I can do so collecting
the rule names in a Set.
Now I am supposed to record a more fine-grained image of what made a
click get marked invalid preferably in a way that every condition is
tested however one just fired activation or not. Would be great to be
able to store some identifier to each condition.
Is there a way to find out which condition made the rule fire
activation? I looked at DefaultAgendaListener, but could not find any
reference to the single condition(s) that was (were) met but only to
the whole rule.
Could anyone help me?
Thank you,
Chris
16 years, 9 months
How to identify the single condition(s) of a rule that activate it
by cpeike@et-inf.fho-emden.de
Hi all!
I\'am using Drools 5 to manage the rules of a click fraud detection
system. If one rule is fullfilled the click is marked invalid, but all
rules that fire activation should be recorded. I can do so collecting
the rule names in a Set.
Now I am supposed to record a more fine-grained image of what made a
click get marked invalid preferably in a way that every condition is
tested however one just fired activation or not. Would be great to be
able to store some identifier to each condition.
Is there a way to find out which condition made the rule fire
activation? I looked at DefaultAgendaListener, but could not find any
reference to the single condition(s) that was (were) met but only to
the whole rule.
Could anyone help me?
Thank you,
Chris
16 years, 9 months
java.lang.NoSuchMethodError (org.eclipse.jdt.internal.compiler.CompilationResult.getProblems())
by Vadivelkumar
Hi,
I am new to drools. I have created the new drools project in eclipse
IDE 3.5. I have compiled it and tested it. it works fine.
but when deploying, I have converted as a jar file and deployed it as
part of tomcat server. When my tomcat is running i'm receiving the
following
error message.
Please Note:
1. I'm using JBoss Drools Core 5.0.1
2. My Eclipse Version is 3.5.0 and it has
org.eclipse.jdt.core_3.5.0.v_963.jar. I have placed this jar file on
my class path. but still i'm facing the below problem
3. I would like to try the solution suggested on ((http://lists.jboss.org/pipermail/rules-users/2007-January/000195.html)
). Unfortunately i could not find the any downnload location for
org.eclipse.jdt.core_3.2.0.v_671.jar
4.We have tried with the the solution suggested on (http://www.jboss.org/community/wiki/RulesTomcat
) for Drools 4.x Still we are not able to resolve the issue.
java.lang.NoSuchMethodError:
org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[Lorg/
eclipse/jdt/core/compiler/CategorizedProblem;
org.drools.commons.jci.compilers.EclipseJavaCompiler
$3.acceptResult(EclipseJavaCompiler.java:321)
org
.eclipse
.jdt.internal.compiler.Compiler.handleInternalException(Compiler.java:
415)
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:352)
org
.drools
.commons
.jci.compilers.EclipseJavaCompiler.compile(EclipseJavaCompiler.java:351)
org
.drools
.commons
.jci.compilers.AbstractJavaCompiler.compile(AbstractJavaCompiler.java:
51)
org
.drools
.rule.builder.dialect.java.JavaDialect.compileAll(JavaDialect.java:389)
org
.drools
.compiler
.DialectCompiletimeRegistry.compileAll(DialectCompiletimeRegistry.java:
56)
org.drools.compiler.PackageRegistry.compileAll(PackageRegistry.java:74)
org.drools.compiler.PackageBuilder.compileAll(PackageBuilder.java:690)
org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:653)
org
.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:
290)
org
.drools
.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:488)
org
.drools
.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:25)
Could you please help us to fix it?
Thanks in advance.
Thanks,
Vadi
16 years, 9 months