Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

Module 10: Workflows, events and cronjobs

The tenth module of the Developers course. Learners follow workflows, triggers and waiting processes, write a workflow event type that logs publishing, and write a cronjob part that cleans up their extension's table. 2…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/trainers/developers/module-10-workflows-events-and-cronjobs/README.md

On this page

Module 10: Workflows, events and cronjobs

Code does not only run when someone opens a page. This module covers the two other ways: as a step of a workflow around a kernel operation such as publishing, and as a cronjob on a schedule. Learners connect a workflow with a trigger, write an event type, and write a cronjob part for their extension.

At a glance

CourseDevelopers
Duration2 hours 40 minutes (with one 10-minute break)
Lessons3
LevelIntermediate to advanced

Lessons

LessonDurationWhat learners do
Lesson 10.1: Workflows and triggers for developers45 minutesBuild a workflow, connect it to publishing, run the workflow cronjob
Lesson 10.2: A workflow event type of your own60 minutesWrite Log publishing, register it, use it after publishing
Lesson 10.3: A cronjob part45 minutesWrite a clean-up script, give it a part, run it three ways

Preparing this module

  • Each learner needs an administrator account on an installation of their own: the lessons change triggers that affect every publish on the installation.
  • Lesson 10.3 needs the table mysite_greeting of lesson 9.3.
  • Check that runcronjobs.php runs on the learners' machines as their own user.
  • At the end of the module, check that every learner set the publish triggers back.

Timing plan

PartMinutes
Lesson 10.145
Lesson 10.260
Break10
Lesson 10.345
Total160

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x