Class: EditorContext
Represents the base workflow context for the SDK workflows This should be extended by all the workflow contexts like EditorContext, GenStudioContext, etc.
Extends
WorkflowContext<ActionContext<DesignConfig>>
Constructors
Constructor
Copied to your clipboardnew EditorContext(context): EditorContext;
Parameters
| Parameter | Type |
|---|---|
context | ActionContext |
Returns
EditorContext
Inherited from
Properties
| Property | Modifier | Type | Inherited from |
|---|---|---|---|
context | public | ActionContext |
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
Inherited from
WorkflowContext.sendCustomMessage
