BusinessProcessRoutePointRef.BeforeCreateSubBusinessProcesses

Syntax:

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

Parameters:

<RoutePoint>

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

<BusinessProcessesBeingFormed>

Type: Array.
An array of formed process.

<Cancel>

Type: Boolean.
Indicates that nested business processes will not be added. 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:

You can use it to create your own set of business processes, which will be created and started as nested. You need to add them to the <BusinessProcessesBeingFormed> array. If an array is empty after exit from handler, then platform generates a set of nested business processes on it's own.

Note:

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

    

1C:Enterprise Developer's Community