Signal

通过触发 Onsignal action 事件来与另一个脚本进行通信。

使用 Signal 操作可中断另一个脚本并将参数传递给它。最多可以传递九个参数。当信号到达时,另一个脚本可能正在积极处理其他操作。该脚本将立即中止正在执行的任何操作,并跳转到一个 Onsignal 事件操作(如果存在)。

创建下班后技术支持脚本将是一个很好的示例。当一个客户打来电话后,多个脚本将生成以同时呼叫四名待命技术人员。当其中一个脚本传抵真实技术人员(而不是语音邮件或无应答)时,生成的脚本会向原始脚本发出信号,并使两个呼叫联合。

Dependencies

  • 目前的实现无法确保多个 ONSIGNAL 事件不会相互干扰。脚本可能会在同一时刻收到两次信号,并且表现得好像它只收到一次信号一样。这种情况可以通过仔细的脚本编写来避免。
  • 您必须引用正确的联系 ID关闭 分配给每个联系人的唯一数字标识符。通常,这可以通过使用 Putvalue action保存在数据库中的变量来处理。

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.

ContactID

要发出信号的脚本的唯一标识符。

Parameters

一个指示要发送到信号脚本的参数数量的值 (0-9)。使用 SP1 到 SPn 依次为参数命名(其中 n 是参数数量)。

结果分支条件

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

条件

说明

Default

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

错误

操作无法正确执行时所采用的路径。例如,出现连接不良、语法错误等意外问题时。_ERR 变量以单个下划线字符填充,应包含对问题的简要解释。