问题:工作流等待已引发的外部事件

编程入门 行业动态 更新时间:2024-10-10 10:26:23
本文介绍了问题:工作流等待已引发的外部事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我们将Workflow基础与持久性一起用于wcf服务。我们注意到,在从外部应用程序调用GetWorkflow之前,工作流处于挂起状态。以下是基本步骤: 1-创建Worflow。工作流状态具有HandleExternalEvent 2-创建工作流之后,事件被引发但它不会唤醒工作流.3当通过wcf服务从外部应用程序调用SqlTrackingQuery.GetWorkflow时,工作流程唤醒并执行。 在调用GetWorkflows之前,事件似乎保持排队。 问题:为什么提升事件不会唤醒工作流程? 谢谢

We're using Workflow foundation with persistency into a wcf service. We noticed that the workflow was staying in a pending state until calling a GetWorkflows from an external application. Here are the basic steps:1- The Worflow is created. The workflow state has a HandleExternalEvent2- After creating the workflow, the event is raised but it does not wake up the workflow3- When calling SqlTrackingQuery.GetWorkflows from an external application through the wcf service, the workflow wakes-up and executes.It seems that the event stays queued until the GetWorkflows is called.Question: Why the raising of the event does not wake up the workflow?Thanks

推荐答案

您使用的是ManualSchedulerService吗?如果是这样,那么你必须在每个事件之后明确调用RunWorkflow()。如果没有,你可以发布更多有关如何举办活动的细节。 Are you using the ManualSchedulerService? If so then you have to explicity call RunWorkflow() after each event. If not can you post more details on how you are raising your events.

更多推荐

问题:工作流等待已引发的外部事件

本文发布于:2023-11-23 23:11:50,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1623125.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:工作流   事件

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!