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>
public class JiraDraftWorkflow
- extends AbstractJiraWorkflow
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
Fields inherited from interface com.atlassian.jira.workflow.JiraWorkflow |
ACTION_ORIGIN_STEP_ID, 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_NAME, JIRA_META_UPDATED_DATE, LIVE, STEP_STATUS_KEY, WORKFLOW_DESCRIPTION_ATTRIBUTE, WORKFLOW_VIEW_FIELDLAYOUT_KEY_ATTRIBUTE |
Method Summary |
String |
getName()
|
boolean |
isDraftWorkflow()
This method will always return true as this implementation is always used for draft Workflows. |
boolean |
isEditable()
A draft Workflow is always editable. |
Methods inherited from class com.atlassian.jira.workflow.AbstractJiraWorkflow |
compareTo, equals, getActionsForScreen, getActionsWithResult, getActionType, getAllActions, getDescription, getDescriptor, getLinkedStatus, getLinkedStatuses, getLinkedStatusObject, getLinkedStatusObjects, getLinkedStep, getLinkedStep, getMode, getNextActionId, getPostFunctionsForTransition, getStepsForTransition, getStepsWithAction, getUpdateAuthorName, getUpdatedDate, hasDraftWorkflow, hashCode, isActive, isCommonAction, isDefault, isGlobalAction, isInitialAction, isOrdinaryAction, isSystemWorkflow, removeStep, reset |
JiraDraftWorkflow
protected JiraDraftWorkflow(String name,
WorkflowManager workflowManager,
com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor)
getName
public String getName()
- Specified by:
getName
in interface JiraWorkflow
- Specified by:
getName
in class AbstractJiraWorkflow
isEditable
public boolean isEditable()
throws WorkflowException
- A draft Workflow is always editable.
- Specified by:
isEditable
in interface JiraWorkflow
- Overrides:
isEditable
in class AbstractJiraWorkflow
- Returns:
- true
- Throws:
WorkflowException
- See Also:
JiraWorkflow.isEditable()
isDraftWorkflow
public boolean isDraftWorkflow()
- This method will always return true as this implementation is always used for draft Workflows.
- Returns:
- true
- See Also:
JiraWorkflow.isDraftWorkflow()
Copyright © 2002-2011 Atlassian. All Rights Reserved.