reorderWorkflows
A MoogDb v2 method that reorders the sequence of workflows within a Workflow Engine Moolet.
Back to MoogDb V2 API Method Reference.
Request arguments
Method reorderWorkflows
takes the following request arguments:
Name |
Type |
Required |
Description |
---|---|---|---|
|
String |
Yes |
Name of the Workflow Engine Moolet. |
|
Array of Integers |
Yes |
An ordered array of all the workflow IDs within the Workflow Engine Moolet. The position of each workflow ID is its position within the Workflow Engine Moolet. |
Response
Method reorderWorkflows
returns the following response:
Examples
The following examples demonstrate typical use of method reorderWorkflows
:
Request example
Example request to reorder the workflows in "Alerts Workflows" into the workflow sequence 1, 4, 3, 2, 5:
moogdb.reorderWorkflows(“Alerts Workflows”, [1, 4, 3, 2, 5]);