BusinessProcessRoutePointRef.OnCreateSubBusinessProcesses

Syntax:

OnCreateSubBusinessProcesses(<RoutePoint>, <BusinessProcessesBeingFormed>, <Cancel>)

Parameters:

<RoutePoint>

Type: BusinessProcessRoutePointRef.
Business process point, where nested business processes are created.

<BusinessProcessesBeingFormed>

Type: Array.
An array of formed process.

<Cancel>

Type: Boolean.
Indicates, that the writing and starting nested business processes are cancelled. If you set True value for this parameter in the body of the procedure-handler, nested business processes will not be written and started.
Default value: False.

Description:

Occurs after generating list of head tasks for nested business processes. List of head tasks can be generated either automatically by platform, or specified by developer in the OnCreateTask event handler.
The same handler is intended for modifying lists of head tasks and nested business processes generated by platform. For example, you can add new business processes and head tasks or delete unnecessary ones.
If nested business process has several start points, than you can write and started a nested business process with required start point in this handler.
Subprocess record and start will be executed after handler completion.

Note:

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

    

1C:Enterprise Developer's Community