积极答复者
请教:WCF工作流服务自定义持久化问题

问题
-
是这样的,我用Silverlight结合Wcf工作流服务写一个多人审批的简单流程,工作流中有个文件为Service1.xamlx.
网有有关于用Sqlserver进行持久化的例子,只要运行了SqlWorkflowInstanceStoreLogic.sql和SqlWorkflowInstanceStoreSchema.sql两个脚本然后在web.config中配置就可进行之久化,但由于项目需求,要在Oracel中进行数据存储,不知道如何进行持久化.
网上也有关于Oracle持久化的资料,但是没有用Wcf工作流服务写的,希望能有个小例子来帮助我进行理解,因为只是说的话比较抽象,谢谢!
答案
-
你好,目前WF 4.0不带Oracle 的Persistence Store. 如果你真的需要的话可能需要自己写一个。
参看:
http://xhinker.com/post/WF4Xml-persistence-store.aspx
http://msdn.microsoft.com/en-us/library/ee829481.aspx
MSDN Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
This posting is provided "AS IS" with no warranties, and confers no rights. My Blog: http://xhinker.com
Microsoft Windows Workflow Foundation 4.0 Cookbook- 已标记为答案 cakeMSDN 2011年11月3日 8:53
全部回复
-
你好,目前WF 4.0不带Oracle 的Persistence Store. 如果你真的需要的话可能需要自己写一个。
参看:
http://xhinker.com/post/WF4Xml-persistence-store.aspx
http://msdn.microsoft.com/en-us/library/ee829481.aspx
MSDN Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
This posting is provided "AS IS" with no warranties, and confers no rights. My Blog: http://xhinker.com
Microsoft Windows Workflow Foundation 4.0 Cookbook- 已标记为答案 cakeMSDN 2011年11月3日 8:53
-
可以这么做:
host.DurableInstancingOptions.InstanceStore = new SqlWorkflowInstanceStore(connectionString);
host 是 WorkflowServiceHost 的一个实例.
MSDN Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
This posting is provided "AS IS" with no warranties, and confers no rights. My Blog: http://xhinker.com
Microsoft Windows Workflow Foundation 4.0 Cookbook- 已标记为答案 Andrew_ZhuModerator 2011年4月25日 9:34
- 取消答案标记 cakeMSDN 2011年6月24日 7:07
-
你好,wf 4.0 有关Oracle持久化,您做出来了没,能不能给我个例子,请发我邮箱里“sdhzzlj1986@163.com”.谢谢!