Welcome

首页 / 软件开发 / .NET编程技术 / WF4:Workflow Service中Correlation的基本使用

WF4:Workflow Service中Correlation的基本使用2011-01-22 博客园 生鱼片1.关联可以保证消息之间的正确路由,本文举一个简单的例子,首先定义一个流程表单类,如下:

namespace CaryContract
{
[DataContract]
public class FlowForm
{
[DataMember]
public Guid FormNum { get; set; }

[DataMember]
public string FlowStatus { get; set; }

[DataMember]
public string ApplyName { get; set; }

[DataMember]
public string ApplyContent { get; set; }
}
}

2.然后工作流中完成提交申请和审批两个动作,每个动作我们都使用了ReceiveAndSendReply模板,具体设计如下: