Working with Approval Jobs

CA Repository Webstation Option uses stewards to approve the pending request for all data modification actions such as update, insert, or delete. A steward is a workstation associated with a privilege assigned to a list of users having approval rights. CA Repository Webstation Option uses the workstation privilege object to determine the users that are authorized to approve change requests for a steward.

An approver can view the pending change requests for data modification in the form of a table by selecting Approval tab on the home page. The entries in the approval view are obtained from the approval table that stores each pending change request as a record. The approval page offers three different views to display the status of the change requests, listed as follows:

As an approver, you can use the following options to approve or reject the requests.

This section contains the following topics:

Query to View Change Requests for an Approver

Query to View All Change Requests for an Object

Mainframe Changes for Approval Process

Query to View Change Requests for an Approver

CA Repository Webstation Option uses the following query to obtain a list of all objects that have pending change requests for an approver:

SELECT DISTINCT (A.ENT_ID, E.ENT_NAME, UP.NAME AS STEWARD, NAME, STATUS, VERSION)
       COUNT(*)
FROM DBX_APPROVAL A,  DBX_WORKSTN_PRIV WP, DBX_PRIV_USER  UP ,
     DBX_WORKSTATION_D W, DBX_WKSN_XREF WX, DBX_ENT_TYPE_DESC E
WHERE UP.TSO_LOGON = :USERID THAT IS LOGGED IN AND
      UP.PRIV_NAME = WP.PRIV_NAME, AND
      UP.WKSN_NAME = W.NAME AND
      W.ENT_ID = WX.WKSN_ID AND
      WX.ENT_ID = A.ENT_ID AND A.ENT_TYPE = E.ENT_TYPE

Query to View All Change Requests for an Object

The following query displays a list of all pending change requests for an object:

SELECT ENT_ROWID,  ENT_ID, ENT_TYPE, NAME, STATUS, VERSION, 
REQUEST_TIMESTAMP, REQUEST_USER, DESCRIPTION 
FROM DBX_APPROVAL 
WHERE NAME = :SELECTED NAME AND STATUS = :SELECTED STATUS AND
      VERSION = :SELECTED VERSION 
      ORDER BY REQUEST TIMESTAMP, REQUEST_USER

Mainframe Changes for Approval Process

To implement approval process, the DB2 Default panel is updated to include following changes:


Copyright © 2009 CA. All rights reserved. Email CA about this topic