2012-07-03 48 views

回答

3

無需保留接收和發送回覆之間的所有活動。您的活動將在完成SendReply活動後執行。對於日誌運行過程中的發送回覆可以發送其相關的客戶端消息,該服務啓動或任何異常。工作流程將在sendreply完成後執行。

你可以按照這個方法..

1. Put receive activity as first activity on the workflow. 
2. Apply validation on Data contract used as argument. 
3. Put a code activity that can set WorkflowinstanceID in out parameter that can return as response from send reply. This is can 
be used to control Workflow. 
4. Add another send reply by right click on Receive activity, return response if any validation faults occur. 
5. Put rest of activity below of send reply configure service behavior for any unhandled exception.