<?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: How can I complete a Service task from within JavaDelegate? I want to complete a service using TaskService api.  in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-complete-a-service-task-from-within-javadelegate-i/m-p/17422#M7703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The objective is to complete all the user tasks which is already being created for a logged in user. The user task has its own workflow and is separate from Service task. The requirment is to create a service task and from the service task complete all the user tasks. I am able to complete all the user task. But when it comes to the point to complete the service task that's where I am facing exceptions. Here is XML part of process definition:&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;definitions xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.omg.org/spec/BPMN/20100524/MODEL" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.omg.org/spec/BPMN/20100524/MODEL&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsd="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;SPAN&gt;" xmlns:activiti="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://activiti.org/bpmn" rel="nofollow noopener noreferrer" target="_blank"&gt;http://activiti.org/bpmn&lt;/A&gt;&lt;SPAN&gt;" xmlns:bpmndi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.omg.org/spec/BPMN/20100524/DI" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.omg.org/spec/BPMN/20100524/DI&lt;/A&gt;&lt;SPAN&gt;" xmlns&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;mgdc="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.omg.org/spec/DD/20100524/DC" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.omg.org/spec/DD/20100524/DC&lt;/A&gt;&lt;SPAN&gt;" xmlns&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;mgdi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.omg.org/spec/DD/20100524/DI" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.omg.org/spec/DD/20100524/DI&lt;/A&gt;&lt;SPAN&gt;" typeLanguage="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;SPAN&gt;" expressionLanguage="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/1999/XPath" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/1999/XPath&lt;/A&gt;&lt;SPAN&gt;" targetNamespace="ad-hoc"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;process id="ClarificationReceivedProcess" name="Clarification Received" isExecutable="true"&amp;gt;&lt;BR /&gt; &amp;lt;startEvent id="startevent1" name="Start"&amp;gt;&amp;lt;/startEvent&amp;gt;&lt;BR /&gt; &amp;lt;endEvent id="endevent1" name="End"&amp;gt;&amp;lt;/endEvent&amp;gt;&lt;BR /&gt; &amp;lt;serviceTask id="ClarificationReceived" name="Clarification Received" activiti:class="activiti.util.HandleWaitForResponseTask"&amp;gt;&amp;lt;/serviceTask&amp;gt;&lt;BR /&gt; &amp;lt;sequenceFlow id="flow4" sourceRef="startevent1" targetRef="ClarificationReceived"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt; &amp;lt;sequenceFlow id="flow5" sourceRef="ClarificationReceived" targetRef="endevent1"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt; &amp;lt;/process&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/definitions&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jun 2017 13:37:21 GMT</pubDate>
    <dc:creator>ysagar</dc:creator>
    <dc:date>2017-06-13T13:37:21Z</dc:date>
    <item>
      <title>How can I complete a Service task from within JavaDelegate? I want to complete a service using TaskService api.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-complete-a-service-task-from-within-javadelegate-i/m-p/17420#M7701</link>
      <description>I have a simple workflow which basically completes a UserTask from within Service Task. The requirement is also to complete the service task as well. I am not able to obtain the currently running service task from within JavaDelegate. I want to pro grammatically complete the Service Task. Does Activ</description>
      <pubDate>Tue, 13 Jun 2017 01:12:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-complete-a-service-task-from-within-javadelegate-i/m-p/17420#M7701</guid>
      <dc:creator>ysagar</dc:creator>
      <dc:date>2017-06-13T01:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I complete a Service task from within JavaDelegate? I want to complete a service using TaskService api.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-complete-a-service-task-from-within-javadelegate-i/m-p/17421#M7702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Was the user task instance already created at the time the JavaDelegate got&amp;nbsp;invoked? Sharing you process definition BPMN could help better understand what you are trying to achieve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 13:29:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-complete-a-service-task-from-within-javadelegate-i/m-p/17421#M7702</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2017-06-13T13:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I complete a Service task from within JavaDelegate? I want to complete a service using TaskService api.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-complete-a-service-task-from-within-javadelegate-i/m-p/17422#M7703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The objective is to complete all the user tasks which is already being created for a logged in user. The user task has its own workflow and is separate from Service task. The requirment is to create a service task and from the service task complete all the user tasks. I am able to complete all the user task. But when it comes to the point to complete the service task that's where I am facing exceptions. Here is XML part of process definition:&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;definitions xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.omg.org/spec/BPMN/20100524/MODEL" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.omg.org/spec/BPMN/20100524/MODEL&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsd="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;SPAN&gt;" xmlns:activiti="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://activiti.org/bpmn" rel="nofollow noopener noreferrer" target="_blank"&gt;http://activiti.org/bpmn&lt;/A&gt;&lt;SPAN&gt;" xmlns:bpmndi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.omg.org/spec/BPMN/20100524/DI" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.omg.org/spec/BPMN/20100524/DI&lt;/A&gt;&lt;SPAN&gt;" xmlns&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;mgdc="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.omg.org/spec/DD/20100524/DC" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.omg.org/spec/DD/20100524/DC&lt;/A&gt;&lt;SPAN&gt;" xmlns&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;mgdi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.omg.org/spec/DD/20100524/DI" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.omg.org/spec/DD/20100524/DI&lt;/A&gt;&lt;SPAN&gt;" typeLanguage="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;SPAN&gt;" expressionLanguage="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/1999/XPath" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/1999/XPath&lt;/A&gt;&lt;SPAN&gt;" targetNamespace="ad-hoc"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;process id="ClarificationReceivedProcess" name="Clarification Received" isExecutable="true"&amp;gt;&lt;BR /&gt; &amp;lt;startEvent id="startevent1" name="Start"&amp;gt;&amp;lt;/startEvent&amp;gt;&lt;BR /&gt; &amp;lt;endEvent id="endevent1" name="End"&amp;gt;&amp;lt;/endEvent&amp;gt;&lt;BR /&gt; &amp;lt;serviceTask id="ClarificationReceived" name="Clarification Received" activiti:class="activiti.util.HandleWaitForResponseTask"&amp;gt;&amp;lt;/serviceTask&amp;gt;&lt;BR /&gt; &amp;lt;sequenceFlow id="flow4" sourceRef="startevent1" targetRef="ClarificationReceived"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt; &amp;lt;sequenceFlow id="flow5" sourceRef="ClarificationReceived" targetRef="endevent1"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt; &amp;lt;/process&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/definitions&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 13:37:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-complete-a-service-task-from-within-javadelegate-i/m-p/17422#M7703</guid>
      <dc:creator>ysagar</dc:creator>
      <dc:date>2017-06-13T13:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I complete a Service task from within JavaDelegate? I want to complete a service using TaskService api.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-complete-a-service-task-from-within-javadelegate-i/m-p/17423#M7704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The service task does not need to be completed manually it will complete after the JavaDelegate execute method is called.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Does Activiti store information about service task in ACT_RE_TASKINST table?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No, thats only for&amp;nbsp;saving unfinished user tasks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does your JavaDelegate ("&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;activiti.util.HandleWaitForResponseTask&lt;/SPAN&gt;") block the execution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 16:48:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-complete-a-service-task-from-within-javadelegate-i/m-p/17423#M7704</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2017-06-13T16:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I complete a Service task from within JavaDelegate? I want to complete a service using TaskService api.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-complete-a-service-task-from-within-javadelegate-i/m-p/17424#M7705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No it does not. Is there a way to have Service Task completion event listener registered?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 17:04:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-complete-a-service-task-from-within-javadelegate-i/m-p/17424#M7705</guid>
      <dc:creator>ysagar</dc:creator>
      <dc:date>2017-06-13T17:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I complete a Service task from within JavaDelegate? I want to complete a service using TaskService api.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-complete-a-service-task-from-within-javadelegate-i/m-p/17425#M7706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;No it does not. Is there a way to have Service Task completion event listener registered?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 18:48:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-complete-a-service-task-from-within-javadelegate-i/m-p/17425#M7706</guid>
      <dc:creator>ysagar</dc:creator>
      <dc:date>2017-06-13T18:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I complete a Service task from within JavaDelegate? I want to complete a service using TaskService api.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-complete-a-service-task-from-within-javadelegate-i/m-p/17426#M7707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use&amp;nbsp;an execution listener (on end event), see the user guide&amp;nbsp;&lt;A class="link-titled" href="https://www.activiti.org/userguide/#executionListeners" title="https://www.activiti.org/userguide/#executionListeners" rel="nofollow noopener noreferrer"&gt;Activiti User Guide&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 22:30:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-complete-a-service-task-from-within-javadelegate-i/m-p/17426#M7707</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2017-06-13T22:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I complete a Service task from within JavaDelegate? I want to complete a service using TaskService api.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-complete-a-service-task-from-within-javadelegate-i/m-p/17427#M7708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;activiti.util.HandleWaitForResponseTask&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&amp;gt; But when it comes to the point to complete the service task that's where I am facing exceptions. Here is XML part of process definition:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide the source of service task and the&amp;nbsp;&lt;SPAN&gt;stack trace of exception.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 03:49:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-complete-a-service-task-from-within-javadelegate-i/m-p/17427#M7708</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-14T03:49:43Z</dc:date>
    </item>
  </channel>
</rss>

