<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Activiti process timer DB entry in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-process-timer-db-entry/m-p/164913#M118631</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&amp;nbsp; All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have a scenario to notify the user with some message after 30 days. We have used the below code to initiate the timer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;boundaryEvent id="timer1" name="Timer1" attachedToRef="subProcess" cancelActivity="false"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timerEventDefinition&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timeDuration&amp;gt;P30D&amp;lt;/timeDuration&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/timerEventDefinition&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;boundaryEvent&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;sequenceFlow id="flow17" sourceRef="timer1" targetRef="notifyUser"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When notification occurs after 30 day, but now for testing we have to tweak the framework to get the notification with the specified time. Can someone help us out with some tips to achieve it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any DB changes to set the timestamp which can tweak the&amp;nbsp; notification functionality?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Darshan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Oct 2013 09:25:54 GMT</pubDate>
    <dc:creator>darshan_hardas</dc:creator>
    <dc:date>2013-10-14T09:25:54Z</dc:date>
    <item>
      <title>Activiti process timer DB entry</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-process-timer-db-entry/m-p/164913#M118631</link>
      <description>Hi&amp;nbsp; All,We have a scenario to notify the user with some message after 30 days. We have used the below code to initiate the timer: &amp;lt;boundaryEvent id="timer1" name="Timer1" attachedToRef="subProcess" cancelActivity="false"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timerEventDefinition&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timeDuration&amp;gt;P</description>
      <pubDate>Mon, 14 Oct 2013 09:25:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-process-timer-db-entry/m-p/164913#M118631</guid>
      <dc:creator>darshan_hardas</dc:creator>
      <dc:date>2013-10-14T09:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti process timer DB entry</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-process-timer-db-entry/m-p/164914#M118632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Attached here with the timer code in the workflow.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 09:41:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-process-timer-db-entry/m-p/164914#M118632</guid>
      <dc:creator>darshan_hardas</dc:creator>
      <dc:date>2013-10-14T09:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti process timer DB entry</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-process-timer-db-entry/m-p/164915#M118633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any help on this topic?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 17:18:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-process-timer-db-entry/m-p/164915#M118633</guid>
      <dc:creator>darshan_hardas</dc:creator>
      <dc:date>2013-10-18T17:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti process timer DB entry</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-process-timer-db-entry/m-p/164916#M118634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are a lot of possibilities. What kind of tests do you want to run?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One proposal could be to use simulation and move process execution into virtual time. In that case you can achieve 30d delay independently from real time. Simulation framework: &lt;/SPAN&gt;&lt;A href="http://gro-mar.github.io/activiti-crystalball/" rel="nofollow noopener noreferrer"&gt;http://gro-mar.github.io/activiti-crystalball/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Oct 2013 18:44:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-process-timer-db-entry/m-p/164916#M118634</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2013-10-19T18:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti process timer DB entry</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-process-timer-db-entry/m-p/164917#M118635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As per my understanding, when a workflow is initiated by processEngine, a DB entry to ACT_HI_PROCINST is made. Similarly for the timer if i change the creation date then the alert shown after 30 days can be tweaked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can somebody help us out with the DB table where the timer task is added?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 09:30:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-process-timer-db-entry/m-p/164917#M118635</guid>
      <dc:creator>darshan_hardas</dc:creator>
      <dc:date>2013-10-22T09:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti process timer DB entry</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-process-timer-db-entry/m-p/164918#M118636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could following jUnit test help you?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/test/java/org/activiti/examples/bpmn/event/timer/BoundaryTimerEventTest.java?source=java" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/test/java/org/activiti/examples/bpmn/event/timer/BoundaryTimerEventTest.java?source=java&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; public void testInterruptingTimerDuration() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Start process instance&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessInstance pi = runtimeService.startProcessInstanceByKey("escalationExample");&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // There should be one task, with a timer : first line support&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Task task = taskService.createTaskQuery().processInstanceId(pi.getId()).singleResult();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; assertEquals("First line support", task.getName());&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Manually execute the job&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Job timer = managementService.createJobQuery().singleResult();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; managementService.executeJob(timer.getId());&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // The timer has fired, and the second task (secondlinesupport) now exists&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; task = taskService.createTaskQuery().processInstanceId(pi.getId()).singleResult();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; assertEquals("Handle escalated issue", task.getName());&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;process definition:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/test/resources/org/activiti/examples/bpmn/event/timer/BoundaryTimerEventTest.testInterruptingTimerDuration.bpmn20.xml?source=c" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/test/resources/org/activiti/examples/bpmn/event/timer/BoundaryTimerEventTest.testInterruptingTimerDuration.bpmn20.xml?source=c&lt;/A&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;userTask id="firstLineSupport" name="First line support" activiti:assignee="kermit"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;documentation&amp;gt;Fix issue raised by customer&amp;lt;/documentation&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/userTask&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;sequenceFlow id="flow2" sourceRef="firstLineSupport" targetRef="normalEnd" /&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;endEvent id="normalEnd" /&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;boundaryEvent id="escalationTimer" cancelActivity="true" attachedToRef="firstLineSupport"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;timerEventDefinition&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timeDuration&amp;gt;PT5M&amp;lt;/timeDuration&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/timerEventDefinition&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/boundaryEvent&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;sequenceFlow id="flow3" sourceRef="escalationTimer" targetRef="handleEscalation" /&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;userTask id="handleEscalation" name="Handle escalated issue" activiti:candidateGroups="management"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;documentation&amp;gt;Escalation: issue was not fixed in time by first level support&amp;lt;/documentation&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/userTask&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;sequenceFlow id="flow4" sourceRef="handleEscalation" targetRef="escalatedEnd" /&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 06:44:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-process-timer-db-entry/m-p/164918#M118636</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2013-10-23T06:44:48Z</dc:date>
    </item>
  </channel>
</rss>

