<?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: Property to use for knowing How many times a boundary timer has been executed? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/property-to-use-for-knowing-how-many-times-a-boundary-timer-has/m-p/14036#M6190</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Niklas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for providing helpful information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a quick question, that you are talking about which version of Activiti? I think that Table and Value of the mentioned column would be there for upgraded version of activiti.&lt;/P&gt;&lt;P&gt;Because we are running on Activiti Framework version 5.15, and in that we have REPEAT_ = NULL in table act_ru_job (I didn't find any table like act_ru_timer_job for this version of Activiti).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now suggest me someway for out current version itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ami Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Feb 2017 05:19:31 GMT</pubDate>
    <dc:creator>ami</dc:creator>
    <dc:date>2017-02-23T05:19:31Z</dc:date>
    <item>
      <title>Property to use for knowing How many times a boundary timer has been executed?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/property-to-use-for-knowing-how-many-times-a-boundary-timer-has/m-p/14032#M6186</link>
      <description>Hi,We are providing parameters: 'cycles' and 'timeDuration' to the Boundary timer for performing some repetitive task .The question here is: how can we get to know and show that How many times the boundary timer has been executed out of total given cycles ?i.e. cycles = 5 and&amp;nbsp;currently Boundary time</description>
      <pubDate>Tue, 21 Feb 2017 07:20:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/property-to-use-for-knowing-how-many-times-a-boundary-timer-has/m-p/14032#M6186</guid>
      <dc:creator>ami</dc:creator>
      <dc:date>2017-02-21T07:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Property to use for knowing How many times a boundary timer has been executed?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/property-to-use-for-knowing-how-many-times-a-boundary-timer-has/m-p/14033#M6187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In what context do you want to show how many times it has been completed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;External to the process, if you're just interested in checking, or building something that would query and check those values - so long as your store the value as a process variable, you could always use the &lt;A href="https://docs.alfresco.com/activiti/docs/dev-guide/1.5.0/#_process_instance_variables" rel="nofollow noopener noreferrer"&gt;REST endpoint&lt;/A&gt; for querying variable values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a similar vein (although this doesn't sound like a User Task you're repeating), you could potentially just display that process variable data somewhere in the forms. I imagine you're looking for something more like the REST option.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;-JEarles&lt;BR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 20:02:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/property-to-use-for-knowing-how-many-times-a-boundary-timer-has/m-p/14033#M6187</guid>
      <dc:creator>jearles</dc:creator>
      <dc:date>2017-02-21T20:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Property to use for knowing How many times a boundary timer has been executed?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/property-to-use-for-knowing-how-many-times-a-boundary-timer-has/m-p/14034#M6188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a bunch for the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We just wanna show it in the designer visually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to check all Runtime tables of Activiti framework i.e act_ru_job, act_ru_execution etc, but I couldn't understand how Aciviti keeps track of the number of Cycles/times timer is executed executed (mentioned in configuration of boundary timer). It would be great if you can answer this question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if I get to know this, then I can take current state of variable/Property/or something that can tell me 'Number of times that timer has executed out of total mentioned Cycles'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked the link that you have shared, but couldn't understand the usability of it to get exact number of cycles executed, If you can provide me Sample code for doing so, I would really be thankful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ami Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 05:51:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/property-to-use-for-knowing-how-many-times-a-boundary-timer-has/m-p/14034#M6188</guid>
      <dc:creator>ami</dc:creator>
      <dc:date>2017-02-22T05:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Property to use for knowing How many times a boundary timer has been executed?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/property-to-use-for-knowing-how-many-times-a-boundary-timer-has/m-p/14035#M6189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ami,&lt;/P&gt;&lt;P&gt;the information about timers is stored in act_ru_timer_job. There is a column called repeat_. In this column the time string is stored and decreased everytime the timer is executed. Therefore you would need to use the ManagementService to query the timer job and get the string there. But i don't know if there is a better approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps a bit&lt;/P&gt;&lt;P&gt;Niklas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 09:41:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/property-to-use-for-knowing-how-many-times-a-boundary-timer-has/m-p/14035#M6189</guid>
      <dc:creator>nikmenke</dc:creator>
      <dc:date>2017-02-22T09:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Property to use for knowing How many times a boundary timer has been executed?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/property-to-use-for-knowing-how-many-times-a-boundary-timer-has/m-p/14036#M6190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Niklas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for providing helpful information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a quick question, that you are talking about which version of Activiti? I think that Table and Value of the mentioned column would be there for upgraded version of activiti.&lt;/P&gt;&lt;P&gt;Because we are running on Activiti Framework version 5.15, and in that we have REPEAT_ = NULL in table act_ru_job (I didn't find any table like act_ru_timer_job for this version of Activiti).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now suggest me someway for out current version itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ami Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 05:19:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/property-to-use-for-knowing-how-many-times-a-boundary-timer-has/m-p/14036#M6190</guid>
      <dc:creator>ami</dc:creator>
      <dc:date>2017-02-23T05:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Property to use for knowing How many times a boundary timer has been executed?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/property-to-use-for-knowing-how-many-times-a-boundary-timer-has/m-p/14037#M6191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ami,&lt;/P&gt;&lt;P&gt;if i use Activiti 5.15 the timer is stored in act_ru_job with the value of timeCycle in column repeat_. But the value isn't decreased. A workaround would be querying the history for activity. Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;historyService.createHistoricActivityInstanceQuery().activityId("timerId").processInstanceId("processInstanceId").list();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Niklas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 07:56:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/property-to-use-for-knowing-how-many-times-a-boundary-timer-has/m-p/14037#M6191</guid>
      <dc:creator>nikmenke</dc:creator>
      <dc:date>2017-02-23T07:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Property to use for knowing How many times a boundary timer has been executed?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/property-to-use-for-knowing-how-many-times-a-boundary-timer-has/m-p/14038#M6192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Niklas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your answer was so much helpful to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lemme share my quick and EASY solution to Showing number of timer Boundary timer has been executed:&lt;/P&gt;&lt;P&gt;Simply we can use 'act_hi_actinst' table, if boundary timer is executed 2 times, there you find 2 entries for boundary timer, hence using sID and number of entries for the same or different sID entries, we can determine Boundary Timer Execution Count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now the main Question is, Where exactly Activiti stores configured 'cycles' parameter's value??&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because before boundary timer executes, we can find entry of it in 'act_ru_job' table with column value: i.e. REPEAT_ = R3/2017-02-23T14:53:06/PT1M&lt;/P&gt;&lt;P&gt;But once boundary timer is executed, this entry vanishes and then I can't understand how does Activiti keeps track of left 2 repetition of timer execution (in case of cycles = 3, for example).&lt;/P&gt;&lt;P&gt;Kindly show me simplest way of fetching values of Cycles (i.e. from any column of any Activiti table), because Byte array parsing is also not a optimised&amp;nbsp;way of fetching cycle's value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ami Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 07:00:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/property-to-use-for-knowing-how-many-times-a-boundary-timer-has/m-p/14038#M6192</guid>
      <dc:creator>ami</dc:creator>
      <dc:date>2017-02-27T07:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Property to use for knowing How many times a boundary timer has been executed?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/property-to-use-for-knowing-how-many-times-a-boundary-timer-has/m-p/14039#M6193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ami,&lt;/P&gt;&lt;P&gt;the timer is deleted from act_ru_job if all the times it should repeat are executed or if the task get's completed. The repititions are calculated and not stored. Have a look at the&amp;nbsp;TimerEntity.execute method. The time when the timer was set is stored in the repeat_ column. Furthermore you can calculate if the timer has to be executed again or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Niklas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 08:30:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/property-to-use-for-knowing-how-many-times-a-boundary-timer-has/m-p/14039#M6193</guid>
      <dc:creator>nikmenke</dc:creator>
      <dc:date>2017-02-27T08:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Property to use for knowing How many times a boundary timer has been executed?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/property-to-use-for-knowing-how-many-times-a-boundary-timer-has/m-p/14040#M6194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Niklas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am almost done with the solution but just a step away.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a scenario, if we have something that clears all pending action attached immediately after boundary timer then, despite the boundary timer was configured with cycles=3 attached to a user task, the timer runs once, and then actions are cleared so how to get original count of cycles then? As in this scenario the act_ru_job table has no entries now, so now what's the option to know Originally configured cycles??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ami Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 05:13:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/property-to-use-for-knowing-how-many-times-a-boundary-timer-has/m-p/14040#M6194</guid>
      <dc:creator>ami</dc:creator>
      <dc:date>2017-02-28T05:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Property to use for knowing How many times a boundary timer has been executed?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/property-to-use-for-knowing-how-many-times-a-boundary-timer-has/m-p/14041#M6195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ami,&lt;/P&gt;&lt;P&gt;i think there are&amp;nbsp;only two&amp;nbsp;options. The first one is to get the bpmnModel of the processDefinition and read&amp;nbsp;the String from the timer. Or if you pass the String for the timerEvent as a processVariable you can get from a HistoricProcessInstanceQuery by including the variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Niklas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 07:06:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/property-to-use-for-knowing-how-many-times-a-boundary-timer-has/m-p/14041#M6195</guid>
      <dc:creator>nikmenke</dc:creator>
      <dc:date>2017-02-28T07:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Property to use for knowing How many times a boundary timer has been executed?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/property-to-use-for-knowing-how-many-times-a-boundary-timer-has/m-p/14042#M6196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for helping me through this journey&amp;nbsp;of finding solution. I am done with the work of displaying the Boundary timer execution count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now moving to the next hunt with Alfresco Activity framework, have a look at it:&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/thread/229481"&gt;Boundary timer continues its execution even if the User task is completed&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ami&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 09:53:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/property-to-use-for-knowing-how-many-times-a-boundary-timer-has/m-p/14042#M6196</guid>
      <dc:creator>ami</dc:creator>
      <dc:date>2017-03-01T09:53:11Z</dc:date>
    </item>
  </channel>
</rss>

