Salesforce - Position Assessment

Position Assessment was created for USRowing. The intent was to collect assessments of referees working various position for quality and advancement. The application is used to create a series of PDF forms used to assess the performance of assistant referees prior to approval to take the full referee exam. The forms are filed within the system and are distributed via Direct Messaging to the evaluator and candidates.

Though the application was designed with a specific customer in mind, the basic application could be applied to an situation requiring some from of review and assessment.

The following elements are used by this application:

NameTypeUse-Descritpion
EvaluationQuestionsControllerApex ClassEvaluationQuestionsControllerManages data based upon requests and responses
EvaluationQuestionsControllerTestApex ClassEvaluationQuestionsControllerTestTests code prior to deployment
RefereeAssessmentApex ClassRefereeAssessmentPulls data needed to complete the RefereeAssessment PDF report
RefereeAssessmentTestApex ClassRefereeAssessmentTestTests code prior to deployment
Evaluation_QuestionnaireLightning PageEvaluation_QuestionnaireLightning page that implements EvaluationQuestionnaire
EvaluationQuestionnaireAura Component BundleevaluationquestionnaireFormally evaluationquestionnaire - UI used to complete evaluation
RefereeAssessmentRptAura Component BundleRefereeAssessmentRptThis is the custom object that allows us to test Direct Messages with attachments
This is an admin tool
RefereeAssessmentVisualforce PageRefereeAssessmentPDF Report stored and email
RefAssessmentHeadingVisualforce ComponentRefAssessmentHeadingUsed as header in RefereeAssessment
Terms: DM Data Messages

Custom Objects

NameAPI NameTypeDescription
Evaluation Properties [2]Evaluation_Properties__cCustom ObjectEvaluation quesionnaire settings
Evaluation Question [1]Evaluation_Questions__cCustom ObjectQuestions to be used in evaluation forms
Evaluation QuestionTypeResp [1]Evaluation_QuestionTypeResp__cCustom ObjectTest lookup of response descriptions
Evaluation ResponseEvaluation_Responses__cCustom ObjectObject to hold evaluation responses - responses are based upon questions found in Evaluation_Questions__c
Evaluation ResponseAbstractEvaluation_ResponsesAbstract__cCustom ObjectA root record for evaluation responses

Object Notes:

[1] The objects Evaluation_QuestionTypeResp__c and Evaluation_Questions__c can both be loaded from CSV files; however these objects are coupled through QuestionType__c Lookup   (Evaluation_QuestionTypeResp) Evaluation_QuestionTypeResp__c may be loaded first. When loaded you will get a new ID per record. These new IDs are tied to a label. Both the label and ID appear in Evaluation_Questions__c. You can export Evaluation_QuestionTypeResp__c and use this to replace the QUESTIONTYPE__C using QUESTION_TYPE__C as a reference. The following illustrates a formula that can be used to sync ID numbers.
=INDEX(QuestionType!$A$2:$A$6, MATCH(L2,QuestionType!$B$2:$B$6,0) )

[2] Properties manage the operation of the App. Some elements include:
DMText – defines text that will appear in Direct Messages when the Referee Assessment is sent to candidate
FileNameFormat – Takes text plus
   $D = Todays Date - YYYYMMDD
   $DT = Todays DateTime - YYYYMMDDHHMMSS
   $EN = Full Evaluee Name - spaces will be removed
   $EL = Evaluee Initial with LastName
   $EI = Evaluee Inititals
   $L = Location - spaces will be replaced with underscore
   $PN = Position
   $PA = Positions abbreviated: S, JS, R, JS, CC, M, CR
   $ID = evaluation ID
   FileNameFormage usage may appear as: RA_$PA_$EL_$D_$ID (where RA = Referee Assessment)
    Example based upon above: RA_S_Mmiller_20200520_MM123456789
RestrictRegattaDaySelection = true
SendFileViaDirectMessageWhenCompleted=true
Properties many be loaded from a CSV file without issue.

When the app opens the input fields will be limited to:

In addition, there is a button in the upper right corner with the red letters, Referee Assessment Preface.

The latest form is illustrated below.

Clicking Referee Assessment Preface will open a modal that displays information about evaluating the selected position, i.e., evaluation type.

 

The text that appears in this modal is managed through the Evaluation Questions object as illustrated below.

 

Question Text is formatted using basic HTML tags, e.g., <br/> or <br> = line break (new line). You can use any basic HTML tag to format this text. There are currently two elements, a heading, and a body. You can update either. You can remove either by deactivating the question using Question Active. If you do not want the button to appear you would disable both entries identified as PREFACE.

 

Once the Evaluation Type is selected you will now see the synopsis (1) of each position from the second section of each of the current documents. Following that you will see a section heading (2) that appears above each of the question sections. This is illustrated below.

 

This information is also managed through the Evaluation Questions object as illustrated below.

 

Within the questions you may notice an asterisk next to some questions. In the preface you ll find, For the purposes of a practical exam, positions with an asterisk (*) must be specifically observed and all positions must be evaluated as Competent. Looking over current documents you ll see an asterisk next to the heading of the Overall sections. I placed an asterisk there using Evaluation Questions object. I also placed a red asterisk next to the question Overall Evaluation as illustrated below.

 

This asterisk is significant, it designates this question is required. You can set any of the questions to required. So far, I ve only set each of the Overall Evaluation questions as required using the isRequied checkbox. The illustration below shows both the asterisk in the title and a required question.

 

The PDF output also incorporates the new preface and synopsis sections. The preface appears on the first page. I ve also added Position Evaluated. Each of the remaining sections will appear on a sperate page.

 

 

 

The nice thing about this approach is if you don t like the content it can be easily changed through existing content interfaces, i.e., Evaluation_QuestionTypeResp, Evaluation Questions, Evaluation Properties.