Onsignal

接收來自其他指令碼的通訊。

Dependencies

  • Onsignal是一個event 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.

一般

電郵 聊天 電話 語音郵件 工作項目 SMS 數位

Input Properties

這些屬性定義了動作執行時使用的資料。

屬性

描述

標題

輸入在指令碼中唯一標識此操作的短語。標題出現在指令碼畫布上的動作圖示下。The default is the action name.

SrcContactIDVar

接收發布 Signal action的指令碼之來源 ID 的變數名稱。

通常,當一個 Onsignal 事件從另一個指令碼接收 Signal 訊息時,Src Contact ID Var 屬性中的值將是傳送 Signal 訊息的指令碼的聯絡 ID。

收到 URL 或 Web 服務 Signal 訊息時,沒有與 Web 服務關聯的 聯絡 IDClosed 指派給每個聯絡的唯一數字識別碼,因此 Src Contact ID Var 屬性中的值將是 0(零)。

Parameters

將傳遞至接收指令碼的參數值。

Result Branch Conditions

結果分支條件允許您在指令碼中建立分支,以處理執行動作時的不同結果。

條件

描述

Default

指令碼未能滿足需要它採用其中一個分支的條件時採用的路徑。如果沒有定義動作的其他分支,也會採用該路徑。