The ADD_DOCUMENT_TO_WORKFLOW action is used to add an item (a document or a folder) to a workflow within the Perceptive Content software.
Use this action to route content into workflow processes for review, approval, processing, or other business operations. Once added to a workflow queue, the item becomes available to users and processes configured within Perceptive Content workflows.
During the operation, the item is identified using the provided identifier and then its type is validated. The item is assigned the specified priority and added to the selected workflow queue. A workflow item identifier is returned. The resulting workflow item can then be processed by users, workflow queues, or automated workflow actions.
The input parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| documentId | String | Required | The identifier of the document or folder that will be added to the workflow. |
| itemPriority | String | Required | The priority assigned to the workflow item. Supported values are: LOW, MEDIUM, HIGH. |
| itemType | String | Required | The type of item that will be added to the workflow. Supported values are: DOCUMENT, FOLDER. |
| workflowQueueId | String | Required | The identifier of the workflow queue that will receive the document or folder. |
The output of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| workflowItemId | String | Optional | The identifier of the workflow item created in Perceptive Content. |