[go: up one dir, main page]

CN110908644A - Configuration method and device of state node, computer equipment and storage medium - Google Patents

Configuration method and device of state node, computer equipment and storage medium Download PDF

Info

Publication number
CN110908644A
CN110908644A CN201910983044.3A CN201910983044A CN110908644A CN 110908644 A CN110908644 A CN 110908644A CN 201910983044 A CN201910983044 A CN 201910983044A CN 110908644 A CN110908644 A CN 110908644A
Authority
CN
China
Prior art keywords
node
state
logic
processor
configuring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910983044.3A
Other languages
Chinese (zh)
Other versions
CN110908644B (en
Inventor
余位鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dasou Vehicle Software Technology Co Ltd
Original Assignee
Zhejiang Dasou Vehicle Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dasou Vehicle Software Technology Co Ltd filed Critical Zhejiang Dasou Vehicle Software Technology Co Ltd
Priority to CN201910983044.3A priority Critical patent/CN110908644B/en
Publication of CN110908644A publication Critical patent/CN110908644A/en
Application granted granted Critical
Publication of CN110908644B publication Critical patent/CN110908644B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to a configuration method and device of a state node, computer equipment and a storage medium. The method comprises the following steps: acquiring state nodes required by a service system to be accessed and skip logic among the state nodes; configuring state node skipping based on skipping logic and node data corresponding to the state nodes, wherein the node data are obtained by configuring the state nodes by utilizing a pre-established tool library; and synchronizing the configured state nodes to the service system so that the service system can call the jump logic. According to the method and the device, the pre-constructed tool library is adopted to configure the state jump logic of the service system at the configuration background side, the service system only needs to write the codes of the service logic and realize the functions, and then the state is judged and jumped by calling the jump logic configured by the tool library, so that the coupling among the codes is reduced, the readability, the maintainability and the reusability of the codes are improved, and the code writing efficiency of a programmer is improved.

Description

Configuration method and device of state node, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for configuring a state node, a computer device, and a storage medium.
Background
With the development of computer technology, the update of software technology is also extremely frequent. The functions of the software are realized by a line of code. The existing code logic generally integrates judgment logic and business processing logic together, is a procedural code structure, can generate a great number of redundant and non-reusable code blocks, and simultaneously increases the problems of code readability, maintainability, reusability and the like.
For the existing code structure, a programmer usually needs to write the judgment logic and the business logic respectively for different businesses, and then repeatedly write the code logic basically the same or similar, so that the efficiency of program development is low.
Disclosure of Invention
In view of the above, there is a need to provide a method, an apparatus, a computer device and a storage medium for configuring a state node, which can reduce the repeated writing of codes, improve the readability, maintainability and reusability of codes, and improve the efficiency of program development.
A method of configuration of a state node, the method comprising: acquiring state nodes of a service system to be accessed and skip logic among the state nodes; configuring the state node skip based on the skip logic and node data corresponding to the state node, wherein the node data is obtained by configuring the state node by utilizing a pre-established tool library; and synchronizing the configured state nodes to the service system so as to enable the service system to call the jump logic.
Optionally, the node data is configured as follows: configuring corresponding node enumeration classes for all state nodes; adding a state node mapping annotation to each node enumeration class; and defining state nodes required in the business process in each node enumeration class.
Optionally, configuring the state node hop based on the hop logic and the node data corresponding to the state node comprises: for each jump logic, configuring a current node and a next node; configuring a jump processor of the current node to jump to the next node, the jump processor being of a logical processing class prior to entering the next node.
Optionally, the configuring the jump processor for the current node to jump to the next node includes: defining a processor for implementing an interface provided by the business system framework; adding annotations provided by the framework on the processor.
Optionally, the method further comprises: and analyzing the configuration information of the processor into a memory.
Optionally, the annotation comprises: current state node, next hop state node, name of current processor, state node enumeration supported by current processor.
Optionally, before acquiring the state node and the jump logic between the state nodes required by the service system to be accessed, the method further includes: receiving an access request of the service system; and accessing the business system to the tool library.
A configuration apparatus of a state node, the apparatus comprising:
the system comprises an acquisition module, a state node and a skip logic, wherein the acquisition module is used for acquiring the state node required by a service system to be accessed and the skip logic between the state nodes;
the configuration module is used for configuring the state node skip based on the skip logic and node data corresponding to the state node, wherein the node data is obtained by configuring the state node by utilizing a pre-established tool library;
and the synchronization module is used for synchronizing the configured state nodes to the service system so as to enable the service system to call the jump logic.
Optionally, the state node is configured by:
the first configuration unit is used for configuring corresponding node enumeration classes for all the state nodes;
the annotation unit is used for adding a state node mapping annotation to each node enumeration class;
and the defining unit is used for defining the state nodes required in the business process in each node enumeration class.
Optionally, the configuration module includes:
the second configuration unit is used for configuring the current node and the next node for each jump logic;
and a third configuration unit, configured to configure the jump processor that jumps to the next node from the current node, where the jump processor is a logic processing class before entering the next node.
Optionally, the third configuration unit is specifically configured to define a processor for implementing an interface provided by the service system framework; adding annotations provided by the framework on the processor.
Optionally, the third configuration unit is further configured to parse the configuration information of the processor into the memory.
Optionally, the annotation comprises: current state node, next hop state node, name of current processor, state node enumeration supported by current processor.
Optionally, the apparatus further comprises:
a receiving module, configured to receive an access request of the service system;
and the access module is used for accessing the service system into the tool library.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring state nodes required by a service system to be accessed and skip logic among the state nodes;
configuring the state node skip based on the skip logic and node data corresponding to the state node, wherein the node data is obtained by configuring the state node by utilizing a pre-established tool library;
and synchronizing the configured state nodes to the service system so as to enable the service system to call the jump logic.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring state nodes required by a service system to be accessed and skip logic among the state nodes;
configuring the state node skip based on the skip logic and node data corresponding to the state node, wherein the node data is obtained by configuring the state node by utilizing a pre-established tool library;
and synchronizing the configured state nodes to the service system so as to enable the service system to call the jump logic.
The configuration method, the configuration device, the computer equipment and the storage medium of the state node configure the state jump logic (namely, the judgment logic) of the service system at the configuration background side by adopting the pre-constructed tool library, the service system only needs to write codes and realize functions of the service logic, and then, the state is judged and jumped by calling the jump logic configured by the tool library, the corresponding judgment jump logic is not required to be configured independently for each service logic, the coupling between codes is reduced, two cross points of the judgment logic and the specific service logic are simplified, a calling party only needs to care about the specific state processing logic, the code logic is simplified, the designated node processing logic can be automatically configured, the readability, the maintainability and the reusability of the codes are improved, and the code writing efficiency of a programmer is improved.
Drawings
FIG. 1 is a diagram of an application environment for a configuration method of state nodes in one embodiment;
FIG. 2 is a flow diagram that illustrates a method for configuring state nodes, according to one embodiment;
FIG. 3 is a flowchart illustrating a method for configuring state nodes in another embodiment;
FIG. 4 is a diagram illustrating state node hopping in another embodiment;
FIG. 5 is a schematic diagram of an interaction flow of an application environment in another embodiment;
FIG. 6 is a block diagram of a configuration device for state nodes in one embodiment;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The configuration method of the state node provided by the application can be applied to the application environment shown in fig. 1. The configuration background 101 is used for configuring corresponding state nodes, the service system 102 mainly includes processing logic of related services, and the storage medium 103 is used for storing node data, configuration data, and the like. The business system 102 may be a software platform with any business logic, which may run on a variety of devices, which may include but are not limited to various personal computers, laptops, smartphones, tablets, and portable wearable devices. The configuration background 101, which is mainly provided for programmers to perform configuration of relevant state nodes, may be a web-enabled device, such as a personal computer, a notebook computer, etc. The storage medium 103 is used for storing relevant data, including node data, configuration data and the like, passing through each service system, and the data can be stored in order in a database form.
In one embodiment, as shown in fig. 2, a configuration method of a state node is provided, which is described by taking an example that the method is applied to the configuration background in fig. 1, and includes the following steps:
step S201, obtaining a state node and a skip logic between the state nodes required by the service system to be accessed.
As shown in fig. 1, in the service system, there are many state nodes in the service processing process, where a state node is a state in which a data stream enters a next state from one state in the service model, and when a certain adjustment is satisfied between the associated state nodes, a state jump occurs, for example, when a condition 1 is satisfied, a service state a jumps to a service state B. When the condition 2 is met, the service state B jumps to the service state C; if condition 2 is not met, service state B jumps back to service state a. The jump relation between the state nodes is the jump logic.
Step S202, configuring state node skipping based on skipping logic and node data corresponding to the state nodes, wherein the node data is obtained by configuring the state nodes by utilizing a pre-established tool library.
The tool library can be a state flow library, and is an automatic configuration management and control system developed based on java and used for configuring node data of state nodes. Node data may refer to attribute data of the state node itself, e.g., notes, state enumeration class, etc. information.
In the embodiment of the invention, the configuration for state node skipping can be a code logic corresponding to the configuration skipping logic, the code logic can be a module which can be directly called, such as a processor, a logic class and the like, and when a service system needs to process the judgment logic, the corresponding skipping logic is directly called, so that the corresponding state judgment and skipping can be realized.
Step S203, synchronizing the configured state node to the service system for the service system to call the jump logic.
After each state node is configured in the embodiment of the invention, the state nodes are synchronized to the service system, and the service system can directly carry out state skipping by using corresponding skipping logic in the operation process.
According to the embodiment of the invention, the state jump logic (namely, the judgment logic) of the service system is configured at the configuration background side by adopting the pre-constructed tool library, the service system only needs to write and realize the functions of the codes of the service logic, then the state is judged and jumped by calling the jump logic configured by the tool library, and the corresponding judgment jump logic is not needed to be configured independently for each service logic, so that the coupling between the codes is reduced, two cross points of the judgment logic and the specific service logic are simplified, a calling party only needs to care about the specific state processing logic, the code logic is simplified, the designated node processing logic can be automatically configured, the readability, the maintainability and the reusability of the codes are improved, and the code writing efficiency of a programmer is improved.
In another embodiment, as shown in FIG. 3, an alternative configuration method for the state nodes is provided, which is a preferred embodiment to the method shown in FIG. 2. As shown in fig. 3, the method includes:
step S301, obtaining the state nodes required by the service system to be accessed and the jump logic between the state nodes. This step is the same as step S201 in fig. 2, and specific reference is made to the above description, which is not repeated here.
The following steps S302 to S304 are to further limit the configuration of node data of the state node, and are exemplified by the example of the state flow shown in fig. 4, where states are not ordered, but complicated state change logic, and the development process is accessed from a business side a- > D through the function demonstration based on the local memory by the framework, specifically:
step S302, configure corresponding node enumeration classes for all state nodes.
Step S303, add a state node mapping annotation to each node enumeration class.
Step S304, state nodes needed in the business process are defined in each node enumeration class.
For the state flow shown in fig. 4, four node enumerations are first configured A, B, C, D, a state node mapping annotation is added for the enumeration class, and the state nodes required in the business process are defined in the enumeration class.
In the embodiment of the invention, the node enumeration class and the annotation are configured, and the state node is defined mainly in order that in the subsequent skip logic configuration process, a code can identify the state identifier, and whether a skipped node is in the defined state node or not, so that the purpose of identification is achieved.
Steps S305-S306 are further defined below with respect to step S202 of FIG. 2. Specifically, the method comprises the following steps:
step S305, configuring the current node and the next node for each jump logic.
Step S306, a jump processor for jumping the current node to the next node is configured, and the jump processor is a logic processing class before entering the next node.
Each of the hop logics has a corresponding current node and a next node, and the next node is a node reached after the hop from the current node. In the embodiment of the invention, the logical jump is realized by configuring the jump processors among the nodes.
Step S307, synchronizing the configured state node to the service system so that the service system can call the jump logic. This step is the same as step S203 shown in fig. 2, and is not described here again.
Further, in step S306, the step of configuring the jump processor for the current node to jump to the next node includes: defining a processor for implementing an interface provided by a business system framework; add the annotations provided by the framework on the processor.
Specifically, a processor is defined, an interface processor stateworkflow handler provided by the framework is realized, and annotations provided by the framework are added to the processor, including a current node, a next node and logic for executing a jump, for example:
@StateFlowHandlerNode(action="DINGDING_A_TO_D_StateWorkflowHandler",currentNode="A",nextNode="D"
stateNodeEnumClass="com.souche.state.flow.core.demo.StateEnum")
further, the step S306 further includes: and analyzing the configuration information of the processor into the memory.
The annotations in the above embodiments of the present invention include: current state node, next hop state node, name of current processor, state node enumeration supported by current processor.
There are four key elements in the StateFlowHandlerNode annotation:
action represents the name of the current processor, the processor class needs TO be executed from the state of A- > D, and the service core logic executes currentNode in the processor, wherein A represents the current node A;
nextNode ═ D "represents that the next node is D;
state node enumeration class "com.
In the embodiment of the invention, after the configuration is completed, the calling party can directly call the logic in the application as follows:
state from A- > D
StateWorkflow<StateContext<PurchaseApproveInfo>>stateWorkflow=applicationContext.getBean(StateWorkflow.class);
PurchaseApproveInfo purchaseApproveInfo=new PurchaseApproveInfo();
StateContext<PurchaseApproveInfo>stateContext=new StateContext<>();
stateContext.setContext(purchaseApproveInfo);
stateContext.setCurrentState("A");
stateContext.setNextState("D");
stateWorkflow.action(stateContext);
State from A- > C
stateWorkflow=applicationContext.getBean(StateWorkflow.class);
purchaseApproveInfo=new PurchaseApproveInfo();
stateContext=new StateContext<>();
stateContext.setContext(purchaseApproveInfo);
stateContext.setCurrentState("A");
stateContext.setNextState("C");
stateWorkflow.action(stateContext);
State from B- > D
stateWorkflow=applicationContext.getBean(StateWorkflow.class);
purchaseApproveInfo=new PurchaseApproveInfo();
stateContext=new StateContext<>();
stateContext.setContext(purchaseApproveInfo);
stateContext.setCurrentState("B");
stateContext.setNextState("D");
stateWorkflow.action(stateContext);
As an optional implementation manner, before acquiring the state node and the jump logic between the state nodes required by the service system to be accessed, the method further includes: receiving an access request of a service system; and accessing the business system into a tool library.
For the application environment shown in fig. 1, in the embodiment of the present invention, the interaction logic between the three is specifically shown in fig. 5, and specifically includes:
1. the service system requests to access the tool library, registers data to the storage medium when the service is started, and stores the data in a local storage node;
2. when the service system is used, the current node, the next node and the frame are directly appointed to automatically acquire and process the flow processor from the registered storage medium, and the service system preferentially uses local cache data; and if the local cache data has an exception, directly reading the data from the storage medium and synchronously updating the cache information.
3. The configuration background can dynamically configure the processor information of the corresponding nodes, actively synchronize to each application server after the processor information is changed, a synchronizer needs to clearly know which service party changes the content, and the service party updates the cache after receiving the notification.
Through the above embodiments, the configuration method of the state node in the embodiments of the present invention, in a complex service project service scenario, replaces a method of code confusion for performing state fusion configuration on all the original service systems by using a flexible solution characteristic provided by a state flow, decouples the state flow and realizes the state flow specifically, is applicable to any system with state change, and has universality. Each development team can reduce the complexity of program codes and simplify the development function by accessing the system, configuration items can be appointed by simple background configuration, the workload of the development teams is greatly reduced, the development quality and the development progress of the development teams are improved, and a business party only needs to pay attention to specific business logic processing when nodes jump and pay attention to different state nodes of different flows.
It should be understood that although the various steps in the flow charts of fig. 2-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 6, there is provided a configuration apparatus of a state node, including: an obtaining module 601, a configuring module 602, and a synchronizing module 603, wherein:
the obtaining module 601 is configured to obtain a state node and a skip logic between the state nodes, where the state node is needed by a service system to be accessed.
A configuration module 602, configured to configure a state node hop based on the hop logic and node data corresponding to the state node, where the node data is obtained by configuring the state node using a pre-established tool library.
And a synchronizing module 603, configured to synchronize the configured state node to the service system, so that the service system invokes the skip logic.
The functions of the modules in the apparatus correspond to the steps shown in fig. 2 one by one, and are not described herein with reference to the above description.
According to the embodiment of the invention, the state jump logic (namely, the judgment logic) of the service system is configured at the configuration background side by adopting the pre-constructed tool library, the service system only needs to write and realize the functions of the codes of the service logic, then the state is judged and jumped by calling the jump logic configured by the tool library, and the corresponding judgment jump logic is not needed to be configured independently for each service logic, so that the coupling between the codes is reduced, two cross points of the judgment logic and the specific service logic are simplified, a calling party only needs to care about the specific state processing logic, the code logic is simplified, the designated node processing logic can be automatically configured, the readability, the maintainability and the reusability of the codes are improved, and the code writing efficiency of a programmer is improved.
Optionally, the state node is configured by:
the first configuration unit is used for configuring corresponding node enumeration classes for all the state nodes;
the annotation unit is used for adding a state node mapping annotation to each node enumeration class;
and the defining unit is used for defining the state nodes required in the business process in each node enumeration class.
Optionally, the second configuration module comprises:
the second configuration unit is used for configuring the current node and the next node for each jump logic;
and the third configuration unit is used for configuring the jump processor for jumping the current node to the next node, and the jump processor is a logic processing class before entering the next node.
Optionally, the third configuration unit is specifically configured to define a processor for implementing an interface provided by the service system framework; add the annotations provided by the framework on the processor.
Optionally, the third configuration unit is further configured to parse the configuration information of the processor into the memory.
Optionally, the annotation comprises: current state node, next hop state node, name of current processor, state node enumeration supported by current processor.
Optionally, the apparatus further comprises:
the receiving module is used for receiving an access request of a service system;
and the access module is used for accessing the service system into the tool library.
For specific limitations of the configuration device of the state node, reference may be made to the above limitations on the configuration method of the state node, which are not described herein again. The various modules in the configuration means of the state node described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
The present embodiment also provides a computer device, such as a desktop computer, a rack-mounted server, a blade server, a tower server, or a rack-mounted server (including an independent server or a server cluster composed of multiple servers) capable of executing programs. The computer device 20 of the present embodiment includes at least, but is not limited to: a memory 21, a processor 22, which may be communicatively coupled to each other via a system bus, as shown in FIG. 7. It is noted that fig. 7 only shows a computer device 20 with components 21-22, but it is to be understood that not all shown components are required to be implemented, and that more or fewer components may be implemented instead.
In the present embodiment, the memory 21 (i.e., a readable storage medium) includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the storage 21 may be an internal storage unit of the computer device 20, such as a hard disk or a memory of the computer device 20. In other embodiments, the memory 21 may also be an external storage device of the computer device 20, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the computer device 20. Of course, the memory 21 may also include both internal and external storage devices of the computer device 20. In this embodiment, the memory 21 is generally used for storing an operating system and various application software installed in the computer device 20, such as program codes of the configuration device of the state node described in the embodiment. Further, the memory 21 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 22 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 22 is typically used to control the overall operation of the computer device 20. In this embodiment, the processor 22 is configured to run a program code stored in the memory 21 or process data, for example, run a configuration device of the state node, so as to implement the configuration method of the state node of the embodiment.
The present embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application mall, etc., on which a computer program is stored, which when executed by a processor implements corresponding functions. The computer-readable storage medium of the present embodiment is used for storing a configuration apparatus of a state node, and when executed by a processor, implements the configuration method of the state node of the embodiment.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of configuring a state node, the method comprising:
acquiring state nodes of a service system to be accessed and skip logic among the state nodes;
configuring the state node skip based on the skip logic and node data corresponding to the state node, wherein the node data is obtained by configuring the state node by utilizing a pre-established tool library;
and synchronizing the configured state nodes to the service system so as to enable the service system to call the jump logic.
2. The method of claim 1, wherein the node data is configured as follows:
configuring corresponding node enumeration classes for all state nodes;
adding a state node mapping annotation to each node enumeration class;
and defining state nodes required in the business process in each node enumeration class.
3. The method of claim 1, wherein configuring the state node hop based on the hop logic and node data corresponding to the state node comprises:
for each jump logic, configuring a current node and a next node;
configuring a jump processor of the current node to jump to the next node, the jump processor being of a logical processing class prior to entering the next node.
4. The method of claim 3, wherein configuring the jump processor for the current node to jump to the next node comprises:
defining a processor for implementing an interface provided by the business system framework;
adding annotations provided by the framework on the processor.
5. The method of claim 4, further comprising:
and analyzing the configuration information of the processor into a memory.
6. The method according to claim 4 or 5, wherein the annotation comprises: current state node, next hop state node, name of current processor, state node enumeration supported by current processor.
7. The method of claim 1, wherein before acquiring the state nodes required by the service system to be accessed and the hopping logic between the state nodes, the method further comprises:
receiving an access request of the service system;
and accessing the business system to the tool library.
8. An apparatus for configuring a state node, the apparatus comprising:
the system comprises an acquisition module, a state node and a skip logic, wherein the acquisition module is used for acquiring the state node of a service system to be accessed and the skip logic between the state nodes;
the configuration module is used for configuring the state node skip based on the skip logic and node data corresponding to the state node, wherein the node data is obtained by configuring the state node by utilizing a pre-established tool library;
and the synchronization module is used for synchronizing the configured state nodes to the service system so as to enable the service system to call the jump logic.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN201910983044.3A 2019-10-16 2019-10-16 Configuration method and device of state node, computer equipment and storage medium Active CN110908644B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910983044.3A CN110908644B (en) 2019-10-16 2019-10-16 Configuration method and device of state node, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910983044.3A CN110908644B (en) 2019-10-16 2019-10-16 Configuration method and device of state node, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110908644A true CN110908644A (en) 2020-03-24
CN110908644B CN110908644B (en) 2023-12-12

Family

ID=69815438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910983044.3A Active CN110908644B (en) 2019-10-16 2019-10-16 Configuration method and device of state node, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110908644B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111580896A (en) * 2020-05-04 2020-08-25 武汉众邦银行股份有限公司 Link calling method based on atomization service
CN112148353A (en) * 2020-09-22 2020-12-29 京东数字科技控股股份有限公司 Data processing method and device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6304878B1 (en) * 1998-11-23 2001-10-16 Microsoft Corporation Method and system for improved enumeration of tries
US20070226038A1 (en) * 2005-05-05 2007-09-27 Manoj Das Modeling of business process data
CN101714230A (en) * 2009-11-20 2010-05-26 广东金宇恒科技有限公司 User-defined workflow management method and system
CN106302442A (en) * 2016-08-12 2017-01-04 广州慧睿思通信息科技有限公司 A kind of network communication packet analytic method based on Java language
WO2017041657A1 (en) * 2015-09-09 2017-03-16 阿里巴巴集团控股有限公司 Application interface management method and device
CN109343839A (en) * 2018-09-30 2019-02-15 武汉斗鱼网络科技有限公司 Data service configuration method, storage medium, electronic equipment and system
CN109634569A (en) * 2018-12-13 2019-04-16 深圳前海微众银行股份有限公司 Process implementation method, device, equipment and readable storage medium storing program for executing based on note
CN109670053A (en) * 2018-12-25 2019-04-23 北京锐安科技有限公司 Data object mapping method, device, equipment and computer readable storage medium
CN109840089A (en) * 2017-11-27 2019-06-04 百度(美国)有限责任公司 The system and method for carrying out visual analysis and programming for the session proxy to electronic equipment
CN110045952A (en) * 2019-04-19 2019-07-23 京东数字科技控股有限公司 Code call method and device
CN110297632A (en) * 2019-06-12 2019-10-01 百度在线网络技术(北京)有限公司 Code generating method and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6304878B1 (en) * 1998-11-23 2001-10-16 Microsoft Corporation Method and system for improved enumeration of tries
US20070226038A1 (en) * 2005-05-05 2007-09-27 Manoj Das Modeling of business process data
CN101714230A (en) * 2009-11-20 2010-05-26 广东金宇恒科技有限公司 User-defined workflow management method and system
WO2017041657A1 (en) * 2015-09-09 2017-03-16 阿里巴巴集团控股有限公司 Application interface management method and device
CN106302442A (en) * 2016-08-12 2017-01-04 广州慧睿思通信息科技有限公司 A kind of network communication packet analytic method based on Java language
CN109840089A (en) * 2017-11-27 2019-06-04 百度(美国)有限责任公司 The system and method for carrying out visual analysis and programming for the session proxy to electronic equipment
CN109343839A (en) * 2018-09-30 2019-02-15 武汉斗鱼网络科技有限公司 Data service configuration method, storage medium, electronic equipment and system
CN109634569A (en) * 2018-12-13 2019-04-16 深圳前海微众银行股份有限公司 Process implementation method, device, equipment and readable storage medium storing program for executing based on note
CN109670053A (en) * 2018-12-25 2019-04-23 北京锐安科技有限公司 Data object mapping method, device, equipment and computer readable storage medium
CN110045952A (en) * 2019-04-19 2019-07-23 京东数字科技控股有限公司 Code call method and device
CN110297632A (en) * 2019-06-12 2019-10-01 百度在线网络技术(北京)有限公司 Code generating method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111580896A (en) * 2020-05-04 2020-08-25 武汉众邦银行股份有限公司 Link calling method based on atomization service
CN111580896B (en) * 2020-05-04 2023-07-07 武汉众邦银行股份有限公司 Link calling method based on atomization service
CN112148353A (en) * 2020-09-22 2020-12-29 京东数字科技控股股份有限公司 Data processing method and device
CN112148353B (en) * 2020-09-22 2024-05-17 京东科技控股股份有限公司 Data processing method and device

Also Published As

Publication number Publication date
CN110908644B (en) 2023-12-12

Similar Documents

Publication Publication Date Title
CN107870845A (en) Towards the management method and system of micro services framework applications
CN110427258B (en) Resource scheduling control method and device based on cloud platform
CN113342472A (en) Micro-service cluster creating method and device, electronic equipment and readable storage medium
CN108509207A (en) The cross-system of WEB application program is installed
CN110990048A (en) Method and system for monitoring resource loss of Unity project
CN114443294B (en) Big data service component deployment method, system, terminal and storage medium
CN112764802A (en) Business logic customization method and device, electronic equipment and storage medium
US10402399B2 (en) Computer implemented system and method for dynamically optimizing business processes
CN113741931A (en) Software upgrading method and device, electronic equipment and readable storage medium
CN110162344B (en) Isolation current limiting method and device, computer equipment and readable storage medium
US20240394311A1 (en) Failure tolerant and explainable state machine driven hypergraph execution
CN112860412B (en) Service data processing method and device, electronic equipment and storage medium
JP2023553220A (en) Process mining for multi-instance processes
CN110908644B (en) Configuration method and device of state node, computer equipment and storage medium
CN112394920A (en) Application software development method, platform and electronic equipment
CN118939671A (en) Data comparison method, system, electronic device and storage medium
US20230054774A1 (en) User constrained process mining
US7945598B2 (en) Methodology for the automatic capture of process information in federated knowledge systems
CN110599112A (en) Method and device for developing and maintaining network page
CN116069311A (en) Workflow engine method, system, device and medium based on low-code platform
CN116048609A (en) Configuration file updating method, device, computer equipment and storage medium
US20140244539A1 (en) Business process management, configuration and execution
CN108614838B (en) User group index processing method, device and system
CN111414232A (en) Method and device for processing template data of virtual machine
CN118760462B (en) A production-research collaboration system and application method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant