Business state conversion method and related device

By introducing a state transition server in the business system and uniformly managing business state transitions, the repeated development problems caused by the independent development of state transition functions of each business system in the prior art are solved, and a more efficient development process and reduced costs are achieved.

CN114518915BActive Publication Date: 2025-04-25SPREADTRUM SEMICON(CHENGDU) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210140098.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-15
Publication Date
2025-04-25
Estimated Expiration
2042-02-15

AI Technical Summary

Technical Problem

In the prior art, each business system needs to independently develop business state transition functions, resulting in repeated development, increased development costs and wasted time.

Method used

Provide a business state conversion method and device to uniformly manage business state conversion through a state conversion server to avoid repeated development. The method includes obtaining the state transition command of the service server, determining the condition information of the current service status based on the state transition command and the pre-generated state condition table, updating the condition dictionary table, and jumping to the target sub-service status based on the condition information and the dictionary table.

Benefits of technology

A unified state transition method between business systems is realized, which avoids duplicate development, reduces development costs, and improves development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114518915B_ABST
    Figure CN114518915B_ABST
Patent Text Reader

Abstract

The present application provides a business state conversion method and related devices, which are applied to a business state conversion server, and the method includes: obtaining a state conversion command from the business server, the state conversion command is used to indicate the target sub-business state; determining the current condition information of the current business state according to the state conversion command and a pre-generated state condition table; updating the pre-generated condition dictionary table according to the state conversion command to obtain a target condition dictionary table; jumping the current business state to the target sub-business state according to the current condition information and the target condition dictionary table. In this way, when performing a state conversion, the business system can determine the various parameter information required in the state conversion process by calling the state conversion server, and then realize the jump of the business state, so that the state conversion component can adapt to various business systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular to a service state conversion method and related devices. Background Art

[0002] When developing business systems, it is necessary to develop a function that can realize business state conversion for each business system independently. Since each business system realizes the state conversion in the business separately, it will cause repeated development, which will not only increase the system development cost, but also waste time. Summary of the invention

[0003] The embodiments of the present application provide a business state conversion method and related devices, in order to provide a unified method for each business system to implement business state conversion, avoid repeated development, and reduce development costs.

[0004] In a first aspect, an embodiment of the present application provides a service state conversion method, which is applied to a state conversion server in a service system, wherein the service system includes a service server and the state conversion server, and the method includes:

[0005] Obtaining a state transition command from the business server, the state transition command being used to indicate a target sub-business state, the target sub-business state being a sub-business state in at least one sub-business state corresponding to a current business state, and a correspondence between the current business state and the at least one sub-business state being determined according to a pre-generated state relationship table;

[0006] Determine the current condition information of the current service state according to the state transition command and a pre-generated state condition table, wherein the state condition table is used to indicate the condition for the current service state to jump to its corresponding sub-service state, and each state condition table corresponds to a service state;

[0007] Update a pre-generated condition dictionary table according to the state conversion command to obtain a target condition dictionary table, wherein the condition dictionary table is used to indicate remark information corresponding to condition information, and each condition dictionary table corresponds to at least one condition information;

[0008] The current service state is jumped to the target sub-service state according to the current condition information and the target condition dictionary table.

[0009] In a second aspect, an embodiment of the present application provides a service state conversion method, which is applied to a service server in a service system, wherein the service system includes the service server and a state conversion server, and the method includes:

[0010] A state transition command is sent to the state transition server, wherein the state transition command is used to indicate a target sub-business state, wherein the target sub-business state is a sub-business state in at least one sub-business state corresponding to the current business state, and the correspondence between the current business state and the at least one sub-business state is determined according to the pre-generated state relationship table. The state transition command is used to indicate current condition information and a target condition dictionary table of the current business state, wherein the current condition information is associated with the pre-generated state condition table, and the target condition dictionary table is associated with the pre-generated condition dictionary table. The current condition information and the target condition dictionary table are used to indicate that the current business state jumps to the target sub-business state.

[0011] In a third aspect, an embodiment of the present application provides a business state conversion device, which is applied to a state conversion server in a business system, wherein the business system includes a business server and the state conversion server, and the device includes: an acquisition unit, used to obtain a state conversion command from the business server, wherein the state conversion command is used to indicate a target sub-business state, wherein the target sub-business state is a sub-business state in at least one sub-business state corresponding to the current business state, and the correspondence between the current business state and the at least one sub-business state is determined according to a pre-generated state relationship table; a determination unit, used to determine the current condition information of the current business state according to the state conversion command and a pre-generated state condition table, wherein the state condition table is used to indicate the condition for the current business state to jump to its corresponding sub-business state, and each of the state condition tables corresponds to a business state; a generation unit, used to update a pre-generated condition dictionary table according to the state conversion command to obtain a target condition dictionary table, wherein the condition dictionary table is used to indicate the remark information corresponding to the condition information, and each of the condition dictionary tables corresponds to at least one of the condition information; a jump unit, used to jump the current business state to the target sub-business state according to the current condition information and the target condition dictionary table.

[0012] In a fourth aspect, an embodiment of the present application provides a business state conversion device, which is applied to a business server in a business system, wherein the business system includes the business server and a state conversion server, and the device includes: a sending unit, which is used to send a state conversion command to the state conversion server, wherein the state conversion command is used to indicate a target sub-business state, wherein the target sub-business state is a sub-business state in at least one sub-business state corresponding to the current business state, and the correspondence between the current business state and the at least one sub-business state is determined according to the pre-generated state relationship table, wherein the state conversion command is used to indicate current condition information and a target condition dictionary table of the current business state, wherein the current condition information is associated with a pre-generated state condition table, and the target condition dictionary table is associated with a pre-generated condition dictionary table, and the current condition information and the target condition dictionary table are used to indicate that the current business state jumps to the target sub-business state.

[0013] In the fifth aspect, an embodiment of the present application provides a state transition server, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps of any method in the first aspect of the embodiment of the present application.

[0014] In the sixth aspect, an embodiment of the present application provides a business server, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in any method of the second aspect of the embodiment of the present application.

[0015] In the seventh aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in any method of the first aspect or the second aspect of the embodiment of the present application.

[0016] In an eighth aspect, an embodiment of the present application provides a computer program, wherein the computer program is operable to cause a computer to execute some or all of the steps described in any method of the first aspect or the second aspect of the embodiment of the present application. The computer program can be a software installation package.

[0017] It can be seen that in the embodiment of the present application, the state transition server first obtains a state transition command from the business server, the state transition command is used to indicate the target sub-business state, and then determines the current condition information of the current business state according to the state transition command and the pre-generated state condition table, and then updates the pre-generated condition dictionary table according to the state transition command to obtain the target condition dictionary table, and finally jumps the current business state to the target sub-business state according to the current condition information and the target condition dictionary table. In this way, when performing a state transition, the business system can determine the various parameter information required in the state transition process by calling the state transition server, and then realize the jump of the business state. And the business system interacts with the state transition server only through the pre-configured tables, which ensures good isolation between the business system and the state transition server, so that the state transition component can adapt to various business systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1a is a schematic diagram of a business system provided by an embodiment of the present application;

[0020] Figure 1b It is a structural diagram of a state transition server provided in an embodiment of the present application;

[0021] Figure 1c It is a structural diagram of a business server provided in an embodiment of the present application;

[0022] Figure 2a It is a flowchart of a service state conversion method provided by an embodiment of the present application;

[0023] Figure 2b This is a schematic diagram of a business status conversion interface provided by an embodiment of the present application;

[0024] Figure 2c This is another schematic diagram of a service state conversion interface provided in an embodiment of the present application;

[0025] Figure 3 This is a block diagram of the functional units of a service status conversion device provided in an embodiment of the present application;

[0026] Figure 4This is a block diagram of the functional units of another service status conversion device provided in an embodiment of the present application;

[0027] Figure 5 This is a block diagram of the functional units of another service status conversion device provided in an embodiment of the present application;

[0028] Figure 6 This is a block diagram of the functional units of another service status conversion device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0030] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0031] Reference to "embodiment" herein means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments. In the embodiments of the present application, the terms "system" and "network" are often used interchangeably, but those skilled in the art can understand their meanings.

[0032] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0033] Since the current implementation of state transition in the business is that each business system implements the state transition development in the business separately, it will cause duplicate development, which will not only increase the system development cost but also waste time.

[0034] In view of the above problems, an embodiment of the present application provides a service state conversion method and related devices. The technical solution in the embodiment of the present application will be described below in conjunction with the accompanying drawings.

[0035] See also Figure 1a , Figure 1a 1 is a schematic diagram of a business system provided by an embodiment of the present application. As shown in the figure, the business system 10 includes a state conversion server 101 and a business server 102. When performing a state conversion, after receiving a state conversion command, the business server 102 can directly call the state conversion server 101 to perform corresponding operations during the business state conversion.

[0036] The structural diagram of the state transition server 101 is as follows Figure 1b As shown, the state transition server 101 includes a processor 210, a memory 220, a communication interface 230, and one or more programs 221. The one or more programs 221 are stored in the memory 220 and are configured to be executed by the processor 210. The program 221 includes a program for executing the operations performed by the state transition server in the method described in the method embodiment of the present application.

[0037] The structural diagram of the business server 102 is as follows Figure 1c As shown, the business server 102 includes a processor 310, a memory 320, a communication interface 330, and one or more programs 321. The one or more programs 321 are stored in the memory 320 and are configured to be executed by the processor 310. The program 321 includes operations performed by the business server in the method described in the method embodiment of the present application.

[0038] See also Figure 2a , Figure 2a 1 is a flow chart of a business state conversion method provided by an embodiment of the present application. As shown in the figure, the present solution is applied to a state conversion server in a business system, the business system includes a business server and the state conversion server, and the method includes:

[0039] S201, obtaining a state conversion command from the service server, where the state conversion command is used to indicate a target sub-service state.

[0040] The target sub-service state is a sub-service state in at least one sub-service state corresponding to the current service state, and the corresponding relationship between the current service state and the at least one sub-service state is determined according to a pre-generated state relationship table. The state relationship table includes the sub-service state corresponding to each service state, for example Figure 2bWhen the current business status is "opened", its corresponding sub-business status includes sub-business statuses such as "new", "resolved", and "pending". It should be noted that one business status can correspond to at least one sub-business status, but if it is determined according to the status relationship table that the current business status has no sub-business status, then there is no need to jump the business status at this time. And multiple business statuses can correspond to the same sub-business status, that is, multiple sub-statuses corresponding to multiple statuses can be completely the same or partially the same. For example, the sub-business status corresponding to business status A is business status A, B, C, D, and E. The sub-business status corresponding to business status B can be B, C, D, and E. The sub-business status corresponding to business status C can be E, and the sub-business status corresponding to business status D can also be E.

[0041] S202: Determine current condition information of the current service state according to the state transition command and a pre-generated state condition table.

[0042] The state condition table is used to indicate the conditions for the current business state to jump to its corresponding sub-business state, and each state condition table corresponds to a business state. The state condition table includes the condition information included in the current business state. There can be multiple condition contents for the same condition name at the same time. The condition content under the condition name can be determined according to the state transition command to obtain the current condition information. That is, when the user jumps the business state, he can directly select the condition content corresponding to the condition name on the jump interface. After the selection is completed, the content displayed on the interface is the current condition information. For example Figure 2c As shown in area 1 in the figure, the corresponding condition name in area 1 is obtained according to the state condition table in the "opened" state and the condition content corresponding to each condition name selected by the user. For example, when the condition name is "priority", the condition content corresponding to the condition name selected by the user is "normal". In the state condition table, the condition content corresponding to the condition name can also include "urgent", "relaxed" and other condition contents for the user to select.

[0043] S203: Update a pre-generated condition dictionary table according to the state transition command to obtain a target condition dictionary table.

[0044] Among them, the condition dictionary table is used to indicate the remark information corresponding to the condition information, and each condition dictionary table corresponds to at least one condition information. When the user performs a business state transition, the dictionary name can be displayed on the jump interface according to the content of the condition dictionary table, and then the dictionary content filled in by the user is updated in the condition dictionary table according to the state transition instruction to obtain the target condition dictionary table. That is, the condition dictionary table can only include the dictionary name, and the dictionary content corresponding to the dictionary name can be empty. The dictionary name can be the result of the condition. For example, if the condition name includes the start time and the completion time, the dictionary name can include the time spent.

[0045] S204: Jump the current service state to the target sub-service state according to the current condition information and the target condition dictionary table.

[0046] After receiving the state transition command from the user, the business server can directly call the state transition server to perform state transition. The state transition server can first determine the next business state to jump to according to the state transition command, and then perform business state jump according to the determined current condition information and the target condition dictionary table.

[0047] It can be seen that in this example, the state transition server first obtains the state transition command from the business server, the state transition command is used to indicate the target sub-business state, and then determines the current condition information of the current business state according to the state transition command and the pre-generated state condition table, and then updates the pre-generated condition dictionary table according to the state transition command to obtain the target condition dictionary table, and finally jumps the current business state to the target sub-business state according to the current condition information and the target condition dictionary table. In this way, when performing a state transition, the business system can determine the various parameter information required in the state transition process by calling the state transition server, and then realize the jump of the business state. And the business system only interacts with the state transition server through pre-configured tables, which ensures good isolation between the business system and the state transition server, so that the state transition component can adapt to various business systems.

[0048] In a possible instance, before obtaining the state transition command from the business server, the method further includes: providing a configuration file template to the business server; obtaining a target configuration file from the business server, wherein the target configuration file is generated according to the configuration file template; parsing the target configuration file to obtain a state table and a state relationship table; generating the state condition table corresponding to the business state according to the target configuration file and the state table; and generating the condition dictionary table according to the target configuration file and the state condition table.

[0049] Among them, the business system can introduce a state transition server in the project that needs to implement business state jump, and then obtain the configuration file template provided by the state transition server. Then the developer can fill in the content in the configuration file template according to the corresponding format to obtain the target configuration file. The configuration file template includes template text for state name, state relationship, state condition and condition dictionary. The user can directly modify the template file or copy and paste the template file to add content. For example, the template text for state name and state relationship is:

[0050] “<status name="xxxx"value="x">

[0051] <childrenstaus>

[0052] <child name="xxxxx" / > ”,

[0053] When filling in the configuration file, the developer can directly fill in the business status name and its corresponding sub-business status name in the "xxxx" part. If the business status corresponds to multiple sub-business statuses, the developer can also copy and paste the template text corresponding to the sub-business status name to obtain the following template configuration file:

[0054]

[0055] After the state conversion server parses the target configuration file, it can obtain the corresponding state table and state relationship table. If a state includes conditional information, it can also obtain the state condition table corresponding to the state and the condition dictionary table. For example, according to the above target configuration file, it can be known that the business state names included in the state table are "New", "Opened" and "Resolved", and the state relationship included in the state relationship table is: the sub-business states corresponding to the business state "New" include "Opened" and "Resolved". If the business state "New" also corresponds to conditional information, a state condition table for the business state "New" and a condition dictionary table corresponding to the condition name in the state condition table will also be generated.

[0056] It can be seen that in this example, developers only need to fill in the content according to the configuration file template to obtain various forms for subsequent business state conversion, so that the business server interacts with the state conversion server only through the template configuration file, ensuring good isolation between the business server and the state conversion server. It is not only simple to operate, but also applicable to different business scenarios.

[0057] In a possible instance, generating the status condition table corresponding to the business status according to the target configuration file and the status table includes: determining the condition configuration information included in the target configuration file, the condition configuration information including a condition name and a condition content; determining the target business status corresponding to the condition configuration information according to the status table; and generating a status condition table for each target business status according to the condition configuration information.

[0058] Among them, developers can fill in the condition name and condition content corresponding to the business status in the corresponding position according to the configuration file template. For example, if the condition name is "priority", the corresponding condition content is "urgent", "normal" and "relaxed". Before the user jumps the current business status to its corresponding sub-business status, he needs to first determine the current condition information corresponding to the jump at this time according to the state condition table corresponding to the current business status. It should be noted that if a business status does not have corresponding condition information, the state condition table corresponding to the business status will not be generated. At this time, the business server can jump directly according to the business conversion command.

[0059] It can be seen that in this example, the corresponding state condition table is generated for the business state according to the user configuration information, so that the state conversion server can directly perform business state conversion through the information in the state condition table, thereby reducing user development costs.

[0060] In a possible instance, generating a state condition table for each target business state based on the condition configuration information includes: determining multiple target sub-business states of the target business state based on the state table and the state relationship table; determining the condition configuration information corresponding to the target business state when jumping from the target business state to each of the multiple target sub-business states; and generating a state condition table corresponding to the target business state when jumping from the target business state to each target sub-business state based on the condition configuration information corresponding to the target business state.

[0061] Among them, since a business state can correspond to multiple sub-business states, the corresponding condition information when a business state jumps to different sub-business states can be different. Therefore, when generating the state condition table, the corresponding state condition table can also be generated according to different jump states. Of course, if there is the same condition information for jumping from a business state to multiple sub-business states, a state condition table can also be shared. For example, if the sub-business states corresponding to business state A are B, C and D, a first state condition table for jumping from business state A to sub-business state B and a second state condition table for jumping from business state A to sub-business state B can be generated according to the configuration information. If the condition information corresponding to jumping from business state A to sub-business state B and jumping from business state A to sub-business state D is the same, the state condition table corresponding to jumping from business state A to sub-business state D is also the first state condition table. In particular, the template text about the condition information in the configuration file template includes the condition name and the jump sub-business state to which the condition content applies, that is, when the user fills in the configuration file, it will be noted that the condition information corresponds to which sub-business state the business state jumps to.

[0062] It can be seen that in this example, corresponding state condition tables are generated according to different hop sub-service states, so that the same service state can correspond to multiple state condition tables, which can increase the complexity of applicable scenarios when the service state is converted and improve the user experience.

[0063] In a possible instance, generating the condition dictionary table according to the target configuration file and the status condition table includes: obtaining a dictionary name included in the target configuration file; determining a target condition name corresponding to the dictionary name according to the status condition table; and generating a condition dictionary table for the target condition name according to the dictionary name.

[0064] Among them, a condition dictionary table can correspond to multiple condition names, that is, in the jump interface, if a condition name appears, the dictionary name corresponding to the condition name will be determined according to the condition dictionary table at the same time, and one condition name can correspond to multiple dictionary names. In particular, the dictionary name can only appear when multiple condition names appear at the same time. For example, in the jump interface, if the two condition names "start time" and "submission time" exist at the same time, the dictionary name "time spent" will appear in the jump interface, and if only one of the condition names appears, the dictionary name will not appear. In other words, when a dictionary name corresponds to multiple condition names, it is necessary to determine the default condition name corresponding to the dictionary name according to the content in the target configuration file. When generating the condition dictionary table, the default condition name can be annotated in the position corresponding to the dictionary name. When calling the condition dictionary table, the state transition server determines the final dictionary name according to the condition name corresponding to the current business state, so that the target condition dictionary table can be obtained according to the state transition command later.

[0065] It can be seen that in this example, a corresponding condition dictionary table is generated for each condition name, so that the state transition server can directly perform business state transition through the information in the condition dictionary table, thereby reducing user development costs.

[0066] In a possible instance, generating a condition dictionary table for the target condition name based on the dictionary name includes: generating an initial condition dictionary table for the target condition name based on the dictionary name; determining whether there is dictionary content in the target configuration file, the dictionary content corresponding to the target dictionary name; if so, adding the dictionary content corresponding to the target dictionary name at the corresponding position of the target dictionary name in the initial condition dictionary table to generate a final condition dictionary table.

[0067] The dictionary content in the condition dictionary table can be empty, that is, the condition dictionary table can only include the dictionary name. During the state conversion process, the user fills in the dictionary content corresponding to the dictionary name to obtain the target condition dictionary table. Of course, some predictable dictionary content can be written by the developer when filling in the configuration file. For example Figure 2c As shown in area 2, the corresponding content in area 2 is generated according to the conditional dictionary table. It can be seen that the dictionary content corresponding to the dictionary name "activity" in this area is filled in in advance by the developer, that is, the user can directly select it when jumping. If the content corresponding to other dictionary names is not filled in in advance, the user needs to fill in the content corresponding to the dictionary name.

[0068] It can be seen that in this example, the developer can fill in the corresponding dictionary content in advance to improve the user experience.

[0069] In a possible instance, the method further includes: obtaining a task creation command from the business server; determining an initial state, condition information corresponding to the initial state, and a condition dictionary table corresponding to the initial state based on the task creation command, the state table, the state relationship table, and the state condition table.

[0070] After the business server obtains the task creation command, it will call the built-in interface of the state conversion server, obtain the state table, state relationship table, state condition table and condition dictionary table after the state conversion server parses the target configuration file, and then determine the initial business state according to the task creation command, as well as the sub-business state, condition information and dictionary information corresponding to the initial business state. And get the created jump interface, the user can jump to other states later according to the interface.

[0071] It can be seen that in this example, the business system only needs one state configuration file to create a database state relationship table, and by calling the built-in interface to obtain state information, the state transition in the business can be realized, which reduces the development cost.

[0072] In a possible instance, the present application also provides another business state transition method, which is applied to a business server in a business system, wherein the business system includes the business server and a state transition server, and the method includes: sending a state transition command to the state transition server, wherein the state transition command is used to indicate a target sub-business state, wherein the target sub-business state is a sub-business state in at least one sub-business state corresponding to the current business state, and the correspondence between the current business state and the at least one sub-business state is determined according to the pre-generated state relationship table, wherein the state transition command is used to indicate current condition information and a target condition dictionary table of the current business state, wherein the current condition information is associated with a pre-generated state condition table, wherein the target condition dictionary table is associated with a pre-generated condition dictionary table, and wherein the current condition information and the target condition dictionary table are used to indicate that the current business state jumps to the target sub-business state.

[0073] The embodiment of the present application provides a service state conversion device, which is used to execute the steps executed by the state conversion server in the above service state conversion method. The service state conversion device provided by the embodiment of the present application may include units corresponding to the corresponding steps.

[0074] The embodiment of the present application can divide the functional modules of the service state conversion device according to the above method. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. The division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0075] In the case of dividing each functional module into corresponding functional modules, such as Figure 3 As shown, Figure 3 This is a functional unit composition block diagram of a service state conversion device provided by an embodiment of the present application. The service state conversion device 30 is applied to a state conversion server, and the device 30 includes: an acquisition unit 301, which is used to obtain a state conversion command from the service server, the state conversion command is used to indicate a target sub-service state, the target sub-service state is a sub-service state in at least one sub-service state corresponding to the current service state, and the correspondence between the current service state and the at least one sub-service state is determined according to a pre-generated state relationship table; a determination unit 302, which is used to determine the current condition information of the current service state according to the state conversion command and a pre-generated state condition table, the state condition table is used to indicate the condition for the current service state to jump to its corresponding sub-service state, and each state condition table corresponds to a service state; a generation unit 303, which is used to update a pre-generated condition dictionary table according to the state conversion command to obtain a target condition dictionary table, the condition dictionary table is used to indicate the remark information corresponding to the condition information, and each condition dictionary table corresponds to at least one condition information; a jump unit 304, which is used to jump the current service state to the target sub-service state according to the current condition information and the target condition dictionary table.

[0076] In a possible instance, before obtaining the state transition command from the business server, the device 30 is further used to: provide a configuration file template to the business server; obtain a target configuration file from the business server, the target configuration file being generated according to the configuration file template; parse the target configuration file to obtain a state table and a state relationship table; generate the state condition table corresponding to the business state according to the target configuration file and the state table; and generate the condition dictionary table according to the target configuration file and the state condition table.

[0077] In a possible instance, in terms of generating the status condition table corresponding to the business status according to the target configuration file and the status table, the device 30 is further used to: determine the condition configuration information included in the target configuration file, the condition configuration information including a condition name and a condition content; determine the target business status corresponding to the condition configuration information according to the status table; and generate a status condition table for each target business status according to the condition configuration information.

[0078] In a possible example, in terms of generating a state condition table for each target business state according to the condition configuration information, the device 30 is further used to: determine multiple target sub-business states of the target business state according to the state table and the state relationship table; determine the condition configuration information corresponding to the target business state when jumping from the target business state to each of the multiple target sub-business states; and generate a state condition table corresponding to the target business state when jumping from the target business state to each target sub-business state according to the condition configuration information corresponding to the target business state.

[0079] In a possible instance, in terms of generating the condition dictionary table according to the target configuration file and the status condition table, the device 30 is further used to: obtain a dictionary name included in the target configuration file; determine a target condition name corresponding to the dictionary name according to the status condition table; and generate a condition dictionary table for the target condition name according to the dictionary name.

[0080] In a possible instance, in terms of generating a condition dictionary table for the target condition name based on the dictionary name, the device 30 is further used to: generate an initial condition dictionary table for the target condition name based on the dictionary name; determine whether there is dictionary content in the target configuration file, and the dictionary content corresponds to the target dictionary name; if so, add the dictionary content corresponding to the target dictionary name to the corresponding position of the target dictionary name in the initial condition dictionary table to generate a final condition dictionary table.

[0081] In a possible instance, the device 30 is also used to: obtain a task creation command from the business server; determine the initial state, the condition information corresponding to the initial state, and the condition dictionary table corresponding to the initial state based on the task creation command, the state table, the state relationship table, and the state condition table.

[0082] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional unit, and will not be repeated here. Of course, the service state conversion device provided in the embodiment of the present application includes but is not limited to the above units, for example: the service state conversion device may also include a storage unit. The storage unit can be used to store the program code and data of the service state conversion device.

[0083] In the case of adopting an integrated unit, the structural diagram of the service state conversion device provided in the embodiment of the present application is as follows: Figure 4 As shown. Figure 4 In the embodiment, the service state conversion device 4 includes: a processing module 40 and a communication module 41. The processing module 40 is used to control and manage the actions of the service state conversion device, for example, the steps performed by the acquisition unit 301, the determination unit 302, the generation unit 303 and the jump unit 304, and / or other processes for performing the technology described herein. The communication module 41 is used to support the interaction between the service state conversion device and other devices. Figure 4 As shown, the service state conversion device may further include a storage module 42, and the storage module 42 is used to store program codes and data of the service state conversion device, such as storing the content stored in the above storage unit.

[0084] Among them, the processing module 40 can be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module 41 can be a transceiver, an RF circuit or a communication interface, and the like. The storage module 42 can be a memory.

[0085] Among them, all relevant contents of each scenario involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here. The above service state conversion device 30 and the service state conversion device 4 can both execute the above Figure 2a The steps performed by the state conversion server in the business state conversion method shown.

[0086] The embodiment of the present application provides a service state conversion device, which is used to execute the steps executed by the service switching server in the above service state conversion method. The service state conversion device provided by the embodiment of the present application may include units corresponding to the corresponding steps.

[0087] The embodiment of the present application can divide the functional modules of the service state conversion device according to the above method. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. The division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0088] In the case of dividing each functional module into corresponding functional modules, such as Figure 5 As shown, Figure 5 It is a functional unit composition block diagram of another service state conversion device provided by an embodiment of the present application. The service state conversion device 50 is applied to a service server, and the device 50 includes: a sending unit 501, which is used to send a state conversion command to the state conversion server, and the state conversion command is used to indicate a target sub-service state, and the target sub-service state is a sub-service state in at least one sub-service state corresponding to the current service state. The correspondence between the current service state and the at least one sub-service state is determined according to the pre-generated state relationship table, and the state conversion command is used to indicate the current condition information and the target condition dictionary table of the current service state, and the current condition information is associated with the pre-generated state condition table, and the target condition dictionary table is associated with the pre-generated condition dictionary table, and the current condition information and the target condition dictionary table are used to indicate that the current service state jumps to the target sub-service state.

[0089] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional unit, and will not be repeated here. Of course, the service state conversion device provided in the embodiment of the present application includes but is not limited to the above units, for example: the service state conversion device may also include a storage unit. The storage unit can be used to store the program code and data of the service state conversion device.

[0090] In the case of using an integrated unit, the structural diagram of the service state conversion device provided in the embodiment of the present application is as follows: Figure 6 As shown. Figure 6 In the embodiment, the service state conversion device 6 includes: a processing module 60 and a communication module 61. The processing module 60 is used to control and manage the actions of the service state conversion device, for example, the steps performed by the sending unit 501, and / or other processes for performing the technology described herein. The communication module 61 is used to support the interaction between the service state conversion device and other devices. Figure 6 As shown, the service state conversion device may further include a storage module 62, and the storage module 62 is used to store program codes and data of the service state conversion device, such as storing the content stored in the above storage unit.

[0091] Among them, the processing module 60 can be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module 61 can be a transceiver, an RF circuit or a communication interface, and the like. The storage module 62 can be a memory.

[0092] Among them, all relevant contents of each scenario involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.

[0093] An embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described by the network-side device in the above method embodiment.

[0094] The present application also provides a computer program product, wherein the computer program product includes a computer program, and the computer program is operable to enable a computer to execute some or all of the steps described by the terminal in the above method embodiment. The computer program product can be a software installation package.

[0095] The steps of the method or algorithm described in the embodiment of the present application can be implemented in a hardware manner, or can be implemented by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in a random access memory (Random Access Memory, RAM), a flash memory, a read-only memory (Read Only Memory, ROM), an erasable programmable read-only memory (Erasable Programmable ROM, EPROM), an electrically erasable programmable read-only memory (Electrically EPROM, EEPROM), a register, a hard disk, a mobile hard disk, a read-only compact disk (CD-ROM) or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in an access network device, a target network device, or a core network device. Of course, the processor and the storage medium can also be present in an access network device, a target network device, or a core network device as discrete components.

[0096] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiments of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0097] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the embodiments of the present application. It should be understood that the above description is only the specific implementation method of the embodiments of the present application and is not intended to limit the protection scope of the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the embodiments of the present application should be included in the protection scope of the embodiments of the present application.< / childrenstaus>

Claims

1. A service state conversion method, characterized in that: A state transition server applied to a business system, wherein the business system includes a business server and the state transition server, and the method includes: Obtaining a state transition command from the business server, the state transition command being used to indicate a target sub-business state, the target sub-business state being a sub-business state in at least one sub-business state corresponding to a current business state, and a correspondence between the current business state and the at least one sub-business state being determined according to a pre-generated state relationship table; Determine the current condition information of the current service state according to the state transition command and a pre-generated state condition table, wherein the state condition table is used to indicate the condition for the current service state to jump to its corresponding sub-service state, and each state condition table corresponds to a service state; Update a pre-generated condition dictionary table according to the state conversion command to obtain a target condition dictionary table, wherein the condition dictionary table is used to indicate remark information corresponding to condition information, and each condition dictionary table corresponds to at least one condition information; The current service state is jumped to the target sub-service state according to the current condition information and the target condition dictionary table.

2. The method according to claim 1, characterized in that Before obtaining the state transition command from the service server, the method further includes: Providing a configuration file template to the business server; Acquire a target configuration file from the business server, where the target configuration file is generated according to the configuration file template; Parsing the target configuration file to obtain a state table and the state relationship table; Generate the state condition table corresponding to the business state according to the target configuration file and the state table; The condition dictionary table is generated according to the target configuration file and the state condition table.

3. The method according to claim 2, characterized in that The generating the state condition table corresponding to the business state according to the target configuration file and the state table includes: Determine the condition configuration information included in the target configuration file, wherein the condition configuration information includes a condition name and a condition content; Determine the target service state corresponding to the condition configuration information according to the state table; A state condition table for each target service state is generated according to the condition configuration information.

4. The method according to claim 3, characterized in that The generating a state condition table for each target service state according to the condition configuration information includes: Determine a plurality of target sub-service states of the target service state according to the state table and the state relationship table; Determine the condition configuration information corresponding to each target sub-service state of the target service state when jumping from the target service state to each target sub-service state of the multiple target sub-service states; A state condition table corresponding to the target business state when the target business state jumps to each target sub-business state is generated according to the condition configuration information corresponding to the target business state.

5. The method according to claim 2, characterized in that: The generating the condition dictionary table according to the target configuration file and the state condition table includes: Obtain the dictionary name included in the target configuration file; Determine the target condition name corresponding to the dictionary name according to the state condition table; A condition dictionary table for the target condition name is generated according to the dictionary name.

6. The method according to claim 5, characterized in that The step of generating a condition dictionary table for the target condition name according to the dictionary name includes: generating an initial condition dictionary table for the target condition name according to the dictionary name; Determine whether there is dictionary content in the target configuration file, the dictionary content corresponds to the target dictionary name; If it exists, then add the dictionary content corresponding to the target dictionary name at the corresponding position of the target dictionary name in the initial condition dictionary table to generate a final condition dictionary table.

7. The method according to claim 2, characterized in that The method further comprises: Obtaining a task creation command from the business server; An initial state, condition information corresponding to the initial state, and a condition dictionary table corresponding to the initial state are determined according to the task creation command, the state table, the state relationship table, and the state condition table.

8. A service state conversion method, characterized in that: A business server applied to a business system, wherein the business system includes the business server and a state transition server, and the method includes: A state transition command is sent to the state transition server, wherein the state transition command is used to indicate a target sub-business state, wherein the target sub-business state is a sub-business state in at least one sub-business state corresponding to the current business state, and the correspondence between the current business state and the at least one sub-business state is determined according to a pre-generated state relationship table. The state transition command is used to indicate current condition information and a target condition dictionary table of the current business state, wherein the current condition information is associated with a pre-generated state condition table, and the target condition dictionary table is associated with a pre-generated condition dictionary table. The current condition information and the target condition dictionary table are used to indicate that the current business state jumps to the target sub-business state.

9. A service state conversion device, characterized in that: A state transition server applied to a business system, wherein the business system includes a business server and the state transition server, and the device includes: an acquiring unit, configured to acquire a state conversion command from the business server, wherein the state conversion command is used to indicate a target sub-business state, wherein the target sub-business state is a sub-business state in at least one sub-business state corresponding to a current business state, and a corresponding relationship between the current business state and the at least one sub-business state is determined according to a pre-generated state relationship table; a determining unit, configured to determine current condition information of the current service state according to the state transition command and a pre-generated state condition table, wherein the state condition table is used to indicate a condition for the current service state to jump to its corresponding sub-service state, and each state condition table corresponds to a service state; A generating unit, configured to update a pre-generated condition dictionary table according to the state transition command to obtain a target condition dictionary table, wherein the condition dictionary table is used to indicate remark information corresponding to condition information, and each condition dictionary table corresponds to at least one condition information; A jump unit is used to jump the current service state to the target sub-service state according to the current condition information and the target condition dictionary table.

10. A service state conversion device, characterized in that: A business server applied to a business system, wherein the business system includes the business server and a state transition server, and the device includes: A sending unit, used to send a state transition command to the state transition server, the state transition command is used to indicate a target sub-business state, the target sub-business state is a sub-business state in at least one sub-business state corresponding to the current business state, the correspondence between the current business state and the at least one sub-business state is determined according to a pre-generated state relationship table, the state transition command is used to indicate current condition information and a target condition dictionary table of the current business state, the current condition information is associated with a pre-generated state condition table, the target condition dictionary table is associated with a pre-generated condition dictionary table, the current condition information and the target condition dictionary table are used to indicate that the current business state jumps to the target sub-business state.

11. A state transition server, characterized in that: The method comprises a processor, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to any one of claims 1 to 7.

12. A business server, characterized in that: The method comprises a processor, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to claim 8.

13. A computer-readable storage medium, characterized in that: A computer program for electronic data exchange is stored, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 7 or claim 8.

Citation Information

Patent Citations

  • Method for controlling business system by dynamic modeling of state machine

    CN103049264A

  • A method and system for managing object state

    CN109976835A