Spawned Contexts – Replicator, While, State, EventHandlers, and CAG

Ever wonder why this.delayActivity1.TimeoutDuration sometimes doesn’t change the timeout duration?  How come this.callExternalMethodActivity1.ParameterBindings[“(ReturnValue)”] isn’t giving you the value you expect in some scenarios?  How is it possible that sometimes this.GetActivityByName(“foo”) does not equal my sender for one of foo’s events?  The answer to all of these questions is: spawned contexts. One of the most powerful and…

28

Workflows and Transactions

QUESTION: How do I get access to a transaction inside my workflow? ANSWER: First of all, this post has nothing to do with flowing a transaction into a workflow instance.  That is a completely different topic which we might cover at some other time. TransactionScopeActivity With that out of the way, there are two ways…

3

Clean up your Created Workflows

QUESTION: What happens to a workflow instance I’ve created but never started? ANSWER: Calling WorkflowRuntime.CreateWorkflow() will give you back a WorkflowInstance which, in essence, is a proxy to a runtime instance in the Created state.  But what happens to that instance if it is never started? Upon calling CreateWorkflow you have caused the runtime to…

0