|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WorkflowManager
The WorkflowManager is used to interface with the workflow implementation
Method Summary | |
---|---|
org.ofbiz.core.entity.GenericValue |
createIssue(String remoteUserName,
Map fields)
|
void |
createWorkflow(User creator,
JiraWorkflow workflow)
|
void |
deleteWorkflow(JiraWorkflow workflow)
|
void |
doWorkflowAction(WorkflowProgressAware from)
|
com.opensymphony.workflow.loader.ActionDescriptor |
getActionDescriptor(WorkflowProgressAware workflowProgressAware)
|
Collection |
getActiveWorkflows()
Retrieve all currently active workflows. |
JiraWorkflow |
getDefaultWorkflow()
|
Map |
getPostFunctionsForWorkflow(JiraWorkflow workflow)
|
User |
getRemoteUser(Map transientVars)
|
String |
getStepId(long actionDescriptorId,
String workflowName)
Gets the first stepId for the given action and workflow name. |
com.opensymphony.workflow.spi.WorkflowStore |
getStore()
|
JiraWorkflow |
getWorkflow(org.ofbiz.core.entity.GenericValue issue)
Retrieve the workflow for a given issue. |
JiraWorkflow |
getWorkflow(Issue issue)
Retrieve the workflow for a given issue. |
JiraWorkflow |
getWorkflow(Long projectId,
String issueTypeId)
Retrieve the workflow for a given project - issue type pair. |
JiraWorkflow |
getWorkflow(String name)
Retrieve a single workflow by name |
JiraWorkflow |
getWorkflowFromScheme(org.ofbiz.core.entity.GenericValue scheme,
String issueTypeId)
Return the workflow in a particular scheme for a given issue type. |
Collection |
getWorkflows()
Retrieve all of the workflows in the system |
Collection |
getWorkflowsFromScheme(org.ofbiz.core.entity.GenericValue workflowScheme)
Returns all workflows for a given scheme |
boolean |
isActive(JiraWorkflow workflow)
Determine whether or not a given workflow is active in the system. |
boolean |
isEditable(Issue issue)
|
boolean |
isSystemWorkflow(JiraWorkflow workflow)
Determine whether or not a given workflow is a system workflow. |
com.opensymphony.workflow.Workflow |
makeWorkflow(String userName)
|
void |
migrateIssueToWorkflow(org.ofbiz.core.entity.GenericValue issue,
JiraWorkflow newWorkflow,
org.ofbiz.core.entity.GenericValue status)
Deprecated. Please use migrateIssueToWorkflow(com.atlassian.jira.issue.MutableIssue, JiraWorkflow, com.atlassian.jira.issue.status.Status) . Since: 3.9. |
void |
migrateIssueToWorkflow(MutableIssue issue,
JiraWorkflow newWorkflow,
Status status)
Migrates given issue to new workflow and sets new status on it. |
void |
removeWorkflowEntries(org.ofbiz.core.entity.GenericValue issue)
|
void |
saveWorkflow(JiraWorkflow workflow)
|
boolean |
workflowExists(String name)
|
Method Detail |
---|
Collection getWorkflows()
JiraWorkflow
objects.boolean isActive(JiraWorkflow workflow) throws WorkflowException
Active workflows are those currently assigned to schemes and associated with projects - they cannot be edited but can be used.
WorkflowException
boolean isSystemWorkflow(JiraWorkflow workflow) throws WorkflowException
WorkflowException
Collection getActiveWorkflows() throws WorkflowException
WorkflowException
JiraWorkflow getWorkflow(String name)
JiraWorkflow getWorkflow(org.ofbiz.core.entity.GenericValue issue) throws WorkflowException
WorkflowException
JiraWorkflow getWorkflow(Issue issue) throws WorkflowException
WorkflowException
JiraWorkflow getWorkflow(Long projectId, String issueTypeId) throws WorkflowException
WorkflowException
JiraWorkflow getWorkflowFromScheme(org.ofbiz.core.entity.GenericValue scheme, String issueTypeId) throws WorkflowException
WorkflowException
Collection getWorkflowsFromScheme(org.ofbiz.core.entity.GenericValue workflowScheme) throws WorkflowException
workflowScheme
-
WorkflowException
JiraWorkflow getDefaultWorkflow() throws WorkflowException
WorkflowException
org.ofbiz.core.entity.GenericValue createIssue(String remoteUserName, Map fields) throws WorkflowException
WorkflowException
void removeWorkflowEntries(org.ofbiz.core.entity.GenericValue issue) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
void doWorkflowAction(WorkflowProgressAware from)
User getRemoteUser(Map transientVars) throws EntityNotFoundException
EntityNotFoundException
com.opensymphony.workflow.spi.WorkflowStore getStore() throws com.opensymphony.workflow.StoreException
com.opensymphony.workflow.StoreException
void createWorkflow(User creator, JiraWorkflow workflow) throws WorkflowException
WorkflowException
void saveWorkflow(JiraWorkflow workflow) throws WorkflowException
WorkflowException
void deleteWorkflow(JiraWorkflow workflow) throws WorkflowException
WorkflowException
com.opensymphony.workflow.loader.ActionDescriptor getActionDescriptor(WorkflowProgressAware workflowProgressAware) throws Exception
Exception
void migrateIssueToWorkflow(MutableIssue issue, JiraWorkflow newWorkflow, Status status) throws WorkflowException
issue
- issue to migratenewWorkflow
- new workflowstatus
- new status
WorkflowException
- if migration failsvoid migrateIssueToWorkflow(org.ofbiz.core.entity.GenericValue issue, JiraWorkflow newWorkflow, org.ofbiz.core.entity.GenericValue status) throws WorkflowException
migrateIssueToWorkflow(com.atlassian.jira.issue.MutableIssue, JiraWorkflow, com.atlassian.jira.issue.status.Status)
. Since: 3.9.
WorkflowException
com.opensymphony.workflow.Workflow makeWorkflow(String userName)
boolean workflowExists(String name) throws WorkflowException
WorkflowException
boolean isEditable(Issue issue)
Map getPostFunctionsForWorkflow(JiraWorkflow workflow)
String getStepId(long actionDescriptorId, String workflowName)
actionDescriptorId
- id of the ActionDescriptorworkflowName
- name of the JiraWorkflow
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |