Overview
The Completion Rules system automates the process of determining when students have completed programme components based on customisable conditions and triggers appropriate actions when those conditions are met. This system operates at both the programme and component levels, providing flexibility to accommodate various educational requirements.
Key Concepts
Rule Types
- Programme Rules: Apply to the entire programme and can evaluate the completion status of all components
- Component Rules: Apply to specific components within a programme
Rule Components
- Conditions: Criteria that must be met for a rule to execute
- Actions: Operations performed when all conditions are satisfied
- Execution Order: Rules are processed in a specific order, with the option to stop processing after certain rules
Rule Processing
- The system evaluates each rule’s conditions
- If all conditions are met, the rule’s actions are executed
- A log is created to track rule execution
- If the “Stop processing more rules” option is enabled, no further rules are processed
Creating Completion Rules
Creating a Programme Rule
- Navigate to a programme’s details page
- Select the “Completion Rules” tab
- Click the “New Rule” dropdown and select “Programme Rule”
- Configure the rule:
- Name: Enter a descriptive name for the rule
- Conditions: Add one or more conditions that must be met
- Actions: Add one or more actions to execute when conditions are met
- Stop processing more rules: Enable if this rule should prevent further rules from executing
- Click “Save Rule”
Creating a Component Rule
- Navigate to a programme’s details page
- Select the “Completion Rules” tab
- Click the “New Rule” dropdown and select “Component Rule”
- Select the components to which this rule should apply
- Configure the rule as above
- Click “Save Rule”
Running Completion Rules
Manual Execution
- Navigate to a student’s enrolment record
- Click the “Run Completion Rules” button
- Review the results:
- Green badges indicate successful rule execution
- Yellow badges indicate rules that didn’t execute due to failed conditions
- Blue badges indicate rules that have already been executed
Automated Execution
The system can automatically process completion rules through scheduled tasks:
- Rules are processed for components that have been updated since the last run
- Rules are processed for enrolments that have been updated since the last run
- Results are logged for review
Managing Completion Rules
Ordering Rules
- Navigate to the “Completion Rules” tab
- Drag and drop rules to change their execution order
- The system automatically saves the new order
Editing Rules
- Navigate to the “Completion Rules” tab
- Click the pencil icon next to a rule
- Make your changes
- Click “Save Rule”
Deleting Rules
- Navigate to the “Completion Rules” tab
- Click the trash icon next to a rule
- Confirm the deletion
Common Rule Configurations
Automatic Component Completion
Condition: Children Completion (all child components are complete) Action: Change Completion Code (set to a completion code that counts as complete)
Grade Calculation
Condition: Weight (e.g., 70% of weighted components are complete) Action: Grade from Children (calculates a weighted average grade)
Notification on Completion
Condition: Completion Status (component is complete) Action: Event (creates a notification for staff)
Troubleshooting
Rule Not Executing
- Check if all conditions are met
- Verify that the rule hasn’t already been executed (check logs)
- Ensure earlier rules aren’t stopping processing
Clearing Rule Logs
If you need to re-run a rule that has already been executed:
- Run the completion rules
- Locate the rule with the “Already executed” status
- Click the “Clear” button
- Run the rules again
Rule Execution Errors
If an action fails during execution:
- Check for error messages in the rule execution results
- Verify that all required data for the action is available
- Review the system logs for more detailed information
