<?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 Boundary Timer and ISO 8601 usage in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/boundary-timer-and-iso-8601-usage/m-p/131608#M92493</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a user task with a boundary timer attached. The boundary timer uses a process variable to set the time/date as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;userTask id="waitTask" name="Wait for Timer Elapse" activiti:assignee="system"&amp;gt;&amp;lt;/userTask&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;boundaryEvent id="boundaryDailyTimer" name="Daily Task Boundary Timer" cancelActivity="true" attachedToRef="waitTask"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timerEventDefinition&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timeDate&amp;gt;${nextRunTime}&amp;lt;/timeDate&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/timerEventDefinition&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/boundaryEvent&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I progammatically set the value of nextRunTime to an ISO 8601 date/time format, such as '2012-12-07T10:47:00'. My process is successfully using the value to trigger the expected action within my business process. All is good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For debugging purposes I needed to change the value of the nextRunTime process variable, so I could trigger the business process when I wanted. So I used SQL to modify the value in the database as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;update act_ru_variable set text_='2012-12-07T22:47:00' where text_='2012-12-07T10:47:00';&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This updated the process variable in the database as expected. The application was NOT running while I made this update to the database. I restarted my application, and was surprised to find that the process using the updated process variable still fired at 10:47 AM, even though my application log showed that the nextRunTime variable value was indeed set to '2012-12-07T22:47:00' (or 10:47 PM).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have other process executions that fire correctly for times such as '2012-12-07T22:47:00', at 10:47 PM. So it appears the 24 hour clock is honored by the boundary timer. I don't understand why my variable modifications were not honored by the processes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I have a couple questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Will using SQL to modify process variables in act_ru_variable have the desired effect on a process instance using that variable?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Are process variables maintained by the Activiti engine in another location, such as cache?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Is there another way that I should be modifying process variables stored in act_ru_variable table? Will this change be honored by the Activiti engine?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for helping me understand the workings of Activiti. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Dec 2012 18:05:59 GMT</pubDate>
    <dc:creator>jayehsea</dc:creator>
    <dc:date>2012-12-07T18:05:59Z</dc:date>
    <item>
      <title>Boundary Timer and ISO 8601 usage</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/boundary-timer-and-iso-8601-usage/m-p/131608#M92493</link>
      <description>I have a user task with a boundary timer attached. The boundary timer uses a process variable to set the time/date as follows:&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;userTask id="waitTask" name="Wait for Timer Elapse" activiti:assignee="system"&amp;gt;&amp;lt;/userTask&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;boundaryEvent id="boundaryDailyTimer" name="Daily Task Boun</description>
      <pubDate>Fri, 07 Dec 2012 18:05:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/boundary-timer-and-iso-8601-usage/m-p/131608#M92493</guid>
      <dc:creator>jayehsea</dc:creator>
      <dc:date>2012-12-07T18:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Boundary Timer and ISO 8601 usage</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/boundary-timer-and-iso-8601-usage/m-p/131609#M92494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1: If the engine was not running, I would suspect it to be taken into account… Unless a job needing this date was already created!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2: no, the processdefinition is cached…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3: the java api?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And why do you need to set it for debugging purposes?&amp;nbsp; Look at the activiti testcases, there is a clockutil (not sure if it is actually called that way) that can be used to manipulate the actual time seeen by the engine…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Dec 2012 09:55:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/boundary-timer-and-iso-8601-usage/m-p/131609#M92494</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-12-08T09:55:58Z</dc:date>
    </item>
  </channel>
</rss>

