Moodle Trigger Plugin Presented by Matt Porritt Matthew

Moodle Trigger Plugin Presented by Matt Porritt // @Matthew. Porritt

Moodle Ecosystem

Moodle Ecosystem Student Portals Business Intelligence Student Management Systems Reporting

Moodle Webservices • • Allows external systems to initiate interaction Moodle 3. 5 has ~512 External System Communicate via HTTP Webservice examples: o o o Create students Enrol students Retrieve grades Webservices

Moodle Initiated Interaction • Moodle Reaching out to an External System • Limited Options in External System Moodle Core • Initiate based on Event or Action • Student Receives a Grade • Student Earns a Badge ? ? ?

Moodle Event API • • https: //docs. moodle. org/dev/Event_2 Take Action Based on Event Moodle 3. 5 has ~500 Internal Only With Some Specific External Exposure

Bespoke Development

Bespoke Development - Patterns

Event Trigger Plugin • “Flexible Framework to Allow Moodle Events to Trigger Workflows and Communicate with External Systems” • https: //moodle. org/plugins/tool_trigger

Plugin - Overview • Define Workflows • Workflows are Made of Steps • Step Types • Filters • Lookups • Actions Moodle Event Step External System

Plugin - Example • Email Student on Course Completion • Only for Specific Course • Include Student Information • Include Course Information • Also Send Completion Information to Student Management System

Workflow - Management

Workflow – Add / Edit

Workflow – Add Step Modal

Workflow – Course Filter Step

Workflow – User Lookup Step

Workflow – Course Lookup Step

Workflow – Email Action Step

Workflow – HTTP Post Action Step

Workflow – Add / Edit

Workflow - Management

Workflow – Course Completion

Workflow – Completed Students

Workflow - Management

Workflow – Completion Email

Workflow – SMS Completion

Plugin – Example Recap • Email Student on Course Completion • Only for Specific Course • Include Student Information • Include Course Information • Also Send Completion Information to Student Management System

Looking Inwards Moodle Event Step Webservice

Workflow – Webservice Step

Workflow – Webservice Actions

Pushing to Pulling

Plugin Use Cases • • • Student Enrolment & Course Progression Student Engagement Student Portals & Dashboards BI & Reporting Student Management System Integration

Lessons Learnt • Easier Use • Available Fields in Steps • Workflow Import & Export • Sample Workflows • Better Documentation • Time • Videos

Where to Next? • • • Synchronous Mode History Review Report Faster Workflow Processing More Output Formats Lots More…

Git. Hub Project & Issues

Summary • Communicate with External Systems • Automate Actions • Rapid Iteration

The Links • Event Trigger Plugin • https: //moodle. org/plugins/tool_trigger • Git Code • https: //github. com/catalyst/moodle-tool_trigger • Project Roadmap • https: //github. com/catalyst/moodle-tool_trigger/projects/1 • Documentation • https: //github. com/catalyst/moodle-tool_trigger/wiki • Submit an Idea or Issue • https: //github. com/catalyst/moodle-tool_trigger/issues • Matt Porritt (Me) • Twitter: @Matthew. Porritt

Questions ?
- Slides: 38