<?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: blocking in user task complete in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/blocking-in-user-task-complete/m-p/48876#M28058</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@Ronald: the thing is: in theory it could work with the current impl. But you never know how fast a service task executed and which transaction will be first committed to the database. However, I do believe this is something we should fix in the engine (eg by *not* using jobs for a timer on an automatic step).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Apr 2011 10:08:23 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2011-04-19T10:08:23Z</dc:date>
    <item>
      <title>blocking in user task complete</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/blocking-in-user-task-complete/m-p/48871#M28053</link>
      <description>Hello everybody.First post to the forum.I hope someone will be able to help us.We are trying to use Activiti for business processes in our application.We are using Activiti through API (we are not usign Activiti Explorer etc.)In a business process in question we have a user task which is basicallya</description>
      <pubDate>Fri, 08 Apr 2011 09:16:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/blocking-in-user-task-complete/m-p/48871#M28053</guid>
      <dc:creator>zivac</dc:creator>
      <dc:date>2011-04-08T09:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: blocking in user task complete</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/blocking-in-user-task-complete/m-p/48872#M28054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's the way activiti works. it takes the caller's thread and executes the process untill the next wait-state (eg. task, receive, end). So indeed, a servicetask after a usertask.complete() will be executed in the caller's thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you need are "asynchronous continuations", which return the caller's thread and runs the rest of the process in another thread (jobexecutor, pooled). Unfortunatly, this is not supported yet in activiti. Workaround is to put a boundry timer event of 1second (or 0 seconds) on a dummy waitstate which, when triggered, continues the flow towards the service-task. This way, this servicetask will be executed with an tread inthe jobExecutor's pool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2011 12:01:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/blocking-in-user-task-complete/m-p/48872#M28054</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-04-08T12:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: blocking in user task complete</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/blocking-in-user-task-complete/m-p/48873#M28055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much for your response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have another problem &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The boundry timer event seems to get triggered more than once&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if the service task it triggers lasts longer. Period of firing &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;seems to be exactly 5 minutes. It looks like it is hard coded somewhere.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the example bmpn20.xml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;definitions xmlns="&lt;A href="http://www.omg.org/spec/BPMN/20100524/MODEL" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/MODEL&lt;/A&gt;" xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;" xmlns:activiti="&lt;A href="http://activiti.org/bpmn" rel="nofollow noopener noreferrer"&gt;http://activiti.org/bpmn&lt;/A&gt;" xmlns:bpmndi="&lt;A href="http://www.omg.org/spec/BPMN/20100524/DI" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/DI&lt;/A&gt;" xmlns:smileysurprised:mgdc="&lt;A href="http://www.omg.org/spec/DD/20100524/DC" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/DD/20100524/DC&lt;/A&gt;" xmlns:smileysurprised:mgdi="&lt;A href="http://www.omg.org/spec/DD/20100524/DI" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/DD/20100524/DI&lt;/A&gt;" typeLanguage="&lt;A href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;" expressionLanguage="&lt;A href="http://www.w3.org/1999/XPath" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/1999/XPath&lt;/A&gt;" targetNamespace="&lt;A href="http://www.activiti.org/test" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/test&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;process id="helloworld" name="helloworld"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;startEvent id="startevent6" name="Start"&amp;gt;&amp;lt;/startEvent&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;userTask id="usertask10" name="Prvi" activiti:assignee="admin"&amp;gt;&amp;lt;/userTask&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;userTask id="usertask11" name="Drugi" activiti:assignee="admin"&amp;gt;&amp;lt;/userTask&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;endEvent id="endevent6" name="End"&amp;gt;&amp;lt;/endEvent&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow20" name="" sourceRef="startevent6" targetRef="usertask10"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow22" name="" sourceRef="usertask11" targetRef="endevent6"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;receiveTask id="receivetask1" name="Receive Task"&amp;gt;&amp;lt;/receiveTask&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serviceTask id="servicetask1" name="Service Task" activiti:expression="${waitProcessFinish.wait(execution,400)}"&amp;gt;&amp;lt;/serviceTask&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow27" name="" sourceRef="usertask10" targetRef="receivetask1"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow29" name="" sourceRef="servicetask1" targetRef="usertask11"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;boundaryEvent id="boundarytimer1" name="" cancelActivity="true" attachedToRef="receivetask1"&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;PT10S&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;sequenceFlow id="flow30" 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;&amp;nbsp; &amp;lt;bpmndi:BPMNDiagram id="BPMNDiagram_helloworld"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmndi:BPMNPlane bpmnElement="helloworld" id="BPMNPlane_helloworld"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmndi:BPMNShape bpmnElement="startevent6" id="BPMNShape_startevent6"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdc:Bounds height="55" width="55" x="161" y="299"&amp;gt;&amp;lt;/omgdc:Bounds&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bpmndi:BPMNShape&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmndi:BPMNShape bpmnElement="usertask10" id="BPMNShape_usertask10"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdc:Bounds height="55" width="105" x="141" y="140"&amp;gt;&amp;lt;/omgdc:Bounds&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bpmndi:BPMNShape&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmndi:BPMNShape bpmnElement="usertask11" id="BPMNShape_usertask11"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdc:Bounds height="55" width="105" x="525" y="170"&amp;gt;&amp;lt;/omgdc:Bounds&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bpmndi:BPMNShape&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmndi:BPMNShape bpmnElement="endevent6" id="BPMNShape_endevent6"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdc:Bounds height="55" width="55" x="590" y="300"&amp;gt;&amp;lt;/omgdc:Bounds&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bpmndi:BPMNShape&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmndi:BPMNShape bpmnElement="receivetask1" id="BPMNShape_receivetask1"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdc:Bounds height="55" width="105" x="310" y="170"&amp;gt;&amp;lt;/omgdc:Bounds&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bpmndi:BPMNShape&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmndi:BPMNShape bpmnElement="servicetask1" id="BPMNShape_servicetask1"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdc:Bounds height="55" width="105" x="350" y="360"&amp;gt;&amp;lt;/omgdc:Bounds&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bpmndi:BPMNShape&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmndi:BPMNShape bpmnElement="boundarytimer1" id="BPMNShape_boundarytimer1"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdc:Bounds height="20" width="20" x="390" y="200"&amp;gt;&amp;lt;/omgdc:Bounds&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bpmndi:BPMNShape&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmndi:BPMNEdge bpmnElement="flow20" id="BPMNEdge_flow20"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdi:waypoint x="216" y="326"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdi:waypoint x="141" y="167"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bpmndi:BPMNEdge&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmndi:BPMNEdge bpmnElement="flow22" id="BPMNEdge_flow22"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdi:waypoint x="630" y="197"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdi:waypoint x="590" y="327"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bpmndi:BPMNEdge&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmndi:BPMNEdge bpmnElement="flow27" id="BPMNEdge_flow27"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdi:waypoint x="246" y="167"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdi:waypoint x="310" y="197"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bpmndi:BPMNEdge&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmndi:BPMNEdge bpmnElement="flow29" id="BPMNEdge_flow29"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdi:waypoint x="455" y="387"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdi:waypoint x="525" y="197"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bpmndi:BPMNEdge&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmndi:BPMNEdge bpmnElement="flow30" id="BPMNEdge_flow30"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdi:waypoint x="100" y="40"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;omgdi:waypoint x="350" y="387"&amp;gt;&amp;lt;/omgdi:waypoint&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bpmndi:BPMNEdge&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bpmndi:BPMNPlane&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/bpmndi:BPMNDiagram&amp;gt;&lt;BR /&gt;&amp;lt;/definitions&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Service task is just a dummy method that waits for 400 ms (longer than 5 min).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It got executed 3 times before throwing an exception (ActivitiOptimisticLockingException).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If we set the waiting period below 5 mins it executes once without problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 14:27:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/blocking-in-user-task-complete/m-p/48873#M28055</guid>
      <dc:creator>zivac</dc:creator>
      <dc:date>2011-04-15T14:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: blocking in user task complete</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/blocking-in-user-task-complete/m-p/48874#M28056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Putting a timer on a service task is tricky, as it not very clear which transaction will 'win' (there will be a transaction for the service task and for the timer).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would advise not to put a timer on a service task, and use native Java timer there, which when fired takes an sequence flow going out of the service task.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 07:21:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/blocking-in-user-task-complete/m-p/48874#M28056</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-04-18T07:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: blocking in user task complete</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/blocking-in-user-task-complete/m-p/48875#M28057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@Joram,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the advice you give because of the way Activiti works or in general? I'd think that the engine should be able to cope with this some at some point in the (distant?) future, or ….&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 17:26:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/blocking-in-user-task-complete/m-p/48875#M28057</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-04-18T17:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: blocking in user task complete</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/blocking-in-user-task-complete/m-p/48876#M28058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@Ronald: the thing is: in theory it could work with the current impl. But you never know how fast a service task executed and which transaction will be first committed to the database. However, I do believe this is something we should fix in the engine (eg by *not* using jobs for a timer on an automatic step).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 10:08:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/blocking-in-user-task-complete/m-p/48876#M28058</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-04-19T10:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: blocking in user task complete</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/blocking-in-user-task-complete/m-p/48877#M28059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;we are currently facing the same issue with Activiti 5.10. Sending the task.complete(&amp;lt;taskId&amp;gt;) blocks the thread until the following service tasks are completed as well. We also tried to add an intermediate signal event after the user task to avoid the blocking. This works, but as soon as we send the signal event, the same problem occurs - the sending thread is blocked until the following service task is complete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody have a solution for this problem? We are currently experimenting with Activiti in order to use it in a large application and it would be great if we could at least workaround this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 06:43:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/blocking-in-user-task-complete/m-p/48877#M28059</guid>
      <dc:creator>michael_amann</dc:creator>
      <dc:date>2012-09-20T06:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: blocking in user task complete</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/blocking-in-user-task-complete/m-p/48878#M28060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, this is the normal way of how Activiti works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To make the thread return right after the task, you need to read up on 'async continuations', which are exactly created for that use case:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://activiti.org/userguide/index.html#asyncContinuations" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#asyncContinuations&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 09:22:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/blocking-in-user-task-complete/m-p/48878#M28060</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-09-20T09:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: blocking in user task complete</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/blocking-in-user-task-complete/m-p/48879#M28061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank's for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the meantime I figured out why it didn't work on my project. The issue was that the async attribute was not evaluated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Setting the property jobExecutorActivate to "true" solved the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The property can be found in the applicationContext.xml File (if you're in a Spring project)&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="jobExecutorActivate" value="true" /&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 13:08:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/blocking-in-user-task-complete/m-p/48879#M28061</guid>
      <dc:creator>michael_amann</dc:creator>
      <dc:date>2012-09-26T13:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: blocking in user task complete</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/blocking-in-user-task-complete/m-p/48880#M28062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Indeed, that's correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for posting the solution!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 11:37:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/blocking-in-user-task-complete/m-p/48880#M28062</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-10-01T11:37:37Z</dc:date>
    </item>
  </channel>
</rss>

