Handling external events in WF using ManualWorkflowSchedulerService

I have a simple workflow with HandleExternalEventAcitivity. The workflow must wait for the user to take an action, which in turn raises an event that handles the workflow activity.

Since this is an ASP.NET application, I am using ManualWorkflowSchedulerService to keep my workflow synchronous. However with HandWorkflowSchedulerService HandleExtenalEventActivity never fires. I have checked all attributes on interfaces, events, args events of the service.

While researching, I started a workflow in a console application, and while I am not using the ManualWorkflowSchedulerService, events are being raised and processed as expected.

Is there something extra for HandleExternalEventActivity using ManualWorkflowSchedulerService?

ANSWER: As Jeremy pointed out, you should call ManualWorkflowSchedulerService.RunWorkflow after the event is raised.

0


source to share


1 answer


After you raise the event to the workflow, do you call RunWorkflow in the scheduler again to enable further execution of your workflow?



+1


source







All Articles