Trigger Reference of GS2-Formation Script
Reference of event triggers that call extended scripts
Trigger
updateMold
capacity update
Synchronous Execution Script
Script and capacity update are executed synchronously in that order.
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 capacity update |
Implementation Example
namespace = args.namespace
mold = args.mold
afterMold = args.afterMold
result = {
permit=permit
}Asynchronous Execution Script
The script executes asynchronously after the capacity update.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| mold | Mold | Form storage area |
Result
| Type | Required | Default | Value Limits | Description |
|---|
Implementation Example
namespace = args.namespace
mold = args.mold
result = {
}updateForm
Form update
Synchronous Execution Script
Script and Form update are executed synchronously in that order.
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
namespace = args.namespace
mold = args.mold
form = args.form
afterForm = args.afterForm
result = {
permit=permit
}Asynchronous Execution Script
The script executes asynchronously after the Form update.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| mold | Mold | Form storage area |
| form | Form | Form |
Result
| Type | Required | Default | Value Limits | Description |
|---|
Implementation Example
namespace = args.namespace
mold = args.mold
form = args.form
result = {
}updatePropertyForm
property form update
Synchronous Execution Script
Script and property form update are executed synchronously in that order.
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
namespace = args.namespace
propertyForm = args.propertyForm
afterPropertyForm = args.afterPropertyForm
result = {
permit=permit
}Asynchronous Execution Script
The script executes asynchronously after the property form update.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| propertyForm | PropertyForm | PropertyForm |
Result
| Type | Required | Default | Value Limits | Description |
|---|
Implementation Example
namespace = args.namespace
propertyForm = args.propertyForm
result = {
}