<?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 Problems with Activiti upgrade from Activiti 5.15 to Activiti 6 in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/problems-with-activiti-upgrade-from-activiti-5-15-to-activiti-6/m-p/28737#M12259</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;to upgrade, we followed the migration guide at the following link:&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://www.activiti.org/migration.html#_v5_compatibility" rel="nofollow noopener noreferrer" target="_blank"&gt;https://www.activiti.org/migration.html#_v5_compatibility&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Including the part concerning compatibility with Activiti 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To date, we use a series of workflows that have sub-workflows within them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After upgrading to Activiti 6, we encountered some issues and decided to run some tests.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Below I describe how much we have deduced:&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;There is a workflow that was started before the upgrade to Activiti 6.&lt;BR /&gt;After updating and after reloading all workflows with engine 6, I see the flag in the db, we have continued the workflow.&lt;BR /&gt;However, once you get to the sub-workflow, when you try to start it, the application goes into error with the following exception:&lt;/P&gt;&lt;P&gt;16:06:28,162 ERROR [org.activiti.engine.impl.interceptor.CommandContext] (http-/127.0.0.1:8080-92) Error while closing command context: org.activiti.engine.ActivitiException: couldn't execute activity &amp;lt;callActivity id="callactivity4" ...&amp;gt;: org.activiti.engine.impl.persistence.entity.ProcessDefinitionEntityImpl cannot be cast to org.activiti5.engine.impl.persistence.entity.ProcessDefinitionEntity&lt;BR /&gt; at org.activiti.compatibility.DefaultActiviti5CompatibilityHandler.handleActivitiException(DefaultActiviti5CompatibilityHandler.java:997) [activiti5-compatibility-6.0.0.jar:]&lt;BR /&gt; at org.activiti.compatibility.DefaultActiviti5CompatibilityHandler.completeTask(DefaultActiviti5CompatibilityHandler.java:507) [activiti5-compatibility-6.0.0.jar:]&lt;BR /&gt; at org.activiti.engine.impl.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:52) [activiti-engine-6.0.0.jar:6.0.0]&lt;BR /&gt; at org.activiti.engine.impl.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:25) [activiti-engine-6.0.0.jar:6.0.0]&lt;BR /&gt; at org.activiti.engine.impl.cmd.NeedsActiveTaskCmd.execute(NeedsActiveTaskCmd.java:56) [activiti-engine-6.0.0.jar:6.0.0]&lt;BR /&gt; at org.activiti.engine.impl.interceptor.CommandInvoker$1.run(CommandInvoker.java:37) [activiti-engine-6.0.0.jar:6.0.0]&lt;BR /&gt; at org.activiti.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:78) [activiti-engine-6.0.0.jar:6.0.0]&lt;BR /&gt; at org.activiti.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:57) [activiti-engine-6.0.0.jar:6.0.0]&lt;BR /&gt; at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:42) [activiti-engine-6.0.0.jar:6.0.0]&lt;BR /&gt; at org.activiti.engine.impl.interceptor.TransactionContextInterceptor.execute(TransactionContextInterceptor.java:48) [activiti-engine-6.0.0.jar:6.0.0]&lt;BR /&gt; at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:63) [activiti-engine-6.0.0.jar:6.0.0]&lt;BR /&gt; at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47) [activiti-spring-6.0.0.jar:6.0.0]&lt;BR /&gt; at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131) [spring-tx-3.2.7.RELEASE.jar:3.2.7.RELEASE]&lt;BR /&gt; at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45) [activiti-spring-6.0.0.jar:6.0.0]&lt;BR /&gt; at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:29) [activiti-engine-6.0.0.jar:6.0.0]&lt;BR /&gt; at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:44) [activiti-engine-6.0.0.jar:6.0.0]&lt;BR /&gt; at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:39) [activiti-engine-6.0.0.jar:6.0.0]&lt;BR /&gt; at org.activiti.engine.impl.TaskServiceImpl.complete(TaskServiceImpl.java:186) [activiti-engine-6.0.0.jar:6.0.0]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;We decided to load only the sub-workflow with the Activiti Engine 5 mode, as described in the documentation:&lt;/P&gt;&lt;P&gt;deploymentProperty(DeploymentProperties.DEPLOY_AS_ACTIVITI5_PROCESS_DEFINITION, Boolean.TRUE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As regards the workflow started before the update to activiti 6, the start of the sub-workflow occurred without errors.&lt;/P&gt;&lt;P&gt;However, having started a new instance of the same workflow, when it arrives at the sub-workflow and tries to start it, it goes into error with the following exception:&lt;/P&gt;&lt;P&gt;Error while closing command context: org.activiti.engine.ActivitiException: No start element found for process definition&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ubblicazione:10:198564 --&amp;gt; Where Pubblicazione is sub-workflow name (defined into activiti.act_re_procdef table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To solve the problem and still be able to use the entire workflow system, we reloaded all workflows with activiti5,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;deploymentProperty(DeploymentProperties.DEPLOY_AS_ACTIVITI5_PROCESS_DEFINITION, Boolean.TRUE, so that both the new and the old workflows are able to perform the sub-workflows, complete all the tasks and finish.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;From our point of view it seems a compatibility bug.&lt;BR /&gt;We hope to have been useful and to have helped you to identify and solve the problem.&lt;BR /&gt;I hope you can look into the matter and provide us with support in this regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jan 2018 09:20:15 GMT</pubDate>
    <dc:creator>mattia-be</dc:creator>
    <dc:date>2018-01-03T09:20:15Z</dc:date>
    <item>
      <title>Problems with Activiti upgrade from Activiti 5.15 to Activiti 6</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problems-with-activiti-upgrade-from-activiti-5-15-to-activiti-6/m-p/28737#M12259</link>
      <description>Good morning,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;to upgrade, we followed the migration guide at the following link:https://www.activiti.org/migration.html#_v5_compatibilityIncluding the part concerning compatibility with Activiti 5.To date, we use a series of workflows that have sub-workflows within them.After upgra</description>
      <pubDate>Wed, 03 Jan 2018 09:20:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problems-with-activiti-upgrade-from-activiti-5-15-to-activiti-6/m-p/28737#M12259</guid>
      <dc:creator>mattia-be</dc:creator>
      <dc:date>2018-01-03T09:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Activiti upgrade from Activiti 5.15 to Activiti 6</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problems-with-activiti-upgrade-from-activiti-5-15-to-activiti-6/m-p/28738#M12260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A __default_attr="173025" __jive_macro_name="user" _jive_internal="true" data-id="173025" data-objecttype="3" data-type="person" href="https://community.alfresco.com/people/mattia-be" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Did you somehow manage to solve this error? After upgrading to 6.0 we encountered the same problem and running out of option in order to fix it &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 07:06:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problems-with-activiti-upgrade-from-activiti-5-15-to-activiti-6/m-p/28738#M12260</guid>
      <dc:creator>arturkozyrski</dc:creator>
      <dc:date>2018-04-19T07:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Activiti upgrade from Activiti 5.15 to Activiti 6</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problems-with-activiti-upgrade-from-activiti-5-15-to-activiti-6/m-p/28739#M12261</link>
      <description>&lt;P&gt;Facing same issue (Activiti upgrade from Activiti 5.15 to Activiti 6)&lt;BR /&gt;Any Suggestion, It is working fine with 5.xx but issue with 6.00&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 16:24:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problems-with-activiti-upgrade-from-activiti-5-15-to-activiti-6/m-p/28739#M12261</guid>
      <dc:creator>jNishant044</dc:creator>
      <dc:date>2020-05-01T16:24:55Z</dc:date>
    </item>
  </channel>
</rss>

