VPA Use Case: Unpacking Dependencies

Service Contracts

VPA Groups Use Case: Bridge Tables (Service Contracts example) shows how to work service contracts using bridge tables. However, scenarios for service contracts may be more complex. In particular, you may wish to manage lists of craftspersons by work team and vendor and to limit access to records by vendors after the contract with that vendor has expired.

In this scenario, the goal is to limit a craftsperson's access to equipment and work requests based on the following SLAs.

Presume that:

Unpacking Service Contracts

Suppose that nightly, a scheduled rule unpacks the service contract dependencies.

The rule deletes the contents of the VPA Equipment Mappings (vpa_eq) table. This removes permissions from SLAs that have expired.

The rule uses a datasource that joins Equipment, SLA Request Parameters, SLA Response Parameters, and Service Contracts.

VPA Equipment Mappings (vpa_eq) table

This table holds the mappings the scheduled rule creates when unpacking the dependencies. In theory, this table duplicates data that\ can be derived from the table join used in the scheduled rule. However, "unpacking" this information into a mapping table speeds the query, simplifies the VPA restrictions, and reduces the risk of errors in the VPA by reducing the complexity of the VPA and configuration.

VPA Group Equipment Code User Name
SERVCONT 107833 carl_casteo@finers_biomedical.com
SERVCONT 107833 erika_alina@finers_biomedical.com
SERVCONT 107833 allen_krantz@nova_helium.com
SERVCONT 20145 george_green@titan_facilities.com

VPA Restrictions (vpa_rest) table

You can establish VPA Restrictions like the following.

Applies to Table Type Role Name Subquery
eq VPA Group VPA ALL OTHER ROLES <none>

This VPA Restriction gives access to only roles or users that are member of the SERVCONT group. The VPA restriction restricts the Equipment (eq) table and all tables that validate on the eq table, such as the Work Requests (wr) table.