Activity to unload a Workflow

I'm new to WF4 and I was trying to find a way to unload a workflow in a code activity but all I can get in the code activity is the Workflow Instance ID and I don't know how to use the ID to unload a workflow.

Ideally, the workflow would pause for user intervention (this is where I would persist and unload the workflow) and when the user makes the required changes I would want to load the workflow back and continue it. This is a for a WCF WF Service.

Any suggestions and advice would be appreciated.

Thank you


Inside a workflow unloading doesn't really make sense, after all the result of the action would update the workflow status and thus invalidate the saved status.

Normally you just create bookmarks in a workflow, and optionally persist the state, and let the runtime environment decide if a workflow needs to be unloaded or not. The way this works depends on the runtime, WorkflowApplication versus WorkflowServiceHost, and is either callback based or idle duration based.

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

上一篇: 在WF4中使用DataContractResolver

下一篇: 用于卸载工作流的活动