IP Library Granted Patent US 10,785,233
Granted Patent B2
US 10,785,233 · App. 16/859,707 · Granted Sep 22, 2020

System and method for registering subscribable states in blockchain

Inventors: Yayang Guan (Hangzhou, CN); Rubing Shi (Hangzhou, CN)
Assignee: Alibaba Group Holding Limited
H04L63/123G06Q20/389H04L9/3239H04L2209/38
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,785,233
App. No.
16/859,707
Granted
Sep 22, 2020
Kind
B2
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.

Claims (70)

1. A computer-implemented method, comprising:

obtaining, by one or more servers, a request for registering a workflow comprising one or more states;

generating, by the one or more servers, a blockchain contract comprising the workflow;

deploying, by the one or more servers, 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, wherein the one or more servers maintain a state machine off the blockchain, and the state machine comprises one or more local states respectively mapped to the one or more states of the workflow registered in the blockchain;

establishing, by the one or more servers, an association between one of the one or more states, one of the one or more local states that is mapped to the one state, and a subscriber for subscription to notification of the one state.

2. The method of claim 1 , further comprising:

determining the current state by obtaining information in one or more blocks of the blockchain;

updating the state machine based on the determined current state;

determining that the updated state machine corresponds to the one local state; and

transmitting a notification to the subscriber.

3. The method of claim 1 , wherein:

the one or more local states are configured in a cycle; and

the cycle 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.

4. The method of claim 3 , wherein:

the one or more states are configured in a different cycle; and

the different cycle starts with a starting state of the one or more states, passes through each of the one or more states once in one direction till an ending state, and returns to the starting state.

5. The method of claim 4 , wherein:

each of the one or more states is triggered by completion of a preceding state in the different cycle; and

the starting local state is mapped to the starting state.

6. The method of claim 4 , further comprising:

executing the blockchain contract to initiate the current state to be the starting state.

7. The method of claim 4 , further comprising:

obtaining a request for deactivating the one state; and

in response to the request for deactivating the one state, shortcutting the one local state from the cycle, and storing to the blockchain a blockchain transaction for shortcutting the one state from the different cycle.

8. The method of claim 7 , further comprising:

obtaining a request for reactivating the one state; and

in response to the request for reactivating the one state, restoring the one local state in the cycle, and storing to the blockchain a blockchain transaction for restoring the one state in the different cycle.

9. The method of claim 1 , wherein:

the one state is configurable by the subscriber to comprise one or more sub-states; and

the method further comprises: establishing a different association between the one state, the subscriber, and the one or more sub-states.

10. The method of claim 9 , wherein:

the one or more sub-states form a cycle;

the one or more states are public to all subscribers to the one or more states; and

the one or more sub-states are private to the subscriber.

11. The method of claim 1 , wherein:

the notification comprises a message indicating the one state that is current and a result returned from completion of a preceding state of the one state.

12. The method of claim 1 , wherein:

obtaining the request for registering a workflow comprises obtaining a request for registering a state group comprising the one or more states corresponding to the workflow.

13. The method of claim 12 , further comprising:

obtaining a request for ceasing notification of the state group; and

in response to the request for ceasing notification of the state group, ceasing notification of the state group to all subscribers subscribing to any of the one or more states.

14. The method of claim 13 , further comprising:

obtaining a request for resuming notification of the state group; and

in response to the request for resuming notification of the state group, resuming notification of the state group to the all subscribers.

15. A system comprising one or more processors and one or more non-transitory computer-readable memories coupled to the one or more processors, the one or more non-transitory computer-readable memories configured with instructions executable by the one or more processors to cause the system to perform operations comprising:

obtaining, by one or more servers, a request for registering a workflow comprising one or more states;

generating, by the one or more servers, a blockchain contract comprising the workflow;

deploying, by the one or more servers, 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, wherein the one or more servers maintain a state machine off the blockchain, and the state machine comprises one or more local states respectively mapped to the one or more states of the workflow registered in the blockchain;

establishing, by the one or more servers, an association between one of the one or more states, one of the one or more local states that is mapped to the one state, and a subscriber for subscription to notification of the one state.

16. The system of claim 15 , wherein the operations further comprise:

determining the current state by obtaining information in one or more blocks of the blockchain;

updating the state machine based on the determined current state;

determining that the updated state machine corresponds to the one state; and

transmitting a notification to the subscriber.

17. The system of claim 16 , wherein:

the one or more local states are configured in a cycle; and

the cycle 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.

18. A non-transitory computer-readable storage medium configured with instructions executable by one or more processors to cause the one or more processors to perform operations comprising:

obtaining, by one or more servers, a request for registering a workflow comprising one or more states;

generating, by the one or more servers, a blockchain contract comprising the workflow;

deploying, by the one or more servers, 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, wherein the one or more servers maintain a state machine off the blockchain, and the state machine comprises one or more local states respectively mapped to the one or more states of the workflow registered in the blockchain;

establishing, by the one or more servers, an association between one of the one or more states, one of the one or more local states that is mapped to the one state, and a subscriber for subscription to notification of the one state.

19. The storage medium of claim 18 , wherein the operations further comprise:

determining the current state by obtaining information in one or more blocks of the blockchain;

updating the state machine based on the determined current state;

determining that the updated state machine corresponds to the one state; and

transmitting a notification to the subscriber.

20. The storage medium of claim 18 , wherein:

the one or more local states are configured in a cycle; and

the cycle 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.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 16, 2020
From: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053796/0281 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 3, 2020
From: ALIBABA GROUP HOLDING LIMITED
To: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053702/0392 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 27, 2020
From: GUAN, YAYANG; SHI, RUBING
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 052505/0451 →