如果满足条件,WF4 转到或运行活动
我有一个带有一系列活动的 WF4。
- CalculateTaxesActivityCreateOrderActivityCreditCardAuthorizationActivity
- 以及另外 10 个活动...
我需要不终止、取消或中止,而是从 CreditCardAuthorizationActivity 移动到工作流程末尾的“SendReply”消息(如果上述活动中满足某些条件)。
我正在使用 VS2010 中的工作流设计器。
谢谢!
I have a WF4 with a Sequence of Activities.
- CalculateTaxesActivity
- CreateOrderActivity
- CreditCardAuthorizationActivity
and 10 more Activities...
I need to not terminate, cancel or abort but to move from the CreditCardAuthorizationActivity to the "SendReply" message at the End of the Workflow if certain conditions are met within the mentioned Activity.
I'm using the Workflow Designer in VS2010.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您无法跳转到工作流程中其他位置的随机活动。
但是,您可以做的是创建一个类似于活动的自定义序列并添加逻辑,以便它可以跳过活动或返回并重新执行。尽管每个容器负责其子级的执行,但它仅限于其直接子级。
使用流程图,您还可以跳过所有地方,但您必须在工作流程中显式地建模事物,您无法进行未提前编程的切换。
You can't jump to a random activity somewhere else in the workflow.
What you can do however is create a custom Sequence like activity and add logic so it can skip activities or go back and re-execute. It is restricted to its direct children though as each container is responsible for the execution of its childeren.
With a flowchart you can also jump all over the place but you do have to explicitly model things in your workflow, you can't make a switch you didn't program in advance.