I want to update my workflow 2013 with custom activities keeping running workflows going. Now I can do it only with a workflow without activities:
I've added ReplaceContent="TRUE" to the workflow's Elements.xml to File tag, so it looks like this <File Url="Workflow.xaml" Type="GhostableInLibrary" Path="UpdateTestWorkflow\Workflow.xaml" DoGUIDFixUp="TRUE" ReplaceContent="TRUE">
. I make a wsp package, update it with Sharepoint 2013 Management Shell using Update-SPSolution and reactivate workflow feature.
In this way all running workflows keep going with the old version but when I start a new workflow it's running with the new version.
The problem starts when I add custom activities to my workflow. I can still update the workflow without any problems but when I try to reactivate the activities feature all my running workflows automatically terminate with the error:
RequestorId: 68ee4e3e-62ff-8552-0000-000000000000. Details: System.Activities.Statements.WorkflowTerminatedException: An activity referenced by the associated workflow has been deprecated.
Does anybody know how to update sharepoint workflow custom activities keeping running workflows going?