简体   繁体   English

Workflow 4.5是否需要SQL Server保持状态?

[英]Does Workflow 4.5 require SQL Server for persisting state?

I'm reading "Pro WF 4.5" published by APress, which seems to say unequivocally that in order to persist state in a long-running workflow after a server crash/shutdown (anything that'd clear memory), a SQL Server back-end is required for persistence. 我正在阅读APress发行的“ Pro WF 4.5”,它似乎明确地说,为了在服务器崩溃/关闭(所有清除内存的东西)后将状态保持在长时间运行的工作流中,SQL Server会持久性是必需的。

A lot of the MSDN stuff I see online seems to contradict this. 我在网上看到的许多MSDN内容似乎与此矛盾。 For example, the article linked below. 例如,下面的文章链接。

https://msdn.microsoft.com/en-us/library/dd851337.aspx https://msdn.microsoft.com/zh-CN/library/dd851337.aspx

What is the real scoop, from someone actually using WF? 真正使用WF的人真正的独家新闻是什么? TIA. TIA。

There is a built in Instance Store for SQL Server ( https://msdn.microsoft.com/en-us/library/system.activities.durableinstancing.sqlworkflowinstancestore(v=vs.110).aspx ) but there is nothing stopping you creating your own - https://msdn.microsoft.com/en-us/library/ee829481(v=vs.110).aspx 有一个用于SQL Server的内置实例存储( https://msdn.microsoft.com/zh-cn/library/system.activities.durableinstancing.sqlworkflowinstancestore(v=vs.110).aspx ),但是没有什么可以阻止您创建自己的-https://msdn.microsoft.com/zh-cn/library/ee829481(v=vs.110).aspx

That way you could use any persistence you like. 这样,您可以使用任何喜欢的持久性。

Implementing your own implementation for durable instance on WF can be done. 可以在WF上为持久实例实现自己的实现。 My experience is that it is difficult to do. 我的经验是很难做到。 I ended up with a provider created by Devart. 我最终找到了由Devart创建的提供商。 They created a provider for Oracle databases. 他们创建了Oracle数据库的提供程序。 You can find more information here https://www.devart.com/dotconnect/oracle/docs/WorkflowInstanceStore.html 您可以在这里找到更多信息https://www.devart.com/dotconnect/oracle/docs/WorkflowInstanceStore.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM