GS2-Formation Script トリガー リファレンス
拡張スクリプトを呼び出す イベントトリガー のリファレンス
トリガー
updateMold
フォームの保存領域のキャパシティ更新
同期実行スクリプト
フォームの保存領域のキャパシティ更新処理の前に、スクリプトが同期実行されます。
Request
| 型 | 説明 | |
|---|---|---|
| namespace | Namespace | ネームスペース |
| mold | Mold | 更新前のフォームの保存領域 |
| afterMold | Mold | 更新後のフォームの保存領域 |
Result
| 型 | 必須 | デフォルト | 値の制限 | 説明 | |
|---|---|---|---|---|---|
| permit | bool | ✓ | フォームの保存領域のキャパシティ更新 を許可するか |
実装例
-- Request
local namespace = args.namespace
local mold = args.mold
local afterMold = args.afterMold
-- Business logic:
local permit = true
-- Result
result = {
permit=permit
}非同期実行スクリプト
フォームの保存領域のキャパシティ更新処理の後に、スクリプトが非同期実行されます。
Request
| 型 | 説明 | |
|---|---|---|
| namespace | Namespace | ネームスペース |
| mold | Mold | フォームの保存領域 |
実装例
-- Request
local namespace = args.namespace
local mold = args.mold
-- Asynchronous scripts typically do not affect the API response.
-- Use for logging, analytics, external notifications, etc.
result = {
}updateForm
フォーム更新
同期実行スクリプト
フォーム更新処理の前に、スクリプトが同期実行されます。
Request
| 型 | 説明 | |
|---|---|---|
| namespace | Namespace | ネームスペース |
| mold | Mold | フォームの保存領域 |
| form | Form | 更新前のフォーム |
| afterForm | Form | 更新後のフォーム |
Result
| 型 | 必須 | デフォルト | 値の制限 | 説明 | |
|---|---|---|---|---|---|
| permit | bool | ✓ | フォーム更新 を許可するか |
実装例
-- Request
local namespace = args.namespace
local mold = args.mold
local form = args.form
local afterForm = args.afterForm
-- Business logic:
local permit = true
-- Result
result = {
permit=permit
}非同期実行スクリプト
フォーム更新処理の後に、スクリプトが非同期実行されます。
Request
| 型 | 説明 | |
|---|---|---|
| namespace | Namespace | ネームスペース |
| mold | Mold | フォームの保存領域 |
| form | Form | フォーム |
実装例
-- Request
local namespace = args.namespace
local mold = args.mold
local form = args.form
-- Asynchronous scripts typically do not affect the API response.
-- Use for logging, analytics, external notifications, etc.
result = {
}updatePropertyForm
プロパティフォーム更新
同期実行スクリプト
プロパティフォーム更新処理の前に、スクリプトが同期実行されます。
Request
| 型 | 説明 | |
|---|---|---|
| namespace | Namespace | ネームスペース |
| propertyForm | PropertyForm | 更新前のプロパティフォーム |
| afterPropertyForm | PropertyForm | 更新後のプロパティフォーム |
Result
| 型 | 必須 | デフォルト | 値の制限 | 説明 | |
|---|---|---|---|---|---|
| permit | bool | ✓ | プロパティフォーム更新 を許可するか |
実装例
-- Request
local namespace = args.namespace
local propertyForm = args.propertyForm
local afterPropertyForm = args.afterPropertyForm
-- Business logic:
local permit = true
-- Result
result = {
permit=permit
}非同期実行スクリプト
プロパティフォーム更新処理の後に、スクリプトが非同期実行されます。
Request
| 型 | 説明 | |
|---|---|---|
| namespace | Namespace | ネームスペース |
| propertyForm | PropertyForm | プロパティフォーム |
実装例
-- Request
local namespace = args.namespace
local propertyForm = args.propertyForm
-- Asynchronous scripts typically do not affect the API response.
-- Use for logging, analytics, external notifications, etc.
result = {
}