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

Design guidance needed for WWF application
Custom pub/sub service for WF message correlation
Is there any event get fired when I changed the content in the workflow designer?
Subscription handler threw System.FormatException
How can I designate string[] field as returnValue for ReceiveActivity?
is the "workflows in memory" performance counter failing to be reset?
Creating a workflow dynamically
writing non-persistance data to Oracle from a workflow app
Is Workflow Foundation a good fit for multiple workflow processes
The workflow failed validation
Can SQL compact edition be used for persistence and tracking storage?
Invoking multiple web service using InvokeWebServiceActivity combined with transaction
Workflow, HandleExternalEvent and WCF
XOML Only - How to change an integer in the argument dictionary
WorkflowTheme Exception
Pass in parameters to declarative workflow

Categories

MSDN
Windows Desktop Develo...
Visual Studio Design a...
Visual FoxPro
Data Platform Development
Dynamics
Expression
Other Forums
Archive
Microsoft Azure
Archived Forums SA-SM
Windows Phone Preview ...
Kinect for Windows SDKs
Skype for Business
Visual C++
Visual Studio Diagnost...
Network Monitor
Windows Desktop Sideba...
Developing Apps for Of...
Access for Developers
SharePoint Legacy Vers...
SharePoint Legacy Vers...
Workflow Manager 1.0
Azure Networking (DNS,...
Azure Cache
Azure Scripting and Co...
Azure Log Analytics
Azure Logic Apps
Azure SQL Data Warehouse
Azure Functions
Team Foundation Server...
The Architect Role
Commerce Server 2007
Visual Basic for Appli...
SQL Server Express
SQL Server Distributed...
SQL Server In-Memory T...
Standard 2009: Compone...
Standard 7: Embedded E...
SQL Server 2012 Databa...
SQL Server 2012 SQL To...
Windows Forms Sample A...
Windows Live ID: Devel...
Orchard –Discussions
WebsitePanel - Support
The Samsung Windows De...
Bing Maps WPF, WP7/8/8...
Bing Maps for Windows ...
Microsoft Lync Client ...
Expression Studio with...
Expression Media
Retired SharePoint Ent...
Retired SharePoint Acc...
Project Standard and P...
Project Online General...
.NET Framework 4 Appli...
.NET Framework 4: Wind...
.NET Remoting and Runt...
Announcements about pr...
App Producer (archived)
Feedback for Visual Ba...
General Troubleshootin...
Getting Started With V...
HD DVD Interactivity A...
Microsoft ESP Platform...
Moderator Posting Only...
Office Development wit...
Project Codename:  Jasper
NUI API and Programmin...
Service Bus EAI & EDI ...
SQL Server Modeling
SyncFx - Technical Dis...
SQL Server 2014 High A...
SQL Server 2014 Self-S...
Team Foundation Server...
Tellme Studio (retired)
TFS Deployment to Azure
UI Design for Windows ...
Visual Basic Express E...
Visual C# IDE
Visual C# Language
Visual C++ 2008 (Pre-r...
Visual C++ Express 200...
Visual Studio Async CTP
Visual Studio LightSwi...
Visual Studio Performa...
Windows Events
Windows Live Data Deve...
Windows Presentation F...
Building Windows Store...
XML in Visual Studio 2...
Windows Phone Preview ...
Kinect for Windows v1 SDK

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile