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 SDKContextConstructors
Constructor
new WorkflowContext<T>(context): WorkflowContext<T>;
Parameters
Parameter
Type
contextTReturns
WorkflowContext<T>
Properties
Property
Modifier
Type
contextpublicTMethods
sendCustomMessage()
sendCustomMessage(data): void;
Sends a message to the SDK Agent to update the state of current running workflow.
Parameters
Parameter
Type
Description
dataunknownincoming data coming from client to update the workflow. Note - Type of data is limited to what postMessage supports.
Returns
void