简体   繁体   English

在.NET 4中更改工作流程定义后恢复工作流程

[英]Resuming workflow after workflow definition has changed in .NET 4

In Workflow Foundation 4, what happens if I resume a persisted workflow, and in the meantime the workflow definition (eg, the xaml file) for that workflow instance has changed? 在Workflow Foundation 4中,如果我恢复一个持久的工作流,并且与此工作流实例的工作流定义(例如,xaml文件)发生了变化,该怎么办?

Will I get an error, will it resume with the old definition, or will it resume with the new definition? 我会收到错误消息吗,它将使用旧定义恢复,还是将使用新定义恢复?

It will generate an error. 它将产生一个错误。 The only way to accomplish this now in WF4 is to store the old definition (XAML) somewhere and resume with that definition. 现在在WF4中完成此操作的唯一方法是将旧定义(XAML)存储在某个位置,然后继续使用该定义。

Microsoft is working on a workflow versioning implementation ( announced at PDC'10 ) but I'm not sure when that will be relased. 微软正在研究工作流版本控制的实现( 在PDC'10上宣布 ),但是我不确定何时发布。

Here is a related question that may help you a little further. 这是一个相关的问题 ,可能会对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM