JavaScript API namespaces
Some APIs are available only in the BPD namespace or only the Service namespace, but not
both.
- The BPD namespace is used by scripts in processes and BPDs.
- The Service namespace is used by scripts in service flows and services.
- For scripts in client-side human services, see JavaScript API for client-side human service development.
BPD namespace
The following APIs are only available in the BPD namespace:
- tw.decision (only in gateways)
- tw.message
- tw.system.currentProcessInstance
- tw.system.enclosingCaseInstance
- tw.system.process
- tw.system.step
Service namespace
The following APIs are only available in the Service namespace:
- tw.resource
- tw.system.coachValidation
- tw.system.currentTask
- tw.system.serviceFlow
- tw.system.task_id
- tw.system.user_fullName
- tw.system.user_id
- tw.system.user_locale
- tw.system.user_localeCountry (deprecated)
- tw.system.user_localeDescription
- tw.system.user_localeLanguage (deprecated)
- tw.system.user_loginName
- tw.system.user_timeZone
- tw.system.user_timeZoneOffset