返回介绍

15.12. Runtime

发布于 2023-09-17 23:40:35 字数 2110 浏览 0 评论 0 收藏 0

15.12.1. Signal event received

POST runtime/signals

Notifies the engine that a signal event has been received, not explicitly related to a specific execution.

Body JSON:

{
  "signalName": "My Signal",
  "tenantId" : "execute",
  "async": true,
  "variables": [
    {"name": "testVar", "value": "This is a string"}

  ]
}
Table 224. Signal event received - JSON Body parameters
ParameterDescriptionRequired
signalNameName of the signalYes
tenantIdID of the tenant that the signal event should be processed inNo
asyncIf true, handling of the signal will happen asynchronously. Return code will be 202 - Accepted to indicate the request is accepted but not yet executed. If false, handling the signal will be done immediately and result (200 - OK) will only return after this completed successfully. Defaults to false if omitted.No
variablesArray of variables (in the general variables format) to use as payload to pass along with the signal. Cannot be used in case async is set to true, this will result in an error.No

Success response body:

Table 225. Signal event received - Response codes
Response codeDescription
200Indicated signal has been processed and no errors occurred.
202Indicated signal processing is queued as a job, ready to be executed.
400Signal not processed. The signal name is missing or variables are used together with async, which is not allowed. Response body contains additional information about the error.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文