Hidden scripts descriptor

Location path

Path in the assembly catalog

/era_env/priv/metadata/<SOLUTION>/defaultscripts.json

Overview

A list of default scripts that the system can use from disk when their codes are mentioned and there are no scripts corresponding to those codes in the domain that initiated the startup.

The content of the scripts itself is read from the disk from the assert directory corresponding to the hidden scripts of the soluschen, product, system.

Format:
[
  {
    "code": str,
    "id": str,
    "type": "ivr" | "svc",
    "path": str
  },
  ...
]
  • code – script code.

  • id – scenario identifier to be substituted.

  • type – scenario type:

    • ivr – script IVR,

    • svc – service script,

  • path – path to the script body on disk relative to the /era/era_dc/priv directory. Recommended format: "default_scripts/<SCRIPT_TYPE>/<CODE>.scr".

Example

Defines hidden service scripts-adapters for working with telegram web service, which are used in prodct types of integration channels.

Example:
[
  {
    "code": "webservice_telegram_recv",
    "id": "40027bb0-016d-6361-7cc2-02004c4f4f50",
    "type": "svc",
    "path": "default_scripts/svc/webservice_telegram_recv.scr"
  },
  {
    "code": "webservice_telegram_send",
    "id": "323685b7-016d-6361-c6ba-02004c4f4f50",
    "type": "svc",
    "path": "default_scripts/svc/webservice_telegram_send.scr"
  }
]