IP Library Granted Patent US 11,704,139
Granted Patent B2
US 11,704,139 · App. 17/907,785 · Granted Jul 18, 2023

Service processing method and apparatus, electronic device, and storage medium

Inventors: Dongdong Yan (Jiangsu, CN); Lanhai Zuo (Jiangsu, CN); Yi Liu (Jiangsu, CN)
Assignee: INSPUR SUZHOU INTELLIGENT TECHNOLOGY CO., LTD.
G06F9/451G06F9/485G06F9/54G06F2209/545
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 11,704,139
App. No.
17/907,785
Filed
Aug 29, 2022
Granted
Jul 18, 2023
Kind
B2
Examiner
SUN, CHARLIE
Art Unit
2196
USPC
718/106
Abstract

Disclosed are a service processing method and apparatus, an electronic device, and a computer-readable storage medium. The method includes: when receiving a User Interface (UI) request, creating a process instance corresponding to the UI request, and storing instance information of the process instance in a storage module (S 101 ); determining a target process instance from the storage module, and determining a step to be executed of the target process instance based on target instance information of the target process instance (S 102 ); searching, from a register, and executing a target method corresponding to the step to be executed, wherein the register includes all methods compiled according to a preset development specification (S 103 ).

Claims (60)

1. A service processing method, comprising:

when receiving a UI request, creating a process instance corresponding to the UI request, and storing instance information of the process instance in a storage module;

determining a target process instance from the storage module, and determining a step to be executed of the target process instance based on target instance information of the target process instance;

searching, from a register, and executing a target method corresponding to the step to be executed, wherein the register comprises all methods compiled according to a preset development specification.

2. The service processing method according to claim 1 , wherein after the creating a process instance corresponding to the UI request, the method further comprises:

setting an execution state of the process instance to a ready state;

correspondingly, the determining a target process instance from the storage module comprises:

determining the target process instance according to the execution state of the process instance in the storage module.

3. The service processing method according to claim 2 , wherein the instance information comprises execution time; and the determining the target process instance according to the execution state of the process instance in the storage module comprises:

determining a process instance whose execution state is the ready state and whose corresponding execution time is reached in the storage module as the target process instance.

4. The service processing method according to claim 2 , wherein after the searching, from a register, and executing a target method corresponding to the step to be executed, the method further comprises:

in response to determining that the target method is not a last step of the target process instance, updating the target instance information based on a next step of the target method, and restoring the target instance information in the storage module.

5. The service processing method according to claim 4 , further comprising:

in response to determining that the target method is the last step of the target process instance and determining that the target method is executed successfully, setting an execution state of the target process instance to a completed state; and

in response to determining that the target method is the last step of the target process instance and determining that the target method is not executed successfully, setting the execution state of the target process instance to an error state.

6. The service processing method according to claim 2 , wherein the searching, from a register, and executing a target method corresponding to the step to be executed comprises:

searching, from the register, the target method corresponding to the step to be executed, setting an execution state of the target process instance to an executing state, and executing the target method; and

during the execution of the target method, in response to a need of calling another method asynchronously, setting the execution state of the target process instance to a waiting state.

7. The service processing method according to claim 6 , further comprising:

during the execution of the target method, in response to receiving an interrupt signal, setting the execution state of the target process instance to the ready state, and restoring the target instance information in the storage module.

8. An electronic device, comprising:

a memory, configured to store a computer program; and

a processor, configured to execute the computer program to implement operations comprising:

when receiving a UI request, creating a process instance corresponding to the UI request, and storing instance information of the process instance in a storage module;

determining a target process instance from the storage module, and determining a step to be executed of the target process instance based on target instance information of the target process instance;

searching, from a register, and executing a target method corresponding to the step to be executed, wherein the register comprises all methods compiled according to a preset development specification.

9. The electronic device according to claim 8 , wherein after the creating a process instance corresponding to the UI request, the operations further comprise:

setting an execution state of the process instance to a ready state;

correspondingly, the determining a target process instance from the storage module comprises:

determining the target process instance according to the execution state of the process instance in the storage module.

10. The electronic device according to claim 9 , wherein the instance information comprises execution time; and the determining the target process instance according to the execution state of the process instance in the storage module comprises:

determining a process instance whose execution state is the ready state and whose corresponding execution time is reached in the storage module as the target process instance.

11. The electronic device according to claim 9 , wherein after the searching, from a register, and executing a target method corresponding to the step to be executed, the operations further comprise:

in response to determining that the target method is not a last step of the target process instance, updating the target instance information based on a next step of the target method, and restoring the target instance information in the storage module.

12. The electronic device according to claim 11 , wherein the operations further comprise:

in response to determining that the target method is the last step of the target process instance and determining that the target method is executed successfully, setting an execution state of the target process instance to a completed state; and

in response to determining that the target method is the last step of the target process instance and determining that the target method is not executed successfully, setting the execution state of the target process instance to an error state.

13. The electronic device according to claim 9 , wherein the searching, from a register, and executing a target method corresponding to the step to be executed comprises:

searching, from the register, the target method corresponding to the step to be executed, setting an execution state of the target process instance to an executing state, and executing the target method; and

during the execution of the target method, in response to a need of calling another method asynchronously, setting the execution state of the target process instance to a waiting state.

14. The electronic device according to claim 9 , wherein the operations further comprise:

during the execution of the target method, in response to receiving an interrupt signal, setting the execution state of the target process instance to the ready state, and restoring the target instance information in the storage module.

15. A non-transitory computer-readable storage medium, having a computer program stored thereon which, when executed by a processor, causes the processor to implement operations comprising:

when receiving a UI request, creating a process instance corresponding to the UI request, and storing instance information of the process instance in a storage module;

determining a target process instance from the storage module, and determining a step to be executed of the target process instance based on target instance information of the target process instance;

searching, from a register, and executing a target method corresponding to the step to be executed, wherein the register comprises all methods compiled according to a preset development specification.

16. The non-transitory computer-readable storage medium according to claim 15 , wherein after the creating a process instance corresponding to the UI request, the operations further comprise:

setting an execution state of the process instance to a ready state;

correspondingly, the determining a target process instance from the storage module comprises:

determining the target process instance according to the execution state of the process instance in the storage module.

17. The non-transitory computer-readable storage medium according to claim 16 , wherein the instance information comprises execution time; and the determining the target process instance according to the execution state of the process instance in the storage module comprises:

determining a process instance whose execution state is the ready state and whose corresponding execution time is reached in the storage module as the target process instance.

18. The non-transitory computer-readable storage medium according to claim 16 , wherein after the searching, from a register, and executing a target method corresponding to the step to be executed, the operations further comprise:

in response to determining that the target method is not a last step of the target process instance, updating the target instance information based on a next step of the target method, and restoring the target instance information in the storage module.

19. The non-transitory computer-readable storage medium according to claim 18 , wherein the operations further comprise:

in response to determining that the target method is the last step of the target process instance and determining that the target method is executed successfully, setting an execution state of the target process instance to a completed state; and

in response to determining that the target method is the last step of the target process instance and determining that the target method is not executed successfully, setting the execution state of the target process instance to an error state.

20. The non-transitory computer-readable storage medium according to claim 16 , wherein the searching, from a register, and executing a target method corresponding to the step to be executed comprises:

searching, from the register, the target method corresponding to the step to be executed, setting an execution state of the target process instance to an executing state, and executing the target method; and

during the execution of the target method, in response to a need of calling another method asynchronously, setting the execution state of the target process instance to a waiting state.

Assignments (2)
LICENSE Recorded Jun 30, 2026
From: IEIT SYSTEMS CO., LTD
To: AIVRES SYSTEMS INC.
Reel/Frame 075857/0939 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 29, 2022
From: YAN, DONGDONG; ZUO, LANHAI; LIU, YI
To: INSPUR SUZHOU INTELLIGENT TECHNOLOGY CO., LTD.
Reel/Frame 060924/0529 →
Priority Claims (1)
CN 202010132411.1 · Feb 29, 2020 · national
Continuity (1)
Related Publication 20230126437A1 · Apr 27, 2023