LearningEvaluationResult Class
Represents a user’s progress and progress status of a custom exercise in an Enablement program.
To calculate the user’s progress through an exercise as a percentage and return the progress status, use the sfdc_enablement.LearningEvaluationResult class inside the sfdc_enablement.LearningItemEvaluationHandler. In your custom code, set the percentages to correspond to these sfdc_enablement.LearningItemProgressStatus enum values.
NotStartedis equal to 0.00InProgressis from 0.01 through 99.99Completedis equal to 100.00
See example code in sfdc_enablement.LearningItemEvaluationHandler.
The following are methods for LearningEvaluationResult.
-
Returns the progress percentage of the learning item.
-
getLearningItemProgressStatus()
Retrieves the progress status of the learning item.
-
setLearningItemProgress(learningItemProgress)
Sets the progress percentage of the learning item.
-
setLearningItemProgressStatus(learningItemProgressStatus)
Sets the progress status of the learning item.
Returns the progress percentage of the learning item.
public Double getLearningItemProgress()
Type: Double
The progress percentage is formatted to two decimal places.
Retrieves the progress status of the learning item.
public sfdc_enablement.LearningItemProgressStatus getLearningItemProgressStatus()
Type: sfdc_enablement.LearningItemProgressStatus
Sets the progress percentage of the learning item.
public void setLearningItemProgress(Double learningItemProgress)
-
learningItemProgress:
Type: Double
The progress in percentage formatted to two decimal places.
Type: void
Sets the progress status of the learning item.
public void setLearningItemProgressStatus(sfdc_enablement.LearningItemProgressStatus learningItemProgressStatus)
-
learningItemProgressStatus:
Type: void