The Scope activity is essentially a collection of child activities that can have their own Variables, Fault and Event Handlers, and correlation sets. The Scope activity provides the behavior context for the child elements. The attributes defined for a parent Scope have local visibility inside this Scope. For example, the variables declared for a Scope are visible only inside that Scope and all nested Scopes. These variables can then be used for the child activities of this Scope.
In the Design view, drag the Scope element from the Palette to the diagram.
Right-click the element and choose Add from the context menu to add the following:
In the Design view, drag elements from the Palette and place them inside the Scope element.
Configure the elements.
(Optional) Specify the name of the Scope element in the Properties window, invoked by right-clicking the element and choosing Properties.
The Scope element properties are:
Name: Specifies the name of the element.
Documentation: User documentation attached to the element. This documentation is included with the source code of the BPEL process and can be extracted and included in a report.