<?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 User task, ExecutionId and Timer Boundary Event in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/user-task-executionid-and-timer-boundary-event/m-p/44619#M24620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When the Timer Boundary Event is attached to the User Task, this task is created with executionId of "subprocess". &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This suprocess probably handles branche of attached timer. But I think the user task should belongs (executionId) to main process instead of subprocess.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have scenario with user task with recurrent mail notification. I use cancelActivity="false" since I want to user task remain after trigger fires and sends email (it is only notification).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this correct behaviour? Why?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 May 2011 16:57:27 GMT</pubDate>
    <dc:creator>jackw</dc:creator>
    <dc:date>2011-05-31T16:57:27Z</dc:date>
    <item>
      <title>User task, ExecutionId and Timer Boundary Event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-task-executionid-and-timer-boundary-event/m-p/44619#M24620</link>
      <description>When the Timer Boundary Event is attached to the User Task, this task is created with executionId of "subprocess". This suprocess probably handles branche of attached timer. But I think the user task should belongs (executionId) to main process instead of subprocess.I have scenario with user task wi</description>
      <pubDate>Tue, 31 May 2011 16:57:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-task-executionid-and-timer-boundary-event/m-p/44619#M24620</guid>
      <dc:creator>jackw</dc:creator>
      <dc:date>2011-05-31T16:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: User task, ExecutionId and Timer Boundary Event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-task-executionid-and-timer-boundary-event/m-p/44620#M24621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I try to be more specific.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Process:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; &amp;lt;process id="Proces1" name="proces1"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;startEvent id="startevent1" name="Start"&amp;gt;&amp;lt;/startEvent&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;userTask id="usertask1" name="User Form" activiti:assignee="none" activiti:formKey="FORM"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;documentation&amp;gt;User form&amp;lt;/documentation&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/userTask&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;endEvent id="endevent1" name="End"&amp;gt;&amp;lt;/endEvent&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;boundaryEvent id="boundarytimer1" name="Timer" cancelActivity="true" attachedToRef="usertask1"&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;timeDuration&amp;gt;PT1H&amp;lt;/timeDuration&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serviceTask id="servicetask1" name="Mail Notification" activiti:expression="${mailto}"&amp;gt;&amp;lt;/serviceTask&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;endEvent id="endevent2" name="End"&amp;gt;&amp;lt;/endEvent&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow1" name="" sourceRef="startevent1" targetRef="usertask1"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow2" name="" sourceRef="usertask1" targetRef="endevent1"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow3" name="" sourceRef="servicetask1" targetRef="endevent2"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow4" name="" sourceRef="boundarytimer1" targetRef="servicetask1"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/process&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Test:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;public void testExecutionIdWithBoundaryEvent() {&lt;BR /&gt; runtimeService.startProcessInstanceByKey("Proces1");&lt;BR /&gt; List&amp;lt;Execution&amp;gt; list = runtimeService.createExecutionQuery().list();&lt;BR /&gt; Execution mainExecution = list.get(0);&lt;BR /&gt; Execution boundaryExecution = list.get(1);&lt;BR /&gt; // Why user task is created under boundaryExecution.id&lt;BR /&gt; // assertNotNull(taskService.createTaskQuery()&lt;BR /&gt; //&amp;nbsp; .executionId(mainExecution.getId()).singleResult());&lt;BR /&gt; assertNotNull(taskService.createTaskQuery()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; .executionId(boundaryExecution.getId()).singleResult());&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 21:43:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-task-executionid-and-timer-boundary-event/m-p/44620#M24621</guid>
      <dc:creator>jackw</dc:creator>
      <dc:date>2011-06-01T21:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: User task, ExecutionId and Timer Boundary Event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-task-executionid-and-timer-boundary-event/m-p/44621#M24622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, It should be cancelActivity="false" in a process definition.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 08:07:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-task-executionid-and-timer-boundary-event/m-p/44621#M24622</guid>
      <dc:creator>jackw</dc:creator>
      <dc:date>2011-06-02T08:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: User task, ExecutionId and Timer Boundary Event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-task-executionid-and-timer-boundary-event/m-p/44622#M24623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does this mean your problem is solved?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The seperate execution on the task with a boundry timer on it is indeed the correct behaviour, this is the way activiti handles this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 08:11:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-task-executionid-and-timer-boundary-event/m-p/44622#M24623</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-06-06T08:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: User task, ExecutionId and Timer Boundary Event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-task-executionid-and-timer-boundary-event/m-p/44623#M24624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, still not clear. Yes I understand that there is new separate execution under the boundary event, but usertask1 should belongs to the main execution logically. Since cancelActivity="false" means "not remove main execution". &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But in database, usertask1 is created as it belongs to boundary execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that it is not possible to render active task for executionId. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, You can use processInstanceId, but it is still quite messy for me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 15:43:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-task-executionid-and-timer-boundary-event/m-p/44623#M24624</guid>
      <dc:creator>jackw</dc:creator>
      <dc:date>2011-06-07T15:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: User task, ExecutionId and Timer Boundary Event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-task-executionid-and-timer-boundary-event/m-p/44624#M24625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It actually is "logically" part of the execution, using a child-execution &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; But I get the issue, since it's not trivial to find the user-task on the execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I said, this extra execution is added for internal reasons (creating a scope, to prevent concurrency problems when timer fires and task is completed etc). So it's not likely this will disappear. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe it would make sense to introduce a method on the TaskQuery like executionIdOrParentExecutionId(execution.getId()) to overcome this issue or even a query that gives all tasks that are part of ANY execution that is a child of (or the parent itself) the execution with the given Id (not only first level child). Just thinking out loud, but in this usecase it will definitely make sense….&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 09:41:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-task-executionid-and-timer-boundary-event/m-p/44624#M24625</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-06-08T09:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: User task, ExecutionId and Timer Boundary Event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-task-executionid-and-timer-boundary-event/m-p/44625#M24626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, Thank you. With concurrency it makes sense.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I wrote, it is possible to use processInstanceId, but imho it is overhead to remember two IDs (executionId, processInstanceId) to query userTasks in one database hit. So such extension you mention above would be handy. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe also for reducing database traffic.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 12:32:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-task-executionid-and-timer-boundary-event/m-p/44625#M24626</guid>
      <dc:creator>jackw</dc:creator>
      <dc:date>2011-06-08T12:32:19Z</dc:date>
    </item>
  </channel>
</rss>

