Workflow Model
An Object
| Note |
Parent
This Workflow Model 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 | |
| deployed | boolean | No | Indicates whether this workflow model has already been deployed. If the model has already been deployed, it cannot be deleted. | |
| emails | object | No | ||
| forms | object | No | ||
| head | boolean | No | Indicates whether this workflow model version is the head version. Only one workflow model version will have head marked as true at a time. | |
| id | string | No | A textual unique identifier for the workflow | |
| nodes | object | No | Contains a map of the node definitions for the workflow, keyed by node ID | |
| properties | object | No | ||
| swimlanes | object | No | Contains a map of swimlane definitions and assignments for the workflow, keyed by swimlane ID | |
| version | number | No | The version of the workflow (long) |
Methods
In this list, … stands for /workflow/models/{modelId}.
- POSTCheck Permission
…/permissions/{permissionId}/check - POSTCheck Single Authority
…/authorities/{authorityId}/check - POSTCheck multiple Authorities
/workflow/models/authorities/check - POSTCheck multiple Permissions
/workflow/models/permissions/check - POSTCreate Workflow Model
/workflow/models - DELETEDelete Workflow Model (DELETE …/versions/{versionId})
…/versions/{versionId} - DELETEDelete Workflow Model (DELETE)
/workflow/models/{modelId} - POSTDelete Workflow Model (POST …/delete)
…/delete - POSTDelete Workflow Model (POST …/versions/{versionId}/delete)
…/versions/{versionId}/delete - POSTDeploy Model
…/deploy - POSTDeploy Version
…/versions/{versionId}/deploy - POSTExport Workflow Model
/workflows/model/{modelId}/export - POSTGrant Authority
…/authorities/{authorityId}/grant - POSTImport Workflow Model
/workflows/{modelId}/import - GETList Forms
…/forms - GETList Versions
…/versions - GETLists Workflow Model
/workflow/models - GETLists Workflow Model (…/{modelId}/acl/list)
…/acl/list - POSTQueries for Workflow Model
/workflow/models/query - POSTQuery
…/versions/query - GETRead ACL for Principal
…/acl - POSTRead Authorities Report
…/authorities - GETRead Email Node
…/nodes/{nodeId}/email - GETRead Form Node
…/nodes/{nodeId}/form - GETRead Workflow Model (…/versions/{versionId})
…/versions/{versionId} - GETRead Workflow Model
/workflow/models/{modelId} - POSTRevoke Authority
…/authorities/{authorityId}/revoke - POSTUndeploy Model
…/undeploy - POSTUndeploy Version
…/versions/{versionId}/undeploy - PUTUpdate Workflow Model (PUT …/versions/{versionId})
…/versions/{versionId} - PUTUpdate Workflow Model (PUT)
/workflow/models/{modelId} - POSTUpdate Workflow Model (POST …/versions/{versionId}/update)
…/versions/{versionId}/update - POSTUpdate Workflow Model (POST …/update)
…/update - POSTUpgrade Instance
/workflow/instances/{workflowId}/upgrade - POSTUpgrade Instances
/workflow/instances/upgrade
Check Permission
POST /workflow/models/{modelId}/permissions/{permissionId}/check
Parameters (4), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| permissionId | Yes | string | The ID of the permission |
| id | Yes | string | |
| version | No | string |
Response
{
"$ref": "#/components/schemas/checkPermission"
}
Check Single Authority
POST /workflow/models/{modelId}/authorities/{authorityId}/check
Parameters (4), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| authorityId | Yes | string | The ID or authority key for the authority |
| id | Yes | string | |
| version | No | string |
Response
{
"type": "object",
"description": "Check",
"extends": "status",
"properties": {
"check": {
"type": "boolean"
},
"ok": null
}
}
Check multiple Authorities
POST /workflow/models/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/models/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 Model
POST /workflow/models
No parameters, response
Parameters
This function has no parameters.
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Delete Workflow Model (DELETE …/versions/{versionId})
DELETE /workflow/models/{modelId}/versions/{versionId}
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| versionId | Yes | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Delete Workflow Model (DELETE)
DELETE /workflow/models/{modelId}
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| version | No | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Delete Workflow Model (POST …/delete)
POST /workflow/models/{modelId}/delete
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| version | No | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Delete Workflow Model (POST …/versions/{versionId}/delete)
POST /workflow/models/{modelId}/versions/{versionId}/delete
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| versionId | Yes | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Deploy Model
POST /workflow/models/{modelId}/deploy
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| version | Yes | string |
Deploy Version
POST /workflow/models/{modelId}/versions/{versionId}/deploy
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| versionId | Yes | string |
Export Workflow Model
POST /workflows/model/{modelId}/export
Parameters (7), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| version | No | 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/models/{modelId}/authorities/{authorityId}/grant
Parameters (4), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| authorityId | Yes | string | The ID or authority key for the authority |
| id | Yes | string | |
| version | No | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Import Workflow Model
POST /workflows/{modelId}/import
Parameters (7), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| version | No | 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 Forms
GET /workflow/models/{modelId}/forms
Parameters (1)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string |
List Versions
GET /workflow/models/{modelId}/versions
Parameters (1)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string |
Lists Workflow Model
GET /workflow/models
Parameters (4), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| all | No | string | |
| 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_workflowModel"
}
}
}
}
Lists Workflow Model (…/{modelId}/acl/list)
GET /workflow/models/{modelId}/acl/list
Parameters (5), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| version | No | string | |
| 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_workflowModel"
}
}
}
}
Queries for Workflow Model
POST /workflow/models/query
Parameters (4), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| all | No | string | |
| 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_workflowModel"
}
}
}
}
Query
POST /workflow/models/{modelId}/versions/query
Parameters (1), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string |
Response
{
"type": "object",
"description": "Result Map",
"properties": {
"total_rows": {
"type": "number"
},
"offset": {
"type": "number"
},
"size": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "object"
}
}
}
}
Read ACL for Principal
GET /workflow/models/{modelId}/acl
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| id | Yes | string | |
| version | No | 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/models/{modelId}/authorities
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| version | No | 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 Email Node
GET /workflow/models/{modelId}/nodes/{nodeId}/email
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| nodeId | Yes | string | The ID of the node |
Read Form Node
GET /workflow/models/{modelId}/nodes/{nodeId}/form
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| nodeId | Yes | string | The ID of the node |
Read Workflow Model (…/versions/{versionId})
GET /workflow/models/{modelId}/versions/{versionId}
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| versionId | Yes | string |
Response
{
"type": "object",
"extends": "document",
"description": "Workflow Model",
"container": "platform",
"properties": {
"id": {
"type": "string",
"title": "Model ID",
"description": "A textual unique identifier for the workflow"
},
"version": {
"type": "number",
"title": "Version",
"description": "The version of the workflow (long)"
},
"deployed": {
"type": "boolean",
"title": "Deployed",
"description": "Indicates whether this workflow model has already been deployed. If the model has already been deployed, it cannot be deleted."
},
"head": {
"type": "boolean",
"title": "Head",
"description": "Indicates whether this workflow model version is the head version. Only one workflow model version will have head marked as true at a time."
},
"nodes": {
"type": "object",
"title": "Nodes",
"description": "Contains a map of the node definitions for the workflow, keyed by node ID"
},
"swimlanes": {
"type": "object",
"title": "Swimlanes",
"description": "Contains a map of swimlane definitions and assignments for the workflow, keyed by swimlane ID"
},
"properties": {
"type": "object",
"title": "Properties",
"description": ""
},
"forms": {
"type": "object",
"title": "Forms",
"description": ""
},
"emails": {
"type": "object",
"title": "Emails",
"description": ""
},
"_doc": null,
"_system": null
}
}
Read Workflow Model
GET /workflow/models/{modelId}
Parameters (2), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| version | No | string |
Response
{
"type": "object",
"extends": "document",
"description": "Workflow Model",
"container": "platform",
"properties": {
"id": {
"type": "string",
"title": "Model ID",
"description": "A textual unique identifier for the workflow"
},
"version": {
"type": "number",
"title": "Version",
"description": "The version of the workflow (long)"
},
"deployed": {
"type": "boolean",
"title": "Deployed",
"description": "Indicates whether this workflow model has already been deployed. If the model has already been deployed, it cannot be deleted."
},
"head": {
"type": "boolean",
"title": "Head",
"description": "Indicates whether this workflow model version is the head version. Only one workflow model version will have head marked as true at a time."
},
"nodes": {
"type": "object",
"title": "Nodes",
"description": "Contains a map of the node definitions for the workflow, keyed by node ID"
},
"swimlanes": {
"type": "object",
"title": "Swimlanes",
"description": "Contains a map of swimlane definitions and assignments for the workflow, keyed by swimlane ID"
},
"properties": {
"type": "object",
"title": "Properties",
"description": ""
},
"forms": {
"type": "object",
"title": "Forms",
"description": ""
},
"emails": {
"type": "object",
"title": "Emails",
"description": ""
},
"_doc": null,
"_system": null
}
}
Revoke Authority
POST /workflow/models/{modelId}/authorities/{authorityId}/revoke
Parameters (4), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| authorityId | Yes | string | The ID or authority key for the authority |
| id | Yes | string | |
| version | No | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Undeploy Model
POST /workflow/models/{modelId}/undeploy
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| version | Yes | string |
Undeploy Version
POST /workflow/models/{modelId}/versions/{versionId}/undeploy
Parameters (2)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| versionId | Yes | string |
Update Workflow Model (PUT …/versions/{versionId})
PUT /workflow/models/{modelId}/versions/{versionId}
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| versionId | Yes | string | |
| force | No | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Update Workflow Model (PUT)
PUT /workflow/models/{modelId}
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| version | No | string | |
| force | No | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Update Workflow Model (POST …/versions/{versionId}/update)
POST /workflow/models/{modelId}/versions/{versionId}/update
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| versionId | Yes | string | |
| force | No | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Update Workflow Model (POST …/update)
POST /workflow/models/{modelId}/update
Parameters (3), response
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| modelId | Yes | string | |
| version | No | string | |
| force | No | string |
Response
{
"type": "object",
"description": "Status of Operation",
"properties": {
"ok": {
"type": "boolean",
"description": "Indicates whether the operation succeeded or not"
}
}
}
Upgrade Instance
POST /workflow/instances/{workflowId}/upgrade
Parameters (3)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| workflowId | Yes | string | |
| id | No | string | |
| version | No | string |
Upgrade Instances
POST /workflow/instances/upgrade
Parameters (4)
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| id | Yes | string | |
| version | Yes | string | |
| targetId | No | string | |
| targetVersion | No | string |
Schema
{
"type": "object",
"extends": "document",
"description": "Workflow Model",
"container": "platform",
"properties": {
"id": {
"type": "string",
"title": "Model ID",
"description": "A textual unique identifier for the workflow"
},
"version": {
"type": "number",
"title": "Version",
"description": "The version of the workflow (long)"
},
"deployed": {
"type": "boolean",
"title": "Deployed",
"description": "Indicates whether this workflow model has already been deployed. If the model has already been deployed, it cannot be deleted."
},
"head": {
"type": "boolean",
"title": "Head",
"description": "Indicates whether this workflow model version is the head version. Only one workflow model version will have head marked as true at a time."
},
"nodes": {
"type": "object",
"title": "Nodes",
"description": "Contains a map of the node definitions for the workflow, keyed by node ID"
},
"swimlanes": {
"type": "object",
"title": "Swimlanes",
"description": "Contains a map of swimlane definitions and assignments for the workflow, keyed by swimlane ID"
},
"properties": {
"type": "object",
"title": "Properties",
"description": ""
},
"forms": {
"type": "object",
"title": "Forms",
"description": ""
},
"emails": {
"type": "object",
"title": "Emails",
"description": ""
},
"_doc": null,
"_system": null
},
"id": "workflowModel"
}