Get the current position of an object in the workflow: GET¶
GET method is used to get the current position of the object in workflows. The request is made along the path <URL сервера>/rest/<service name>/<class name>/<object id>
, for example:
https://localhost:8888/rest/workflows/workflowBase@develop-and-test/1
In response, an object with the states of workflows will be received:
{ stages:
{ 'simpleWorkflow@develop-and-test':
{ stage: 'inProcess',
since: '2020-05-12T06:36:06.045Z',
next: [Object],
workflowCaption: 'Simple WF',
stageCaption: 'In process' } },
itemPermissions: { read: true },
propertyPermissions: {},
selectionProviders: {} }
The example of GET
request to workflows
in dnt: test/modules/rest/workflows.spec.js
/checking workflows service/# accessing workflow statuses of the object: GET