Compliance match answers two questions from compliance data you already maintain:
Results are a ranked list of records with a match percentage. Each record links to itself; what happens next (shortlisting, inviting, applying) is up to the user or your automation.
Compliance matrices carry matcher fields (Account, Site, Job, Job Type, Site State, Contact State, plus any custom fields you add). The engine runs the same matching used by the Compliance Matrix Composer, but with the job as the context record. Every active matrix whose populated matcher fields all equal the job's values contributes its requirements. Blank matcher fields are wildcards. Matrices with no populated matcher fields never match.
Matchers can also read the candidate. A targetFieldPath starting with $contact. resolves against the candidate Contact, for example Contact State against the candidate's Mailing State. Those matrices are applied per candidate.
When several matched matrices contain the same requirement, it counts once.
The candidate's Compliance Items across all active Compliance Assignments are used, whichever matrix they came from. A candidate onboarded with a composed matrix (for example Account + Site + Job Type templates) can therefore fully cover a job's requirements.
A job requirement is satisfied by a candidate item when either identity matches:
| Identity | Field | How it is set |
|---|---|---|
| Requirement Key | Requirement Key on Compliance Requirement |
Optional. Clone, compose and Add from Templates copy the source key, or the source requirement Id when blank, so template lineage survives. Set the same key by hand to unify requirements built separately. Blank = the requirement's own Id. |
| Evidence Fingerprint | Evidence Fingerprint on Compliance Requirement |
Automatic for Record Check requirements. A hash of the evidence request: evidence object, contact field, conditions, condition logic and minimum count. Two requirements asking for the same evidence match even if they were built by hand with different formatting. Approval, expiry and display settings are not part of it. |
Checklist Item and Manual requirements have no fingerprint and match by key only.
Both values are copied onto each Compliance Item when the matrix engine recalculates. After upgrading, first save existing requirements to populate their fingerprints, for example with a data loader update of the Id column. Then backfill existing items:
Database.executeBatch(new b3o.ComplianceMatrixRecalcBatch('SELECT Id FROM b3o__Compliance_Assignment__c WHERE b3o__Active__c = true'), 10);
score = sum(requirement weight x status weight) / sum(requirement weight) x 100
statusWeights (defaults: Compliant 1, Waived 1, Pending Review 0.75, everything else 0).staleAfterDays, its contribution is multiplied by staleFactor and the result is flagged Stale. Recalculate the candidate ("3B Recalculate Compliance") to refresh.| Mode | What it does | Data used |
|---|---|---|
| Quick Run | Ranked list in seconds. On a job it pre-filters candidates holding positive items for the job's requirements, scores the best pool precisely, then re-checks the top results live. On a Contact it scores open jobs (up to jobCap). |
Stored items, plus live evidence for the top rescoreTop |
| Full Run | Scores everyone in the background and stores the results in a Compliance Match shortlist per job. | Stored items only |
| Spot Check | Pick one job (on a Contact) or one candidate (on a job) and see the score with a per-requirement breakdown. | Stored items and a full live check |
Live checks evaluate the job's requirements directly against the candidate's evidence (certificates, submissions and so on) and applicability rules without saving anything. This finds evidence the candidate holds for a requirement they were never assigned. A live result never lowers a stored one: manual ticks, waivers and approvals on stored items are kept.
The Quick Run pre-filter reads at most quickRowCap item rows. When the cap is hit the result is marked Partial; use Full Run to score everyone.
In Lightning App Builder add 3B Compliance Match to a Contact record page and to the job record page (3B Job or your ATS job object). The Matcher Definition property is optional:
objectApiName is the page's object.matching block. Set it explicitly when you have more than one. Quick Run, Full Run and Spot Check always use the same definition.The component has three tabs: Quick Run (with a minimum match slider), Full Run (start, progress, stored results) and Spot Check (record picker plus breakdown).
On a job page, a collapsible What this job needs panel sits above the tabs: every active matrix that matches the job, with its requirements (● = mandatory). Matrices that also depend on the candidate (for example Contact State) are tagged Only if Contact State = California, so they only count for candidates who match.
Every Quick Run and Full Run result has a Show breakdown link. It runs a Spot Check for that one candidate or job when you click it (nothing is calculated upfront) and lists each requirement with its status, how it was matched and a link to the evidence. The breakdown is live, so its score can differ from the indexed score on the row.
Matching is configured in Compliance Matcher Definition custom metadata. Create a Job record for 3B Job using the JSON below. Version 11.8.0 supplies this definition as separate setup metadata, available from 3B support. The managed package does not install it:
{
"objectApiName": "b3o__Job__c",
"namePaths": ["Name", "b3o__Site__r.Name"],
"matchers": [
{ "sourceFieldPath": "b3o__Account__c", "targetFieldPath": "b3o__Client_Account__c" },
{ "sourceFieldPath": "b3o__Site__c", "targetFieldPath": "b3o__Site__c" },
{ "sourceFieldPath": "b3o__Job__c", "targetFieldPath": "Id" },
{ "sourceFieldPath": "b3o__Job_Type__c", "targetFieldPath": "b3o__Job_Type__c" },
{ "sourceFieldPath": "b3o__Site_State__c", "targetFieldPath": "b3o__Site__r.b3o__State__c" },
{ "sourceFieldPath": "b3o__Contact_State__c", "targetFieldPath": "$contact.MailingState" }
],
"matching": {
"jobFilter": "b3o__Status__c = 'Open'",
"candidateFilter": null,
"statusWeights": { "Compliant": 1, "Waived": 1, "Pending Review": 0.75, "Outstanding": 0, "Rejected": 0, "Expired": 0 },
"staleAfterDays": 30,
"staleFactor": 0.8,
"minScore": 50,
"quickLimit": 50,
"rescoreTop": 20,
"quickRowCap": 10000,
"jobCap": 2000
}
}
| Key | Meaning |
|---|---|
objectApiName |
The job object. |
namePaths |
Fields joined to label a job in results. Blank = Name. |
matchers |
sourceFieldPath = a field on Compliance Matrix. targetFieldPath = a path from the job, or $contact.<field> for the candidate. |
matching.jobFilter |
SOQL condition selecting jobs worth matching (Contact direction and Full Run). |
matching.candidateFilter |
Optional SOQL condition on Contact, for example b3o__Status__c = 'Active'. |
matching.statusWeights |
Status weight per Compliance Item status. Statuses not listed weigh 0. |
matching.staleAfterDays / staleFactor |
Staleness threshold and multiplier. |
matching.minScore |
Results below this percentage are hidden (Quick Run default, Full Run storage threshold). |
matching.quickLimit |
Maximum Quick Run results. |
matching.rescoreTop |
How many top Quick Run results get a live check. |
matching.quickRowCap |
Quick Run pre-filter row cap (job direction). |
matching.jobCap |
Maximum jobs a Contact Quick Run scores. |
Filters are written by administrators in metadata and are appended to queries as-is; they are never taken from end users.
To match against Seven20, TargetRecruit or any other job object:
objectApiName set to the ATS job object, matchers pointing from matrix fields to paths on that object, and a matching block.Full Run results record the job as text (Job Record Id on Shortlist), so any job object is supported. The 3B Job lookup on the shortlist is filled only for 3B Jobs.
Each job with at least one qualifying candidate gets one persistent Shortlist with Type Compliance Match named Compliance Match - <job label>. Its Unique Key (type + job id) guarantees one shortlist per job even when runs overlap. Each Shortlist Link holds:
| Field | Content |
|---|---|
| Contact | The candidate |
| Match Score | 0-100 |
| Matched On | When it was scored |
| Match Details | JSON: status counts, mandatoryMet, stale, requirementCount |
| Unique Key | Shortlist Id + Contact Id |
Runs are idempotent. Qualifying links are updated in place. When the run finishes, every link in its scope that the run did not re-score is deleted: candidates below minScore, jobs that no longer pass jobFilter (for example closed), and candidates whose assignments were deactivated. On a job, a Full Run scores every Contact with an active Compliance Assignment (batches of 200). On a Contact, it scores every job matching jobFilter and writes the link onto each job's shortlist, so "suitable jobs for this candidate" is simply the candidate's Compliance Match links.
Run it from Apex for mass refreshes, for example nightly per open job:
Database.executeBatch(new b3o.ComplianceMatchBatch(jobId, null), 200);
3B Find Compliance Matches (synchronous Quick Run)
| Input | Description |
|---|---|
| Record Id (required) | Contact (finds jobs) or job record (finds candidates) |
| Matcher Definition Name | Optional DeveloperName |
| Minimum Score | Optional, overrides minScore |
| Maximum Results | Optional, overrides quickLimit |
| Output | Description |
|---|---|
| Matched Record Ids | Best match first |
| Scores | Score per record, same order |
| Partial | True when the pre-filter cap was hit |
Each call runs queries per requirement and rule, so use it from screen flows, scheduled paths or autolaunched flows handling a few records, not bulk record-triggered flows. When a flow sends more than one record in a call, live checks are skipped and results use stored data only.
3B Run Compliance Match (asynchronous Full Run): input Record Id and optional Matcher Definition Name; returns the batch job Id. Only the first 5 records of a call start a run; the rest return an empty job Id. Review the returned job Id before treating a request as started.
The job board controller exposes getSuitableJobs, reading the candidate's stored Full Run results. It uses the remoting contract described in the Developer and API reference.
Request:
{ "controllerName": "b3o.RemoteJobBoardController", "params": { "endp": "getSuitableJobs", "contactId": "<contact id>", "sessionKey": "<portal session key>", "minScore": 60 } }
Response:
{ "success": true, "responseObject": [ { "jobId": "<job id>", "score": 87.5 }, { "jobId": "<job id>", "score": 72 } ] }
The session key is always required and must belong to the requested contact, for guests and signed-in users alike; an expired or mismatched key returns the invalid session error. Only jobs that still pass the definition's jobFilter are returned. Keep results fresh by running a Full Run for the candidate (for example from a flow when their compliance changes) or per job on a schedule.
jobCap jobs in memory. Jobs sharing the same matcher values share one matrix match.The Onboarding Admin Full Permission permission set includes the new fields and classes. Users running the component need read access to jobs, Contacts, compliance matrices, requirements, assignments and items, and create/edit access to Shortlists and Shortlist Links to start a Full Run. The component and flow actions respect the running user's sharing.
| Symptom | Cause |
|---|---|
| "No Compliance Matcher Definition with a matching block is configured" | Contact page with no definition containing matching. Add the block or set the component property. |
| Candidate missing from Quick Run although compliant | Items not yet stamped with key or fingerprint (run the backfill batch), the candidate's assignment is inactive, or the pre-filter was Partial. Spot Check shows the live score. |
| Composed requirement not recognised | It was copied before this release, so it has no key. Set its Requirement Key to the template's key or Id, or rely on the fingerprint for Record Check requirements. |
| Score marked Stale | The candidate's assignment was not recalculated within staleAfterDays. |
| A job never appears | It matches no matrix, so there is nothing to score, or it fails jobFilter. |