getInstanceId()createSignalUrl(nextStep: string, token: any, title?: string)createNextSignalUrl(token: any, title?: string)sendHubSignal(name: string, data: { [key: string]: any; })queue(name: string, version: string, input: { [key: string]: any; }, options?: { [key: string]: any; }, tags?: string[])queueLibrary(library: function, input: { [key: string]: any; }, options?: { [key: string]: any; }, tags?: string[])getDocuments()getDocument(documentTypeName: string)getDocumentDataUri(documentTypeName: string)saveDocument(documentTypeName: string, dataUri: string, fileName?: string)// This assumes there is a Document Type defined in the workflow with the name 'MyDocument'.'
Workflow.saveDocument('MyDocument', 'data:text/plain;base64,SG93ZHkgcGFydG5lciE=');
// The 3rd parameter is optional and can be used to set the file name.
Workflow.saveDocument('MyDocument', 'data:text/plain;base64,SG93ZHkgcGFydG5lciE=', 'MyFile.txt');setProgress(completed: number, total: number)setStage(stage: string)Workflow.setStage('My custom stage');setName(name: string)stop(message?: string)getPreviousAlerts()clearAlerts()