Hi
IF I use drools with hibernate, that solves the problem of having many
objects in working memory as my user base who can subscribe to rules is
huge? But then do I really need rules as the only reason I am using rules
is to have a single place for evaluation of data?
Any inputs in this regard would be appreciated? I am slightly confused on
using a rules engine or not?As the only feature I am using over here from
Rules Engine perspective is single place of evaluation.
Thanks
shikha
shikha.x.aggarwal(a)jpmchase.com
Sent by: rules-users-bounces(a)lists.jboss.org
11/05/2008 01:41 PM
Please respond to
Rules Users List <rules-users(a)lists.jboss.org>
To
Rules Users List <rules-users(a)lists.jboss.org>
cc
"Rules Users List" <rules-users(a)lists.jboss.org>,
rules-users-bounces(a)lists.jboss.org
Subject
Re: [rules-users] DROOLS having RHS dynamic(5.0)
1. Thanks again, I will look at Drools Fusion. However I think my question
was not really on CEP , it was more on that the subscription data is also
now injected in the memory.
2. I am not sure if I understand you answer to the second point?
"Michal Bali" <michalbali(a)gmail.com>
Sent by: rules-users-bounces(a)lists.jboss.org
11/05/2008 11:18 AM
Please respond to
Rules Users List <rules-users(a)lists.jboss.org>
To
"Rules Users List" <rules-users(a)lists.jboss.org>
cc
Subject
Re: [rules-users] DROOLS having RHS dynamic(5.0)
On Wed, Nov 5, 2008 at 2:36 PM, <shikha.x.aggarwal(a)jpmchase.com> wrote:
Thanks for the quick response. However I still have two questions -
1. Are we saying that we insert all user objects in the working memory
alogn with the Event that arrives at runtime in the memory? What is the
volume of data that the rules engine can handle in terms of these users in
working memory?
correct, you may want to look at Drools Fusion, just search Drools blog
for CEP, Complex Event Processing
AFAIK it can handle as many object as big is your memory :) especially
true with the 'entry-point' support (a rule can see only events it needs
to)
2. I am still confused if I donot use a rules engine (I dont have any work
flows nor any complex logic), how can I have a dynamic way of doing this?
Please remember that I can have one subscribed alert which says alert me
when balance in account < 1000 other can say alert me when report A is
available.
.. User has a list of subscribed rules - subscribedRules
Writing custome code around them would require adding this custom code
every time a new subscription requirement arrives..
Would appreciate any inputs on the same.
thanks
Shikha
"Michal Bali" <michalbali(a)gmail.com>
Sent by: rules-users-bounces(a)lists.jboss.org
11/04/2008 05:53 PM
Please respond to
Rules Users List <rules-users(a)lists.jboss.org>
To
"Rules Users List" <rules-users(a)lists.jboss.org>
cc
Subject
Re: [rules-users] DROOLS having RHS dynamic(5.0)
Hi,
You could have a rule that will match on User as well as Data. This should
prevent regenerating drl files
rule rule1
when
$user:User( subscribedRules contains "rule1" )
$data:Data(userId == $user.id)
... other conditions using $data.amount ...
then
//
end
Data is needed when a user wants to subscribe to one rule with different
values.
However if you don't foresee any complex logic. I don't think there is a
need for a rule engine.
Just my 2c.
Best Regards,
Michal
On Tue, Nov 4, 2008 at 10:08 PM, <shikha.x.aggarwal(a)jpmchase.com> wrote:
Hi,
I am looking to use drools where I can have users subscribed to specific
alerts. Hence for example -
I can have a rule like ->
Rule 1 -> amount < {amount}
Where {amount} is the value which the user defines at the time of
subscribing, hence the user wants to recieve an alert when the amount in
his account < {amount} that he just subscribed to.
I was trying to use the DROOLS template feature and was even able to
succesfully execute this specific scenario. The use case I was executing
is, when an event of type Rule 1 occurs , I get all users who are
subscribed to rule 1, and then create a drl file for all of those users
with there custom data substituted as part of {amount}. Now I fire the
rules(note I have multiple rules one for each user} which executes for
this specific event and gives the required results(The above example is
just a sample example). My area of concerns are -
1. Is Rule engine really the platform I am looking at? As I dont have any
complex logic , I just want to use some component which can evaluate my
Events that arrive with different subscription rules?
2. If I regenearte the drl file every time an event arrives (I need to
because every time a iff type of rule can fire and the list of subscribers
can be different as well), this would have a performace impact as the
rules are compiled and generated every time and not really cached?
Please let me know if the problem is not clear. Any help/inputs in this
regard would be highly appreciated.
Thanks
Shikha
This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market
prices, data and other information are not warranted as to completeness or
accuracy and are subject to change without notice. Any comments or
statements made herein do not necessarily reflect those of JPMorgan Chase
& Co., its subsidiaries and affiliates. This transmission may contain
information that is privileged, confidential, legally privileged, and/or
exempt from disclosure under applicable law. If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. Although this transmission and
any attachments are believed to be free of any virus or other defect that
might affect any computer system into which it is received and opened, it
is the responsibility of the recipient to ensure that it is virus free and
no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries
and affiliates, as applicable, for any loss or damage arising in any way
from its use. If you received this transmission in error, please
immediately contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you. Please refer to
http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK
legal entities.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market
prices, data and other information are not warranted as to completeness or
accuracy and are subject to change without notice. Any comments or
statements made herein do not necessarily reflect those of JPMorgan Chase
& Co., its subsidiaries and affiliates. This transmission may contain
information that is privileged, confidential, legally privileged, and/or
exempt from disclosure under applicable law. If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. Although this transmission and
any attachments are believed to be free of any virus or other defect that
might affect any computer system into which it is received and opened, it
is the responsibility of the recipient to ensure that it is virus free and
no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries
and affiliates, as applicable, for any loss or damage arising in any way
from its use. If you received this transmission in error, please
immediately contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you. Please refer to
http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK
legal entities.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market
prices, data and other information are not warranted as to completeness or
accuracy and are subject to change without notice. Any comments or
statements made herein do not necessarily reflect those of JPMorgan Chase
& Co., its subsidiaries and affiliates. This transmission may contain
information that is privileged, confidential, legally privileged, and/or
exempt from disclosure under applicable law. If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. Although this transmission and
any attachments are believed to be free of any virus or other defect that
might affect any computer system into which it is received and opened, it
is the responsibility of the recipient to ensure that it is virus free and
no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries
and affiliates, as applicable, for any loss or damage arising in any way
from its use. If you received this transmission in error, please
immediately contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you. Please refer to
http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK
legal entities. _______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
-----------------------------------------
This communication is for informational purposes only. It is not
intended as an offer or solicitation for the purchase or sale of
any financial instrument or as an official confirmation of any
transaction. All market prices, data and other information are not
warranted as to completeness or accuracy and are subject to change
without notice. Any comments or statements made herein do not
necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
and affiliates.
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase &
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.
Please refer to
http://www.jpmorgan.com/pages/disclosures for
disclosures relating to UK legal entities.