我们将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.
更多推荐
问题:工作流等待已引发的外部事件
发布评论