IDslCompilerContextGetT Method (String) |
Namespace: Casewhere.Runtime.DSL.CompilerContext
T Get<T>( string key )
// Assuming a workflow has 2 activities like below: // Activity 1: ctx.Set("Confirmed", true); ctx.Set("ConfirmedOption", 5); // Activity 2: if (ctx.Get<bool>("Confirmed")) DoSomething(ctx.Get<int>("ConfirmedOption"));