Hi,
This section of the user guide may be of value [1]
[1] https://docs.camunda.org/manual/7.5/user-guide/process-engine/scripting/#variables-available-during-script-execution