BPMS script task (scriptTask)

Camunda's default option allowing you to create simple, quick scripts without the need to create Java/ScriptCode handlers

Available languages include e.g. Groovy/JavaScript

Documentation

https://docs.camunda.org/manual/7.21/reference/bpmn20/tasks/script-task/

https://docs.camunda.org/manual/7.22/user-guide/process-engine/scripting/

Attaching a ScriptTask to the process

We choose Task and subtype ScriptTask:

  • Format: Language e.g. Groovy/JavaScript

  • Type: Inline Script

  • Script: the script we want to invoke

Illustration 1. Example of attaching a ScriptTask in a process

Popular methods

Setting data visible in the Eximee dashboard
Handling JSON in JS
Converting JSON in string type to Object type

More information about JSON: https://docs.camunda.org/manual/7.7/reference/spin/json/01-reading-json/

Last updated

Was this helpful?