<?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: AbstractBpmnActivityBehavior example for long tasks process in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/abstractbpmnactivitybehavior-example-for-long-tasks-process/m-p/176668#M129798</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Marc-Antoine,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;There are no way to do that in a single "serviceTask" task ?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Possibilities:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL style="list-style-type:decimal;"&gt;&lt;LI&gt;Design process with send -&amp;gt; receiveTask and call it from the parent process (callActivity)&lt;/LI&gt;&lt;LI&gt;Implement your own service which can make these two steps in one. (You can extend designer to support your custom tasks.)&lt;/LI&gt;&lt;/OL&gt;&lt;SPAN&gt;Which one you prefer depends on your requirements.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Sep 2014 06:05:00 GMT</pubDate>
    <dc:creator>martin_grofcik</dc:creator>
    <dc:date>2014-09-26T06:05:00Z</dc:date>
    <item>
      <title>AbstractBpmnActivityBehavior example for long tasks process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/abstractbpmnactivitybehavior-example-for-long-tasks-process/m-p/176663#M129793</link>
      <description>Hi,I starting using some specific features of Activiti.The deal is to create a task which can send to a web service an order to start a long task (like media encoding, or big size file transfer etc.).And he end of the task will be signalized by the web service to activiti with based on a callback me</description>
      <pubDate>Wed, 17 Sep 2014 13:40:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/abstractbpmnactivitybehavior-example-for-long-tasks-process/m-p/176663#M129793</guid>
      <dc:creator>marcantoine</dc:creator>
      <dc:date>2014-09-17T13:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: AbstractBpmnActivityBehavior example for long tasks process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/abstractbpmnactivitybehavior-example-for-long-tasks-process/m-p/176664#M129794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Marc-Antoine,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would say you need to invoke web service and web service needs to notify process instance to continue in execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you have implemented web service call already. The only missing thing is how to put process instance into wait state and notify it to continue in execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Following example (activiti source) could help you:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; @Deployment&lt;BR /&gt;&amp;nbsp; public void testWaitStateBehavior() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessInstance pi = runtimeService.startProcessInstanceByKey("receiveTask");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Execution execution = runtimeService.createExecutionQuery()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .processInstanceId(pi.getId())&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .activityId("waitState")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .singleResult();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; assertNotNull(execution);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; runtimeService.signal(execution.getId());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; assertProcessEnded(pi.getId());&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 06:09:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/abstractbpmnactivitybehavior-example-for-long-tasks-process/m-p/176664#M129794</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-09-18T06:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: AbstractBpmnActivityBehavior example for long tasks process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/abstractbpmnactivitybehavior-example-for-long-tasks-process/m-p/176665#M129795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay it work fine for the unit test !&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But for the runtime, which URI I need to call from my webservice to emit the signal ? Is it mentionned in he REST API of Activiti (I never use it…) ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 09:21:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/abstractbpmnactivitybehavior-example-for-long-tasks-process/m-p/176665#M129795</guid>
      <dc:creator>marcantoine</dc:creator>
      <dc:date>2014-09-18T09:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: AbstractBpmnActivityBehavior example for long tasks process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/abstractbpmnactivitybehavior-example-for-long-tasks-process/m-p/176666#M129796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://www.activiti.org/userguide/#N1689B" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/userguide/#N1689B&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 06:25:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/abstractbpmnactivitybehavior-example-for-long-tasks-process/m-p/176666#M129796</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-09-19T06:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: AbstractBpmnActivityBehavior example for long tasks process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/abstractbpmnactivitybehavior-example-for-long-tasks-process/m-p/176667#M129797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tested the solution but if I understand, I need to create a serviceTask to send the order to my web service (in asynchronous mode). And adding after that a receiveTask to get the callback of the process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are no way to do that in a single "serviceTask" task ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 10:55:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/abstractbpmnactivitybehavior-example-for-long-tasks-process/m-p/176667#M129797</guid>
      <dc:creator>marcantoine</dc:creator>
      <dc:date>2014-09-24T10:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: AbstractBpmnActivityBehavior example for long tasks process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/abstractbpmnactivitybehavior-example-for-long-tasks-process/m-p/176668#M129798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Marc-Antoine,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;There are no way to do that in a single "serviceTask" task ?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Possibilities:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL style="list-style-type:decimal;"&gt;&lt;LI&gt;Design process with send -&amp;gt; receiveTask and call it from the parent process (callActivity)&lt;/LI&gt;&lt;LI&gt;Implement your own service which can make these two steps in one. (You can extend designer to support your custom tasks.)&lt;/LI&gt;&lt;/OL&gt;&lt;SPAN&gt;Which one you prefer depends on your requirements.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 06:05:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/abstractbpmnactivitybehavior-example-for-long-tasks-process/m-p/176668#M129798</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-09-26T06:05:00Z</dc:date>
    </item>
  </channel>
</rss>

