Queen of the desert

Hello,

I have a composite activity which contain several HandleExternalEvent Activities in it.

All the activites are listening to the same event but with a diffrent TaskID.

How can I make sure that only the right HEEA will be executed

Help....

Thanks

Or




Re: Windows Workflow Foundation Correlation? How to execute the right HandleExternalEventActivity

Mahendra - MSFT

Are you using Correlation attributes on your interface If not, I would recommend you to look at correlation atrribute sample located at

http://msdn2.microsoft.com/en-us/library/ms741711.aspx

If this doesn't solve the problem, please send me you interface code and I will try to help.






Re: Windows Workflow Foundation Correlation? How to execute the right HandleExternalEventActivity

Roman Kiss

Or,

The Correlated event requires having the Local Service layer to call a method attributed as CorrelationInitializer. This method must be called by CallExternalMethodActivity in prior of the HEEA within the specific logical correlation token scope, otherwise the HEEA will subsribe a workflow queue for different EventQueueName - see the following third argument:

EventQueueName(Type interfaceType, string operation, ICollection<CorrelationProperty> propertyValues)

Thanks

Roman






Re: Windows Workflow Foundation Correlation? How to execute the right HandleExternalEventActivity

Or

Thank you both for your quick response,

I noticed that the issue is solved if I am using CallExternalMethodActivity but I could not figure out why. I guess Roman you have provided the answer Thanks again

Or