Package com.atlassian.jira.workflow
Class JiraDraftWorkflow
java.lang.Object
com.atlassian.jira.workflow.AbstractJiraWorkflow
com.atlassian.jira.workflow.JiraDraftWorkflow
- All Implemented Interfaces:
JiraWorkflow,Comparable<JiraWorkflow>
This class represents an draft workflow, that is a copy of an active
workflow that may be edited, (and eventually) be used to overwrite an active
workflow. It is stored in a separate database table from the main workflows.
- Since:
- v3.13
-
Field Summary
Fields inherited from class com.atlassian.jira.workflow.AbstractJiraWorkflow
workflowManagerFields inherited from interface com.atlassian.jira.workflow.JiraWorkflow
ACTION_ORIGIN_STEP_ID, ACTION_SCREEN_ATTRIBUTE, ACTION_TYPE_ALL, ACTION_TYPE_COMMON, ACTION_TYPE_GLOBAL, ACTION_TYPE_INITIAL, ACTION_TYPE_ORDINARY, DEFAULT_WORKFLOW_NAME, DRAFT, JIRA_META_ATTRIBUTE_ALLOWED_LIST, JIRA_META_ATTRIBUTE_EDIT_ALLOWED, JIRA_META_ATTRIBUTE_EXCLUDE_RESOLUTION, JIRA_META_ATTRIBUTE_I18N, JIRA_META_ATTRIBUTE_I18N_SUBMIT, JIRA_META_ATTRIBUTE_INCLUDE_RESOLUTION, JIRA_META_ATTRIBUTE_KEY_PREFIX, JIRA_META_ATTRIBUTE_PERMISSION, JIRA_META_UPDATE_AUTHOR_KEY, JIRA_META_UPDATE_AUTHOR_NAME, JIRA_META_UPDATED_DATE, LIVE, STEP_STATUS_KEY, WORKFLOW_DESCRIPTION_ATTRIBUTE, WORKFLOW_VIEW_FIELDLAYOUT_KEY_ATTRIBUTE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJiraDraftWorkflow(String name, WorkflowManager workflowManager, com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor) -
Method Summary
Modifier and TypeMethodDescriptiongetName()booleanThis method will always return true as this implementation is always used for draft Workflows.booleanA draft Workflow is always editable.Methods inherited from class com.atlassian.jira.workflow.AbstractJiraWorkflow
compareTo, equals, getActionsByName, getActionsForScreen, getActionsWithResult, getActionType, getAllActions, getDescription, getDescriptor, getDisplayName, getLinkedStatus, getLinkedStatuses, getLinkedStatusId, getLinkedStatusIds, getLinkedStatusObject, getLinkedStatusObjects, getLinkedStep, getLinkedStep, getMode, getNextActionId, getPostFunctionsForTransition, getStepsForTransition, getStepsWithAction, getUpdateAuthor, getUpdateAuthorName, getUpdatedDate, hasDraftWorkflow, hashCode, isActive, isCommonAction, isDefault, isGlobalAction, isInitialAction, isOrdinaryAction, isSystemWorkflow, removeStep, reset
-
Constructor Details
-
JiraDraftWorkflow
protected JiraDraftWorkflow(String name, WorkflowManager workflowManager, com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor)
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceJiraWorkflow- Specified by:
getNamein classAbstractJiraWorkflow
-
isEditable
A draft Workflow is always editable.- Specified by:
isEditablein interfaceJiraWorkflow- Overrides:
isEditablein classAbstractJiraWorkflow- Returns:
- true
- Throws:
WorkflowException- See Also:
-
isDraftWorkflow
public boolean isDraftWorkflow()This method will always return true as this implementation is always used for draft Workflows.- Returns:
- true
- See Also:
-