cancel
Showing results for 
Search instead for 
Did you mean: 

Best way to upgrade workflow definition

muralidharand
Star Contributor
Star Contributor
Hi all,
What is the best way to upgrade workflows?

I created first version workflow, used amp module to install it and this is installed fine.
After some days, I've changed the same workflow definition for various reasons and there were no java code change also.
I've updated the workflow definition and update the module version in the module.properties file.
Now I want to install it by using amp module.
So, rebuilt the amp and I'm trying to install it, but it is not deploying the latest workflow definition file.

Module context file :


<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<bean id="wf.workflowBootstrap" parent="workflowDeployer">
   <property name="workflowDefinitions">
      <list>
         <props>
            <prop key="engineId">activiti</prop>
            <prop key="location">alfresco/module/cliqwf/wf1.bpmn20.xml</prop>
            <prop key="mimetype">text/xml</prop>
            <prop key="redeploy">false</prop>
         </props>
      </list>
   </property>
</bean>
</beans>




Please let me know, what is the best way to upgrade existing workflow using amp module or suggest me any other way?
2 REPLIES 2

jamen
Confirmed Champ
Confirmed Champ
You can set the redeploy to be true.  But I generally don't recommend this for managed environments where you are deploying changes in a non development setting.  I haven't been working with Activiti yet, but JBPM should be the same in that if you have this flag set to true, every time you load your repository it loads a new workflow definition automatically, which isn't very good.

Have a look at this link on how to manage your workflow definitions
http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Ftasks%2Fadminconsole-w...

muralidharand
Star Contributor
Star Contributor
Thanks for your reply.

If I set the <strong> redeploy= true </strong>, it will update the workflow definition whenever I restart the repository service and I don't want to do that.
Currently I'm using the workflow console to update the workflow definition and I want to avoid this manual process.

Please let me know, if there is any other option is available to update the existing workflow definition.

Thanks
Murali.