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开发者_StackOverflow社区 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.
精彩评论