Transaction Action of GS2-StateMachine
VerifyAction
ConsumeAction
AcquireAction
Gs2StateMachine:StartStateMachineByUserId
Start state machine by specifying user ID
Actions for which quantity can be specified: NO
Reversible action: NO
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
userId | string | Set #{userId} to replace the currently logged in user ID. |
args | string | Arguments to be passed to the state machine |
ttl | int | Validity period (minutes) |
timeOffsetToken | string | Time offset token |
{
"action": "Gs2StateMachine:StartStateMachineByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User Id",
"args": "[string]Arguments to be passed to the state machine",
"ttl": "[int]Validity period (minutes)",
"timeOffsetToken": "[string]Time offset token"
}
}
action: Gs2StateMachine:StartStateMachineByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User Id"
args: "[string]Arguments to be passed to the state machine"
ttl: "[int]Validity period (minutes)"
timeOffsetToken: "[string]Time offset token"
transaction.service("stateMachine").acquire.start_state_machine_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User Id",
args="[string]Arguments to be passed to the state machine",
ttl="[int]Validity period (minutes)",
timeOffsetToken="[string]Time offset token",
})