cc-everywhere

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

Constructors

Constructor

new EditorContext(context): EditorContext;

Parameters

Parameter
Type
context
ActionContext

Returns

EditorContext

Inherited from

WorkflowContext.constructor

Properties

Property
Modifier
Type
Inherited from
context
public
ActionContext
WorkflowContext.context

Methods

sendCustomMessage()

sendCustomMessage(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