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