<?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 Re: Timers are not deleted after workflow completion causing performance issues in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/timers-are-not-deleted-after-workflow-completion-causing/m-p/306987#M260117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had the same kind of problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would use a boundaryevent to set a timer on a validation task (I wanted the files to be archived at a further date after the validation done).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;boundaryEvent id="validationTaskBoundarytimer" name="" cancelActivity="true" attachedToRef="validationTask"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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;lt;timeDate&amp;gt;${wmase_dueDate}&amp;lt;/timeDate&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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;lt;/boundaryEvent&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My first way of achieving this was to set an &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;executionListener&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; on the &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;sequenceFlow&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; wiring the boundaryEvent with the endEvent, and do all the copying stuff in it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, the code would execute but the files remained in the same place and the timer job still there too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In other words, the transaction was never commited !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I solved the issue by plaing my script in a new javascript task (&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;serviceTask id="archivageTask" name="Archivage" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate"&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;) between the boundaryEvent and the endEvent, and it turned out to work (don't ask me why…) !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Mar 2014 09:14:41 GMT</pubDate>
    <dc:creator>jservajean</dc:creator>
    <dc:date>2014-03-06T09:14:41Z</dc:date>
    <item>
      <title>Timers are not deleted after workflow completion causing performance issues</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timers-are-not-deleted-after-workflow-completion-causing/m-p/306986#M260116</link>
      <description>Hi,I've developed a workflow using Activiti and Alfresco 4.2 that uses some timers (of type TimerCatchingEvent). Every time a timer fires a new entry is created in the ACT_RU_JOB table of Activiti, but I've read from the Activiti forums that this is the expected behaviour. The problem is that after</description>
      <pubDate>Fri, 09 Aug 2013 12:43:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timers-are-not-deleted-after-workflow-completion-causing/m-p/306986#M260116</guid>
      <dc:creator>mreyem</dc:creator>
      <dc:date>2013-08-09T12:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Timers are not deleted after workflow completion causing performance issues</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timers-are-not-deleted-after-workflow-completion-causing/m-p/306987#M260117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had the same kind of problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would use a boundaryevent to set a timer on a validation task (I wanted the files to be archived at a further date after the validation done).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;boundaryEvent id="validationTaskBoundarytimer" name="" cancelActivity="true" attachedToRef="validationTask"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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;lt;timeDate&amp;gt;${wmase_dueDate}&amp;lt;/timeDate&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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;lt;/boundaryEvent&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My first way of achieving this was to set an &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;executionListener&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; on the &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;sequenceFlow&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; wiring the boundaryEvent with the endEvent, and do all the copying stuff in it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, the code would execute but the files remained in the same place and the timer job still there too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In other words, the transaction was never commited !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I solved the issue by plaing my script in a new javascript task (&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;serviceTask id="archivageTask" name="Archivage" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate"&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;) between the boundaryEvent and the endEvent, and it turned out to work (don't ask me why…) !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 09:14:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timers-are-not-deleted-after-workflow-completion-causing/m-p/306987#M260117</guid>
      <dc:creator>jservajean</dc:creator>
      <dc:date>2014-03-06T09:14:41Z</dc:date>
    </item>
  </channel>
</rss>

