Re: [rules-users] Guvnor rule with a not and an ==
by Esteban Aliverti
Which version of guvnor are you using? I think i solved a similar problem in
trunk. Please search in jira to check if this is already solved.
Unfortunately i don't have the link :(
Best regards,
El abr 29, 2011 7:27 p.m., "Michael Anstis" <michael.anstis(a)gmail.com>
escribió:
13 years, 8 months
drools in my web-app
by Abhay B. Chaware
Hi
I have a simple j2ee web app and would like to make use of drools in it. What's the best way for me to implement this ?
Thanks
13 years, 8 months
Guvnor rule with a not and an ==
by Dean Whisnant
Hi,
I have a rule where I want to check if an object doesn't exist or it exists and a field in it is null or a field in it is D.
Here's .drl code that works
rule "test does not exist is null or is D"
when
(not CLM_DET_LOAD_PendCode() ||
CLM_DET_LOAD_PendCode(pendCode_29== (null)) ||
CLM_DET_LOAD_PendCode(pendCode_29== "D")
)
then
System.out.println("CLM_DET_LOAD_PENDCOE does not exist, is null, or is D");
End
Normally in Guvnor to do an Or, I choose "Any of the following are true..." from the 'Add a condition to the rule...' dialogue. But when I choose this and then try to do the "not" logic, there is no choice for 'not'. I can get the other two conditions in just fine. Short of putting freeform DRL language in there, do you have any suggestions? Am I missing an option in guvnor?
Thanks
Dean
13 years, 8 months
Drools Performance
by Sumeet Karawal
Hi,
I have an Application where I have to give the discount to user according
to their profile points.
i.e. when the user logs in, his profile points are fetched from the
database, and respectively he is given the required discount.
My concern is how many concurrent users will be supported by the rules
engine, will there a performance lag if the concurrent number of users
exceed a certain limit. Please help me on this as I have no idea regarding
this.
Thanks and Reagrds,
Sumeet Karawal
Mailto: sumeet.karawal(a)tcs.com
=====-----=====-----=====
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
13 years, 8 months
Salience problems
by Chris Selwyn
I am finding that the "salience" feature is acting very erratically.
Some of my rules modify the working memory. So I would like them to
execute before the others that simply read the memory after modification
and report on certain data conditions that are left after all
modifications have happened.
The "modifying" rules have a salience of 5. The "reading" rules have a
salience of 0.
Using the rules logging I can see activations of my modifying rules
being created and activations of the reading rules being created.
And I can see "reading" rules (with salience 0) being executed /before/
"modifying" rules (with salience 5) even though no other activations are
being created in between them.
I am not using agenda groups or anything "fancy" like that.
Debugging through the code I can see the "MAIN" agenda group is a queue
organised as heap.
However, the order in which things happen is very non-deterministic
(presumably due to hashing or something like that) and I am finding it
very difficult to actually pin down an actual 100% reproducible case.
Is there any known problem with the salience mechanism?
I am using JBoss Rules 5.1.0 (with a support licence).
Chris Selwyn
13 years, 8 months
drools flow: is it possible to directly manipulating process instance variables?
by Stephan.Koops@We4IT.com
Hi,
I use drools flow with JPA persistence.
Is it possible to directly access and manipulating process instance
variables?
You could see the changed variables in the log (table
variableinstancelog), but I don't know how to directly access or change
them in the living process, The use case is, that the admin in our
application should be allowed to modify the vaiables every time.
Mit freundlichen Grüssen/Best regards
i. A.
Stephan Koops
Software Engineer
We4IT GmbH
*****************************************************
Veranstaltungen mit We4IT:
10.-12.05.2011 - Lotus Alliance Days in Hamburg, Frankfurt und München
Social Business und aktuelle Roadmaps zu Lotus-Produkten kompakt an einem Tag präsentiert.
http://www.we4it.com/aktuelles/events/365-lotus-alliance-days-10-bis-12-m...
18.5. bis 20.05.2011 - DNUG Frühjahrskonferenz in Bonn
LOTUS ALLIANCE Day im Rahmen der DNUG Frühjahrskonferenz in Bonn.
Erleben Sie spannende Vorträge die über den Tellerrand hinausreichen und erweitern Sie Ihren Horizont.
http://www.we4it.com/aktuelles/events/362-dnug-vom-18-20-mai.html
*****************************************************
We4IT GmbH
Technologiepark 11
33100 Paderborn
Tel: +49 5251 / 70993 - 24
Fax: +49 5251 / 70993 - 01
Mobil:
E-Mail: stephan.koops(a)we4it.com
Internet: http://www.we4it.com
HRB 20740, Amtsgericht Bremen
Geschäftsführer: Stefan Sucker, Vicente Diaz Fernandez
USt.-ID.-Nr. DE 220 859 831
Diese Nachricht ist vertraulich und ausschließlich für die adressierte Person und/oder Organisation bestimmt. Vertrauliche und/oder spezifische Informationen können hierin enthalten sein. Falls Sie ein nicht beabsichtigter Empfänger dieser Nachricht sind, sind das Kopieren, Verteilen und/oder das Aufnehmen aus dem Inhalt resultierender Handlungen untersagt. Haben Sie diese Nachricht fehlerhaft und/oder unvollständig erhalten, benachrichtigen Sie uns bitte umgehend unter unseren oben genannten Kontaktmöglichkeiten.
This message is confidential and intended solely for the person or organization to which it is addressed. It may contain privileged and confidential information. If you are not the intended recipient, you should not copy, distribute or take any action on reliance on it. If you have received this transmission in error, please notify us immediately by e-mail at the above address.
13 years, 8 months
New in Drools: Updating facts retrieved in queries
by Manuel Ortiz
Hello everybody:
I have two question related to queries:
First one, the one in the subject, I have a query which retrieves facts
which have to be modified and updated in working memory. I've seen that
the StatefulKnowledgeSession.update() method has the fact handle as input.
Is it possible to set the fact handle to null? If it isn't, how can I get
the fact handle using the fact retrieved with the query?
Second one, related to writing, I though of parameterizing the query using
the fact pattern, something like this,
query "alarmExists" (AlarmFact key)
$alarm : AlarmFact(key1 == key.key1,
key2 == key.key2,
key3 == key.key3
)
end
but the rule compiler doesn't accept this sintax. Is it a requirement that
query parameters are basic java types or is there a way to write this query
using more complex Object parameters?
Thank you for your time.
Best Regards,
Manuel Ortiz.
13 years, 8 months
How to declare an array attribute within an object in a DRL file?
by fulton
I am currently using Drools Server to accept JSON-formatted insertion
messages from a PHP application. Within the DRL file, I am currently
declaring the insertion object (let's use Person, for example) using
"Declare", e.g.,
declare Person
name: String
address: AddressType
end
declare AddressType
...
end
My question is, how do you declare an array object (e.g., "Hobbies") that
can be nested within Person. I have scanned the Internet (once again!) for
longer than I care to admit and have found no examples for this simple
usage. I have unsuccessfully tried multiple variations in defining an
array, but have given up. My current intention is to avoid using externally
defined Java, if possible, and I would like to be able to define the
insertion object within the DRL to enable quick changes in the incoming JSON
format, if necessary (I know this might not be "best practice"!). Could
someone please provide me with a quick example.
Thanks! Fulton
--
View this message in context: http://drools.46999.n3.nabble.com/How-to-declare-an-array-attribute-withi...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 8 months
Drools 5.1 on Websphere 7
by Yoann Charpiot
Hi,
I'm trying to validate that Drools (Expert and Guvnor) can be executed on
WAS 7 environnement but I miss information on that.
Do you have any documents that describes such possibilities?
Thanks you.
Yoann.
13 years, 8 months