<?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 avoid multiple instances of the same process in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-avoid-multiple-instances-of-the-same-process/m-p/150503#M105378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is nothing built in to prevent this, because it's 100% acceptable to start multiple instances of a single process. If you want to have only a single process-instance of a process, you'll have to come up with a mechanism yourself to prevent this from happening, leveraging the DB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One way of accomplishing this is to add a "receive" event (or message-event) after the none-start event of the process you want to have only one instance of. One machine starts the process in advance, having one process running of that type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, the other machines (how like to start the process) simply signal that process (or message). In case the process is the first one doing this, the process will continue. In case another machine does the same thing at almost the same time, it will get an optimisticLockException from activiti, due to the fact the process is already signaled from another transactions. All machines that want to do this afterwards, will get an exception saying the process cannot be signaled.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Aug 2013 08:15:01 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2013-08-05T08:15:01Z</dc:date>
    <item>
      <title>How to avoid multiple instances of the same process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-avoid-multiple-instances-of-the-same-process/m-p/150502#M105377</link>
      <description>Hi !I have several activiti engines embeeded in several JVMs sharing the same DB.How is the best way to avoid starting an other instance of a specific process if one is already started ?Thanks in advanceCheers,Patrick Brühlmann</description>
      <pubDate>Fri, 02 Aug 2013 11:20:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-avoid-multiple-instances-of-the-same-process/m-p/150502#M105377</guid>
      <dc:creator>jaylemur</dc:creator>
      <dc:date>2013-08-02T11:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid multiple instances of the same process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-avoid-multiple-instances-of-the-same-process/m-p/150503#M105378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is nothing built in to prevent this, because it's 100% acceptable to start multiple instances of a single process. If you want to have only a single process-instance of a process, you'll have to come up with a mechanism yourself to prevent this from happening, leveraging the DB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One way of accomplishing this is to add a "receive" event (or message-event) after the none-start event of the process you want to have only one instance of. One machine starts the process in advance, having one process running of that type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, the other machines (how like to start the process) simply signal that process (or message). In case the process is the first one doing this, the process will continue. In case another machine does the same thing at almost the same time, it will get an optimisticLockException from activiti, due to the fact the process is already signaled from another transactions. All machines that want to do this afterwards, will get an exception saying the process cannot be signaled.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 08:15:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-avoid-multiple-instances-of-the-same-process/m-p/150503#M105378</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-08-05T08:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid multiple instances of the same process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-avoid-multiple-instances-of-the-same-process/m-p/150504#M105379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is nothing built in to prevent this, because it's 100% acceptable to start multiple instances of a single process. If you want to have only a single process-instance of a process, you'll have to come up with a mechanism yourself to prevent this from happening, leveraging the DB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One way of accomplishing this is to add a "receive" event (or message-event) after the none-start event of the process you want to have only one instance of. One machine starts the process in advance, having one process running of that type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, the other machines (how like to start the process) simply signal that process (or message). In case the process is the first one doing this, the process will continue. In case another machine does the same thing at almost the same time, it will get an optimisticLockException from activiti, due to the fact the process is already signaled from another transactions. All machines that want to do this afterwards, will get an exception saying the process cannot be signaled.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 08:15:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-avoid-multiple-instances-of-the-same-process/m-p/150504#M105379</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-08-05T08:15:01Z</dc:date>
    </item>
  </channel>
</rss>

