How completion and sequencing rules map to learning section and activity attributes in CourseV3

Completion and sequencing rules specify how learners progress through sections and activities in an offering. Load these rules using the appropriate attributes for the level where each rule applies.

Section completion and sequencing rules

Use these OfferingActivitySectionV3 attributes to configure completion and sequencing rules for sections.

Attribute Description Valid values Business rules
CompletionRuleType Specifies whether completion is defined at the section or activity level ORA_COMPLETION_ACTIVITY or ORA_COMPLETION_SECTION When you use ORA_COMPLETION_SECTION, provide a NumberOfActivitiesToComplete value doesn't exceed the total number of section activities.
NumberOfActivitiesToComplete Number of activities learners need to complete when CompletionRuleType is ORA_COMPLETION_SECTION.

-1: All section activities are required

0 through n: The number of required activities, where n is the total number of activities in the section.

The value can't exceed the total number of section activities.

When CompletionRuleType is ORA_COMPLETION_ACTIVITY, the load process ignores this value.

SequenceRuleType Specifies when learners can access the section.

ORA_SECTION_ANYTIME: Learner can access the section at any time.

ORA_SECTION_PREVIOUS: Learner can access the section after completing the preceding section.

ORA_SECTION_AFTER_COMPL: Learner can access the section after completing the section identified by the SequenceRuleSectionNumber value.

You can't use ORA_SECTION_PREVIOUS when no previous section exists.

When you use ORA_SECTION_AFTER_COMPL, provide a SequenceRuleSectionNumber value that identifies a section in the same offering.

Make sure that you don't define any cyclic dependencies between the sections, such as section A depends on section B and section B depends on section A.

SequenceRuleSectionNumber Specifies the section that learners need to complete before they can access this section when SequenceRuleType is ORA_SECTION_AFTER_COMPL The number of a section that exists in the parent offering. When SequenceRuleType is ORA_SECTION_AFTER_COMPL, provide a SequenceRuleSectionNumber value that identifies a section in the same offering. Otherwise, the load process ignores this value.

Activity completion and sequencing rules

Use these SelfPacedActivityV3 and InstructorLedActivityV3 attributes to configure completion and sequencing rules for activities.

Attribute Description Valid values Business rules
CompletionRuleType Specifies whether the activity is required or optional. ORA_REQUIRED or ORA_OPTIONAL NA
SequenceRuleType Specifies when learners can access the activity.

ORA_ACTIVITY_ANYTIME: Learners can access the activity at any time.

ORA_ACTIVITY_PREVIOUS: Learners can access the activity after completing the preceding activity.

ORA_ACTIVITY_AFTER_COMPL: Learners can access the activity after completing the activity identified by the SequenceRuleActivityNumber value.

You can't use ORA_ACTIVITY_PREVIOUS when no preceding activity exists.

When you use ORA_ACTIVITY_AFTER_COMPL, provide a SequenceRuleActivityNumber value that identifies an activity in the same section.

Make sure that you don't define any cyclic dependencies between the activities, such as activity 1 depends on activity 2 and activity 2 depends on activity 1.

SequenceRuleActivityNumber Specifies the activity that learners need to complete before they can access this activity when SequenceRuleType is ORA_ACTIVITY_AFTER_COMPL. An ActivityNumber value for an activity in the same parent section. When SequenceRuleType is ORA_ACTIVITY_AFTER_COMPL, provide a SequenceRuleActivityNumber value that identifies an activity in the same section. Otherwise, the load process ignores this value.