Create a new script

Civic Platform provides master scripts for most of the events. You can use the UniversalMasterScript as a template to create scripts for the remaining events.

Civic Platform requires a separate script per event to:

  • Identify the scripted business logic for a module, application type, and sub-typ1.

  • Create and populate event-specific variables needed for each specific event (for example, wfTask, inspType)

To create custom scripts

  1. Set up a script repository, which includes a scripts folder organized by trigger mechanisms such as events, batch, expressions, etc. See The EMSE tool and the script repository for more information.

  2. Copy the contents of the UniversalMasterScript file and paste the contents into your script editor.

  3. Modify the configurable parameters.

  4. Implement your business logic using JavaScript syntax.

  5. Save the JavaScript file using the script file naming convention. See Event script file naming

  6. Deploy the custom script using the EMSE tool. See The EMSE tool and the script repository.