Syntax
comalaDeactivateSpaceWorkflow(spaceKey, workflowName)
Description
Deactivate workflow in space.
Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
spaceKey | string | Yes | Selected space to deactivate the workflow of. |
workflowName | string | Yes | Selected workflow to be deactivated. |
Return type
Boolean
Returns true if successful, and false otherwise. For example, it will be false when there is no workflow in the space with the selected name.
Example
return comalaDeactivateSpaceWorkflow("TST", "Test Workflow");
Returns true if the workflow "Test Workflow" exists in Space "TST" and can be deactivated or already inactive, returns false otherwise.