Skip to main content

Set Task Status

UiPath.Core.Activities.ProcessTracking.SetTaskStatus

Description

The Set Task Status activity allows you to explicitly control the ending of a specific task within a Process Tracking Scope. It enables accurate representation of individual steps completion in analytics.

The Set Task Status activity is useful when you need to assign a status that differs from the implicit Successful or error-triggered Failed states. This might depend on your workflow-logic.

For instance, in a document processing workflow, a task verifies that all documents exist. If a document is missing, use Set Task Status to mark the status as Cancelled. Follow-up actions could include sending a revision request to the expeditor.

Project compatibility

Windows | Cross-platform

Windows, Cross-Platform Configuration

Task : Mandatory. Specify which task to update. This field identifies the tasks inside the current Process Tracking Scope activity.

note
  • In complex workflows with nested Process Tracking Scope activities, referencing the Task for the Set Task Status activity helps to identify which scope, and thus which task, is being updated.
  • The Set Task Status activity automatically identifies and stores the unique ID of the task it is operating within.

Status : Mandatory. Sets the task status to Successful, Failed, or Cancelled. By default, set to Successful.