Complete a Task - Complete a Task - This operation completes a task. Use it when script logic can complete a task and, optionally, provide variables as part of the task completion. - Content Innovation Cloud - Hyland Automate Modeler - Current/Hyland-Automate-Modeler/dwl8453815714812 - Current - Current

Hyland Automate Modeler

Platform
Content Innovation Cloud
Product
Hyland Automate Modeler
Release
Current
License
ft:lastPublication
2026-11-02T23:02:36.222215
ft:locale
en-US

This operation completes a task. Use it when script logic can complete a task and, optionally, provide variables as part of the task completion.

The base request is:

completeTask(taskId, completeTaskPayload)

Use CompleteTaskPayload to provide variables when completing the task.

The following example completes a task with outcome and comment variables:

const completeTaskPayload = {
    variables: {
        outcome: 'approved',
        comment: variables.comment
    }
};

variables.task =
    new RuntimeTaskService()
        .completeTask(
            variables.taskId,
            completeTaskPayload
        );

In this example:

  • outcome: 'approved' provides the outcome value when the task is completed.
  • comment: variables.comment provides the value stored in the comment process variable.
  • completeTask(...) completes the specified task using the information provided in CompleteTaskPayload and assigns the result to the task process variable.