如何在 WWF4 中设计时访问自定义活动的输出参数
我正在 WF4 中构建一个非常简单的顺序工作流程。我使用设计器创建了 3 个连续活动:ValidateName、ValidatePhoneNumber 和 ValidateAddress。这些都有一个输入参数:customer 和输出参数:isValid。我想做的就是创建一个由这 3 个活动组成的新活动 (ValidateCustomer)。我想将从每个活动返回的布尔值分配给从 ValidateCustomer 活动返回到工作流的某个对象。然而,我想从设计师那里做到这一点。这可能吗?我确信我缺少一些非常简单的东西。
谢谢,
巴兹
I'm building a VERY simple sequential workflow in WF4. I have 3 sequential activities I created using the designer: ValidateName, ValidatePhoneNumber and ValidateAddress. These all have an input argument: customer and and output argument: isValid. All I'm trying to do is create a new activity (ValidateCustomer) composed of these 3 activities. I want to take the boolean returned from each activity and assigned to some object that's the returned from the ValidateCustomer activity back to the workflow. However, I want to do this from the designer. Is this even possible? I'm sure is something very simple I'm missing.
Thanks,
Buzz
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您还必须通过设计器创建布尔变量,并使用每个自定义活动的结果输出来分配它们。然后您可以使用其他活动验证变量的值。在您的特定情况下,您可能需要使用If。
检查此答案'的图像。在这种情况下,自定义活动将返回 int 但规则是相同的。
You have to create boolean variables, also through the designer, and assign them using the Result output from each custom activity. Then you can verify variables' values using other activities. In your particular case you may want to use If.
Check this answer's image. In that case the custom activity is returning an int but the rule is the same.