1

I have a question concerning how to manage installation of new versions of workflow features, in case when there are already running instances. It seems on my development machine that after installing new package all running workflows are automatically stopped. It is not a problem now, but how this is going to be handled after deploying to production? Stopping everything after update will surely be problematic.

[EDIT]

I see year ago someone had similar problem, no one knew the solution. Maybe this time it's a bit better?

https://sharepoint.stackexchange.com/questions/83905/sharepoint-2013-workflow-versioning

  • have you found solution? – ppatalong Feb 5 '15 at 14:21
  • nope, just keep deploying through VS each time... – Chetvergov Feb 10 '15 at 5:47
2

The instruction how to update an existing workflow if it’s necessary to make changes to the workflow, but all running workflows must keep going:

  1. Add ReplaceContent="TRUE" to Elements.xml files of workflow and workflow activities.
  2. Create a wsp package with updated workflow/workflow activities.
  3. Update the solution using the Update-SPSolution cmdlet.
  4. Force enable the workflow and workflow activity features using the Enable-SPFeature –force cmdlet.

Look at my question and answer for details.

  • I've merged the two questions into one (and up-voted your answer) – Benny Skogberg Dec 7 '15 at 13:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.