The Problem SolverWIndows Workflow Foundation
HomeShow ChangesEditPrintRecent ChangesSubscriptionsLost and FoundFind ReferencesRename



28-8-2008 16:05:0128-8-2008 15:19:2911-8-2008 21:00:5529-1-2008 14:13:1419-10-2006 11:59:16

List all versions

Handle External Event Activity
The Handle External Event Activity activity is used in conjunction with the Call External Method Activity activity for input and output communications with a local service.

The HandleExternalEventActivity activity is used in conjunction with the CallExternalMethodActivity activity for input and output communications with a local service. You can use these activities directly for generic communications. Or, you can subclass the HandleExternalEventActivity and CallExternalMethodActivity classes to create activities that are strictly bound to specific events and methods on an interface that is attributed with the ExternalDataExchangeAttribute attribute.

The base HandleExternalEventActivity class blocks the workflow until the event specified by the InterfaceType and EventName properties is raised by the corresponding local service registered with the WorkflowRuntime. After the event is raised, or if it was raised before the activity started executing, the inbound data is assigned to bound locations as defined in the ParameterBindings collection.

For more information, see the HandleExternalEventActivity class, GeneratingCommunicationActivities, and UsingLocalServicesInWorkflows.

For code samples that demonstrate how to use the HandleExternalEventActivity activity, see RaiseEventToLoadWorkflow and CorrelatedLocalService.

You can use the workflow communication activity command-line utility, wca.exe, to generate interface specific subclasses.

Wiki Usage

This wiki site is supposed to be a shared resource. As a shared resource everyone is encouraged to add new content or modify existing content!

Enjoy the WF wiki.

Recent Topics