System and method for registering subscribable states in blockchain
AssigneeAlibaba Group Holding Limited
InventorsYayang Guan, Rubing Shi
Life of this patent
Estimating the term…
Abstract
Methods, systems, and apparatus, including computer programs encoded on computer storage media, for registering subscribable states in blockchain are provided. One of the methods includes: obtaining a request for registering a workflow comprising one or more states; generating a blockchain contract comprising the workflow; and deploying the blockchain contract in a blockchain, wherein the deployed blockchain contract is executable to update a current state of the workflow among the one or more states.
Claims20
A computer-implemented method for registering subscribable states in blockchain, comprising:
- obtaining a request for registering a workflow comprising one or more states;
- generating a blockchain contract comprising the workflow;
- deploying the blockchain contract in a blockchain, wherein the deployed blockchain contract is executable to update a current state of the workflow among the one or more states;
- establishing an association between a subscriber and one of the one or more states for subscription to notification of the one state;
- obtaining information in one or more blocks of the blockchain to determine the current state;
- updating a locally-maintained state machine based on the determined current state, wherein:
- the locally-maintained state machine comprises one or more local states respectively mapped to the one or more states of the workflow registered in the blockchain,
- the one or more local states are configured in a cyclic trigger flow, and
- the cyclic trigger flow starts with a starting local state of the one or more local states, passes through each of the one or more local states once in one direction till an ending local state, and returns to the starting local state;
- determining that the updated state machine corresponds to the one state;
- and
- transmitting a notification message to the subscriber to the one state.
A system for registering subscribable states in blockchain, the system comprising one or more processors and one or more non-transitory computer-readable memories coupled to the one or more processors and configured with instructions executable by the one or more processors to cause the system to perform operations comprising:
- obtaining a request for registering a workflow comprising one or more states;
- generating a blockchain contract comprising the workflow;
- deploying the blockchain contract in a blockchain, wherein the deployed blockchain contract is executable to update a current state of the workflow among the one or more states;
- establishing an association between a subscriber and one of the one or more states for subscription to notification of the one state;
- obtaining information in one or more blocks of the blockchain to determine the current state;
- updating a locally-maintained state machine based on the determined current state, wherein:
- the locally-maintained state machine comprises one or more local states respectively mapped to the one or more states of the workflow registered in the blockchain,
- the one or more local states are configured in a cyclic trigger flow, and
- the cyclic trigger flow starts with a starting local state of the one or more local states, passes through each of the one or more local states once in one direction till an ending local state, and returns to the starting local state;
- determining that the updated state machine corresponds to the one state;
- and
- transmitting a notification message to the subscriber to the one state.
A non-transitory computer-readable storage medium for registering subscribable states in blockchain, the storage medium configured with instructions executable by one or more processors to cause the one or more processors to perform operations comprising:
- obtaining a request for registering a workflow comprising one or more states;
- generating a blockchain contract comprising the workflow;
- deploying the blockchain contract in a blockchain, wherein the deployed blockchain contract is executable to update a current state of the workflow among the one or more states;
- establishing an association between a subscriber and one of the one or more states for subscription to notification of the one state;
- obtaining information in one or more blocks of the blockchain to determine the current state;
- updating a locally-maintained state machine based on the determined current state, wherein:
- the locally-maintained state machine comprises one or more local states respectively mapped to the one or more states of the workflow registered in the blockchain,
- the one or more local states are configured in a cyclic trigger flow, and
- the cyclic trigger flow starts with a starting local state of the one or more local states, passes through each of the one or more local states once in one direction till an ending local state, and returns to the starting local state;
- determining that the updated state machine corresponds to the one state;
- and
- transmitting a notification message to the subscriber to the one state.
Dependencies are inferred from the claim text.