Getting a list of possible workflows for the class: getWorkflows

The request is made using the path <server URL>/rest/<service name>/getWorkflows/<class name>, where the class name is specified with a namespace.

You can specify in the request: doc: additional parameters <meta_query_parameters>:

  • namespace
  • version

Query example:

https://localhost:8888/rest/meta/getWorkflows/workflowBase@develop-and-test

A list of workflows for the class workflowBase in the namespace develop-and-test will be requested, an example response:

[ { name: 'simpleWorkflow',
caption: 'Simple WF',
wfClass: 'workflowBase@develop-and-test',
startState: 'canStart',
states: [ [Object], [Object], [Object], [Object], [Object] ],
transitions: [ [Object], [Object], [Object], [Object], [Object] ],
metaVersion: '2.0.61.16945',
namespace: 'develop-and-test' } ]

The example in dnt: test/modules/rest/metadatasrv.spec.js

/checking metadata service/# accessing the list of possible workflows for meta class: getWorkflows