符合 CEL 運算式驗證條件時要執行的 EventAction。
僅適用於透過 Gemini Alpha 計畫取得的 Google Workspace 外掛程式,可擴充 Google Workspace Flows。
const eventAction = CardService.newEventAction().setActionRuleId("CEL_TEXTBOX_EVALUATION_RULE_ID") .setExpressionDataAction(expressionDataAction) .addPostEventTrigger(trigger_success) .addPostEventTrigger(trigger_failure);
方法
| 方法 | 傳回類型 | 簡短說明 |
|---|---|---|
add | Event | 在事件動作執行後,新增 CEL 運算式驗證條件以進行評估。 |
set | Event | 設定事件動作的專屬 ID。 |
set | Event | 設定小工具的常見小工具動作。 |
set | Event | 為小工具設定 CEL 運算式驗證資料動作。 |
內容詳盡的說明文件
add Post Event Trigger(trigger)
在事件動作執行後,新增 CEL 運算式驗證條件以進行評估。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
trigger | Trigger | 要新增的 CEL 運算式驗證觸發條件。 |
回攻員
Event - 鏈結用的 EventAction。
set Action Rule Id(actionRuleId)
set Common Widget Action(commonWidgetAction)
設定小工具的常見小工具動作。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
common | Common | 常見的小工具動作。 |
回攻員
Event - 鏈結用的 EventAction。
set Expression Data Action(expressionDataAction)
為小工具設定 CEL 運算式驗證資料動作。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
expression | Expression | 運算式資料動作。 |
回攻員
Event - 鏈結用的 EventAction。