~WorkflowConfiguration

Methods

onSaveValidation (listener)

Validate a workflow configuration before saving

Parameters

NameTypeDescription
listener

function

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


onSave (listener)

Attach a callback function to run when a workflow is saved

Parameters

NameTypeDescription
listener

function

called on save.


trigger()

Save a workflow configuration if valid.

Returns

WorkflowConfigurationTriggerResponse

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


Rate this page: