<?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 Timer Boundary Event and User task assignee in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/timer-boundary-event-and-user-task-assignee/m-p/43835#M17992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to send an email reminder to each user task assignee (multiinstance task) after a given period a time. A Timer&amp;nbsp;Event&amp;nbsp;is bound to the user task and triggers a service task (&lt;SPAN&gt;AlfrescoScriptDelegate) that should send an email to the user task assignee.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My problem/question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Task&amp;nbsp;object is not available&amp;nbsp;in &lt;SPAN&gt;AlfrescoScriptDelegate&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;context, and I don't know how to get the userTask assignee.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;My code:&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;lt;code&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;userTask id="buyerApprovalLevel1Task" name="Buyer approval level 1 user task" activiti:assignee="${buyerApprovalLevel1Assignee.properties.userName}" activiti:formKey="supplierinvoice:buyerApprovalLevel1Task"&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;documentation&amp;gt;Buyer approval level 1 user task&amp;lt;/documentation&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;multiInstanceLoopCharacteristics isSequential="false" activiti:collection="supplierinvoice_buyerApprovalLevel1Assignees" activiti:elementVariable="buyerApprovalLevel1Assignee"&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;completionCondition&amp;gt;${wf_buyerApprovalLevel1TaskOutcome != 'NONE'}&amp;lt;/completionCondition&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/multiInstanceLoopCharacteristics&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/userTask&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;boundaryEvent id="buyerApprovalLevel1TaskTimer" name="Timer" attachedToRef="buyerApprovalLevel1Task" cancelActivity="false"&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timerEventDefinition&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timeCycle&amp;gt;${wf_reminderCronExpression}&amp;lt;/timeCycle&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/timerEventDefinition&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/boundaryEvent&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flowBuyerApprovalLevel1TaskTimerOut" sourceRef="buyerApprovalLevel1TaskTimer" targetRef="buyerApprovalLevel1Reminder"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serviceTask id="buyerApprovalLevel1Reminder" name="Buyer approval level1 email reminder" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate"&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:field name="runAs"&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:string&amp;gt;&amp;lt;![CDATA[wfservice-supplierinvoice]]&amp;gt;&amp;lt;/activiti:string&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/activiti:field&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:field name="script"&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:string&amp;gt;&amp;lt;![CDATA[&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;?? task object is not available here, how to get userTask assignee ??&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;]]&amp;gt;&amp;lt;/activiti:string&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/activiti:field&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/serviceTask&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;&amp;lt;/code&amp;gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 May 2018 22:19:47 GMT</pubDate>
    <dc:creator>vincent-kali</dc:creator>
    <dc:date>2018-05-11T22:19:47Z</dc:date>
    <item>
      <title>Timer Boundary Event and User task assignee</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/timer-boundary-event-and-user-task-assignee/m-p/43835#M17992</link>
      <description>I want to send an email reminder to each user task assignee (multiinstance task) after a given period a time. A Timer&amp;nbsp;Event&amp;nbsp;is bound to the user task and triggers a service task (AlfrescoScriptDelegate) that should send an email to the user task assignee.My problem/question:&amp;nbsp;&amp;nbsp;&amp;nbsp;Task&amp;nbsp;object is not ava</description>
      <pubDate>Fri, 11 May 2018 22:19:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/timer-boundary-event-and-user-task-assignee/m-p/43835#M17992</guid>
      <dc:creator>vincent-kali</dc:creator>
      <dc:date>2018-05-11T22:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Boundary Event and User task assignee</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/timer-boundary-event-and-user-task-assignee/m-p/43836#M17993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no task because you are not executing a task listener - only the ScriptTaskListener class will have the "task" variable set as a global variable in JavaScript. Also, you&amp;nbsp;could not have accessed the assigned user from the task variable anyway, since the task you are executing the JavaScript in isn't a user task (it is a service task) and as such does not have an assignee. You would need to execute a task query via the low-level Activiti RuntimeService to find and access the user task to which your boundary event is attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 May 2018 13:50:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/timer-boundary-event-and-user-task-assignee/m-p/43836#M17993</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-05-13T13:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Boundary Event and User task assignee</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/timer-boundary-event-and-user-task-assignee/m-p/43837#M17994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks axel, very clear.&lt;/P&gt;&lt;P&gt;So is there any simple way to send a reminder email&amp;nbsp;to user task assignee after a given period of time ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 May 2018 19:08:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/timer-boundary-event-and-user-task-assignee/m-p/43837#M17994</guid>
      <dc:creator>vincent-kali</dc:creator>
      <dc:date>2018-05-13T19:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Boundary Event and User task assignee</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/timer-boundary-event-and-user-task-assignee/m-p/43838#M17995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are asking "so simple I don't have to code anything", then no. Otherwise it is quite easy - implement your JavaScript service delegate, use the root scope object "workflows" (WorkflowManager) to query for active tasks in the current workflow - maybe filter for the&amp;nbsp;previous task ID if you have parallel execution paths - and then use the email action to send the mail. For an easy implementation the Alfresco "workflows" root scope object may suffice - I usually don't use it because it hides quite a bit of information that I usually need, but for a reminder you may not need such internals...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 10:22:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/timer-boundary-event-and-user-task-assignee/m-p/43838#M17995</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-05-15T10:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Boundary Event and User task assignee</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/timer-boundary-event-and-user-task-assignee/m-p/43839#M17996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks I'll try this way.&lt;/P&gt;&lt;P&gt;Just one thing: could you please explain "maybe filter for the&amp;nbsp;previous task ID if you have parallel execution paths" ?&lt;/P&gt;&lt;P&gt;(I'm not 100% sure how to deal with paths to get previous task...)&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 10:33:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/timer-boundary-event-and-user-task-assignee/m-p/43839#M17996</guid>
      <dc:creator>vincent-kali</dc:creator>
      <dc:date>2018-05-15T10:33:07Z</dc:date>
    </item>
  </channel>
</rss>

