Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
comply_01 [2018/11/20 10:33] – [Using Compliance Domains in Validation Functions] Michael Scott | comply_01 [2020/12/03 15:10] (current) – Shelley Hunter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Compliance Domains ====== | + | ====== Compliance Domains |
Compliance domains provide a structured mechanism for monitoring the compliance status and suitability of candidates based on their Questionnaire responses (both global and departmental). | Compliance domains provide a structured mechanism for monitoring the compliance status and suitability of candidates based on their Questionnaire responses (both global and departmental). | ||
Line 23: | Line 23: | ||
===== Default Domains ===== | ===== Default Domains ===== | ||
- | You can optionally | + | You should |
Line 44: | Line 44: | ||
< | < | ||
- | This will check the Compliance Domain for the Vacancy (explicit or default). <color # | + | This will check the Compliance Domain for the Vacancy (explicit or default). <color # |
In the **Tempshift Pre-Validation** function put: | In the **Tempshift Pre-Validation** function put: | ||
Line 52: | Line 52: | ||
You may, of course, have additional non-questionnaire based checks to make in the function, which should be done first. | You may, of course, have additional non-questionnaire based checks to make in the function, which should be done first. | ||
+ | |||
+ | In the **Person State Change Validation** function you might put: | ||
+ | < | ||
+ | declare rv long varchar; | ||
+ | if newstatus=' | ||
+ | set rv = ComplianceValidPerson(persid, | ||
+ | if rv is not null then | ||
+ | update person set status = oldstatus where personid = persid; // Revert to previous state | ||
+ | return rv | ||
+ | end if; | ||
+ | set rv = ComplianceValidPerson(persid, | ||
+ | end if; | ||
+ | return(rv) | ||
+ | </ | ||
===== Using Compliance Domains in Shift Matching ===== | ===== Using Compliance Domains in Shift Matching ===== |