Documentation

WorkflowConfiguration

Methods

getUuid()

Get the workflow unique id

onSave(listener)

Attach a callback function to run when a workflow is saved

Parameters:
Name Type Description
listener function

called on save.

onSaveValidation(listener)

Validate a workflow configuration before saving

Parameters:
Name Type Description
listener function

called on validation. Return false to indicate that validation has not passed and the workflow cannot be saved.

trigger() → {WorkflowConfigurationTriggerResponse}

Save a workflow configuration if valid.

Returns:

An object Containing {valid, uuid, value} properties.valid (the result of the validation listener), uuid and value (result of onSave listener) properties.

WorkflowConfigurationTriggerResponse