Types of integration channels
Location path
Path in the assembly catalog |
---|
|
Overview
Descriptor of specific types of integration channels - access points to external services. Forms the types of available integration points for the domains of the current solicitation, defines for each of them the protocol adapter scripts to be used.
Also available for the master domain (predefined soluton master).
[ { "type": str, "recv_svcscriptcode": str, "recv_svcscriptcode_ws": str, "recv_timeout": int, "send_svcscriptcode": str, "send_svcscriptcode_ws": str, "url": "https://...", "issync": true | false }, ... ]
-
type
– arbitrary type name. -
recv_svcscriptcode
– code of a service script-adapter that processes http messages received as HTTP hooks from an external system or web service. -
send_svcscriptcode
– code of the service script adapter that processes the message sent to the external system or web service. -
recv_svcscriptcode_ws
– (optionally) the code of a service adapter script that processes messages received via websocket connections from an external system or web service. -
send_svcscriptcode_ws
– (optional) the code of a service script adapter that processes a message sent to an external system or web service via an existing websocket connection. -
url
– url connection points to the web service or its adapter. -
issync
– switch of synchronous processing mode in the script of the message received from the external system as a hook. -
recv_timeout
– is the maximum recv_svcscript execution time in seconds. The default value (0) means that the value defined by the web server (10 seconds) will be applied. The maximum allowed value is 60 seconds.
Integration point entities created with specific types do not have the ability to change the parameters mentioned in the metadata: scripts, url, etc.
The content of the scenarios in this setup is generated separately and located among the asserts.
Example
Defines three types of integration points, and defines an address and hidden scripts under each.
[ { "type": "telegram", "recv_svcscriptcode": "webservice_telegram_recv", "send_svcscriptcode": "webservice_telegram_send", "url": "https://149.154.167.40:443/", "issync": false }, { "type": "vk", "recv_svcscriptcode": "webservice_vk_recv", "send_svcscriptcode": "webservice_vk_send", "url": "http://127.0.0.1:12345/api/vk/v1/webservice?mode=sync", "issync": true }, { "type": "subscr", "recv_svcscriptcode": "webservice_subscr_recv", "recv_svcscriptcode_ws": "webservice_subscr_recv", "send_svcscriptcode": "webservice_subscr_send", "url": "http://127.0.0.1:12345/api/subscr/v1/webservice?mode=sync", "issync": true } ]