Few inquiries about Drools
by Nirmal Fernando
Hi,
We are thinking of using Drools rules engine, for our application. But we
have few questions, that we would really happy to get explanations about.
1) Is the latest version Drools 5.1 supports backward chaining? If so since
which release you started to support backward chaining?
2) Are you using "Crisp Logic"? (we can only insert "facts" that are
true/false)
3) Whether Drools allow to intermingle the RuleBase and the WorkingMemory?
Hope to hear from you!
Thanks.
--
Best Regards,
Nirmal
C.S.Nirmal J. Fernando
Department of Computer Science & Engineering,
Faculty of Engineering,
University of Moratuwa,
Sri Lanka.
Blog: http://nirmalfdo.blogspot.com/
15 years, 9 months
import data model to eclipse
by fionali
Hi all,
I am new to drools. and now I have created a data model jar file and want to
import to eclipse. I had added the jar at build path(by configuring build
path, import the library), and added the imports to drools.package. the
issue is that I still can not create guided rule for it can not get fact
from the model (at the guided editor, click WHEN, no fact is avaliable to be
selected).
I suffered a lof from it and had searched the forum,no answer found.
Could anyboy kinderly help me? Thanks a lot!
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/import-data-model-to-...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 9 months
Using external classes in BPMN (serviceTask?)
by sam.squire@paretopartners.com
Hello,
I can run Java from within a scriptTask but do not seem to be able to use
external classes properly.
How might I call methods on a class using a serviceTask?
A previous post[1] referred to creating an interface of the class and then
referring to that interface. Is that interface the equivalent of an import
in the native drools XML format?
[1] http://www.mail-archive.com/rules-users@lists.jboss.org/msg15014.html
Has anybody been able to get this to work? Can anyone point me in the
right direction?
Thanks!
This message may contain confidential and privileged information and is intended solely for the use of the named addressee. Access, copying or re-use of the e-mail or any information contained therein by any other person is not authorised. If you are not the intended recipient please notify us immediately by returning the e-mail to the originator and then immediately delete this message. Although we attempt to sweep e-mail and attachments for viruses, we do not guarantee that either are virus-free and accept no liability for any damage sustained as a result of viruses.
Please refer to http://www.bnymellon.com/disclaimer/piml.html for certain disclosures.
15 years, 9 months
error importing java built in api's inside functions
by Kripa Nathwani
Hi,
Inside a function I am trying to import java api i.e. java.math.* so that I can use in built math function to perform certain calculations but it does not recognize and validate it.
I also tried to import the rt jar file(through "new file" option in drools 5.1 ) but the package does not get built and gives import error. It seems it is not able to recognize the jar.
Is there any way by which I can use the java api or start importing the api jars into package(I don't want to use it as fact. Hence I am not using "upload pojo model jar" option).
Best Regards,
Kripa
________________________________
This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
______________________________________________________________________
15 years, 9 months
Specifying time in date-effective
by devyani.sapre@wipro.com
Hi All
I am using 4.0. I have a requirement to execute a rule only during a
specified time of a given day
While going through the documentation I found that I could use the
date-effective attribute to specify the date and time
6.5.1.8. date-effective
default value : N/A
type : String, which contains a Date/Time definition
A rule can only activate if the current date and time is after
date-effective attribute.
But while trying out the same, the engine recognizes only the day and
not the time. How do I specify the time? So far I have been using the
std format HH:MM:SS , tried both 12-hr and 24 -hr format but no luck.
Please help.
Also, I would like to know how can I make a rule run on a specified time
everyday. With date-effective specifying a date would be mandatory? Is
thr a way or I need to put that in the rule condition part.
Thanks
Devyani
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
15 years, 9 months
Drools Flow: Activities and Sequence Flows
by Simon Peter
Hi,
Although the BPMN2 specification hasn't actually been ratified as yet,
Drools 5.1.x does appear to be backing BPMN2 (obviously a good decision!).
However, according to the spec, Drools isn't doing BPMN proper - and
regardless of whether the spec has been ratified or not, it could be closer
than it is.
There are a couple of examples I've come across, but the most obvious one is
the treatment of multiple sequence flows entering and leaving activities.
Where Drools requires a Gateway for this, the spec does allow it. To quote
from the spec:
"But there are special
considerations relative to Sequence Flows when applied to Activities. An
Activity that is the target of multiple
Sequence Flows participates in 'uncontrolled flow.'"
It goes on to describe the expected behaviour; the sequence flow should
behave as an exclusive gateway.
See page 441 of the spec available @
http://www.omg.org/cgi-bin/doc?dtc/10-06-04.pdf (it's a 7.5 meg download)
I can raise a bug if that is appropriate.
- Simon
15 years, 9 months
Chained Rules
by djb
Hi all,
I know there are some basic ways to chain rules together, by setting flags
in consequences that are checked in the conditions of other rules...
but in a large system based on rule templates, where thousands of rules are
generated, it is not feasible to chain rules in this manner, especially when
they are chained in a somewhat arbitrary fashion
(eg. True if Rule 130 AND Rule 200 AND Rule 480 fire)
has anyone had this situation before? would I need to execute this as a
post-processing step? or, is there any design pattern that will allow rules
to be chained, preferably in a manageable way?
regards,
Daniel
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Chained-Rules-tp77549...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 9 months
Change drools process variables
by jawa
Hi,
I am writing a drools flow which is backed up by JPA. It get stored into db
and then reloaded etc. I've some user task nodes on which flow stops and
gets stored in db. Then i reload it from db and resume flow etc. When i
start my flow I supply it with flow parameter map. It starts with those flow
variables. Now when it reaches a user task it stops there and get stored in
db and wait for that node to complete. Then for a certain type of request I
reload my session and complete the work item and flow resumes from where it
stopped last time. What i wanted to know is can I modify the object i
inserted into flow while starting it first time? Is it possible at all?
Thanks
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Change-drools-process...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 9 months
How to integrate Guvnor GUI in a test app
by Harshit Bapna
Hi All,
I have just started learning Drools. I have gone through various Guvnor
screens.
My requirement is to integrate the Rule Mgmt functionality of guvnor into my
test app.
1. Is there any way where I can integrate Guvnor GUI in my test app ?
Are there any suggested steps to do so ?
15 years, 9 months