Skip to main content

workflow

const workflow: Workflow

The current workflow instance. Provides access to workflow-level metadata and the data dictionary.


At a Glance

export function onInit() {
const workflowName = workflow.getName();
stream.logInfo('Running in workflow: ' + workflowName);
}

export function onMessage() {
// Attach workflow info to message
message.data.WORKFLOW_NAME = workflow.getName();
stream.emit(message, OUTPUT_PORT);
}

Common Tasks

TaskMethod
Get workflow nameworkflow.getName()
Get data dictionaryworkflow.getDataDictionary()

See Also