Hello, I received the notification! Not 1 minute later but 36 minutes later but it works for me now. Is it possible to configure/set somewhere how frequently swamp checks the triggering dates?
Thanks, Gyorgy swamp.log shows: 09.03 13:51:13 [DEBUG] Trigger-BaseDate is: Thu Mar 09 13:25:29 CET 2006 09.03 13:51:13 [DEBUG] Extracted offsetNumber 1 09.03 13:51:13 [DEBUG] Will set triggerOffset to 60000 09.03 13:51:13 [DEBUG] TriggerDate is: Thu Mar 09 13:26:29 CET 2006 09.03 13:51:13 [DEBUG] SendEventAction reminder_sales_paper_contract_delay_1d triggered! 09.03 13:51:13 [DEBUG] Wf-3: Handling event SALES_PAPER_CONTRACT_DELAY_1D 09.03 13:51:13 [DEBUG] Leaving node: sales_paper_contract 09.03 13:51:13 [DEBUG] getTasksForWorkflowNode found 2 WorkflowTasks. 09.03 13:51:13 [DEBUG] Storing Task: #19 (action: dataedit #contract_arrived_in_paper_format) 09.03 13:51:13 [DEBUG] Storing Task: #20 (action: SendEventAction #reminder_sales_paper_contract_delay_1d) 09.03 13:51:13 [DEBUG] Entering node: sales_paper_contract_delay_1d 09.03 13:51:13 [DEBUG] Storing Task: #0 (action: NotifyTaskAction #notify_sales_paper_contract_delay_1d) 09.03 13:51:13 [DEBUG] Acting Notify-Task + 21 09.03 13:51:13 [DEBUG] New NotifyTask triggered, now creating notification 09.03 13:51:13 [DEBUG] Mailing to User from SWAMPUser: knyihar 09.03 13:51:13 [DEBUG] Added Recp. Email [EMAIL PROTECTED] 09.03 13:51:13 [DEBUG] Notification: Mailing to [EMAIL PROTECTED] 09.03 13:51:13 [DEBUG] Notification with id 9 inserted 09.03 13:51:13 [DEBUG] Wf-3:Notification added in DB with ID 9 09.03 13:51:13 [DEBUG] Sendnotifies() called, searching for Notifies to send... 09.03 13:51:13 [DEBUG] Trying to send Notification with id=9 09.03 13:51:13 [DEBUG] Using Template File: /usr/local/apache-tomcat-5.5.15/webapps/webswamp/WEB-INF/conf/workflows/ADSLorder/0.2/notifications/reminders/sales_paper_contract_delay_1d 09.03 13:51:13 [DEBUG] prepareContentString() took 3ms 09.03 13:51:13 [DEBUG] Notification Mail successfully sent 09.03 13:51:13 [DEBUG] Notification with id 9 was updated 09.03 13:51:13 [DEBUG] Sendnotifies() called, searching for Notifies to send... 09.03 13:51:13 [DEBUG] Storing Task: #21 (action: NotifyTaskAction #notify_sales_paper_contract_delay_1d) 09.03 13:51:13 [DEBUG] Scheduled job sendnotifies() task: NotifyScheduler ran @: Thu Mar 09 13:51:13 CET 2006 09.03 13:51:13 [DEBUG] Wf-3:Finished Handling event SALES_PAPER_CONTRACT_DELAY_1D 09.03 13:51:13 [DEBUG] Updated Node with id: 43 09.03 13:51:13 [DEBUG] Updated Node with id: 61 09.03 13:51:13 [DEBUG] Updated DataCondition #248 09.03 13:51:13 [DEBUG] Updated DataCondition #255 09.03 13:51:13 [DEBUG] Updated EventCondition #261 09.03 13:51:13 [DEBUG] Scheduled Task TimeTriggers ran @: Thu Mar 09 13:51:13 CET 2006 and triggered 1 SendEventActions Idézés Gyorgy Knyihar <[EMAIL PROTECTED]>: > Hello, > > Now I'm trying to use the sendevent feature of swamp but I'm afraid that I do > something wrong. > The triggering never happens. I changed the offset to 1 minute for testing. I > have the following in my workflow.xml: > > ------------------------------------------------------------------------------- > <node name="sales_paper_contract"> > <description>Sales</description> > > <notification name="notify_sales_paper_contract" > msgtemplate="notifications/check_if_paper_contract_received"> > <recipient recipientname="knyihar" eventtype="none"/> > </notification> > > <dataedit name="contract_arrived_in_paper_format" > eventtype="DATAEDIT2b_OK" role="user"> > <description>A papír alapú szerződés beérkezésének > nyomonkövetése</description> > <longdesc>A signed contract should arrive in papre format. It is > sales' responsibility.</longdesc> > <field > path="ADSLorderdataset.adsl.contract_arrived_in_paper_format" > mandatory="yes" /> > <field path="ADSLorderdataset.adsl.comments" mandatory="no" /> > </dataedit> > > <sendevent name="reminder_sales_paper_contract_delay_1d" > eventtype="SALES_PAPER_CONTRACT_DELAY_1D"> > <triggerdate databit="System.sales_paper_contract.enterDate" > offset="+1m" > onlyweekdays="true"/> > </sendevent> > > <edge to="sales_paper_contract_delay_1d" > event="SALES_PAPER_CONTRACT_DELAY_1D"> > </edge> > > </node> > > <node name="sales_paper_contract_delay_1d"> > <description>Reminder</description> > <longdesc>Sales should be reminded here.</longdesc> > > <notification name="notify_sales_paper_contract_delay_1d" > msgtemplate="notifications/reminders/sales_paper_contract_delay_1d"> > <recipient recipientname="knyihar" eventtype="none"/> > </notification> > </node> > > ------------------------------------------------------------------------------- > > swamp.log shows: > > > > > 09.03 13:25:29 [DEBUG] Storing Task: #0 (action: SendEventAction > #reminder_sales_paper_contract_delay_1d) > 09.03 13:25:29 [DEBUG] Trigger-BaseDate is: Thu Mar 09 13:25:29 CET 2006 > 09.03 13:25:29 [DEBUG] Extracted offsetNumber 1 > 09.03 13:25:29 [DEBUG] Will set triggerOffset to 60000 > 09.03 13:25:29 [DEBUG] TriggerDate is: Thu Mar 09 13:26:29 CET 2006 > 09.03 13:25:29 [DEBUG] SendEventAction reminder_sales_paper_contract_delay_1d > not triggered! (not yet) > 09.03 13:25:29 [DEBUG] Storing Task: #20 (action: SendEventAction > #reminder_sales_paper_contract_delay_1d) > 09.03 13:25:29 [DEBUG] Wf-3:Finished Handling event DATAEDIT1_OK > 09.03 13:25:29 [DEBUG] Updated Node with id: 48 > 09.03 13:25:29 [DEBUG] Updated Node with id: 57 > 09.03 13:25:29 [DEBUG] Updated Node with id: 61 > 09.03 13:25:29 [DEBUG] Updated DataCondition #192 > 09.03 13:25:29 [DEBUG] Updated DataCondition #193 > 09.03 13:25:29 [DEBUG] Updated DataCondition #195 > 09.03 13:25:29 [DEBUG] Updated DataCondition #196 > 09.03 13:25:29 [DEBUG] Updated DataCondition #205 > 09.03 13:25:29 [DEBUG] Updated DataCondition #207 > 09.03 13:25:29 [DEBUG] Updated DataCondition #208 > 09.03 13:25:29 [DEBUG] Updated DataCondition #248 > 09.03 13:25:29 [DEBUG] Updated DataCondition #255 > 09.03 13:25:29 [DEBUG] Wf-3: Handling event DATA_CHANGED > 09.03 13:25:29 [DEBUG] Wf-3:Finished Handling event DATA_CHANGED > 09.03 13:25:29 [DEBUG] Updated DataCondition #248 > 09.03 13:25:29 [DEBUG] Updated DataCondition #255 > 09.03 13:25:29 [INFO ] Webapp: Done with working on task with id 15 > 09.03 13:25:29 [ERROR] ************************************************ > 09.03 13:25:29 [ERROR] Did not find helpfile in path: > workflows.ADSLorder.Index > 09.03 13:25:29 [ERROR] ************************************************ > 09.03 13:26:47 [ERROR] ************************************************ > 09.03 13:26:47 [ERROR] Did not find helpfile in path: > workflows.ADSLorder.Index > 09.03 13:26:47 [ERROR] ************************************************ > 09.03 13:27:01 [INFO ] Drawing graph to > /usr/local/apache-tomcat-5.5.15/webapps/webswamp/WEB-INF/../var/graphs/ADSLorder3-9_13.png > 09.03 13:27:02 [DEBUG] Dot exitValue: 0 > 09.03 13:27:02 [INFO ] Drawing graph to > /usr/local/apache-tomcat-5.5.15/webapps/webswamp/WEB-INF/../var/graphs/ADSLorder3.png > 09.03 13:27:03 [DEBUG] Dot exitValue: 0 > ------------------------------------------------------------------------------- > > When I set the offset to 0 minute the triggering happens but the notification > is > not sent out. Can you help here please? What I do wrong? > (Of course the sales_paper_contract node is active.) > > Many thanks for your help. > > Regards, Gyorgy > > > > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ swamp-devel mailing list swamp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/swamp-devel http://swamp.sf.net