Anders
For #1, you can model two different events on the Created state, one for your initial call, and one for the event that should transition to the ticket selected state. Or, you could do as you say and add another state that goes between those two. Either way will work. In the first case, your activating sequence can just use SetState to go back to the Created state to wait for the second event.
For #2, there is a need to pass the worklfow instance id each time an event or web service input is sent. if you are using the Publish as Web Service functionality, or the equivalent manual process, the code is already in place to manage the id via cookies. This means your client code must support cookies for web services and correctly send back any cookies sent to it. Use the CookieContainer in .NET client code to do this.
You can also implement your own mechanism for instance correlation if you need to use something other than cookies.
Matt
See What You Can Learn -- http://www.pluralsight.com/courses/IntroducingWF.aspx |