Workflow
An Object
| Note |
Parent
This Workflow is contained within a Platform.
Properties
The following properties are available:
| Property | Type | Default | Read-Only | Description |
|---|---|---|---|---|
| _doc | string | No | The primary ID | |
| _system | object | No | Metadata maintained by the system |
Methods
In this list, … stands for /workflow/instances/{workflowId}.
- POSTAdd Resources
…/resources/add - POSTCheck Permission
…/permissions/{permissionId}/check - POSTCheck Single Authority
…/authorities/{authorityId}/check - POSTCheck multiple Authorities
/workflow/instances/authorities/check - POSTCheck multiple Permissions
/workflow/instances/permissions/check - POSTCreate Workflow
/workflow/instances - POSTDelete Workflow (POST …/delete)
…/delete - DELETEDelete Workflow (DELETE)
/workflow/instances/{workflowId} - POSTExport Workflow
…/export - POSTGrant Authority
…/authorities/{authorityId}/grant - POSTImport Workflow
…/import - GETList Requirements
/workflow/models/{modelId}/requirements - GETList Resources
…/resources - GETLists Workflow
/workflow/instances - POSTQueries for Workflow
/workflow/instances/query - GETRead ACL
…/acl/list - GETRead ACL for Principal
…/acl - POSTRead Authorities Report
…/authorities - GETRead History Instance
…/history - GETRead Resource
…/resources/{resourceId} - GETRead Workflow
/workflow/instances/{workflowId} - POSTRemove Resource
…/resources/{resourceId}/remove - POSTRemoveall Resources
…/resources/removeall - POSTResume Instance
…/resume - POSTRevoke Authority
…/authorities/{authorityId}/revoke - POSTStart Instance
…/start - POSTSuspend Instance
…/suspend - POSTTerminate Instance
…/terminate - PUTUpdate Workflow (PUT)
/workflow/instances/{workflowId} - POSTUpdate Workflow (POST …/update)
…/update
Add Resources
POST /workflow/instances/{workflowId}/resources/add
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string | |
| reference | Yes | string |
Check Permission
POST /workflow/instances/{workflowId}/permissions/{permissionId}/check
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string | |
| permissionId | Yes | string | The ID of the permission |
| id | Yes | string |
Response
{
"$ref": "#/components/schemas/checkPermission"
}
Check Single Authority
POST /workflow/instances/{workflowId}/authorities/{authorityId}/check
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string | |
| authorityId | Yes | string | The ID or authority key for the authority |
| id | Yes | string |
Response
{
"type": "object",
"description": "Check",
"extends": "status",
"properties": {
"check": {
"type": "boolean"
},
"ok": null
}
}
Check multiple Authorities
POST /workflow/instances/authorities/check
No parameters, response
Parameters
This function has no parameters.
Response
{
"type": "object",
"description": "Check Multiple Authorities Out",
"properties": {
"checks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"permissionedId": {
"type": "string"
},
"principalId": {
"type": "string"
},
"authorityId": {
"type": "string"
},
"result": {
"type": "boolean"
}
}
}
}
}
}
Check multiple Permissions
POST /workflow/instances/permissions/check
No parameters, response
Parameters
This function has no parameters.
Response
{
"type": "object",
"description": "Check Multiple Permissions Out",
"properties": {
"checks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"permissionedId": {
"type": "string"
},
"principalId": {
"type": "string"
},
"permissionId": {
"type": "string"
},
"result": {
"type": "boolean"
}
}
}
}
}
}
Create Workflow
POST /workflow/instances
Parameters (1), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Delete Workflow (POST …/delete)
POST /workflow/instances/{workflowId}/delete
Parameters (1), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Delete Workflow (DELETE)
DELETE /workflow/instances/{workflowId}
Parameters (1), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Export Workflow
POST /workflow/instances/{workflowId}/export
Parameters (6), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string | |
| groupId | No | string | The Group ID to be assigned to the exported archive |
| artifactId | No | string | The Artifact ID to be assigned to the exported archive |
| versionId | No | string | The Version ID to be assigned to the exported archive |
| vaultId | No | string | The ID of the vault where the exported archive should be saved |
| schedule | No | string | Whether to run the job immediately or in the background (either 'synchronous' or 'asynchronous') |
Response
{
"type": "object",
"description": "Export Configuration",
"properties": {
"startDate": {
"type": "object",
"description": "Only include objects whose modification date is after this time (epoch millis). This is used for partial or rolling exports."
},
"endDate": {
"type": "object",
"description": "Only include objects whose modification date is before this time (epoch millis). This is used for partial or rolling exports."
},
"startChangeset": {
"type": "string",
"description": "Only include data that is relevant to changesets at or beyond the specified changeset."
},
"endChangeset": {
"type": "string",
"description": "Only include data that is relevant to changesets at or before the specified changeset."
},
"includeACLs": {
"type": "boolean",
"default": true,
"description": "Whether to include ACLs during export."
},
"includeTeams": {
"type": "boolean",
"default": true,
"description": "Whether to include Teams during export."
},
"includeActivities": {
"type": "boolean",
"default": true,
"description": "Whether to include Activities during export."
},
"includeBinaries": {
"type": "boolean",
"default": true,
"description": "Whether to include Binaries for data stores during export."
},
"includeAttachments": {
"type": "boolean",
"default": true,
"description": "Whether to include Attachments for Attachables during export."
},
"artifactDependencies": {
"type": "array",
"items": {
"type": "object"
}
},
"artifactIncludes": {
"type": "array",
"items": {
"type": "object"
}
},
"forceIncludes": {
"type": "boolean"
}
}
}
Grant Authority
POST /workflow/instances/{workflowId}/authorities/{authorityId}/grant
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string | |
| authorityId | Yes | string | The ID or authority key for the authority |
| id | Yes | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Import Workflow
POST /workflow/instances/{workflowId}/import
Parameters (6), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string | |
| groupId | No | string | The Group ID to be assigned to the exported archive |
| artifactId | No | string | The Artifact ID to be assigned to the exported archive |
| versionId | No | string | The Version ID to be assigned to the exported archive |
| vaultId | No | string | The ID of the vault where the exported archive should be saved |
| schedule | No | string | Whether to run the job immediately or in the background (either 'synchronous' or 'asynchronous') |
Response
{
"type": "object",
"description": "Import Configuration",
"properties": {
"includeACLs": {
"type": "boolean",
"default": true,
"description": "Whether to include ACLs during import."
},
"includeTeams": {
"type": "boolean",
"default": true,
"description": "Whether to include Teams during import."
},
"includeActivities": {
"type": "boolean",
"default": true,
"description": "Whether to include Activities during import."
},
"includeBinaries": {
"type": "boolean",
"default": true,
"description": "Whether to include Binaries for data stores during import."
},
"includeAttachments": {
"type": "boolean",
"default": true,
"description": "Whether to include Attachments for Attachables during import."
},
"strategy": {
"type": "array",
"items": {
"type": "string"
},
"default": "CLONE",
"description": "Either CLONE or COPY_EVERYTHING. Use CLONE to keep the same IDs on import. Use COPY_EVERYTHING to generate all new IDs for all entries on every import."
},
"substitutions": {
"type": "string"
}
}
}
List Requirements
GET /workflow/models/{modelId}/requirements
Parameters (1)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string |
List Resources
GET /workflow/instances/{workflowId}/resources
Parameters (1)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string |
Lists Workflow
GET /workflow/instances
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| sort | No | object | Defines how to sort fields in the result set |
| skip | No | number | Skips the result set cursor ahead the specified number of records |
| limit | No | number | Specifies the number of records to be handed back in the result set |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"$ref": "#/components/schemas/resultmap_workflow"
}
}
}
}
Queries for Workflow
POST /workflow/instances/query
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| sort | No | object | Defines how to sort fields in the result set |
| skip | No | number | Skips the result set cursor ahead the specified number of records |
| limit | No | number | Specifies the number of records to be handed back in the result set |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"$ref": "#/components/schemas/resultmap_workflow"
}
}
}
}
Read ACL
GET /workflow/instances/{workflowId}/acl/list
Parameters (1), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string |
Response
{
"type": "object",
"description": "Result Map of ACL entries",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "object",
"properties": {
"_doc": {
"type": "string",
"title": "Principal ID"
},
"name": {
"type": "string",
"title": "Principal Name"
},
"type": {
"type": "string",
"title": "Principal Type"
},
"domainId": {
"type": "string"
},
"domainQualifiedId": {
"type": "string"
},
"domainQualifiedName": {
"type": "string"
},
"principalId": {
"type": "string",
"title": "Principal ID"
},
"userEmail": {
"type": "string"
},
"userFirstName": {
"type": "string"
},
"userLastName": {
"type": "string"
},
"authorities": {
"type": "array",
"title": "Authorities",
"items": {
"type": "string",
"title": "Authority Key"
}
}
}
}
}
}
}
Read ACL for Principal
GET /workflow/instances/{workflowId}/acl
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string | |
| id | Yes | string |
Response
{
"type": "object",
"description": "Result Map of Authority Keys",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "string",
"description": "Authority Key"
}
}
}
}
Read Authorities Report
POST /workflow/instances/{workflowId}/authorities
Parameters (1), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string |
Response
{
"type": "object",
"description": "Authority Report",
"properties": {
"principalId": {
"type": "object",
"properties": {
"id": {
"type": "object",
"properties": {
"role-key": {
"type": "string"
},
"principal": {
"type": "string"
},
"permissioned": {
"type": "string"
},
"inheritsFrom": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"principal": {
"type": "string"
},
"permissioned": {
"type": "string"
}
}
}
}
}
}
}
}
}
Read History Instance
GET /workflow/instances/{workflowId}/history
Parameters (1)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string |
Read Resource
GET /workflow/instances/{workflowId}/resources/{resourceId}
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string | |
| resourceId | Yes | string |
Read Workflow
GET /workflow/instances/{workflowId}
Parameters (1), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string |
Response
{
"type": "object",
"extends": "document",
"description": "Workflow",
"container": "platform",
"properties": {
"_doc": null,
"_system": null
}
}
Remove Resource
POST /workflow/instances/{workflowId}/resources/{resourceId}/remove
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string | |
| resourceId | Yes | string |
Removeall Resources
POST /workflow/instances/{workflowId}/resources/removeall
Parameters (1)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string |
Resume Instance
POST /workflow/instances/{workflowId}/resume
Parameters (1)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string |
Revoke Authority
POST /workflow/instances/{workflowId}/authorities/{authorityId}/revoke
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string | |
| authorityId | Yes | string | The ID or authority key for the authority |
| id | Yes | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Start Instance
POST /workflow/instances/{workflowId}/start
Parameters (1)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string |
Suspend Instance
POST /workflow/instances/{workflowId}/suspend
Parameters (1)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string |
Terminate Instance
POST /workflow/instances/{workflowId}/terminate
Parameters (1)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string |
Update Workflow (PUT)
PUT /workflow/instances/{workflowId}
Parameters (1), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Update Workflow (POST …/update)
POST /workflow/instances/{workflowId}/update
Parameters (1), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Schema
{
"type": "object",
"extends": "document",
"description": "Workflow",
"container": "platform",
"properties": {
"_doc": null,
"_system": null
},
"id": "workflow"
}