BusinessProcessRoutePointRef.BeforeCreateTasks

Syntax:

BeforeCreateTasks(<RoutePoint>, <TasksBeingFormed>, <StandardProcessing>)

Parameters:

<RoutePoint>

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

<TasksBeingFormed>

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

<StandardProcessing>

Type: Boolean.
This parameter passes a flag indicating whether standard (system) processing of the event is performed. If in the body of handler procedure a value of this parameter is set to False, standard generation of task list will not be executed.
Default value: True.

Description:

Occurs before executing standard task generation procedure. If the handler forms task list, <StandardProcessing> must be set in False. Otherwise the tasks that have been created by it in this handler are deleted and are formed again by a standard procedure of task generating. OnCreateTask handler must be called after this handler, while <StandardProcessing> will be ignored.

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