ONSIGNAL

此帮助页面适用于 Studio。 此信息也适用于 Desktop Studio。

卫星接收器。

接收来自其他脚本的通信。

依赖关系

  • Onsignal 是一种事件操作。
  • Onsignal 事件用于接收来自其他脚本的通信。
  • Onsignal 事件会在消息到达时中断当前正在处理的任何脚本,包括由信号 操作发起的消息,该操作会向Onsignal 事件发送消息,并会中断脚本的流程。
  • 从 信号 操作传递的参数将以 SP1、SP2、... SPn 的形式接收。您可能需要仔细设计脚本,以便在 信号 操作 完成后,代码能够继续执行。
  • 一个脚本中只能有一个 Onsignal 事件。
  • The Onsignal event is triggered by:
    • 外部信号操作。
    • 来自 URL 的 信号操作。
    • Web 服务。

支持的脚本类型

其中一条分支线通向其他三个正方形的正方形。

Icon of gray-green envelope

深绿色对话气泡图标

Icon of purple telephone handset

Icon of rust-colored voicemail symbol of two circles joined by a line

Icon of pink document with lines of text

绿色手机图标,屏幕上有一个语音气泡

Icon of purple computer monitor with a mobile device overlapping its lower right corner

通用

Email 聊天 电话 語音邮件 工作项目 短信 Digital

输入属性

这些属性定义操作在执行时使用的数据。

属性

说明

添加说明文字

输入在脚本中唯一标识此操作的短语。 标题显示在脚本画布上的操作图标下方。

来源通话 ID 变量

用于接收发出 信号 操作的脚本的源 ID 的变量名称。

通常情况下,当 Onsignal 事件从另一个脚本接收到 Signal 消息时,Src Contact ID Var 属性中的值将是发送该 Signal 消息的脚本的通话 ID。

当收到 URL 或 Web Service Signal 消息时,没有与该 Web Service 关联的 通话 IDClosed 分配给每个联系人的唯一数字标识符。,因此,Src Contact ID Var 属性中的值将为 0(零)。

参数

将传递给接收脚本的参数值。

结果分支条件

结果分支条件允许您在脚本中创建分支,以在执行操作时处理不同的结果。

条件

说明

默认

Path taken unless the script meets a condition that requires it to take one of the other branches. It is also taken if the action's other branches are not defined.