PCOs and PCBOs

Definition

The following objects make up the process foundation that was developed for SAP EHS Management. They provide a layer of integration between the business objects stored with the Business Object Processing Framework (BOPF) and the SAP Business Workflow.

  • Process control business object (PCBO)

    The PCBO is a BOPF business object that represents a workflow-driven process in the system. It provides the logic, such as the action that starts the workflow in SAP Business Workflow, and stores the process-specific data, such as the process definition key.

  • Process control object (PCO)

    A PCO is an ABAP Objects class that represents a process control business object in the workflow for a specific process in SAP EHS Management. The PCO makes it technically possible to use the BOPF business objects with the workflow functions of SAP Business Workflow.

    The class CL_EHFND_WFF_ROOT_PCO is the most basic abstract PCO class in the foundation for SAP EHS Management. It implements all the basic functionality needed for all processes. There are also foundation PCO classes for each specific type of process, for example, for inquiries or requests, notifications, and approvals.

Use

Since the SAP Workflow System can only communicate with ABAP Objects classes and business object repository (BOR) objects, SAP EHS Management uses the PCO as a layer to make BOPF business objects and their functionality available to the workflow system. For each PCBO in the BOPF, a corresponding PCO class exists. The PCBO is valid for the duration of the process and the data is archived.

The following sections describe in detail how the PCO and PCBO are used:

Use in Processes

The PCO is used for communication from the workflow in SAP Business Workflow to its corresponding PCBO. The PCBO is where the business logic is implemented and the process-relevant data is stored. The workflow can add to and read this data with the help of the PCO. The PCBO also contains a reference to the business object that the process supports.

The graphic below illustrates how PCOs and PCBOs help you execute processes in SAP EHS Management.



PCO and PCBOs in the Process Foundation
  • You start a process on the user interface of the application, for example, when you add an inquiry in incident management (see Inquiries).

  • The system creates an instance of the PCBO according to the corresponding process definition, for example, an instance of the inquiry PCBO for the incident inquiry process.

  • The event CREATED is emitted by the call of an action (START_WORKFLOW_ROOT) for the newly created PCBO instance. This starts the workflow in SAP Business Workflow.

  • The PCO acts as a wrapper for the respective PCBO and implements the ABAP Objects interface IF_WORKFLOW. By implementing this interface, the PCO is recognized as workflow-enabled in the Class Builder, and the Workflow Engine can use it.

    For more information about IF_WORKFLOW, see the SAP Library for SAP NetWeaver 7.0 at http://help.sap.com/nw702Information published on SAP site Start of the navigation pathSAP NetWeaver by Key Capability Next navigation step Application Platform by Key Capability Next navigation step Business Services Next navigation step SAP Business Workflow  Next navigation step Reference Documentation Next navigation step ABAP Classes in Workflow Next navigation step  IF_WORKFLOW InterfaceEnd of the navigation path.

  • The PCO calls the business logic from the PCBO that is to be executed in a workflow task, and also reads the data from the PCBO, so the data is available to the workflow.

  • When you change the attributes of a task (for example, the approver of a maintenance notification) on the user interface of the application, the BOPF provides a functionality so the PCBO can read, update, or delete the data automatically.

Use in Monitoring and Analyzing Processes

The data about a process that is stored in the PCBO is also used in monitoring and analyzing processes. For more information, see Process Scheduling and Process Monitoring.

More Information

For more information about the ABAP objects classes, see the SAP Library for SAP NetWeaver 7.0 at http://help.sap.com/nw702Information published on SAP site Start of the navigation pathSAP NetWeaver by Key Capability Next navigation step Application Platform by Key Capability Next navigation step ABAP Technology Next navigation step ABAP Programming and Runtime Environment (BC-ABA)  Next navigation step ABAP Programming (BC-ABA)  Next navigation step ABAP Objects Next navigation step ClassesEnd of the navigation path.

For more information about SAP Business Workflow, see the SAP Library for SAP NetWeaver 7.0 at http://help.sap.com/nw702Information published on SAP site Start of the navigation pathSAP NetWeaver by Key Capability Next navigation step Application Platform by Key Capability Next navigation step Business Services Next navigation step SAP Business Workflow End of the navigation path.