Unlock instant, AI-driven research and patent intelligence for your innovation.

State machine persistence method and state machine persistence system

A state machine and persistence technology, applied in the computer field, can solve the problems of lost state, inability to guarantee data security, increase business complexity, etc., to simplify the persistence process and improve stability.

Active Publication Date: 2020-05-12
BEIKE TECH CO LTD
View PDF17 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This prior art has the following shortcomings and deficiencies: 1. For the persistent mode of stand-alone memory, the state will be lost after restarting the computer; 100% safe; 3. For the persistence method of the database, although it will not cause data loss, it will increase the complexity of the business because of the need to store the state data irrelevant to the business separately

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • State machine persistence method and state machine persistence system
  • State machine persistence method and state machine persistence system
  • State machine persistence method and state machine persistence system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] Specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to illustrate and explain the present invention, and are not intended to limit the present invention.

[0027] figure 1 It is a flowchart of a state machine persistence method provided by an embodiment of the present invention. Such as figure 1 As shown, the state machine persistence method may include step S101-step S103.

[0028] Step S101 , in response to a service flow request of a specific service, initialize a state machine for the service flow.

[0029] After the step of initializing the state machine, process information for the specific service including the service flow may be acquired. Wherein, the specific service may be an order service. Taking decoration as an example, the order business may include: order generation, reservation, plan upload, c...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the field of computers, and discloses a state machine persistence method and a state machine persistence system. The persistence method comprises the following steps: in response to a service circulation request of a specific service, executing initialization on a state machine for service circulation so as to obtain flow information which comprises the service circulationand aims at the specific service; determining and setting the current state of the state machine based on the service data corresponding to the initial state of the service flow; and based on the process information for the specific service, selecting the service flow taking the current state of the state machine as an initial state, and executing the action of the selected service flow. According to the invention, the state machine data irrelevant to the service does not need to be independently stored, so that the persistence process of the state machine is simplified, and the stability ofthe system is greatly improved.

Description

technical field [0001] The invention relates to the field of computers, in particular to a state machine persistence method and a state machine persistence system. Background technique [0002] In a multi-state business system, for example, there are states such as order generation, cancellation, and contract termination in the entire life cycle of the order system. For such a system with many states and frequent changes in business flow, how to manage state flow in a unified manner becomes crucial. To this end, a state machine engine (for example, Spring state machine engine) can be introduced, but when the user modifies the order state, the newly created state machine instance is always in the initial state, which is obviously inconsistent with the current state of the order system. In order to overcome this defect, the state machine instance needs to be saved (that is, the state machine instance is persisted). After the state machine instance is created, the current stat...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/448
CPCG06F9/4493G06F9/4498
Inventor θ–›θ€€δΌŸ
Owner BEIKE TECH CO LTD