BusinessProcessRoutePointRef.OnCreateTask

Syntax:

OnCreateTask(<RoutePoint>, <TasksBeingFormed>, <Cancel>)

Parameters:

<RoutePoint>

Type: BusinessProcessRoutePointRef.
Business process route point, where task generation occurs.

<TasksBeingFormed>

Type: Array.
Array of the generated tasks objects of TaskObject.) type.

<Cancel>

Type: Boolean.
Task add cancel flag. If in the body of handler procedure a value of this parameter is set to True, task record will not be executed.
Default value: False.

Description:

Occurs after BeforeCreateTasks standard or handler redefined event of task list generation procedure is executed. This event handler can adjust automatically formed tasks or delete some of them, as well as add new tasks to them.
Task record will be executed after handler completion.

Note:

Only for Activity and SubBusinessProcess type points.
Interactive calls (opening forms, warnings) are not permitted. Using Message method is allowed.

    

1C:Enterprise Developer's Community