开发者

workflow 4 long running bookmark

Let's say i have a workflow that has been executer on a WCF service, and its waiting for the user input for some value.

What is the best approach to implement this scenario?

I've read that the concept of bookmark can be use for long-running workflow. But is the bookmark being persisted somewhere? Since the external input can take a very long time, what if the wcf service shut down, can the Workflow be re开发者_如何学JAVAsumed?

What are other options?


Are you hosting your workflow as a workflow serivce? If so a WCF operation is a wrapper for a bookmark. While waiting for a bookmark to resume your workflow can be persisted to SQL Server using the instance store. That way it doesn't eat up memory and you can restart IIS or the complete machine.

If you are self hosting using the WorklfowApplication you can do the same with the instance store except you need to more work around resuming and managing workflow instances.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜