Loading persisted workflow after workflowdefinition has changed in WF4

后端 未结 5 647
余生分开走
余生分开走 2021-01-05 01:12

How to solve this problem (in WF4):

I create a workflow in xaml and start several instances of it, I have a persistancestore and all workflows persist on a bookmark

5条回答
  •  旧时难觅i
    2021-01-05 01:38

    This scenario is a bit of a problem. There is no way to migrate am older workflow definition to the new format. I have done some limited testing and some scenarios with adding/deleting activities that where not yet executing worked fine. But then I also has scenarios go badly wrong, including re executing an already finished activity.

    As far as I am aware there is no good way to solve the problem other than tracking the version of the XAML/assembly used to create the workflow and checking that when you want to restart a workflow to determine the workflow version to use.

提交回复
热议问题