OnResolveBookmark的持久性问题 [英] Persitsence Problem with OnResolveBookmark

查看:81
本文介绍了OnResolveBookmark的持久性问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在尝试使用WorklfowServiceHost托管非服务工作流.在工作流中,有许多我要恢复的书签.因此,我使用WorkflowHostingEndpoint恢复它们,并重写了 OnResolveBookmark方法.工作流的存储区被永久保存在SQL数据库中.

I'm trying to Host a NonService Workflow with WorklfowServiceHost. In the Workflow are many Bookmarks that i want to resume. So i resume them with a WorkflowHostingEndpoint an override the OnResolveBookmark Method. The workflows shold be persited in an SQL Database.

因此,当我运行工作流程时,实例在4秒内完成 WorkflowIdleBehavior ,我将其添加到WorkflowServiceHost.但是,当我恢复书签并且工作流进入下一个活动时,工作流不会持久保存在数据库中.我还添加了一个FileTrackingParticipant,它表示相同.

So when i Run the Workflow the Instance is persited in 4 Seconds with WorkflowIdleBehavior which I add to the WorkflowServiceHost. But when i Resume a Bookmark and the Workflow comes to the next Activity, the Workflow is not persisted in the DataBase. I have also added a FileTrackingParticipant, which said the same.

在第一个书签之后发生的事情:

空闲...持续存在... 当我恢复书签时:

已恢复...空闲状态

但是为什么它不持久并卸载呢?该实例位于第二个书签,但不持久.当实例长时间处于空闲状态时,当服务器崩溃时,第一个ResumeBookmark将丢失.

有什么想法吗?

感谢丹尼尔

 

 

推荐答案



->" 但是为什么它不持久并卸载呢?该实例位于第二个书签,但不持久.当服务器启动时,第一个简历电子书标记会丢失,而 实例是一个长时间的空闲状态. ""

您能给我们分享一些示例代码吗?

问候
Hi,

->"But why it doesnt Persist and unloads? The Instance is at the Second Bookmark but it isnt Persisted. When the Server Crachs the First ResumeBookmark is lost while the Instance is a long time Idle."

Could you share us a block of sample code.

Regards


这篇关于OnResolveBookmark的持久性问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆