<?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 Cluster of Embedded Activti engines in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cluster-of-embedded-activti-engines/m-p/216315#M169445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on a POC to show our client that Activiti can run in a cluster environnement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a simple BPMN process that is started with a timer.&amp;nbsp; This process basically :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Task 1) poll a list of object (Country names)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Task 2) a multi instance sub process loop on the collection from task 1 and "visit" each country&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Task 3) outside the multi instance sub-process, only display the list of visited Countries&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now FYI, this is an embedded Spring boot project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So i start 2 different java process with the jar built.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Say : Server 1 and Server 2&amp;nbsp; (both access the same Activiti DB)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The behavior i see is :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First execution :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Server 1 will execute the process&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Server 2 run but do nothing&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Second execution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Server 1 execute the process&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Server 2 run but do nothing&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;…..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now if i kill Server 1… i see that Server 2 will eventually wake up and execute the process. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So my understanding is of this internal activiti behavior is kinf of : hot / warm&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So is it normal that Server 1 will always execute the process and Server 2 will just sit back and wait.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My Client is asking if its possible to be more like : hot /hot.&amp;nbsp; Meaning that randomly i should see Server 1 and Server 2 executing the process (not at the same obviously)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It this scenario possible?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Feb 2016 18:13:19 GMT</pubDate>
    <dc:creator>bcampeau1</dc:creator>
    <dc:date>2016-02-19T18:13:19Z</dc:date>
    <item>
      <title>Cluster of Embedded Activti engines</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cluster-of-embedded-activti-engines/m-p/216315#M169445</link>
      <description>Hello,I am working on a POC to show our client that Activiti can run in a cluster environnement.I have a simple BPMN process that is started with a timer.&amp;nbsp; This process basically :Task 1) poll a list of object (Country names)Task 2) a multi instance sub process loop on the collection from task 1 and</description>
      <pubDate>Fri, 19 Feb 2016 18:13:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cluster-of-embedded-activti-engines/m-p/216315#M169445</guid>
      <dc:creator>bcampeau1</dc:creator>
      <dc:date>2016-02-19T18:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster of Embedded Activti engines</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cluster-of-embedded-activti-engines/m-p/216316#M169446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ben,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yes it is possible. I would say that in your case only one server locks the job and that's why the second one can not get the job to execute it. To present the functionality I would create several different jobs and let both job executors execute them.&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>Mon, 22 Feb 2016 09:48:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cluster-of-embedded-activti-engines/m-p/216316#M169446</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-02-22T09:48:57Z</dc:date>
    </item>
  </channel>
</rss>

