Compliance matrix composer

Compliance matrix composer

The Compliance Matrix Composer is a record page component for Applications and Placements. It answers the question "which compliance matrices apply to this engagement?", shows the answer with the requirements each matrix carries, and creates a single composed matrix plus a Compliance Assignment for the candidate in one click.

How matching works

Matching is driven by fields on the Compliance Matrix itself. The matrix declares what it applies to; nothing needs to be configured on the account, site or job records.

The packaged matcher fields on Compliance Matrix are:

Matrix field Compared against
Account Application/Placement > Job > Client Account
Site Application/Placement > Job > Site
Job Application/Placement > Job
Job Type Application/Placement > Job > Job Type
Site State Application/Placement > Job > Site > State
Contact State Application/Placement > Candidate > Mailing State

The rules:

The component always shows a "Checked against" strip - one chip per configured matcher with the level name and the engagement's resolved value, linked to the record for lookup levels (Site, Job, Job Type, Account). So even when nothing matches, it is visible exactly which levels were checked and against what.

Site State and Contact State share one global picklist of states with the Site object's State field, so state values always compare cleanly.

Composing

The component previews the composed matrix name (Candidate - Job - Site), lists each matched matrix with the criteria it matched on and its requirements, and the Create Matrix & Assignment button then:

  1. Creates one new matrix containing the requirements of all matched matrices in order, using the same engine as the "3B Create Compliance Matrix from Templates" flow action. The composed matrix is never a template itself.
  2. Creates a Compliance Assignment linking the candidate to the composed matrix, with the application or placement Id stored in the assignment's Context Record Id.
  3. Writes the composed matrix to the context record's Compliance Matrix lookup (the definition's matrixPath), ready for the Compliance Command Center.
  4. The compliance engine evaluates the assignment as usual.

If an assignment already exists for the record (matched by Context Record Id), the component shows a link to its matrix instead of the button, so re-visits never create duplicates.

Compliance Console in the same component

Once a matrix is assigned, the component shows the Compliance Console for the candidate, scoped to this record and its matrix, directly below the link, so you no longer need a separate Compliance Command Center under the composer. App Builder properties:

Property Default Purpose
Hide Compliance Console off Tick to keep only the link.
Console Definition blank (Default) Compliance Definition used by the console (columns, behaviour).
Console Height (px) 800 Height of the console.

Pages that already have a Compliance Command Center below the composer will show the console twice: remove the Command Center, or tick Hide Compliance Console.

Without the component: quick action and Flow

Custom matchers

The matching contract is metadata: one Compliance Matcher Definition custom metadata record per context object, since the contact, name and matcher paths differ between objects. Each record holds a JSON object in its JSON field:

{
    "objectApiName": "b3o__Application__c",
    "contactPath": "b3o__Candidate__c",
    "namePaths": ["b3o__Candidate__r.Name", "b3o__Job__r.Name", "b3o__Job__r.b3o__Site__r.Name"],
    "matrixPath": "b3o__Compliance_Matrix__c",
    "matchers": [
        { "sourceFieldPath": "b3o__Site_State__c", "targetFieldPath": "b3o__Job__r.b3o__Site__r.b3o__State__c" },
        { "sourceFieldPath": "b3o__Job_Type__c", "targetFieldPath": "b3o__Job__r.b3o__Job_Type__c" }
    ]
}

From Version 11.8.0, the Application and Placement records are supplied as separate setup metadata, available from 3B support. The managed package does not install them. Review existing definitions and deploy or recreate missing records before using the composer. Each default maps the six standard fields and identifies the Compliance Matrix lookup to populate on the context object. The component auto-selects the definition matching the page's object; its Matcher Definition property in App Builder forces a specific record instead. To change or extend matching, edit a definition or create a new one - for example, add a custom "Region" field to Compliance Matrix and to Site, then add the pair; or target an entirely different object (an ATS placement, a WFM engagement) with a definition record alone. Lookup matcher fields display their record name in the matched-on summary automatically.

Notes for implementation teams