Workflow & Workflow Manager 1.0: What’s New, What’s Coming
- Date: October 30, 2012 from 11:45AM to 12:45PM
- Day 1
- B92 Stinger
- 2-033
- Speakers: Dave Cliffe
- 14,230 Views
- 2 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
Slides (view online)Already have a Channel 9 account? Please sign in
Follow the Discussion
Dave,
Contract-First concept looks very interesting.
Please correct me here: it appeared from the demo that the Contract-First workflow service is statefull - you were able to call different methods on the workflow service and get different results. When the WCF test client invokes a service, how does WCF test client pass a session id (or workflow instance id) to the workflow service to identify the workflow instance that this message applies to? Technically, I could have several workflow instances running on the same workflow service at the same time. I'd expect WCF tester client to somehow identify which workflow instance it tries to invoke...
Could you post code sample for the Contract-First example with a walk through that explains what happens under the cover of the workflow service as it gets invoked via WCF tester?
Thanks,
Alex
Hi Alex,
Sure, I put the simple demo code up on code.msdn.com with a brief description of how it works: http://code.msdn.microsoft.com/Contract-First-Authoring-f519ddf1
To answer your questions: yes, workflow services are most typically stateful services. In .NET 4, we introduced the concept of content-based correlation with workflow services, which allows you to choose a particular piece of data in your input messages to determine which instance the host should load. In this example, I used both the 'gameMoniker' parameter (for the JoinGame messages) and the players' names (for the subsequent messages).
Hope that helps,
-- Dave
Remove this comment
Remove this thread
close