How to Suspend a Workflow (Declarative Service Library) Service?

Scenario

  • DeclarativeServiceLibrary[FlowChart]
  • with Two Recieve - Send Reply Activities
  • persistence enabled and working
  • WebApplication
  • "Service Reference" is above mentioned declarative service library
  • Question

  • Is there anyway to Suspend workflow after receiving reply from first activity ?
  • Whether it is possible via exposed WCF Service method?

  • You can do so by adding a WorkflowControlEndpoint to the workflow service. Use a WorkflowControlClient at the client side to suspend, or abort etc, the workflow instance using the workflow instance id.

    See here for more details. If you are using the AppFabric the WorkflowControlEndpoint is automatically added and configured using the NetNamedPipeBinding binding but you can use another binding if you like.

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

    上一篇: 与Windows Workflow Foundation(WF4)集成的异步Web客户端

    下一篇: 如何暂停工作流(声明式服务库)服务?