Methods
-
getUuid() -
Get the workflow unique id
-
onSave(listener) -
Attach a callback function to run when a workflow is saved
Parameters:
Name Type Description listenerfunction called on save.
-
onSaveValidation(listener) -
Validate a workflow configuration before saving
Parameters:
Name Type Description listenerfunction 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:
WorkflowConfigurationTriggerResponseAn object Containing
{valid, uuid, value}properties.valid (the result of the validation listener), uuid and value (result of onSave listener) properties.