<?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 Suspended process definition is executed in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/suspended-process-definition-is-executed/m-p/212819#M165949</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;we have a BPMN Model ErrorHandling which calls a CallActivity with the BPMN Model id "projectSpecificErrorHandling".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We further do have 2 BPMN models with the id "projectSpecificErrorHandling". &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* One for a default error handling and &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* one for a customer specific error handling.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dependent on our project configuration we want to use one of these error handling models. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the DB both BPMN models are deployed (also different versions might exist). As an example we want to use the default error handling. In order to assure that the project-specific error handling is called in the CallActivity, we suspend the process definitions of the project-specific error handling by ´processEngine.getRepositoryService().suspendProcessDefinitionById( currentProcDef.getId() );´&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is an extract of the table ´ACT_RE_PROCDEF´:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;ID, Name, Key, SuspensionState&lt;BR /&gt;projectSpecificErrorHandling:2:24, Standard Error Handling, projectSpecificErrorHandling, 1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;projectSpecificErrorHandling:3:2512, Standard Error Handling, projectSpecificErrorHandling, 1 &lt;BR /&gt;projectSpecificErrorHandling:4:2520, Demo Specific Error Handling, projectSpecificErrorHandling, 2 &lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the next step a process is started, which runs in an error and starts the error handling process, which triggers the CallActivity "projectSpecificErrorHandling" to be started. Since the latest version is suspended, I'd assume that the process definition with id "projectSpecificErrorHandling:3:2512" is executed when the CallActivity is called. But instead "projectSpecificErrorHandling:4:2520" is executed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there something else I have to do to make it work? I also tried to set: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"&amp;gt;&lt;BR /&gt;&amp;lt;property name="processDefinitionCacheLimit" value="0" /&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in activiti.cfg.xml after I came across this thread. &lt;/SPAN&gt;&lt;A href="https://forums.activiti.org/content/suspended-process-definition-starting-process-instances-urgent" rel="nofollow noopener noreferrer"&gt;https://forums.activiti.org/content/suspended-process-definition-starting-process-instances-urgent&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;KayJ&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jul 2016 13:28:06 GMT</pubDate>
    <dc:creator>kayj</dc:creator>
    <dc:date>2016-07-01T13:28:06Z</dc:date>
    <item>
      <title>Suspended process definition is executed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/suspended-process-definition-is-executed/m-p/212819#M165949</link>
      <description>Hi,we have a BPMN Model ErrorHandling which calls a CallActivity with the BPMN Model id "projectSpecificErrorHandling".We further do have 2 BPMN models with the id "projectSpecificErrorHandling". * One for a default error handling and * one for a customer specific error handling.Dependent on our pro</description>
      <pubDate>Fri, 01 Jul 2016 13:28:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/suspended-process-definition-is-executed/m-p/212819#M165949</guid>
      <dc:creator>kayj</dc:creator>
      <dc:date>2016-07-01T13:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Suspended process definition is executed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/suspended-process-definition-is-executed/m-p/212820#M165950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just noticed that I made a mistake in the description. Instead of &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"In order to assure that the project-specific error handling is called in the CallActivity…"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the correct sentence would be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"In order to assure that the &lt;/SPAN&gt;&lt;STRONG&gt;default&lt;/STRONG&gt;&lt;SPAN&gt; error handling is called in the CallActivity…"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help regarding this issue would be great!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 07:03:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/suspended-process-definition-is-executed/m-p/212820#M165950</guid>
      <dc:creator>kayj</dc:creator>
      <dc:date>2016-07-05T07:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Suspended process definition is executed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/suspended-process-definition-is-executed/m-p/212821#M165951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;By writing a Unit Test I figured out that it depends on whether a suspended process definition is called directly, or from within another process. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To make it more clear: if the latest version of a process definition is set to "suspended", it is not possible to start it by key (startProcessInstanceByKey). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the process is called via a CallActiviti, it is started even though it is set to "suspended". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this behaviour intended?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 12:17:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/suspended-process-definition-is-executed/m-p/212821#M165951</guid>
      <dc:creator>kayj</dc:creator>
      <dc:date>2016-07-06T12:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Suspended process definition is executed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/suspended-process-definition-is-executed/m-p/212822#M165952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Guess it has been fixed in Activiti 5.18.0. &lt;/SPAN&gt;&lt;A href="https://activiti.atlassian.net/browse/ACT-2185" rel="nofollow noopener noreferrer"&gt;https://activiti.atlassian.net/browse/ACT-2185&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I'd still expect the last deployed version, which is not suspended, to be executed since not the whole process definition has been suspended. Any statements regarding this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 11:06:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/suspended-process-definition-is-executed/m-p/212822#M165952</guid>
      <dc:creator>kayj</dc:creator>
      <dc:date>2016-07-07T11:06:15Z</dc:date>
    </item>
  </channel>
</rss>

