updateDraftIfNeeded property
Whether to create or update a draft workflow scheme when updating an active workflow scheme. An active workflow scheme is a workflow scheme that is used by at least one project. The following examples show how this property works:
- Update an active workflow scheme with
updateDraftIfNeeded
set totrue
: If a draft workflow scheme exists, it is updated. Otherwise, a draft workflow scheme is created. - Update an active workflow scheme with
updateDraftIfNeeded
set tofalse
: An error is returned, as active workflow schemes cannot be updated. - Update an inactive workflow scheme with
updateDraftIfNeeded
set totrue
: The workflow scheme is updated, as inactive workflow schemes do not require drafts to update.
Defaults to false
.
Implementation
final bool updateDraftIfNeeded;