[jboss-jira] [JBoss JIRA] Closed: (JBRULES-1802) Drools - Having RHS populated dynamically at runtime
Mark Proctor (JIRA)
jira-events at lists.jboss.org
Fri Jan 16 02:16:28 EST 2009
[ https://jira.jboss.org/jira/browse/JBRULES-1802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Proctor closed JBRULES-1802.
---------------------------------
Resolution: Rejected
This isn't a bug or an enhancement request, please use the USER the mailing lists for questions like this:
http://www.jboss.org/drools/lists.html
In brief though. It would be possible to have a rule that queries data from the database, using the 'from' keyword and a hibernate sessions, to set the global. If you need any more help on this, please as in the USER mailing list, not here.
> Drools - Having RHS populated dynamically at runtime
> ----------------------------------------------------
>
> Key: JBRULES-1802
> URL: https://jira.jboss.org/jira/browse/JBRULES-1802
> Project: JBoss Drools
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Components: All
> Reporter: shikha aggarwal
> Assignee: Mark Proctor
>
> Hi,
> I am new to Drools and trying to evaluate it for my application. We are trying to implement an alert engine integrated with an event platform.
> user has set a subsription Rule -
> When balance < 2000$ send me an alert
> When balance > 5000$ send me an alert
> when the alert engine recieves an event for example -
> user X has a balance of 1000$ in his account.
> I need the Drule to have the RHS defined dynamically and the values injected from datbase.
> For example -
> When balance > {amt}
> When balance <{amt2}
> I would want the amt and amount 2 to be injected at runtime before firing rules. I understand that I can use globals? but is there a way to retract them or does Drules provide a way in which the RHS can be integrated with database?
> Thanks
> Shikha
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list