<?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 TimerBoundaryEvents &amp; new job in ACT_RU_JOB table in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/timerboundaryevents-new-job-in-act-ru-job-table/m-p/36362#M15339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have following business case:&lt;/P&gt;&lt;P&gt;User wants to receive notifications N days before particular task due date. Moreover, there is possibility to change due date from application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I've created user task and timer boundary event, which is connected with it. Everything works fine - when user task is active in process, notification is sent to the user on calculated date based on process variable. However, timer boundary event does not finish user task. In this case, when timer boundary event is fired and job is completed, user can change due date in application and expects next notification N day before new due date. Unfortunately, when user changes due date, new job is not created. I suppose I have to create it manually, but API does not allow such kind of operation. I am able to do it by direct iBatis call:&lt;/P&gt;&lt;PRE style="background-color: #ffffff; color: #000000; font-family: 'Courier New'; font-size: 9,0pt;"&gt;dbSqlSession.getSqlSession().insert(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"insertTimer"&lt;/SPAN&gt;, &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;timerEntity&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;P&gt;It is not good solution. Could you please help me with this case? Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 May 2017 08:17:37 GMT</pubDate>
    <dc:creator>mlody</dc:creator>
    <dc:date>2017-05-17T08:17:37Z</dc:date>
    <item>
      <title>TimerBoundaryEvents &amp; new job in ACT_RU_JOB table</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/timerboundaryevents-new-job-in-act-ru-job-table/m-p/36362#M15339</link>
      <description>Hi all,I have following business case:User wants to receive notifications N days before particular task due date. Moreover, there is possibility to change due date from application.So, I've created user task and timer boundary event, which is connected with it. Everything works fine - when user task</description>
      <pubDate>Wed, 17 May 2017 08:17:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/timerboundaryevents-new-job-in-act-ru-job-table/m-p/36362#M15339</guid>
      <dc:creator>mlody</dc:creator>
      <dc:date>2017-05-17T08:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: TimerBoundaryEvents &amp; new job in ACT_RU_JOB table</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/timerboundaryevents-new-job-in-act-ru-job-table/m-p/36363#M15340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you have the TimerEntity definition, have you tried:&lt;BR /&gt;import org.activiti.engine.impl.context.Context;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Context.getCommandContext().getJobEntityManager().schedule(myTimerEntity);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ultimately it does the same thing you are doing, but you aren't making an explicit iBatis call.&lt;/P&gt;&lt;P&gt;Let me know how it goes.&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;P.S. Id be interested in how you are retrieving/constructing the TimerEntity since it will be gone as soon as the timer fires.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 18:58:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/timerboundaryevents-new-job-in-act-ru-job-table/m-p/36363#M15340</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-05-17T18:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: TimerBoundaryEvents &amp; new job in ACT_RU_JOB table</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/timerboundaryevents-new-job-in-act-ru-job-table/m-p/36364#M15341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I figured it out and it works now. For new timers (jobs) I use:&lt;/P&gt;&lt;PRE style="background-color: #ffffff; color: #000000; font-family: 'Courier New'; font-size: 9,0pt;"&gt;commandContext.getJobEntityManager().insert(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;timerEntity&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 06:57:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/timerboundaryevents-new-job-in-act-ru-job-table/m-p/36364#M15341</guid>
      <dc:creator>kitkatboy</dc:creator>
      <dc:date>2017-05-18T06:57:39Z</dc:date>
    </item>
  </channel>
</rss>

