问题:工作流等待已引发的外部事件 [英] Problem: Workflow waiting for an external event that has been raised

查看:77
本文介绍了问题:工作流等待已引发的外部事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们将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 HandleExternalEvent
2- After creating the workflow, the event is raised but it does not wake up the workflow
3- 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.


这篇关于问题:工作流等待已引发的外部事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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