Using the BPEL Designer and Service Engine

ProcedureTo log the variable value:

  1. On the diagram, select an activity. The logging will be performed in connection with the activity execution.

  2. Go to the Logging tab of the BPEL Editor. The Logging mapper opens. You can also open the Logging mapper by right clicking the activity and choosing Go To -> Logging (Alt-L).

  3. In the source tree pane, expand the variables tree until the variable to be traced is visible.

  4. In the destination tree pane expand the activity node. The nodes designating the moment of logging become visible.

  5. Choose when the logging entry should be made and expand the appropriate node:

    • LOG_onStart. The variable value is written to the log when the activity starts.

    • LOG_onComplete. The variable value is written to the log when the activity execution is complete.

  6. Define the level of logging. Drag the connection from the variable to be traced to the appropriate node in the destination tree pane. The following levels of logging are available:

    • Severe

    • Warning

    • Info

    • Config

    • Fine

    • Finer

    To make a search of the value recorded to the log file, you can concatenate the value with the string literal as shown on the figure below.

    Image shows the Logging mapper as described in contex

    In the Design view a small icon appears to the lower-right of the activity when it has logging defined. By clicking the icon you can switch to the Logging mapper.

    Image shows the Logging icon next to the Assign element
in the BPEL Mapper

    The entry to the log is only made if the log level defined for the variable corresponds to the log level specified for the BPEL Service Engine on the application server.