Trigger Reference of GS2-Version Script
acceptVersion
Event trigger to call GS2-Script before version approval.
Request
Type | Description | |
---|
namespace | Namespace | Namespace |
versionModel | VersionModel | Version Model |
acceptVersion | AcceptVersion | Agreed Version |
Result
Type | Require | Default | Limitation | Description | |
---|
permit | bool | ✓ | | | Allow version approval |
Implementation Example
namespace = args.namespace
versionModel = args.versionModel
acceptVersion = args.acceptVersion
result = {
permit=permit
}
acceptVersionDone
GS2-Script called after version approval.
Request
Type | Description | |
---|
namespace | Namespace | Namespace |
versionModel | VersionModel | Version Model |
acceptVersion | AcceptVersion | Agreed Version |
Result
Type | Require | Default | Limitation | Description | |
---|
Implementation Example
namespace = args.namespace
versionModel = args.versionModel
acceptVersion = args.acceptVersion
result = {
}
checkVersion
Event trigger to call GS2-Script when version check.
Request
Type | Description | |
---|
namespace | Namespace | Namespace |
versionModel | VersionModel | Version Model |
currentVersion | Version_ | Current Version |
userId | string | User Id |
warning | Status | If the normal version check results in a warning |
error | Status | If the normal version check results in an error |
Result
Type | Require | Default | Limitation | Description | |
---|
overrideWarning | Status | | | | Check Result Warning |
overrideError | Status | | | | Check Result Error |
Implementation Example
namespace = args.namespace
versionModel = args.versionModel
currentVersion = args.currentVersion
userId = args.userId
warning = args.warning
error = args.error
result = {
overrideWarning=overrideWarning,
overrideError=overrideError
}