Windows Workflow Foundation 3


HandleExternalEvent Problem


Sorry no response so I'm posting again.the senario is as such:- I have a generalized event for all workflows in my system say 'GeneralEvent'- inherited from this 'GeneralEvent' I have a child event say 'ForwardEvent'- in my workflow I define a HandleExternalEvent activity and set it to accept 'GeneralEvent'- from my application if I send a 'ForwardEvent' to this workflow I receive an unable to deliver exceptionFYI
: I presume in the runtime you only look for 'GeneralEvent' to
"rehydrate" the workflow so getting anything else you give an
exception. I propose "issubclassof" on events fired into the runtime
instead of "equal"
What exactly do you mean by "inherited from this 'GeneralEvent' I have a child event say 'ForwardEvent'"?
When you set the InterfaceType of HandleExternalEventActivity, it listens for events on that specific interface.  If you need different behavior, you can definitely right a customized messaging activity with its corresponding service.
-Angel
What exactly do you mean by "inherited from this 'GeneralEvent' I have a child event say 'ForwardEvent'"?
When you set the InterfaceType of HandleExternalEventActivity, it listens for events on that specific interface.  If you need different behavior, you can definitely right a customized messaging activity with its corresponding service.
-Angel
I'm surprised, this is the most basic tenant of OO programming namely you expect the followingChildEvent : BaseEvent : EventArghandler(object sender, EventArg evnt); // definehandler(null, new ChildEvent()); // callthis does not work in WF because it seems the runtime only looks for the 'EventArg' type to rehydrate an instance (defined in the construct).yes I can write a work around but it defeats the purpose of the whole excersise.

Related Links

download code samples of Microsoft press' windows workflow foundation step by step - Kenn Scribner
Advantage and disadvantage of ASP.NET WorkFl
When do activities CANCEL and How do i force activities to cancel state?
Windows workflow 4.0 persistent issues
Windows Workflow 4
help needed in state machine workflow in asp.net
About the Role in WWF
Need suggestion of Workflow implementation
Invoking workflow from windows form
Tracking by objects
Sample unit testing project for a code activity
How to display the provider type summary in RuleSetDialog
Windows WF3.0 - get activity information from TrackingRecord object
Workflow Rules - Chaining for Indexers
WCSF PageFlow
front end

Categories

MSDN
Apps for Office and Sh...
Architecture
Data Platform Development
ScriptJunkie
Windows Hardware Devel...
Unified Communications
Silverlight
Other Forums
Microsoft Azure
Archived Forums T-U
Archived Forums V
In-App Advertising (Ad...
Kinect for Windows SDKs
Skype for Business
Suggestions and Feedba...
Visual Studio LightSwi...
Test Tools in Visual S...
Visual Studio Diagnost...
Tools for Apache Cordova
App & Ad Unit Management
Windows Desktop Develo...
Windows Desktop Optica...
Application Security f...
Windows Desktop Search...
Windows Desktop Web Se...
SharePoint 2013 - Gene...
SharePoint 2010 - Setu...
SharePoint Legacy Vers...
Workflow Manager 1.0
Azure SQL Database
Azure Media Services
Azure App Service - We...
Azure Mobile Apps
Microsoft Azure Site R...
Azure Automation
Azure Scheduler
Azure Scripting and Co...
Azure Key Vault
StorSimple
Azure Functions
Azure Database for Pos...
.NET Framework Setup a...
Claims based access pl...
Team Foundation Server...
Visual FoxPro General
BizTalk Server EDI and...
BizTalk ESB Toolkit
TPL Dataflow
Scripting
Internet Explorer Exte...
.NET Compact Framework
SQL Server High Availa...
SQL Server Compact
Windows Embedded 8 Sta...
Standard 7: Tools
Standard 7: Servicing ...
SQL Server 2012 Integr...
SQL Server 2012 Analys...
Live Connect (Archived)
Windows Live Messenger...
Dynamics 365 for Custo...
MSDN Subscriptions Fee...
Known Issues for Windo...
Visio General Question...
Microsoft Lync Persist...
Microsoft Lync Client ...
Silverlight Controls a...
Game Development with ...
Expression Encoder
Expression Web and Sup...
Retired SharePoint Exc...
Retired SharePoint Ent...
Retired SharePoint Col...
Architecture, Tools, a...
Archived: Software Tes...
Building Windows Store...
Building Windows Store...
Casablanca
CAT.NET
Dynamic Languages on .NET
Hobbyist Zone
Model-Based Testing wi...
patterns & practices: ...
Search Server: Known B...
Silverlight (formerly ...
SyncFx - Microsoft Syn...
SQL Server 2014 In Azu...
SQL Server 2014 Master...
Team Foundation Server...
Visual Basic 2008 (Pre...
Visual Basic Power Packs
Visual C++ MFC and ATL
Visual Studio Async CTP
Visual Studio 2008 (Pr...
Visual Studio 2008 SP1...
Visual Studio Applicat...
Visual Studio Team Sys...
Windows Error Reportin...
Windows Live Data Deve...
Tools for Windows Stor...
Windows Phone Preview ...
Microsoft R Server

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile