Workflow Model

An Object

Note

Drop in one of our language drivers to accelerate your development.
Here are links to some of our popular Cookbooks to help you get started!

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}.

Check Permission

Checks whether one or more authorities against the specified workflowModel are granted for a given set of users

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

Checks whether a single authority is granted against the specified workflowModel for the given user

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

Checks whether one or more authorities against the specified workflowModel are granted for a given set of users

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

Checks whether one or more permissions against the specified workflowModel are granted for a given set of users

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

Creates a new 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})

Deletes an existing Workflow Model

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)

Deletes an existing Workflow Model

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)

Deletes an existing Workflow Model

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)

Deletes an existing Workflow Model

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

Starts an export job for this resource

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

Grants an authority against the specified workflowModel to a given user

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

Starts an import job for this resource

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

Retrieves a list of Workflow Model instances

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
This method supports pagination.

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)

Retrieves a list of Workflow Model instances

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
This method supports pagination.

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

Queries for instances of type 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
This method supports pagination.

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

Queries for items of type workflowModel

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

Reads the ACL for a workflow model and specific actor

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

Read the Authorities Report for the specified workflowModel

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})

Reads an instance of a Workflow Model

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

Reads an instance of a 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

Revokes an authority against the specified workflowModel from a given user

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})

Updates an existing Workflow Model

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)

Updates an existing Workflow Model

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)

Updates an existing Workflow Model

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)

Updates an existing Workflow Model

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"
}