15    Administration and Monitoring Message Processing in SAP BPM

Trust, but verify.
                                                                                                  —Ronald Reagan

After you’ve successfully developed, deployed, and configured processes in SAP Business Process Management (SAP BPM), the business will be ready to use and trigger them. After the processes are running, you’ll need to use SAP BPM’s monitoring capacity to continuously maintain and administer SAP BPM to fix erroneous situations that arise and to prevent such situations in the future.

Part of SAP Process Orchestration (SAP PO) maintenance also includes regularly running some housekeeping jobs. Monitoring and administering your SAP BPM processes will form the main focus of this chapter. In this chapter, we’ll look at what’s required to properly manage, track, and detect issues in running processes and tasks in your SAP PO server. Monitoring these processes is part of the ongoing job of maintaining and improving your organization’s IT environment.

15.1    Monitoring

SAP PO provides a number of monitoring tools via SAP NetWeaver Administrator. Each of those tools, which will be explored in the next sections, can be used for different purposes. Be aware that to access these tools, you need to have the right user authorizations and roles. Most of these tools require the common roles listed in Table 15.1. If a particular tool requires different or additional roles and authorizations, it will be mentioned in the relevant sections further in the chapter.

Role Description
NWA_SUPERADMIN Gives rights to perform all necessary administrative actions on processes, including suspending, completing, and canceling them
SAP_BPM_SuperAdmin Has same access rights as the NWA_SUPERADMIN role but can also recover process instances that failed
SAP_BPM_SuperDisplay Gives access to view detailed information of processes, including their context data and history
NWA_READONLY Gives access to details of all running process instances
SAP_BPM_Navigation Gives rights to perform all necessary administrative actions on a subset of process instances (for which the user is an owner), including suspending, completing, and canceling

Table 15.1    Necessary Roles to Access SAP BPM Monitoring Tools

15.1.1    SAP Business Process Management System Overview

The SAP BPM system overview tool forms part of the availability and performance monitoring (see Figure 15.1). The tool gives a high-level overview of the following information:

The roles listed in Table 15.1 apply for this tool. To access the SAP BPM system overview tool, follow these steps:

  1. Log in to SAP NetWeaver Administrator via http://<hostname>:<port>/nwa.
  2. Navigate to the Availability and Performance Management tab. Then, select BPM System Overview to access the tool.

You’ll arrive at the page shown in Figure 15.1.

SAP BPM System Overview Monitoring Tool

Figure 15.1    SAP BPM System Overview Monitoring Tool

15.1.2    Process Repository

The Process Repository is an application within SAP NetWeaver Administrator that enables administrators to view all of the deployed SAP BPM development components (DCs), versions of the components, and related process and task definitions in order to start process instances and download resources.

The roles listed earlier in Table 15.1 apply for this tool. To access the Process Repository, follow these steps:

  1. Log in to SAP NetWeaver Administrator.
  2. Navigate to the Configuration tab.
  3. Select the Processes and Tasks subtab.
  4. Click on the Process Repository link to go to the screen shown in Figure 15.2.

For more details about how to use each functionality available in the Process Repository, refer to Chapter 11, Section 11.2.1.

Process Repository Overview with List of Components

Figure 15.2    Process Repository Overview with List of Components

15.1.3    Process Management

Process Management is the main tool to be used for managing and monitoring all SAP BPM process instances running on the SAP PO server. This is a one-stop shop that enables administrators to perform the following tasks:

The roles listed earlier in Table 15.1 apply for this tool. To access the Process Management tool, follow these steps:

  1. Log in to SAP NetWeaver Administrator.
  2. Navigate to the Operations tab.
  3. Select the Processes and Tasks option.
  4. Choose the Manage Processes link. A new page will load with a list of processes with an error status (see Figure 15.3).
The Main Page for Managing Processes

Figure 15.3    The Main Page for Managing Processes

Let’s look at some of the process management tool’s features in more detail.

Access Process Instance Details

From the main Manage Processes page (refer to Figure 15.3), you can filter processes based on their status and many other different filtering criteria. On the top-left side of the page, from the Show dropdown (see Figure 15.4 1), you can choose between the following options:

Furthermore, the tool provides the ability to filter processes based on other attributes for more advanced process filtering functionality. To access this filtering, click on the Advanced link at the top right of the page 1. You’ll see another page, which provides many filtering options 2. For example, from this page, you can select all process instances that were started within a particular time frame.

Advanced Filtering: Filtering Processes Based on Attributes

Figure 15.4    Advanced Filtering: Filtering Processes Based on Attributes

You can see more details of any given process by performing the following steps:

  1. Select the desired process instance from the list.
  2. Select the Details tab at the bottom of the screen to view all relevant details. Figure 15.5 shows the following process attributes:
    • Process Instance ID
      A GUID that uniquely identifies a process instance.
      Details of a Process Instance

      Figure 15.5    Details of a Process Instance

    • Subject
      Describes what the process is about. The subject can be specified during design time while developing the process.
    • Description
      Describes what the process does or is used for.
    • Archived
      A Boolean value representing whether or not the process instance has been archived.

View the Process Definition Flow

You can view details about the process definition by going to the Process Definition tab. From here, you can view information such as title, definition ID, version ID, and the description of your process (Figure 15.6 1).

Getting the Definition of a Process and Displaying Its Definition Flow

Figure 15.6    Getting the Definition of a Process and Displaying Its Definition Flow

You can also see the Business Process Model and Notation (BPMN) representation of the process by clicking on the Show Process Definition Flow link 2.

View the History of the Process Instance Activities

The History tab lists the details of all the activities of the SAP BPM instance. This tab can be thought of as an activity log. From the Show dropdown, you can view a Basic, Medium, or Advanced level of logs. From the history logs, you can see whether a particular event failed and view the description of the error that occurred (see Figure 15.7).

History of Process Instance Activities

Figure 15.7    History of Process Instance Activities

View Details of the Process Instance’s Context Data

In the Context Data tab, an administrator can inspect and analyze the values of the data objects of a particular process instance. Being able to inspect the data object values provides useful insight and information while troubleshooting your process.

You can see which values started the process and how the data changed in the different steps. Figure 15.8 shows an example.

Inspection of the Context Data of a Process Instance

Figure 15.8    Inspection of the Context Data of a Process Instance

Perform Administrative Actions on a Process

After selecting a particular process instance, you can perform some administrative tasks on it. These actions include suspending, resuming, and canceling process instances, which you select from the Actions button (see Figure 15.9).

Actions to be Performed on a Process Instance

Figure 15.9    Actions to be Performed on a Process Instance

15.1.4    Task Management

Task Management is the main application to be used for managing and monitoring all SAP BPM tasks running on the SAP PO server. From this application, an administrator can perform the following actions:

The roles listed earlier in Table 15.1 apply for this tool. To access Task Management, follow these steps:

  1. Log in to SAP NetWeaver Administrator.
  2. Navigate to the Operations tab.
  3. Select the Processes and Tasks option.
  4. Click on the Manage Tasks link.

From this screen, you can use an advanced feature to filter the different tasks based on various attributes (see Figure 15.10). These attributes include the following:

Managing All SAP BPM Tasks from Task Management

Figure 15.10    Managing All SAP BPM Tasks from Task Management

To access the Advanced Task Management screen, click on the Advanced link on the top-right side of the screen.

15.1.5    SAP BPM Inbox

SAP BPM Inbox is an HTML5 (SAPUI5)-based application that can be thought of as SAP BPM’s mailbox. It was introduced in SAP NetWeaver 7.31 SP 04. All tasks that are assigned to a user will be accumulated in that user’s SAP BPM Inbox, and it can therefore be considered a central access point for SAP BPM-related tasks. It’s a good alternative to the universal worklist (UWL), which was the main task repository option in older SAP BPM versions. SAP BPM Inbox has a big advantage compared to the UWL because it’s designed to support multiple devices, including smartphones and tablets. SAP BPM Inbox is a modern application that performs much faster than the UWL.

From SAP BPM Inbox, you can perform the following activities on tasks:

By default, SAP BPM Inbox isn’t configured, so you need to perform the following activities to customize it to your environment and needs:

  1. Log in to SAP NetWeaver Administrator.
  2. Navigate to the Configuration tab.
  3. Select the Infrastructure subtab.
  4. From there, click on the Java System Properties link.
  5. Select the Applications tab. A table lists all applications deployed on the SAP PO server.
  6. Filter for the application called tc~bpem~base~ear in the Name column.
  7. Select this application to see its properties displayed at the bottom of the screen.
  8. Filter for the http.baseurl property under the Name column.
  9. Click on the Modify button, and change the default value (http://hostname: 50000) by replacing the hostname and port number to suit your environment (see Figure 15.11).
    Configuring the SAP BPM Inbox in SAP PO

    Figure 15.11    Configuring the SAP BPM Inbox in SAP PO

  10. Don’t forget to use the Set and Save buttons to store your new settings.
  11. After completing the preceding steps, you’re ready to access the SAP BPM Inbox via http://<hostname>:<port>/bpminbox. Replace <hostname> and <port> accordingly. You’ll see a screen similar to the one shown in Figure 15.12.
SAP BPM Inbox Application

Figure 15.12    SAP BPM Inbox Application

To access the SAP BPM Inbox, the following roles must be added to the UME user’s profile:

Note that these two roles are the only ones required for the SAP BPM Inbox. All other roles listed in Table 15.1 aren’t required.

Some organizations opt to use an alternative tool called the Unified Inbox. The Unified Inbox tool has a broader scope than just SAP BPM tasks. It can be used as a centralized task center for different SAP and non-SAP workflow and BPM engines. The Unified Inbox provides an API to connect to non-SAP system and a standard connector for SAP BPM and SAP Business Workflow.

The Unified Inbox topic is beyond the scope of this book, but it’s useful to be aware of it.

15.1.6    Business Logs

The Business Logs tool is used to analyze business events of SAP BPM processes. It triggers events every time there are changes in the lifecycle of business processes. From this application, you can view all event logs grouped under categories, events, containers, times, and dates (see Figure 15.13).

The roles listed earlier in Table 15.1 apply for this tool. To access the Business Logs tool, follow these steps:

  1. Log in to SAP NetWeaver Administrator via http://<hostname>:<port>/nwa.
  2. Navigate to the Troubleshooting tab.
  3. Choose the Processes and Tasks subtab.
  4. Select the Business Logs option. You’ll see the page shown in Figure 15.13. You can view more details on each of the listed events by selecting its entry in the table.
    SAP BPM Process Business Lifecycle Logs

    Figure 15.13    SAP BPM Process Business Lifecycle Logs

15.1.7    SAP BPM Action Monitor

SAP BPM Action Monitor enables the monitoring of queues throughout the cluster. All SAP BPM actions relating to events such as intermediary messages or human tasks uses queues and can be monitored from the SAP BPM Action Monitor. You can see which actions are queued, failed, or disabled (see Figure 15.14).

The roles listed earlier in Table 15.1 apply for this tool. To access SAP BPM Action Monitor, follow these steps:

  1. Log in to SAP NetWeaver Administrator via http://<hostname>:<port>/nwa.
  2. Navigate to the Troubleshooting tab.
  3. Select the Processes and Tasks subtab.
  4. On the new page, click on the BPM Actions link.
    SAP BPM Action Monitor

    Figure 15.14    SAP BPM Action Monitor

On the new page (see Figure 15.14), the following information is displayed:

15.1.8    Process Troubleshooting

The Process Troubleshooting application is used to track and trace the components. Various aspects of the SAP PO server can be monitored, including the following:

The roles listed earlier in Table 15.1 apply for this tool. To access the Process Troubleshooting application, follow these steps:

  1. Log in to SAP NetWeaver Administrator via http://<hostname>:<port>/nwa.
  2. Navigate to the Troubleshooting tab, and then select the Processes and Tasks subtab.
  3. Click on the Process Troubleshooting link.

15.1.9    Rules Business Logs

Even though this tool is related to SAP Business Rules Management (SAP BRM), it’s relevant to mention it in the context of monitoring business processes. As you’re aware from Chapter 11 and Chapter 13, you can embed an SAP BRM rule in an SAP BPM DC or project. In such a case, you might need to deal with the Rules Business Logs while troubleshooting your SAP BPM process.

The Rules Business Logs application (see Figure 15.15) enables the administrator to view the business logs for the execution steps of a ruleset. As an SAP BRM rule runs in the SAP PO server, it creates logs containing details and information about activities or events performed by the rule. These logs are called business logs and are internally created with the help of the Galaxy Business Logging Framework.

The roles listed in Table 15.1 apply for this tool. To view Rules Business Logs, follow these steps:

  1. Log in to SAP NetWeaver Administrator via http://<hostname>:<port>/nwa.
  2. Navigate to the Troubleshooting tab, and then select the Processes and Tasks subtab.
  3. Click on the Process Troubleshooting link.
    Rules Business Logs Application

    Figure 15.15    Rules Business Logs Application

You’ll see the page shown in Figure 15.15. From here, you can specify a time period and retrieve all the relevant business logs. After selecting a particular entry, you can see more details about the log entry at the bottom of the screen.

15.1.10    SAP BPM Analytics Dashboard

The SAP BPM Analytics Dashboard enables its users to analyze and run reports of SAP BPM processes and tasks. You can filter processes and tasks based on the following periods: today, yesterday, last 7 days, and last 30 days.

The dashboard graphically presents statistics of the processes and tasks based on different status categories. For processes, the relevant statuses include the following:

For the tasks, the relevant statuses include these:

The SAP BPM Analytics Dashboard can be accessed via the link http://<hostname>:<port>/bpmanalytics. An impression of how the main page looks like can be seen in Figure 15.16.

Monitoring Processes and Tasks with the SAP BPM Analytics Dashboard

Figure 15.16    Monitoring Processes and Tasks with the SAP BPM Analytics Dashboard

To access this dashboard, the roles listed in Table 15.1 need to be added to the user’s profile, as well as the following roles:

Note that the dashboard will only be populated with data of the processes and tasks that the user is authorized to see. These processes and tasks include the ones for which the user is an administrator.

From the SAP BPM Analytics Dashboard, a link is provided to directly jump into the Process Management tool (Section 15.1.3) and Task Management tool (Section 15.1.4). Details of processes (under each status) can be viewed by clicking on the View Details link below the Top Processes chart. Likewise, task details (under each status) can be viewed by clicking on the View Details link below the Top Tasks chart.