Script Trigger Reference of GS2-Datastore
Reference of event triggers that call extended scripts
Trigger
doneUpload
Report completion of data object upload
Synchronous Execution Script
The script is executed synchronously before the report completion of data object upload process.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| dataObject | DataObject | Data object |
| objectUrl | string | URL of the uploaded object |
Result
| Type | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|
| permit | bool | ✓ | Whether to allow report completion of data object upload |
Implementation Example
namespace = args.namespace
dataObject = args.dataObject
objectUrl = args.objectUrl
result = {
permit=permit
}Asynchronous Execution Script
The script executes asynchronously after the Report completion of data object upload.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| dataObject | DataObject | Data object |
Implementation Example
namespace = args.namespace
dataObject = args.dataObject
result = {
}