[jboss-user] [jBPM] - Re: Design advice: multi-day scenario
vchmakov
do-not-reply at jboss.com
Wed Jan 30 15:30:31 EST 2013
vchmakov [https://community.jboss.org/people/vchmakov] created the discussion
"Re: Design advice: multi-day scenario"
To view the discussion, visit: https://community.jboss.org/message/795276#795276
--------------------------------------------------------------
Hi,
This process is executed by scheduler periodically, e.g. daily:
Select Customer.ID Customer where Today-Customer.ActivationDay = 10 and Customer.Status <> “No Mail” -> send email A
Select Customer.ID Customer where Today-Customer.ActivationDay = 20 and Customer.Status <> “No Mail” -> send email B
Select Customer.ID Customer where Today-Customer.ActivationDay = 30 and Customer.Status <> “No Mail” -> send email C
Select Customer.ID Customer where Today-Customer.ActivationDay = 45 and Customer.Status <> “No Mail” -> send email D
Select Customer.ID Customer where Today-Customer.ActivationDay = 60 and Customer.Status <> “No Mail” -> update Customer set Customer .status=“No Mail” where Customer.ID=?
This process is triggered by “Unsubscribe” event:
Select * from Customer where Customer.ID = ? -> update customer set status=“No Mail” where Customer.ID=?
In my opinion this use case fits perfectly for the Drools implementation (event/rule driven), but has nothing to do with jBPM. Maybe there is something not mentioned above that can be implemented in jBPM, but it is always easy to do implementing a rule in certain way.
Thanks,
Vladimir
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/795276#795276]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130130/6eca8633/attachment-0001.html
More information about the jboss-user
mailing list