Defining composite sensors
In this recipe, we will examine how to define composite sensors for tracing purposes. Further, we will also show you the ways to define sensors in a BPEL process. We define composite sensors at the level of SCA when we want to monitor input and output messages of a BPEL process. Composite sensors also provide a convenient way of tracking fields on messages.
Getting ready
As a starting point, we need a BPEL process. We can define a new one or reuse an existing one. For this recipe, we will extend the BPEL process that we used in the Creating a custom logger in a BPEL process recipe.
How to do it…
In this recipe, we will walk through the steps needed to define a composite sensor in SCA:
Initially, open the composite of the BPEL process. In the composite, select the BookHotelSvc service. Then, right-click and select Configure Sensors… from the toolbar as shown in the following screenshot:
We choose to add the sensor to the composite and fill the dialog with the data as...