Hi Awhwini,
IMO, if you don't want the LHS of each rule to reference a Schedule
object you'd be better of either:-
(b) Using AgendaGroups: The default Agenda Group could contain rules to
decide which schedule needs to be activated. The RHS of these rules
would set the focus to the applicable Agenda Group containing all the
rules associated with the schedule.
(a) Using a different RuleBase for each schedule; but the "which
schedule to activate" decision would be either undertaken in hard-coded
Java or another RuleBase that returns an object indicating which other
Rulebase to use.
Option (a) is probably the cleaner approach.
With kind regards,
Mike
________________________________
From: rules-users-bounces(a)lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Ashwini Joshi
Sent: 11 July 2007 08:08
To: rules-users(a)lists.jboss.org
Subject: [rules-users] Set of rules needs to be executed based
on somecondition
Hi,
We have a requirement that each set of rules is associated with
a schedule that defines when this rule needs to be executed.
So I need to check whether date, time and week matches and only
then execute the set of rules. I don't want to check the schedule for
each rule. I want to do it only once for each set of rule. What feature
of rules engine can I use for this?
Thanks,
Ashwini
DISCLAIMER ========== This e-mail may contain privileged and
confidential information which is the property of Persistent Systems
Pvt. Ltd. It is intended only for the use of the individual or entity to
which it is addressed. If you are not the intended recipient, you are
not authorized to read, retain, copy, print, distribute or use this
message. If you have received this communication in error, please notify
the sender and delete all copies of this message. Persistent Systems
Pvt. Ltd. does not accept any liability for virus infected mails.