<?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 to achieve correlation on the process instances based on the callbacks from any Rest API service in Alfresco BPM in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-achieve-correlation-on-the-process-instances-based-on-the/m-p/216743#M169873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Greg,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Thank you very much for the above two approaches. its really helpful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;I would like to know is their any inbuilt feature in activiti to handle the correlation by engine its self.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;If not is there any other bpm tools supports by default?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Ramesha&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jan 2017 18:02:22 GMT</pubDate>
    <dc:creator>ramesharana</dc:creator>
    <dc:date>2017-01-05T18:02:22Z</dc:date>
    <item>
      <title>How to achieve correlation on the process instances based on the callbacks from any Rest API service in Alfresco BPM</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-achieve-correlation-on-the-process-instances-based-on-the/m-p/216739#M169869</link>
      <description>How to achieve correlation on the process instances&amp;nbsp;based on the callbacks from any Rest API service&amp;nbsp;in Alfresco BPM</description>
      <pubDate>Thu, 29 Dec 2016 11:43:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-achieve-correlation-on-the-process-instances-based-on-the/m-p/216739#M169869</guid>
      <dc:creator>ramesharana</dc:creator>
      <dc:date>2016-12-29T11:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve correlation on the process instances based on the callbacks from any Rest API service in Alfresco BPM</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-achieve-correlation-on-the-process-instances-based-on-the/m-p/216740#M169870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please provide some additional detail as it is difficult to understand exactly what you are asking.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&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>Tue, 03 Jan 2017 15:44:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-achieve-correlation-on-the-process-instances-based-on-the/m-p/216740#M169870</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-01-03T15:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve correlation on the process instances based on the callbacks from any Rest API service in Alfresco BPM</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-achieve-correlation-on-the-process-instances-based-on-the/m-p/216741#M169871</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; border: 0px;"&gt;What i want is not to insert my java service task in a pool but to passivate its behaviour and only complete such task when an external signal is received and/or a callback is called.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;ex:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;start-&amp;gt;service task 1--&amp;gt;Receive Task--&amp;gt;End&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;In the Service Task i'm calling the third party service.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;In the third party service once the request received it will send success ack and then it will further process the request, once after the action performed it will send us the callback with the correlation id.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;In this example i need to wait in the service task till get the callback.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;Could you please help me to achieve this functionality with some example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 12:56:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-achieve-correlation-on-the-process-instances-based-on-the/m-p/216741#M169871</guid>
      <dc:creator>ramesharana</dc:creator>
      <dc:date>2017-01-04T12:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve correlation on the process instances based on the callbacks from any Rest API service in Alfresco BPM</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-achieve-correlation-on-the-process-instances-based-on-the/m-p/216742#M169872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah yes, this is a very standard pattern (especially with service oriented architectures) and there are a number of ways to solve it.&lt;BR /&gt;The simplest is to follow your service call with an intermediate message receive event as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;IMG class="image-1 jive-image" height="217" src="https://connect.hyland.com/legacyfs/online/alfresco/11882_pastedImage_1.png" width="500" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with this approach is that you need to implement some sort of device to actually correlate with and release the token when it is waiting on the intermediate catch event. Typically this is handled using a custom REST endpoint that you create and that your external service calls.&lt;BR /&gt;Details of creating a custom REST endpoint in Enterprise Edition can be found here:&lt;BR /&gt;&lt;A href="https://community.alfresco.com/community/bpm/blog/2016/11/18/activiti-enterprise-developer-series-custom-rest-endpoints" rel="nofollow noopener noreferrer"&gt;https://community.alfresco.com/community/bpm/blog/2016/11/18/activiti-enterprise-developer-series-custom-rest-endpoints&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;The approach is almost the same for Community edition.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If this is not what you are looking for, a second option is to create an Asynchronous service task that extends the &lt;STRONG&gt;&lt;EM&gt;org.activiti.engine.impl.bpmn.behaviorAbstractBpmnActivityBehavior&lt;/EM&gt;&lt;/STRONG&gt; class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give you access to the signal method along with the usual execute method available for javaDelegates.&lt;BR /&gt;Signal is used to "signal" the service to complete and you will tie this into your callback receiver class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A nice example of how to use this approach can be found here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/camunda/camunda-bpm-examples/tree/master/servicetask/service-invocation-asynchronous" title="https://github.com/camunda/camunda-bpm-examples/tree/master/servicetask/service-invocation-asynchronous" rel="nofollow noopener noreferrer"&gt;camunda-bpm-examples/servicetask/service-invocation-asynchronous at master · camunda/camunda-bpm-examples · GitHub&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The example above is for Camunda, but works exactly the same way (except for package names) in Activiti.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&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>Wed, 04 Jan 2017 18:57:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-achieve-correlation-on-the-process-instances-based-on-the/m-p/216742#M169872</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-01-04T18:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve correlation on the process instances based on the callbacks from any Rest API service in Alfresco BPM</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-achieve-correlation-on-the-process-instances-based-on-the/m-p/216743#M169873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Greg,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Thank you very much for the above two approaches. its really helpful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;I would like to know is their any inbuilt feature in activiti to handle the correlation by engine its self.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;If not is there any other bpm tools supports by default?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Ramesha&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 18:02:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-achieve-correlation-on-the-process-instances-based-on-the/m-p/216743#M169873</guid>
      <dc:creator>ramesharana</dc:creator>
      <dc:date>2017-01-05T18:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve correlation on the process instances based on the callbacks from any Rest API service in Alfresco BPM</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-achieve-correlation-on-the-process-instances-based-on-the/m-p/216744#M169874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rama,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We make extensive use of the Activiti's Camel interface for attaching to different messaging engines and data sources for this sort of thing. The Activiti Camel module provides the ability to call camel routes as well as receive messages from camel sources. Check out the following write up for details:&lt;BR /&gt;&lt;BR /&gt;&lt;A class="link-titled" href="http://bpmn20inaction.blogspot.com/2013/03/using-camel-routes-in-activiti-made.html" title="http://bpmn20inaction.blogspot.com/2013/03/using-camel-routes-in-activiti-made.html" rel="nofollow noopener noreferrer"&gt;BPMN 2.0 / Activiti: Using Camel routes in Activiti made really easy&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using Enterprise Edition, there are additional steps required to add camel to the build which you can find described here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.alfresco.com/community/bpm/blog/2016/10/31/using-a-camel-task-in-alfresco-activiti-enterprise" rel="nofollow noopener noreferrer"&gt;https://community.alfresco.com/community/bpm/blog/2016/10/31/using-a-camel-task-in-alfresco-activiti-enterprise&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However, if you are looking for process to process communication, you can use signals rather than messages.&lt;BR /&gt;Signals differ a little in that they can be thought of as more of a publish and subscribe pattern, one process can throw a signal, all processes listening for that signal will handle it.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Cheers,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 18:25:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-achieve-correlation-on-the-process-instances-based-on-the/m-p/216744#M169874</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-01-05T18:25:13Z</dc:date>
    </item>
  </channel>
</rss>

