You can declare a partner link at the process level or at a scope level. While the partner link names may be identical, they are considered unique. Declaring partner links at the process level makes them globally available, except where there is an identically named partner link at the scope level. Scope-level partner links are only available in the scope where they are declared. For details, see
Scope
.
Declaring a partner link at the scope level is useful for a parallel
forEach
activity, in which multiple instances of a scope execute at the same time.
Scoped partner links are also useful for code modularization and reuse. For more information on reusing code in different BPEL processes, see