> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# On Task Send To Stage

> On Task Send To Stage runs before a FlexiCapture task moves to another workflow stage; the CanSend parameter lets your script cancel the move.

## When it is launched

This event handler runs before a task is moved to another stage.

* If the value of the **CanSend.Value** property is set to **true**, the task will be sent to another stage after the execution of the script.
* If the value of the **CanSend.Value** property is set to **false**, the task will not be sent to another stage.

By default, the value of the **CanSend** parameter is set to **true**.

## Parameters

| **Name** | **Type**                                                         | **Access** | **Description**                                      |
| -------- | ---------------------------------------------------------------- | ---------- | ---------------------------------------------------- |
| CanSend  | [IBoolean](/flexi-capture/appendix/scripts-shell/iboolean)       | Read/write | Specifies whether to send the task to another stage. |
| Context  | [ITaskWindow](/flexi-capture/appendix/scripts-shell/itaskwindow) | Read/write | The task window.                                     |
