When calling services and scripts the following scope is provided.
Properties:
id: calling element idtype: calling element typefields: execution message fieldscontent: execution message contentproperties: execution message propertiesenvironment: environmentlogger: calling element logger instanceActivityError: reference to error classBpmnError: reference to error class
Passed to environment resolve expression function.
Reference to activity error.
Reference to Bpmn error.