Click or drag to resize

IDslCompilerContextSetTemp Method

Set temporary value in a context workflow. The value only maintaines in memory and will not be persisted to database.

Namespace:  Casewhere.Runtime.DSL.CompilerContext
Assembly:  Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.1.0
Syntax
C#
void SetTemp(
	string key,
	Object value
)

Parameters

key
Type: SystemString
The key.
value
Type: SystemObject
The value.
Examples
// Assuming a workflow has 2 activities like below:
// Activity 1:
ctx.SetTemp("Confirmed", true);
ctx.SetTemp("ConfirmedOption", 5);
// Activity 2:
if (ctx.GetTemp<bool>("Confirmed"))
    DoSomething(ctx.GetTemp<int>("ConfirmedOption"));
See Also