Transaction Action of GS2-Schedule

VerifyAction

Gs2Schedule:VerifyTriggerByUserId

Verify the elapsed time since the trigger was pulled by specifying the user ID

Actions for which quantity can be specified: NO

TypeDescription
namespaceNamestringNamespace name
userIdstringSet #{userId} to replace the currently logged in user ID.
triggerNamestringTrigger Name
verifyTypeenum [
    “notTriggerd”,
    “elapsed”,
    “notElapsed”
]
Type of verification
elapsedMinutesintElapsed time (minutes)
timeOffsetTokenstringTime offset token

Enumeration type definition to specify as verifyType

Enumerator String DefinitionDescription
notTriggerdTrigger not pulled
elapsedElapsed time
notElapsedNot elapsed time
{
    "action": "Gs2Schedule:VerifyTriggerByUserId",
    "request": {
        "namespaceName": "[string]Namespace name",
        "userId": "[string]User Id",
        "triggerName": "[string]Trigger Name",
        "verifyType": "[string]Type of verification",
        "elapsedMinutes": "[int]Elapsed time (minutes)",
        "timeOffsetToken": "[string]Time offset token"
    }
}
action: Gs2Schedule:VerifyTriggerByUserId
request:
  namespaceName: "[string]Namespace name"
  userId: "[string]User Id"
  triggerName: "[string]Trigger Name"
  verifyType: "[string]Type of verification"
  elapsedMinutes: "[int]Elapsed time (minutes)"
  timeOffsetToken: "[string]Time offset token"
transaction.service("schedule").consume.verify_trigger_by_user_id({
    namespaceName="[string]Namespace name",
    userId="[string]User Id",
    triggerName="[string]Trigger Name",
    verifyType="[string]Type of verification",
    elapsedMinutes="[int]Elapsed time (minutes)",
    timeOffsetToken="[string]Time offset token",
})

Gs2Schedule:VerifyEventByUserId

Verify if it is the event holding period by specifying user ID

Actions for which quantity can be specified: NO

TypeDescription
namespaceNamestringNamespace name
userIdstringSet #{userId} to replace the currently logged in user ID.
eventNamestringEvent Type Name
verifyTypeenum [
    “inSchedule”,
    “notInSchedule”
]
Type of verification
timeOffsetTokenstringTime offset token

Enumeration type definition to specify as verifyType

Enumerator String DefinitionDescription
inScheduleIn schedule
notInScheduleNot in schedule
{
    "action": "Gs2Schedule:VerifyEventByUserId",
    "request": {
        "namespaceName": "[string]Namespace name",
        "userId": "[string]User Id",
        "eventName": "[string]Event Type Name",
        "verifyType": "[string]Type of verification",
        "timeOffsetToken": "[string]Time offset token"
    }
}
action: Gs2Schedule:VerifyEventByUserId
request:
  namespaceName: "[string]Namespace name"
  userId: "[string]User Id"
  eventName: "[string]Event Type Name"
  verifyType: "[string]Type of verification"
  timeOffsetToken: "[string]Time offset token"
transaction.service("schedule").consume.verify_event_by_user_id({
    namespaceName="[string]Namespace name",
    userId="[string]User Id",
    eventName="[string]Event Type Name",
    verifyType="[string]Type of verification",
    timeOffsetToken="[string]Time offset token",
})

ConsumeAction

Gs2Schedule:DeleteTriggerByUserId

Delete trigger by specifying user ID

Actions for which quantity can be specified: NO

Reversible action: NO

TypeDescription
namespaceNamestringNamespace name
userIdstringSet #{userId} to replace the currently logged in user ID.
triggerNamestringTrigger Name
timeOffsetTokenstringTime offset token
{
    "action": "Gs2Schedule:DeleteTriggerByUserId",
    "request": {
        "namespaceName": "[string]Namespace name",
        "userId": "[string]User Id",
        "triggerName": "[string]Trigger Name",
        "timeOffsetToken": "[string]Time offset token"
    }
}
action: Gs2Schedule:DeleteTriggerByUserId
request:
  namespaceName: "[string]Namespace name"
  userId: "[string]User Id"
  triggerName: "[string]Trigger Name"
  timeOffsetToken: "[string]Time offset token"
transaction.service("schedule").consume.delete_trigger_by_user_id({
    namespaceName="[string]Namespace name",
    userId="[string]User Id",
    triggerName="[string]Trigger Name",
    timeOffsetToken="[string]Time offset token",
})

AcquireAction

Gs2Schedule:TriggerByUserId

Trigger by specifying a user ID

Actions for which quantity can be specified: NO

Reversible action: YES

TypeDescription
namespaceNamestringNamespace name
triggerNamestringTrigger Name
userIdstringSet #{userId} to replace the currently logged in user ID.
triggerStrategyenum [
    “renew”,
    “extend”,
    “drop”
]
Trigger Pulling Policy
ttlintTrigger expiration time (seconds)
timeOffsetTokenstringTime offset token

Enumeration type definition to specify as triggerStrategy

Enumerator String DefinitionDescription
renewRedraw with a new period if the trigger has already been pulled
extendExtend the period if the trigger has already been pulled
dropIgnore if the trigger has already been pulled
{
    "action": "Gs2Schedule:TriggerByUserId",
    "request": {
        "namespaceName": "[string]Namespace name",
        "triggerName": "[string]Trigger Name",
        "userId": "[string]User Id",
        "triggerStrategy": "[string]Trigger Pulling Policy",
        "ttl": "[int]Trigger expiration time (seconds)",
        "timeOffsetToken": "[string]Time offset token"
    }
}
action: Gs2Schedule:TriggerByUserId
request:
  namespaceName: "[string]Namespace name"
  triggerName: "[string]Trigger Name"
  userId: "[string]User Id"
  triggerStrategy: "[string]Trigger Pulling Policy"
  ttl: "[int]Trigger expiration time (seconds)"
  timeOffsetToken: "[string]Time offset token"
transaction.service("schedule").acquire.trigger_by_user_id({
    namespaceName="[string]Namespace name",
    triggerName="[string]Trigger Name",
    userId="[string]User Id",
    triggerStrategy="[string]Trigger Pulling Policy",
    ttl="[int]Trigger expiration time (seconds)",
    timeOffsetToken="[string]Time offset token",
})