cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow update in production

mlagneaux
Champ on-the-rise
Champ on-the-rise
Hello,

Here is my problem:
I've created a new workflow in Alfresco 3.2r. This workflow has been deployed in production and is being used (there are instances of this workflow).

Today I want to change that workflow. I have to make modifications directly in the workflow definition (adding JavaScript code in a task for example) but also in the data model (and associated parameters) of workflow tasks (eg adding/removing properties to a task type of my workflow).

Til now, when I am in this situation, I remove the current definition of the workflow and then deploy the new workflow definition and all associated conf.
DOing that, i'm losing all running instances of the workflow ; I would like to avoid that now.

In the Alfresco Developer Guide, I've seen that changes in the workflow definition can be properly managed by Alfresco. If we redeploy a definition of the workflow, Alfresco creates a new version of that definition, the old instances of workflow will continue following the old definition of the workflow and the new instances will follow the new version of the workflow definition.

Now, is there a way to properly manage the changes that are made to a type corresponding to a task of our workflow?

For example:
- In version 1.0 of the workflow, the task type "exampleTask" has a property "Property1".
- In version 1.1 of the workflow, the task type "exampleTask" has a property "property2" and a property "property3". The property "Property1" has been deleted.

In this case, my solution would be to duplicate "exampleTask" type ? I would keep the "exampleTask " type (with a property "Property1") and create a new type "exampleTaskBis" with a property "property2" a property "property3".

This solution requires that I duplicate :
- the types corresponding to the tasks that I want to modify
- and also all the associated parameters (PropertySheet associated with these types).

Is there a better solution ?

I hope I was clear enough in the explanations.
Thank you for your help on this topic.
4 REPLIES 4

_sax
Champ in-the-making
Champ in-the-making
For me, it worked like described in the Alfresco Developer Guide: Existing instances of the workflow follow their old route, new instances after deployment of the new workflow version follow the new definition.
I used "redeploy" = "true" in the workflow's context xml and replaced the definition and if required, model of the workflow. I then restarted and it worked. Are you replacing the files in Alfresco's extension folder or online inside the Data Dictionary subfolder?

mlagneaux
Champ on-the-rise
Champ on-the-rise
Could you detail how you update the model related to your workflow ?
Do you create a new version of your model ?

mitpatoliya
Star Collaborator
Star Collaborator
No you need not to create the new tasknode.
Just do the changes in the task node and change redploy=true in bootstrap contex file
This will solve your purpose.

bhavikp
Champ on-the-rise
Champ on-the-rise
Does Alfresco use stored procedure to save the data in database?

Regards,
Bhavik,

bhavik.shah@cignex.com