<?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 How to complete a user task, from a system task which is triggered from a timer event ? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-complete-a-user-task-from-a-system-task-which-is/m-p/2627#M624</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 am new to Activiti and trying to build a process, below is the problem i am facing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Intent :&lt;/P&gt;&lt;P&gt;1. I have 2 parallel user task(A,B). One user task(B) has a boundary timer event and calls one system task(C).&lt;/P&gt;&lt;P&gt;2. The system task (C) , based on some business logic figures out if the User task is done is some other unlinked system.&lt;/P&gt;&lt;P&gt;3. If the User task has been done in some other system, The system task (C) uses taskService.complete(TaskId) to complete the user task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem : As mentioned in the 3rd point, System task (C) is not able to complete the user task (A/B) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can be done about the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Boundary Event :&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;lt;boundaryEvent id="boundarytimer1" name="Timer" attachedToRef="uploadInventory" cancelActivity="false"&amp;gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&amp;lt;timerEventDefinition&amp;gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&amp;lt;timeCycle&amp;gt;0 0/1 * * * ?&amp;lt;/timeCycle&amp;gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&amp;lt;/timerEventDefinition&amp;gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&amp;lt;/boundaryEvent&amp;gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;Thanks,&lt;/P&gt;&lt;P class=""&gt;Dewesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jan 2017 16:03:33 GMT</pubDate>
    <dc:creator>dagraw2</dc:creator>
    <dc:date>2017-01-06T16:03:33Z</dc:date>
    <item>
      <title>How to complete a user task, from a system task which is triggered from a timer event ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-complete-a-user-task-from-a-system-task-which-is/m-p/2627#M624</link>
      <description>Hi All,I am new to Activiti and trying to build a process, below is the problem i am facing.My Intent :1. I have 2 parallel user task(A,B). One user task(B) has a boundary timer event and calls one system task(C).2. The system task (C) , based on some business logic figures out if the User task is d</description>
      <pubDate>Fri, 06 Jan 2017 16:03:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-complete-a-user-task-from-a-system-task-which-is/m-p/2627#M624</guid>
      <dc:creator>dagraw2</dc:creator>
      <dc:date>2017-01-06T16:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to complete a user task, from a system task which is triggered from a timer event ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-complete-a-user-task-from-a-system-task-which-is/m-p/2628#M625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dewesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps I am missing some of the intricacies of your problem, but the typical way to handle this sort of problem is to follow the service task with an intermediate signal throw event.&lt;/P&gt;&lt;P&gt;As the same time, have a signal boundary event associated with the user task that receives the signal and cancels the user task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you prefer to do this inside the service delegate, the taskService.Complete() call should work just fine.&lt;/P&gt;&lt;P&gt;What problem are you having with taskService.complete()?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2017 20:04:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-complete-a-user-task-from-a-system-task-which-is/m-p/2628#M625</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-01-06T20:04:07Z</dc:date>
    </item>
  </channel>
</rss>

