Object updated as rules are running
by Jon Gil
Hi, I have a very simple rules flow that I am getting odd results from. For
now, our project is planning on using spreadsheets and a drools server.
The test project we are working on accepts a movie name from an external
source and creates a Movie object that is passed to the rules. The first
rule looks at the movieName attribute and assigns it a movieStar using the
Movie objects setMovieStar call. We have printLn statements before and
after this action to confirm that it does in fact work.
The second rule, where things go wrong, checks the MovieStar attribute, but
no matter what we've just set it to, it always uses the value
("NoStarYet") that was originally created when we create the Movie object in
our Java code in the condition of our second rule. We've tried using the
getMovieStar call in the condition, but it has been throwing errors when we
startup the Drools Server.
When we retreive the Movie object from the resultSet, the movieStar
attribute is set correclty, but we can't get our flow to go as expected.
This really seems like a simple issue, but we've had no luck with it. Any
thoughts? Does the rules engine use the getter methods for conditions or
does it use the values from the entityXML we pass in? Is there a way to
make the engine update the object between running each rule?
Any help is appreciated greatly.
14 years, 10 months
Red Hat & Accenture: BRMS & BPMS Event (London)
by Mark Proctor
http://blog.athico.com/2011/02/red-hat-accenture-brms-bpms-event.html
---
Red Hat & Accenture: BRMS & BPMS Event (London)
Posted by Mark Proctor
Registration Page:
https://engage.redhat.com/forms/UK_Event_Accenture290311
Join Red Hat and Accenture on Tuesday 29th March at Accenture Old Bailey
to understand how Business Rules Management Systems (BRMS) and Business
Process Management Systems (BPMS) can help businesses leverage
technology more effectively and increase productivity. See how
Enterprise Open Source is leading the way with powerful capabilities and
industry-leading innovation.
There will be 2.5 hours of technical talks.
Speakers:
Mark Proctor - Drools Co-Founder and Poject Lead
Kris Verlaenen - jBPM Lead
Michael Anstis
Geoffrey de Smet
Talks:
Introduction to Rule Based Systems (Mark Proctor)
Introduces Drools and explains what a rule based system is and how it works
Why BPMN2 Matters (Kris Verlaenen)
jBPM5 has just been released as premier Open Source BPMN2
implementation. Come and hear how this changes your whole legacy
approach to BPM.
Using Guvnor for Enterprise Systems (Geoffrey de Smet)
Guvnor provides a web interface to your knowlege systems, such as rules
and bpm. This talk provides a gentle introduction into Guvnor and how to
use it.
Decision Tables in Depth (Michael Anstis)
Decision Tables is now a major focus for us, we want to show you why
we'll have the slicket decision table environment out there.
14 years, 10 months
Knowledge Agent example
by vamshidhar reddy chitti
Hi All,
I was trying to get going with KnowledgeAgent and trying to understand how rules changes at runtime.Can anyone provide me a example or a basic tutorial for changing the rules at runtime so the knowledgebase is recreated. Any pseudocode can also be helpful.
I tried to find googling, but there is only theory which is a bit complicated.
Any help would be appreciated.
RegardsVamshidhar
14 years, 10 months
Check all elements of a list (Drools Expert)
by Petr Chelčický
Hi! I'm trying to write rules in Drools Expert. In the when part of the rule, I check some properties of an Application object. This object contains a List and I would like to check if a bunch of rules apply to all objects of SomeOtherType in this list. The rule should fire only when the constraints are valid for ALL objects in that list. How could this be done?
14 years, 10 months
Date Condition in Decision tables
by sdinoo
I am new to drools. I've searched in this forum as well as in the
documentation but I havent found any solution to the situation that I am
facing
I have a Claim object that has 1 date member variable called
claimRequestDate
I want to achieve a rule that if the claimRequestDate is 65 days old from
now then fire that rule
I want to achieve like if (now - claimRequestDate) > 65 then fire the rule
I want the "65" number to be in the rule data so that the business analyst
can change it at will
Has anyone tried this?
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Date-Condition-in-Dec...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 10 months
JBPM5(Drools Flow 5.2.0.M1) - Threading model
by OptimusPrime
Hi,
in our projects we use the HttpInvoker component of Spring to interact with
our remote KnowledgeBase through HTTP, which means JBPM5 is deployed in a
servlet container.
Our Websphere admin is afraid that JBPM5 creates its own threads instead of
using the thread provided by the container.
In short:
- Does JBPM5 always executes in the thread of the caller ?
- What is the purpose of the 'multithread' element in drools-spring.xsd
(drools-spring-5.2.0.M1.jar) ?
I cannot find answers in the documentation :-(
Also, it would be a good idea to document the XSD like Spring does with
<xsd:documentation /> tags.
Thanks to the community,
Max
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/JBPM5-Drools-Flow-5-2...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 10 months
drools guvnor 5.1 - oracle database issue (java.sql.SQLException: ORA-22275)
by Sartaj Shaik
Hi,
I have deployed drools-5.1.1-guvnor.war in jboss-5.1.0.GA application
server.
Also, I have changed the repository.xml, workspace.xml in default and
security folders to use oracle database. When I start the server, all the
tables are getting created in the database application is working fine.
But, when I restart the server, it is not able to start properly and
everytime I am getting the following error
..
..
..
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.jackrabbit.core.util.db.ResultSetWrapper.invoke(ResultSetWrapper.java:66)
... 116 more
Caused by: java.sql.SQLException: ORA-22275: invalid LOB locator specified
at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:283)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:278)
at oracle.jdbc.driver.T4C8TTILob.receiveReply(T4C8TTILob.java:930)
at oracle.jdbc.driver.T4C8TTILob.getChunkSize(T4C8TTILob.java:329)
at
oracle.jdbc.driver.T4CConnection.getChunkSize(T4CConnection.java:2015)
at oracle.sql.BLOB.getChunkSize(BLOB.java:389)
at oracle.sql.BLOB.getBufferSize(BLOB.java:410)
at oracle.sql.BLOB.getBinaryStream(BLOB.java:229)
at
oracle.jdbc.driver.BlobAccessor.getBinaryStream(BlobAccessor.java:209)
at
oracle.jdbc.driver.OracleResultSetImpl.getBinaryStream(OracleResultSetImpl.java:886)
at
org.apache.commons.dbcp.DelegatingResultSet.getBinaryStream(DelegatingResultSet.java:222)
at
org.apache.commons.dbcp.DelegatingResultSet.getBinaryStream(DelegatingResultSet.java:222)
... 121 more
Any ideas to resolve this issue?
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
14 years, 10 months
RuleFlow only calling first RuleFlowGroup when called through drools-server
by elitwin
I have a RuleFlow that has some sequential steps at the beginning with a
couple of Gateways later in the flow.
When I run the flow through Eclipse, everything works fine and all the Rule
Task nodes are processed (and the underlying rules assigned to those
RuleFlowGroups are fired properly).
When I try to the flow using Drools-Server 5.1, only the first RuleFlowGroup
is fired. For example, I have an "Initialize" group followed by a "Validate"
group. Only the rules belonging to the "Initialize" rule flow group get
activated. None of the "Initialize" rules get fired. When I reversed the
order in my RuleFlow, the "Validate" rules get fired, but not the
"Initialize."
I haven't been able to find anything online about this issue.
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/RuleFlow-only-calling...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 10 months
Strengths of Drools
by FrankVhh
Hi all,
Suppose some kind of annoying manager asks you to list the strengths of
Drools, in stead of just letting you play with the tool.
What points would you definitely put on te list apart from:
- Open source
-> Low cost of purchase
-> Lot of flexibility to developer
- Performance
-> Outperforms even commercial tools according to some studies on the
internet
Why would you use drools in stead of a competitor's tool?
Thanks for your involvement.
Regards,
Frank
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Strengths-of-Drools-t...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 10 months
Can't Deploy drools-server.war to JBoss 5.1.0.GA - ClassCastException
by rtmacphail
When attempting to deploy version 5.1 of the drools execution server
(drools-server.war) to JBoss AS 5.1.0.GA I receive the following
ClassCastException:
Caused by: java.lang.ClassCastException:
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to
javax.xml.parsers.DocumentBuilderFactory
I tried removing the xml-apis-2.0.2.jar from the lib directory of the
drools-server.war, but that resulted in xml parsing exceptions for the
spring and camel configuration files.
I tried adding a JBOSS-WEB.xml with the following class loader
configuration:
<class-loading java2ClassLoadingCompliance="false">
<loader-repository>
xml-apis:archive=drools-server.war
<loader-repository-config>java2ParentDelegation=false</loader-repository-config>
</loader-repository>
</class-loading>
but that had no effect.
The Drools Integration documentation says the following in regards to
deploying the execution server:
"Deploy on JBoss AS 4.x / Tomcat 6.x works out-of-the-box, instead some
external dependencies must be added and the configuration must be changed to
be deployed in JBoss AS 5"
Does anyone know what these external dependencies and configuration changes
are for JBoss AS 5?
By the way, I have been able to successfully deploy and test the server on
Tomcat 6.0.29.
Thanks in advance for any help; I've been spinning my wheels on this one.
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Can-t-Deploy-drools-s...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 10 months