BusinessProcessRoutePointRef.OnExecute

Syntax:

OnExecute(<RoutePoint>, <Task>, <Cancel>)

Parameters:

<RoutePoint>

Type: BusinessProcessRoutePointRef.
A business process route point in which completion check is executed.

<Task>

Type: TaskRef.
A task being executed.

<Cancel>

Type: Boolean.
Task completion cancel flag. If you set True value of the given parameter in the body of the procedure-handler, the task will not be executed.
Default value: False.

Description:

Occurs when executing ExecuteTask method of the corresponding task and after OnExecute event has been processed by the task. If <Cancel> parameter is set to True value, execution of ExecuteTask method will also be aborted. The task will not be executed, and business process execution will not proceed further in accordance with the route.
This handler allows, in particular, to check if required conditions of task execution are met (such as document posting, approval of a discount on an invoice, approval mark and so on).

Note:

Only for Activity type points.
Is called only when the last task, corresponding to the given point of the given business process, is executed.

    

1C:Enterprise Developer's Community