Chapter 7. Working with Scopes
So far, we learned about data manipulation and fault handling within a BPEL process. We also learned about synchronous and asynchronous web service invocations. One thing that we can observe from any previous chapters is that all the resources such as variables, partner links, and correlations sets which are referred by some activity, are defined in the top level of the BPEL process. Those resources are visible to any activity. However, what if we need to restrict the visibility of such resources to a particular activity or a set of activity? The <scope>
activity comes to the rescue. It helps us organize the BPEL process into hierarchical organized parts. Let's see how it works.
In this chapter, we will cover the following topics:
- Introducing scopes
- Adding scopes to a business process
- Understanding scopes
- Fault and termination handling within scopes
- Introduction to event and compensation handling within scopes
- Isolated scopes