Skip to end of banner
Go to start of banner

getAllWorkflowTransitions

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Availability

This routine is available starting with SIL Engine 4.8.0.4.

Syntax

getAllWorkflowTransitions(workflowName)

Description

Retrieves a list of workflow transition actions.

Parameters

Parameter name

Type

Required

Description

workflowName

string

Yes

The name of the workflow.

Return type

JWorkflowAction[]

Returns a list of workflow actions representations of a single workflow.

The object contains:

  • Name of the transition
  • The originating status
  • List of Java classes used for the transition's conditions, validators, and post functions

Example

string workflowName = "Software Simplified Workflow for Project TEST";
JWorkflowAction[] actions = getAllWorkflowTransitions(workflowName);
return actions;


// String representation
// Create|||com.atlassian.jira.workflow.function.issue.IssueCreateFunction|com.atlassian.jira.workflow.function.issue.IssueReindexFunction|com.atlassian.jira.workflow.function.event.FireIssueEventFunction |com.atlassian.jira.workflow.validator.PermissionValidator||To Do|Done||com.atlassian.jira.workflow.function.issue.UpdateIssueFieldFunction |com.atlassian.jira.workflow.function.issue.UpdateIssueStatusFunction |com.atlassian.jira.workflow.function.misc.CreateCommentFunction| com.atlassian.jira.workflow.function.issue.GenerateChangeHistoryFunction |com.atlassian.jira.workflow.function.issue.IssueReindexFunction|com.atlassian.jira.workflow.function.event.FireIssueEventFunction ||In Progress|Done||com.keplerrominfo.jira.plugins.jjupin.workflow.SilPostFunction|com.atlassian.jira.workflow.function.issue.UpdateIssueFieldFunction |com.atlassian.jira.workflow.function.issue.UpdateIssueStatusFunction |com.atlassian.jira.workflow.function.misc.CreateCommentFunction| com.atlassian.jira.workflow.function.issue.GenerateChangeHistoryFunction |com.atlassian.jira.workflow.function.issue.IssueReindexFunction|com.atlassian.jira.workflow.function.event.FireIssueEventFunction ||Done|Done||com.atlassian.jira.workflow.function.issue.UpdateIssueFieldFunction |com.atlassian.jira.workflow.function.issue.UpdateIssueStatusFunction |com.atlassian.jira.workflow.function.misc.CreateCommentFunction| com.atlassian.jira.workflow.function.issue.GenerateChangeHistoryFunction |com.atlassian.jira.workflow.function.issue.IssueReindexFunction|com.atlassian.jira.workflow.function.event.FireIssueEventFunction |


// JSON representation
/*
[{
	"name": "Create",
	"fromStatus": null,
	"conditions": [],
	"validators": ["com.atlassian.jira.workflow.function.issue.IssueCreateFunction", "com.atlassian.jira.workflow.function.issue.IssueReindexFunction", "com.atlassian.jira.workflow.function.event.FireIssueEventFunction", "com.atlassian.jira.workflow.validator.PermissionValidator"],
	"postFunctions": []
}, {
	"name": "To Do",
	"fromStatus": "Done",
	"conditions": [],
	"validators": ["com.atlassian.jira.workflow.function.issue.UpdateIssueFieldFunction", "com.atlassian.jira.workflow.function.issue.UpdateIssueStatusFunction", "com.atlassian.jira.workflow.function.misc.CreateCommentFunction", "com.atlassian.jira.workflow.function.issue.GenerateChangeHistoryFunction", "com.atlassian.jira.workflow.function.issue.IssueReindexFunction", "com.atlassian.jira.workflow.function.event.FireIssueEventFunction"],
	"postFunctions": []
}, {
	"name": "In Progress",
	"fromStatus": "Done",
	"conditions": [],
	"validators": ["com.keplerrominfo.jira.plugins.jjupin.workflow.SilPostFunction", "com.atlassian.jira.workflow.function.issue.UpdateIssueFieldFunction", "com.atlassian.jira.workflow.function.issue.UpdateIssueStatusFunction", "com.atlassian.jira.workflow.function.misc.CreateCommentFunction", "    com.atlassian.jira.workflow.function.issue.GenerateChangeHistoryFunction", "com.atlassian.jira.workflow.function.issue.IssueReindexFunction", "com.atlassian.jira.workflow.function.event.FireIssueEventFunction"],
	"postFunctions": []
}, {
	"name": "Done",
	"fromStatus": "Done",
	"conditions": [],
	"validators": ["com.atlassian.jira.workflow.function.issue.UpdateIssueFieldFunction", "com.atlassian.jira.workflow.function.issue.UpdateIssueStatusFunction", "com.atlassian.jira.workflow.function.misc.CreateCommentFunction", "com.atlassian.jira.workflow.function.issue.GenerateChangeHistoryFunction", "com.atlassian.jira.workflow.function.issue.IssueReindexFunction", "com.atlassian.jira.workflow.function.event.FireIssueEventFunction"],
	"postFunctions": []
}]
*/
  • No labels