views:

30

answers:

1

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?
+1  A: 

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.

Maurice
@Maurice - thank you for showing right direction. I'll checkout WorkflowControlEndPoint... I'm not using AppFabrice, may be in future!
Sandy