Onsignal

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

Dependencies

  • Onsignalevent action
  • Onsignal 操作用于接收来自其他脚本的通信。
  • 当消息到达时,Onsignal 事件将中断当前正在处理的任何脚本,包括由 Signalaction发起的消息,该操作向 Onsignal 事件发送消息并中断脚本流程。
  • Signal 操作传递的参数将被接收为 SP1、SP2、...SPn。您可能需要仔细设计脚本,以便在 Signal action结束后代码可以继续执行。
  • 一个脚本中只能有一个 Onsignal 事件。
  • Onsignal 事件由以下因素触发:
    • 外部 Signal 操作
    • 来自 URL的 Signal 操作
    • Web 服务。

Supported Script Types

The icon for a Generic script type - a rectangle with < and > symbols inside it.

The icon for the Email script type - a large @ symbol in a diamond.

The icon for the Chat script type - a chat bubble with an ellipsis inside (...), in a diamond shape.

The icon for the Phone script type - an old-style phone handset with curved lines indicating sound coming out of it.

The icon for the Voicemail script type - a symbol that looks like a cassette tape - two circles sitting on a horizontal line.

The icon for the Work Item script type-a piece of paper with one corner folded down and a bullet list on it.

The icon for the SMS script type - a smart phone with a chat bubble coming out of it.

The icon for the Digital script type - a computer monitor with a smartphone next to it.

通用

电子邮件 聊天 电话 语音信箱 工作项目 短信 数字

Input Properties

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

属性

说明

说明文字

输入在脚本中唯一标识此操作的短语。标题显示在脚本画布上的操作图标下方。The default is the action name.

SrcContactIDVar

变量名,用于接收发出 Signal action的脚本的源 ID。

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

如果接收的是 URL 或 Web 服务 Signal 消息,则没有与 Web 服务关联的联系人 ID关闭 分配给每个联系人的唯一数字标识符,因此 Src Contact ID Var 属性中的值将为 0(零)。

Parameters

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

Result Branch Conditions

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

条件

说明

Default

除了脚本满足条件要求其接受其他分支的情况之外,所要采用的路径。如果未定义操作的其他分支,也会执行此操作。