<?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 Changes to a custom workflow are not applied in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/changes-to-a-custom-workflow-are-not-applied/m-p/295797#M248927</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a custom workflow that is deployed in Alfresco Community Edition 5.0.c as part of a larger package of mods. The workflow is deployed in a repository AMP and a Share AMP. In addition to the AMPs there are three email templates that are placed in a folder under /Data Dictionary/Email Templates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our tester discovered a minor bug in the workflow. I made the requested change, recompiled the AMPs, applied the AMPs and restarted the Alfresco instance, but the changes to the workflow did not take. Even though the code has been updated and applied, the workflow is still using the old (pre-bugfix) code. I even deleted all existing workflow instances but to no avail – somehow Alfresco remembered the old code and refused to acknowledge the existence of the newer code. The only way I was able to make the workflow code changes apply was to destroy and re-install the Alfresco instance. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This behavior is most disturbing. Is there something that needs to be done to tell Alfresco that a custom workflow definition has changed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for the help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Feb 2015 23:28:16 GMT</pubDate>
    <dc:creator>lw7415</dc:creator>
    <dc:date>2015-02-19T23:28:16Z</dc:date>
    <item>
      <title>Changes to a custom workflow are not applied</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/changes-to-a-custom-workflow-are-not-applied/m-p/295797#M248927</link>
      <description>I have a custom workflow that is deployed in Alfresco Community Edition 5.0.c as part of a larger package of mods. The workflow is deployed in a repository AMP and a Share AMP. In addition to the AMPs there are three email templates that are placed in a folder under /Data Dictionary/Email Templates.</description>
      <pubDate>Thu, 19 Feb 2015 23:28:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/changes-to-a-custom-workflow-are-not-applied/m-p/295797#M248927</guid>
      <dc:creator>lw7415</dc:creator>
      <dc:date>2015-02-19T23:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Changes to a custom workflow are not applied</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/changes-to-a-custom-workflow-are-not-applied/m-p/295798#M248928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In that case, you have 2 options.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the workflow console, you can run the commands bellow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;undeploy definition name activiti$customWorkflow&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;deploy activiti alfresco/extension/workflow/customWorkflow.bpmn&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But as you are working on 5.0.c, you wont be able to run those commands, because workflow console was removed together with Alfresco Explorer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The second option you have is to define your workflow register context file to redeploy your workflow on restart.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can find a sample for this option here &lt;/SPAN&gt;&lt;A href="https://github.com/jpotts/alfresco-developer-series/blob/master/workflow/workflow-tutorial-repo/src/main/amp/config/alfresco/module/workflow-tutorial-repo/context/service-context.xml" rel="nofollow noopener noreferrer"&gt;https://github.com/jpotts/alfresco-developer-series/blob/master/workflow/workflow-tutorial-repo/src/main/amp/config/alfresco/module/workflow-tutorial-repo/context/service-context.xml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Search for the tag &amp;lt;prop key="redeploy"&amp;gt;false&amp;lt;/prop&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you set its value to true, it will redeploy your workflow definition on each restart.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if you need help to solve this issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 00:56:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/changes-to-a-custom-workflow-are-not-applied/m-p/295798#M248928</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2015-02-20T00:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Changes to a custom workflow are not applied</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/changes-to-a-custom-workflow-are-not-applied/m-p/295799#M248929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;prop key="redeploy"&amp;gt;true&amp;lt;/prop&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;fixed the issue. Thank you for the help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lw&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 16:37:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/changes-to-a-custom-workflow-are-not-applied/m-p/295799#M248929</guid>
      <dc:creator>lw7415</dc:creator>
      <dc:date>2015-02-23T16:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Changes to a custom workflow are not applied</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/changes-to-a-custom-workflow-are-not-applied/m-p/295800#M248930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Don't let that option set on production server, or you will have a new workflow definition version every single time you restart Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you finished your development, set redeploy to false.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 03:01:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/changes-to-a-custom-workflow-are-not-applied/m-p/295800#M248930</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2015-03-02T03:01:45Z</dc:date>
    </item>
  </channel>
</rss>

