Class: WorkflowContext<T>
Represents the base workflow context for the SDK workflows This should be extended by all the workflow contexts like EditorContext, GenStudioContext, etc.
Extended by
Type Parameters
| Type Parameter |
|---|
T extends SDKContext |
Constructors
Constructor
Copied to your clipboardnew WorkflowContext<T>(context): WorkflowContext<T>;
Parameters
| Parameter | Type |
|---|---|
context | T |
Returns
WorkflowContext<T>
Properties
| Property | Modifier | Type |
|---|---|---|
context | public | T |
Methods
sendCustomMessage()
Copied to your clipboardsendCustomMessage(data): void;
Sends a message to the SDK Agent to update the state of current running workflow.
Parameters
| Parameter | Type | Description |
|---|---|---|
data | unknown | incoming data coming from client to update the workflow. Note - Type of data is limited to what postMessage supports. |
Returns
void
