WF4 Goto or Run Activity if a Condition is met

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!


    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.

    链接地址: http://www.djcxy.com/p/95862.html

    上一篇: WF4 WCF关联和MessageContract不起作用

    下一篇: 如果条件满足,WF4转到或运行活动