阻止 WF 运行时或持久性服务加载 WF 实例

发布于 2024-08-05 21:43:46 字数 268 浏览 2 评论 0原文

我正在开发一个实用程序,以便使用 WF DB 中的持久 WF 实例。

我使用标准 SqlWorkflowPersistenceService 来访问 WF DB。 我想使用持久性服务功能,例如 GetAllWorkflows() 并通过 GetWorkflow() 加载单个实例。

当我使用这些实例时,我想阻止运行时处理其他实例。持久性轮询间隔设置为较高的值,以防止服务在工具运行时进行轮询,但服务在启动时会加载计时器已过期的实例。

有没有办法完全阻止运行时加载和处理实例?

I'm developing an utility in order to work with persisted WF instances in a WF DB.

I'm using the standard SqlWorkflowPersistenceService to access the WF DB.
I'd like to use the persistence service functionality such as GetAllWorkflows() und load individual instances via GetWorkflow().

While I'm working with these instances, I'd like to prevent the runtime from processing other instances. The persistence poll interval is set to a high value to prevent the service from polling while the tool is running, however the service loads instances with expired timers when it's starting.

Is there a way to prevent the runtime loading and processing instances at all?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

月下凄凉 2024-08-12 21:43:46

据我所知,没有真正的开箱即用设置可以让您在不启动工作流程的情况下加载工作流程。最简单的方法/解决方法是使用 ManualWorkflowScheduler 并将 activeTimer 设置为 false。这样您就可以加载工作流程,但只有您明确执行此操作后,它们才会执行。请记住,您必须卸载自己加载的任何工作流实例,因为不执行意味着工作流不会变得空闲,并且 unloadOnIdle 设置不会启动。

As far As I know there is no real out of the box setting that will let you load workflows without starting them. The easiest approach/workaround would be to use the ManualWorkflowScheduler with activeTimer set to false. That way you can load workflows but they will not be executed until you explicitly do so. Keep in mind that you have to unload any workflow instance you load yourself because no execution means the workflow doesn't become idle and the unloadOnIdle setting doesn't kick in.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文