ExecutionContext class
Beep.Skia.Model — class
Provides execution context for automation nodes including input data, workflow state, and execution environment.
Members
| Member | Kind | Description |
|---|---|---|
ExecutionContext(string workflowId, string executionId) | Method | Initializes a new instance of the ExecutionContext class. The ID of the workflow being executed. The unique ID for this execution instance. |
string WorkflowId | Property | Gets the ID of the workflow being executed. |
string ExecutionId | Property | Gets the unique ID for this execution instance. |
DateTime StartTime | Property | Gets the time when this execution context was created. |
Dictionary<string, object> Data | Property | Gets or sets the input data for the current node execution. |
Dictionary<string, object> Variables | Property | Gets or sets the workflow variables accessible to all nodes. |
Dictionary<string, object> Metadata | Property | Gets or sets metadata about the execution environment. |
List<object> PreviousResults | Property | Gets or sets the results from previous nodes in the workflow execution. |
string UserId | Property | Gets or sets the user ID who initiated the workflow execution. |
ExecutionPriority Priority | Property | Gets or sets the execution priority. |
bool IsDebugMode | Property | Gets or sets a value indicating whether the execution is in debug mode. |
TimeSpan? Timeout | Property | Gets or sets the maximum execution timeout. |
ExecutionContext CreateChild(Dictionary<string, object> newData = null) | Method | Creates a copy of the current execution context with optionally modified data. New data to replace the current data, or null to keep existing data. A new ExecutionContext instance with the specified modifications. |
T GetData<T>(string key, T defaultValue = default) | Method | Gets a strongly typed value from the data dictionary. The type to cast the value to. The key to look up. The default value to return if the key is not found. The value cast to the specified type, or the default value. |
void SetData(string key, object value) | Method | Sets a value in the data dictionary. The key to set. The value to set. |
T GetVariable<T>(string key, T defaultValue = default) | Method | Gets a strongly typed variable value. The type to cast the value to. The key to look up. The default value to return if the key is not found. The variable value cast to the specified type, or the default value. |
void SetVariable(string key, object value) | Method | Sets a workflow variable value. The key to set. The value to set. |