GS2-Formation Script Trigger Reference

Reference for event triggers that call extended scripts

Trigger

updateMold

Form Storage Area capacity update

Synchronous Execution Script

The script is executed synchronously before the form storage area capacity update process.

Request
Type Description
namespace Namespace Namespace
mold Mold Form Storage Area before update
afterMold Mold Form Storage Area after update
Result
Type Required Default Value Limits Description
permit bool
Whether to allow Form Storage Area capacity update
Implementation Example
-- Request
local namespace = args.namespace
local mold = args.mold
local afterMold = args.afterMold

-- Business logic:
local permit = true

-- Result
result = {
  permit=permit
}

Asynchronous Execution Script

The script is executed asynchronously after the form storage area capacity update process.

Request
Type Description
namespace Namespace Namespace
mold Mold Form Storage Area
Implementation Example
-- 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

Form update

Synchronous Execution Script

The script is executed synchronously before the form update process.

Request
Type Description
namespace Namespace Namespace
mold Mold Form Storage Area
form Form Form before update
afterForm Form Form after update
Result
Type Required Default Value Limits Description
permit bool
Whether to allow form update
Implementation Example
-- 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
}

Asynchronous Execution Script

The script is executed asynchronously after the form update process.

Request
Type Description
namespace Namespace Namespace
mold Mold Form Storage Area
form Form Form
Implementation Example
-- 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

Property Form update

Synchronous Execution Script

The script is executed synchronously before the property form update process.

Request
Type Description
namespace Namespace Namespace
propertyForm PropertyForm PropertyForm before update
afterPropertyForm PropertyForm PropertyForm after update
Result
Type Required Default Value Limits Description
permit bool
Whether to allow Property Form update
Implementation Example
-- Request
local namespace = args.namespace
local propertyForm = args.propertyForm
local afterPropertyForm = args.afterPropertyForm

-- Business logic:
local permit = true

-- Result
result = {
  permit=permit
}

Asynchronous Execution Script

The script is executed asynchronously after the property form update process.

Request
Type Description
namespace Namespace Namespace
propertyForm PropertyForm PropertyForm
Implementation Example
-- 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 = {
}