JavaScript API namespaces

Draft comment:
This topic is shared by BAW, CP4BA, CP4BASaaS. Last updated on 2025-03-13 12:15
Draft comment:
This topic was viewed 223 times since its publication
Some APIs are available only in the process namespace or only the Service namespace, but not both.

Process namespace

The following APIs are only available in the process 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