GS2-Formation Script Trigger Reference

Reference of 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
TypeDescription
namespaceNamespaceNamespace
moldMoldForm Storage Area before update
afterMoldMoldForm Storage Area after update
Result
TypeRequiredDefaultValue LimitsDescription
permitbool
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
TypeDescription
namespaceNamespaceNamespace
moldMoldForm 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
TypeDescription
namespaceNamespaceNamespace
moldMoldForm Storage Area
formFormForm before update
afterFormFormForm after update
Result
TypeRequiredDefaultValue LimitsDescription
permitbool
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
TypeDescription
namespaceNamespaceNamespace
moldMoldForm Storage Area
formFormForm
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
TypeDescription
namespaceNamespaceNamespace
propertyFormPropertyFormPropertyForm before update
afterPropertyFormPropertyFormPropertyForm after update
Result
TypeRequiredDefaultValue LimitsDescription
permitbool
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
TypeDescription
namespaceNamespaceNamespace
propertyFormPropertyFormPropertyForm
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 = {
}