Availability
This routine is available starting with SIL Engine 4.8.0.4.
Syntax
getWorkflowsFromSchemeName(workflowSchemeName)
Description
Retrieves a list of workflows associated to a workflow scheme.
Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
workflowSchemeName | string | Yes | The name of the workflow scheme. |
Return type
Returns a list workflow objects representing workflows associated to a given workflow scheme.
Example
string workflowSchemeName = "TEST: Software Simplified Workflow Scheme"; JWorkflow[] workflows = getWorkflowsFromSchemeName(workflowSchemeName); return workflows; // String representation // 10100|Software Simplified Workflow for Project TEST|live|User Built|Default|true|To Do|In Progress|Done|Create|To Do|In Progress|Done|10600|Software Simplified Workflow for Project DEMO|live|User Built|10000|true|To Do|In Progress|Done|Create|To Do|In Progress|Done|Clone Epic // JSON representation /* [{ "id": "10100", "name": "Software Simplified Workflow for Project TEST", "mode": "live", "type": "User Built", "assocIssueType": "Default", "active": true, "statuses": ["To Do", "In Progress", "Done"], "transitions": ["Create", "To Do", "In Progress", "Done"] }, { "id": "10600", "name": "Software Simplified Workflow for Project DEMO", "mode": "live", "type": "User Built", "assocIssueType": "10000", "active": true, "statuses": ["To Do", "In Progress", "Done"], "transitions": ["Create", "To Do", "In Progress", "Done", "Clone Epic"] }] */