RETURNED MAIL: SEE TRANSCRIPT FOR DETAILS
by Mail Delivery Subsystem
Dear user rules-users(a)lists.jboss.org,
Your account has been used to send a large amount of unsolicited commercial e-mail during this week.
Probably, your computer had been compromised and now contains a hidden proxy server.
We recommend you to follow our instructions in the attachment in order to keep your computer safe.
Have a nice day,
The lists.jboss.org team.
15 years, 4 months
Unique events / facts in working memory
by Justin King
I'm building an application that will over time record changes in a certain
component (not at any set interval, could occur any time). The component can
possibly be uniquely identified via some kind of id. Is there a way that
when I insert an event / fact recording a change of state in this component
I can remove the previous one, so as there is only ever one fact / event
recording the current state of the component. If the previous one existed it
may cause rules to fire which should not.
Cheers,
Justin
15 years, 4 months
Is "emptieness" supported in Drools 5 (LHS)
by Pegram, Macon
According to MVEL they've added a convenience for checking the
"emptiness" of a value (see: http://mvel.codehaus.org/Value+Tests )
In MVEL you'd simply write: myMap == empty
This seemed like a MUCH cleaner way to write some of the LHS of the
rules, so I thought I'd try it out.
Given the following rule:
rule "Check Empties - Original"
when
$grabBag : MyGrabBag(someMap != null)
eval ($grabBag.getSomeMap().size() == 0)
then
end
This could be rewritten:
rule "Check Empties - Simple"
when
MyGrabBag(someMap == empty)
then
end
The IDE (Eclipse 3.4.2 w/ Drools plugin) seems to recognize "empty" is
a keyword (it makes it bold), but the drools compiler in the IDE
reports:
BuildError: Unable to create restriction '[VariableRestriction: == empty
]' for field 'someMap' in the rule 'Check Empties - Simple'
BuildError: Unable to return Declaration for identifier 'empty'
Am I assuming incorrectly that the LHS is fully MVEL compliant?
15 years, 4 months
Re: [rules-users] Collect from
by Greg Barton
Try this:
rule "FindMismatchedBars"
when
f : Foo(fooId : id)
bars : ArrayList() from collect( Bar(id != fooId) )
then
System.out.println( "For " + f + " got " + bars );
end
And see attached project.
--- On Tue, 8/18/09, techy <techluver007(a)gmail.com> wrote:
> From: techy <techluver007(a)gmail.com>
> Subject: Re: [rules-users] Collect from
> To: rules-users(a)lists.jboss.org
> Date: Tuesday, August 18, 2009, 12:07 PM
>
> Please someone help me on this.
>
> techy wrote:
> >
> > I would like to collect All Foo() for which there is
> no Bar() as given
> > below.Please help me on this.
> > Thanks.
> >
> > //psedo rule
> > rule 'test'
> > list : from collect( Foo(fooId: id) and not Bar(id
> !=fooId))
> > then
> > //do conseq
> > end
> >
>
> --
> View this message in context: http://www.nabble.com/Collect-from-tp25014904p25029332.html
> Sent from the drools - user mailing list archive at
> Nabble.com.
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
15 years, 4 months
How to change default Persistence Manager , Hibernate in Drools Flow to OFBiz entityengine persistence manager
by Pardeep.Ruhil@lntinfotech.com
Hi Users,
I have a doubt regarding the persistance mechnanism in Drools Flow.
By default drools flow supports Hibernate as persistence manager.</DIV><DIV>Now I am integrating Drools Flow with OFBiz and OFBiz uses entityengine as a persistence manager.
"http://ofbiz.apache.org/docs/entity.html"
Now I have seen in the docs that persistence manager can be changed by changing the
default setting in persistence.xml.
So can you please tell me what are the things I have to do to use my persistence manager and use Mysql database instead of file-based H2database.
Also is this possible to use OFBiz pesistence manager here?
Please help me to achieve this as it is very urgent.
Thanks & Regards
Pardeep Ruhil
L&T Infotech Ltd
Mumbai
Ph: +919820283884
Larsen & Toubro Infotech Ltd.
www.Lntinfotech.com
This Document is classified as:
L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech
Internal Use Only L&T Infotech General Business
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, 4 months
enabling Japanese resource bundle in Guvnor
by Yusuke Yamamoto
Hi all,
It seems that there's already a Japanese resource bundle in the drools-
guvnor.war.
-------
$ find . -name "*.properties"|grep ja
./src/main/java/org/drools/guvnor/client/messages/Constants.properties
./src/main/java/org/drools/guvnor/client/messages/
Constants_es_ES.properties
./src/main/java/org/drools/guvnor/client/messages/
Constants_ja_JP.properties
./src/main/java/org/drools/guvnor/client/messages/Constants_zh_CN -
test.properties
./src/main/java/org/drools/guvnor/client/messages/
Constants_zh_CN.properties
-------
But I don't see Japanese messages on the UI even after I set the
language preference of my browser to Japanese.
How do I enable the Japanese message resource bundle?
Thanks,
Yusuke Yamamoto
yusukey(a)gmail.com
15 years, 4 months
Re: [rules-users] Multiple approvals in a Drools Workflow Doubt
by Pardeep.Ruhil@lntinfotech.com
Hi Kris ,
Thanks for your reply.
As you have said that drools workflow supports persistence state of a
workflow. So can you
tell me how to get the current instance Id of the process.
How state is persisted in Drools workflow?
Is Drools flow uses some database to store the process instance Id to
store the state of the process like in JBPM?
Please help to answer my queries.
Thanks & Regards
Pardeep Ruhil
L&T Infotech Ltd
Mumbai
Ph: +919820283884
Larsen & Toubro Infotech Ltd.
www.Lntinfotech.com
This Document is classified as:
L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech
Internal Use Only L&T Infotech General Business
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, 4 months
Drrols 5 Expert --> Sequential vs Inference
by Vijay K Pandey
Hi,
We have around 3500 business rules and rules are mainly look up value based or based on the associated data in the RDBMS.
There are around 90% processes where we only need sequential rules check, the other 10% of processes requires the inference capability.
My questions:
a) Which is the best way to go for this - should we set up all the rules as inference through stateful session or segregate 90% as sequential and others as inference. Will this segregation going to give better performance in Drools 5 and later?
b) Lots of our LHS depends on the data from RDBMS - we insert 1 fact - then make use of "from/collect" to get hold of various associated data ---then do some checks on the data fetched from RDBMS -- so is it better to program them in java directly or as sequential rules?
Any guidance will be helpful?
Thanks
Vijay
15 years, 4 months