Scripts

reviewed: 14 February 2025

All the .cms files in the script folder are helper functions containing useful routines used by pages, business objects, services, processes and documents (and other scripts). Scripts thus always have a supporting role.

Scripts, business objects and documents differ from pages, services and processes in that they all have a serving role. They cannot be run / invoked directly but always need a 'host'.

Runnable component Method
Pages Can be loaded directly into the browser
Services Can be invoked as a web service (e.g. using Postman)
Processes Are executed by the process controller
Non-runnable component Method
Business objects Used by all other components
Documents Can be generated from a runnable component
Scripts Helper functions called from any other component

Typical examples of helper scripts:

  • helpers.cms: file with general helper functions
  • translations.cms: file with multi-language translations
  • migration.cms: file with data migration helper scripts

<End of document>