LearningItemEvaluationHandler Class

Contains methods to customize the evaluation process of a learning item.

sfdc_enablement

Extend this class and implement your custom progress evaluation method. Then link this class to a LearningItemType metadata record by passing the Apex class name to the ApexEvaluationHandler field.

This code updates a user’s progress when they take a custom screen flow exercise in an Enablement program. The code updates the progress by checking the number of screens the user has navigated, calculating the progress percentage, and returning the progress status. See Track a User’s Progress in a Custom Exercise from Salesforce Developer Guide: Sales Programs and Partner Tracks with Enablement.

The following are methods for LearningItemEvaluationHandler.

Contains the custom logic for evaluating a learning item.

public Sfdc_enablement.LearningEvaluationResult evaluate(Sfdc_enablement.LearningEvaluation learningEvaluation)

Type: Sfdc_enablement.LearningEvaluationResult

The result of the evaluation, including progress and status details.