CN109408035B - Flow configuration method, storage medium and server of business system - Google Patents

Flow configuration method, storage medium and server of business system Download PDF

Info

Publication number
CN109408035B
CN109408035B CN201811030168.1A CN201811030168A CN109408035B CN 109408035 B CN109408035 B CN 109408035B CN 201811030168 A CN201811030168 A CN 201811030168A CN 109408035 B CN109408035 B CN 109408035B
Authority
CN
China
Prior art keywords
flow
paths
backspacing
flow information
information
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.)
Active
Application number
CN201811030168.1A
Other languages
Chinese (zh)
Other versions
CN109408035A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811030168.1A priority Critical patent/CN109408035B/en
Publication of CN109408035A publication Critical patent/CN109408035A/en
Application granted granted Critical
Publication of CN109408035B publication Critical patent/CN109408035B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to the technical field of computers, and provides a flow configuration method, a storage medium and a server of a service system. The method constructs a flow parameter configuration table in advance, wherein the flow parameter configuration table stores flow information in a character string format, and the flow information comprises attribute parameters, circulation directions and circulation conditions of each flow node. When a user wants to change the flow of the service system, the system can automatically extract the modified flow information by only modifying the flow information in the character string format in the flow parameter configuration table, then deserializes the flow information and encapsulates the flow information into a JavaBean component, and finally, the JavaBean component is inserted into the source code of the service system to finish the change of the flow. Therefore, the method does not need to reissue the system code, thereby greatly reducing the manpower development cost.

Description

Flow configuration method, storage medium and server of business system
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a flow configuration method, a storage medium, and a server for a service system.
Background
Currently, many real estate companies employ real estate transaction systems to handle daily work. The house property transaction system generally has the following procedures: the new, accepted, initial, signed, approved and issued flows are characterized by frequent changes and mainly focus on the changes of the rollback flow sections. For example, for the node "approval", reasons for approval rejection may be "material insufficiency", "amount unpaired", or the like. When the material is not full, the new node needs to be returned to, so that the user resubmisses the material; when the amount is not right, only the contract node is required to be returned. At present, each change of the system flow needs to reissue the flow code, and the manpower development cost is high.
Disclosure of Invention
In view of this, the embodiment of the invention provides a flow configuration method, a storage medium and a server for a service system, which aim to solve the problem that each change of the system flow needs to reissue a flow code, and the manpower development cost is high.
In a first aspect of the embodiment of the present invention, a method for configuring a flow of a service system is provided, including:
Extracting flow information from a pre-constructed flow parameter configuration table, wherein the flow information comprises attribute parameters, circulation directions and circulation conditions of each flow node, and the flow information is stored in the flow parameter configuration table in a character string format;
Deserializing the flow information;
packaging the deserialized flow information into a first JavaBean component;
and inserting the first JavaBean component into source codes of a service system.
In a second aspect of the embodiments of the present invention, there is provided a computer readable storage medium storing computer readable instructions which, when executed by a processor, implement the steps of the flow configuration method of the business system as set forth in the first aspect of the embodiments of the present invention.
In a third aspect of the embodiments of the present invention, there is provided a server comprising a memory, a processor and computer readable instructions stored in the memory and executable on the processor, the processor executing the computer readable instructions to perform the steps of:
Extracting flow information from a pre-constructed flow parameter configuration table, wherein the flow information comprises attribute parameters, circulation directions and circulation conditions of each flow node, and the flow information is stored in the flow parameter configuration table in a character string format;
Deserializing the flow information;
packaging the deserialized flow information into a first JavaBean component;
and inserting the first JavaBean component into source codes of a service system.
The embodiment of the invention constructs a flow parameter configuration table in advance, wherein the flow parameter configuration table stores flow information in a character string format, and the flow information comprises attribute parameters, circulation directions and circulation conditions of each flow node. When a user wants to change the flow of the service system, the system can automatically extract the modified flow information by only modifying the flow information in the character string format in the flow parameter configuration table, then deserializes the flow information and encapsulates the flow information into a JavaBean component, and finally, the JavaBean component is inserted into the source code of the service system to finish the change of the flow. Therefore, the method does not need to reissue the system code, thereby greatly reducing the manpower development cost.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a first embodiment of a flow configuration method of a service system according to an embodiment of the present invention;
Fig. 2 is a flowchart of a second embodiment of a flow configuration method of a service system according to an embodiment of the present invention;
FIG. 3 is a block diagram of one embodiment of a flow configuration apparatus for a business system according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a server according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a flow configuration method, a storage medium and a server of a service system, aiming at solving the problem that each change of the system flow needs to reissue a flow code and has high manpower development cost.
In order to make the objects, features and advantages of the present invention more comprehensible, the technical solutions in the embodiments of the present invention are described in detail below with reference to the accompanying drawings, and it is apparent that the embodiments described below are only some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a first embodiment of a flow configuration method of a service system in an embodiment of the present invention includes:
101. Extracting flow information from a pre-constructed flow parameter configuration table;
First, flow information is extracted from a pre-built flow parameter configuration table. The flow information comprises attribute parameters, circulation directions and circulation conditions of each flow node. For example, for the flow a- > B- > C, a, B, C represent flow nodes, and the attribute parameters may include: information such as approver information, node names, node IDs and the like; the circulation direction represents an arrow, namely the circulation direction pointed by the nodes after approval; the circulation condition refers to that the flow can jump to the next node under what condition is met.
The flow information is stored in the flow parameter configuration table in a character string format, specifically, the flow parameter configuration table can be created in a certain database of the server, and the flow information can be stored in a key value structure to realize configurability.
The attribute parameters of the flow node in the string format can be expressed as { stageId:1, stageName in approval, approver:Zhang three }. This can be done so that when a node changes, it can change the node by modifying the key value in the attribute parameter. For example, if the approver is to change from Zhang Santo Liqu, the flow information { stageId:1, stageName in approval, approver:Zhang Sanj } in the database is changed to { stageId:1, stageName in approval, approver:Liqu }.
The flow direction and flow condition of the character string format can be expressed as { A: A, B: A, C: A } pattern, each key value pair represents a node, and node information rolled back when the node fails. Thus, when the flow is changed, the modification of the flow can be completed by modifying the character string of the corresponding flow information in the database. If the node to be rolled back has a change, only one of the node to be rolled back needs to be changed in the database, for example, the B: A is changed into the B: B, so that the flow node B can stay on the node B after being executed. When the key value is modified, the method can be realized by only one SQL statement, and is quite convenient.
Further, before step 101, the method may further include:
(1) Extracting a second JavaBean component from the source code of the service system, wherein the second JavaBean component contains original flow information;
(2) Serializing the original flow information to obtain flow information in a character string format;
(3) And storing the flow information in the character string format into the flow parameter configuration table.
The business system may be any on-line system with more complex processes, such as credit management systems, real estate transaction systems, etc. Extracting a JavaBean component encapsulating original flow information from a source code of the service system, serializing the original flow information in the component to obtain flow information in a character string format, and finally storing the flow information in the character string format into the flow parameter configuration table. By setting the configuration, the original flow information of the service system is stored in the flow parameter configuration table, so that a user can conveniently modify the original flow information, thereby realizing the change of the flow.
A java bean is a software component that a user can use to package functions, processes, values, database accesses, and any other objects that can be created in java code, and other developers can use these objects through internal JSP pages, servlets, other JavaBean, applet programs, or applications. The user can think that the JavaBean provides a copy and paste function anytime and anywhere without concern for any changes.
Serialization refers to the process of converting state information of an object into a form that can be stored or transmitted. During serialization, an object writes its current state to a temporary or persistent storage area. The object may then be recreated by reading or de-serializing the state of the object from the storage area. When two processes are in remote communication, each other may send various types of data, regardless of the type of data, in the form of binary sequences, to be transmitted over the network. The sender needs to convert the Java object into byte sequence to be transmitted on the network; the receiver needs to restore the byte sequence to a Java object.
Further, the flow parameter configuration table stores flow information of a plurality of different flows, and step 101 may include:
(1) Acquiring the current system time;
(2) Determining the current quarter according to the current system time;
(3) Extracting flow information of a set of flows corresponding to the current quarter from the flow information of the multiple sets of different flows.
The user can preset a plurality of sets of flow information of different flows and store the flow information into the flow parameter configuration table. For example, for a real estate transaction system, the process adopted by each quarter is basically different, so that the process information of 4 quarters can be pre-constructed and stored in the process parameter configuration table, then when the system is started, the current quarter is determined according to the current time, and the process information corresponding to the current quarter is extracted from the process parameter configuration table.
Further, the flow parameter configuration table stores flow information of a plurality of different flows, and step 101 may include:
(1) Acquiring flow selection information input by a user;
(2) And extracting the flow information of one set of flow from the flow information of a plurality of sets of different flows according to the flow selection information.
For example, the flow information of the flow X, the flow Y and the flow Z may be stored in the flow parameter configuration table in advance, and the user may input a flow selection information (for example, a flow version number), and then may select a set of flows corresponding to the flow selection information from the 3 sets of flows to execute.
102. Deserializing the flow information, and recovering the flow information in the character string format into an operable object;
After extracting the flow information, the flow information is de-serialized, thereby restoring the flow information in a string format to an operational object. Deserialization is the inverse of serialization, which refers to the process of recovering a sequence of bytes into an object. The extracted flow information is in a character string format, and the character string is restored into an operable object through a deserializing operation.
103. Packaging the deserialized flow information into a first JavaBean component;
104. and inserting the first JavaBean component into source codes of a service system.
And finally, packaging the deserialized flow information into a JavaBean component, and inserting the JavaBean component into a corresponding position of a source code of a service system. Thus, when the business system is started, the new flow information corresponding flow is executed, namely, the change of the flow is realized.
The embodiment of the invention constructs a flow parameter configuration table in advance, wherein the flow parameter configuration table stores flow information in a character string format, and the flow information comprises attribute parameters, circulation directions and circulation conditions of each flow node. When a user wants to change the flow of the service system, the system can automatically extract the modified flow information by only modifying the flow information in the character string format in the flow parameter configuration table, then deserializes the flow information and encapsulates the flow information into a JavaBean component, and finally, the JavaBean component is inserted into the source code of the service system to finish the change of the flow. Therefore, the method does not need to reissue the system code, thereby greatly reducing the labor cost.
Referring to fig. 2, a second embodiment of a flow configuration method of a real estate transaction system according to an embodiment of the present invention includes:
201. extracting flow information from a pre-constructed flow parameter configuration table;
202. deserializing the flow information, and recovering the flow information in the character string format into an operable object;
203. Packaging the deserialized flow information into a first JavaBean component;
204. Inserting the first JavaBean component into a source code of a service system;
Steps 201-204 are identical to steps 101-104, and reference is made specifically to the description of steps 101-104.
205. When the target flow adopted by the service system at present starts to be executed, starting a timer;
When the business system starts, a set of currently adopted processes (i.e. the target process) starts to be executed, and a timer is set and starts to count.
206. After the target flow is executed, acquiring a timing value of the timer;
and stopping the timing of the timer after the execution of the target flow is finished to obtain a timing value, wherein the timing value represents the execution time of the target flow.
207. Counting the number of multi-stage backspacing paths and the number of total backspacing paths in the execution process of the target flow;
In the execution process of the target flow, a flow rollback phenomenon may occur, for example, if the normal target flow is "a- > B- > C- > D", if the flow of "D- > C", or "D- > C- > a" occurs, the flow rollback phenomenon occurs, and the specific "D- > C" or "D- > C- > a" belongs to the flow rollback path. The flow back-off path including multiple flow node back-off is called a multi-stage back-off path, such as the above-mentioned "D- > C- > a"; the flow back-off path including one flow node back-off is called a single-stage back-off path, such as the above-mentioned "D- > C"; the total back-off path is composed of a multi-stage back-off path and a single-stage back-off path. Counting the number of the multi-stage backspacing paths and the number of the total backspacing paths in the execution process of the target flow, namely counting the times of the flow backspacing phenomenon belonging to the multi-stage backspacing paths in the execution process of the target flow and counting the total times of the flow backspacing phenomenon.
208. Calculating to obtain a decision value of flow change according to the timing value, the number of the multi-stage backspacing paths and the number of the total backspacing paths;
And then, calculating a decision value of flow change according to the timing value, the number of the multi-stage back-off paths and the number of the total back-off paths, wherein the decision value is used for judging whether to execute the change of the flow. Generally, if the number of the multi-stage rollback paths is large, the process is unreasonable to be set, and the process should be optimized and changed. For example, for the multi-stage rollback paths of 'D- > C- > A', 'D- > B- > A' and 'D- > C- > B- > A', the multi-stage rollback paths can be completely and optimally replaced by 'D- > A', so that meaningless node jump operation is avoided, and the complexity of flow execution is reduced. Therefore, the proportion of the multi-stage back-off path in the total back-off path can be calculated, and the decision is made by taking the proportion as the decision value of the flow change. In addition, the execution time of the flow may be considered, that is, the timing value may be short, for example, if the timing value is short, which indicates that the result of the execution of the flow does not conform to a general rule, and at this time, the proportion of the multi-stage back-off path in the total back-off path cannot be directly used as the decision value. Only when the timing value is greater than a certain threshold value, the execution result of the secondary flow is representative, and at the moment, a proper decision value is determined by combining the proportion of the multi-stage back-off path in the total back-off path.
Further, step 208 may include:
Using the formula Calculating to obtain a decision value of the flow change;
Wherein D represents the decision value, R represents the number of the multi-stage back-off paths, S represents the number of the total back-off paths, and T represents the timing value.
209. Judging whether the decision value is larger than a preset threshold value or not;
After calculating the decision value, it is determined whether the decision value is greater than a preset threshold (e.g., 0.5). If the decision value is greater than the threshold value, step 210 is performed; if the decision value is less than or equal to the threshold value, step 211 is performed.
210. Replacing the current adopted flow of the service system with another set of flow;
The decision value is larger than a preset threshold value, which indicates that the flow of the service system needs to be changed, and at the moment, the flow adopted by the service system is replaced by another set of flow. Specifically, the process information of another set of processes other than the target process may be extracted from the process parameter configuration table, and then steps 202 to 204 are executed again, so as to complete the process change.
211. And executing preset processing steps.
The decision value is less than or equal to a preset threshold, which indicates that the process of the service system does not need to be changed, and at this time, a preset processing step, such as a normal operation step of returning to the target process, may be performed.
The embodiment of the invention constructs a flow parameter configuration table in advance, wherein the flow parameter configuration table stores flow information in a character string format, and the flow information comprises attribute parameters, circulation directions and circulation conditions of each flow node. When a user wants to change the flow of the service system, the system can automatically extract the modified flow information by only modifying the flow information in the character string format in the flow parameter configuration table, then deserializes the flow information and encapsulates the flow information into a JavaBean component, and finally, the JavaBean component is inserted into the source code of the service system to finish the change of the flow. In addition, the embodiment also collects the execution time of the currently adopted target flow, counts the number of multi-stage backspacing paths and the number of total backspacing paths in the execution process of the target flow, calculates a decision value of flow change according to the timing value, the number of multi-stage backspacing paths and the number of total backspacing paths, and finally judges whether to execute the operation of flow change according to the size of the decision value. By the arrangement, the probability of the flow backspacing phenomenon belonging to the multistage backspacing path can be reduced, and the flow adopted by the service system can be automatically optimized.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
The above mainly describes a flow configuration method of a real estate transaction system, and a flow configuration device of the real estate transaction system will be described in detail below.
Referring to fig. 3, an embodiment of a flow configuration apparatus of a service system in an embodiment of the present invention includes:
A flow information extraction module 301, configured to extract flow information from a pre-constructed flow parameter configuration table, where the flow information includes attribute parameters, a circulation direction, and circulation conditions of each flow node, and the flow information is stored in the flow parameter configuration table in a character string format;
a deserializing module 302, configured to deserialize the flow information, and restore the flow information in the character string format to an operable object;
A flow information packaging module 303, configured to package the deserialized flow information into a first java bean component;
And the component insertion module 304 is configured to insert the first java bean component into the source code of the service system.
Further, the flow configuration device may further include:
the component extraction module is used for extracting a second JavaBean component from the source code of the service system, wherein the second JavaBean component contains original flow information;
the serialization module is used for serializing the original flow information to obtain flow information in a character string format;
and the flow information storage module is used for storing the flow information in the character string format into the flow parameter configuration table.
Further, the flow parameter configuration table stores flow information of a plurality of different flows, and the flow information extraction module may include:
the system time acquisition unit is used for acquiring the current system time;
the quarter determining unit is used for determining the quarter where the current system time is located according to the current system time;
the flow selecting unit is used for extracting flow information of a set of flows corresponding to the current quarter from the flow information of the multiple sets of different flows.
Further, the flow parameter configuration table stores flow information of a plurality of different flows, and the flow configuration device may further include:
The timing starting module is used for starting a timer when the target flow currently adopted by the service system starts to be executed;
The timing stopping module is used for acquiring the timing value of the timer after the target flow is executed;
The back-off path quantity counting module is used for counting the quantity of multi-stage back-off paths and the quantity of total back-off paths in the execution process of the target flow, wherein the multi-stage back-off paths refer to flow back-off paths comprising multiple flow node back-off, the total back-off paths consist of multi-stage back-off paths and single-stage back-off paths, and the single-stage back-off paths refer to flow back-off paths comprising one flow node back-off;
The decision value calculation module is used for calculating a decision value of flow change according to the timing value, the number of the multi-stage backspacing paths and the number of the total backspacing paths;
and the flow replacing module is used for replacing the flow currently adopted by the service system with another set of flow if the decision value is larger than a preset threshold value.
Further, the decision value calculation module is specifically configured to:
Using the formula Calculating to obtain a decision value of the flow change;
Wherein D represents the decision value, R represents the number of the multi-stage back-off paths, S represents the number of the total back-off paths, and T represents the timing value.
The embodiment of the invention also provides a computer readable storage medium, which stores computer readable instructions, and the computer readable instructions implement steps of a flow configuration method of any service system as shown in fig. 1 or fig. 2 when the computer readable instructions are executed by a processor.
The embodiment of the invention also provides a server, which comprises a memory, a processor and computer readable instructions stored in the memory and capable of running on the processor, wherein the steps of the flow configuration method of any business system as shown in fig. 1 or 2 are realized when the processor executes the computer readable instructions.
Fig. 4 is a schematic diagram of a server according to an embodiment of the present invention. As shown in fig. 4, the server 4 of this embodiment includes: a processor 40, a memory 41, and computer readable instructions 42 stored in the memory 41 and executable on the processor 40. The processor 40, when executing the computer readable instructions 42, implements the steps of the flow configuration method embodiments of the various property transaction systems described above, such as steps 101 through 104 shown in fig. 1. Or the processor 40, when executing the computer-readable instructions 42, performs the functions of the modules/units of the apparatus embodiments described above, such as the functions of modules 301 through 304 shown in fig. 3.
Illustratively, the computer readable instructions 42 may be partitioned into one or more modules/units that are stored in the memory 41 and executed by the processor 40 to complete the present invention. The one or more modules/units may be a series of computer readable instructions capable of performing a particular function describing the execution of the computer readable instructions 42 in the server 4.
The server 4 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The server 4 may include, but is not limited to, a processor 40, a memory 41. It will be appreciated by those skilled in the art that fig. 4 is merely an example of the server 4 and does not constitute a limitation of the server 4, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., the server 4 may further include input-output devices, network access devices, buses, etc.
The Processor 40 may be a central processing unit (CentraL Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL Processor, DSP), application specific integrated circuits (AppLication SPECIFIC INTEGRATED circuits, ASIC), off-the-shelf programmable gate arrays (FieLd-ProgrammabLe GATE ARRAY, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the server 4, such as a hard disk or a memory of the server 4. The memory 41 may also be an external storage device of the server 4, such as a plug-in hard disk, a smart memory card (SMART MEDIA CARD, SMC), a Secure DigitaL (SD) card, a flash memory card (FLASH CARD) or the like, which are provided on the server 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the server 4. The memory 41 is used to store the computer readable instructions and other programs and data required by the server. The memory 41 may also be used for temporarily storing data that has been output or is to be output.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-OnLy Memory memory, a random access memory (RAM, random Access Memory), a magnetic or optical disk, or other various media in which program codes can be stored.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A method for configuring a flow of a service system, comprising:
Extracting flow information from a pre-constructed flow parameter configuration table, wherein the flow information comprises attribute parameters, circulation directions and circulation conditions of each flow node, and the flow information is stored in the flow parameter configuration table in a character string format;
Deserializing the flow information, and recovering the flow information in the character string format into an operable object;
packaging the deserialized flow information into a first JavaBean component;
inserting the first JavaBean component into a source code of a service system;
The process parameter configuration table stores process information of a plurality of different processes, and after the first java bean component is inserted into a source code of a service system, the process parameter configuration table further includes:
when the target flow adopted by the service system at present starts to be executed, starting a timer;
after the target flow is executed, acquiring a timing value of the timer;
Counting the number of multi-stage backspacing paths and the number of total backspacing paths in the execution process of the target flow, wherein the multi-stage backspacing paths refer to flow backspacing paths containing multiple flow node backspacing, the total backspacing paths consist of multi-stage backspacing paths and single-stage backspacing paths, and the single-stage backspacing paths refer to flow backspacing paths containing one-time flow node backspacing;
Calculating to obtain a decision value of flow change according to the timing value, the number of the multi-stage backspacing paths and the number of the total backspacing paths;
And if the decision value is greater than a preset threshold value, replacing the current adopted flow of the service system with another set of flow.
2. The flow configuration method according to claim 1, further comprising, before extracting flow information from a pre-built flow parameter configuration table:
Extracting a second JavaBean component from the source code of the service system, wherein the second JavaBean component contains original flow information;
Serializing the original flow information to obtain flow information in a character string format;
and storing the flow information in the character string format into the flow parameter configuration table.
3. The flow configuration method according to claim 1, wherein the extracting flow information from a pre-built flow parameter configuration table comprises:
acquiring the current system time;
determining the current quarter according to the current system time;
Extracting flow information of a set of flows corresponding to the current quarter from the flow information of the multiple sets of different flows.
4. The flow configuration method according to claim 1, wherein the decision value for calculating the flow change according to the timing value, the number of the multi-stage back-off paths, and the number of the total back-off paths is:
Using the formula Calculating to obtain a decision value of the flow change;
Wherein D represents the decision value, R represents the number of the multi-stage back-off paths, S represents the number of the total back-off paths, and T represents the timing value.
5. A computer readable storage medium storing computer readable instructions which, when executed by a processor, implement the steps of the flow configuration method of any one of claims 1 to 4.
6. A server comprising a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, wherein the processor, when executing the computer readable instructions, performs the steps of:
Extracting flow information from a pre-constructed flow parameter configuration table, wherein the flow information comprises attribute parameters, circulation directions and circulation conditions of each flow node, and the flow information is stored in the flow parameter configuration table in a character string format;
Deserializing the flow information, and recovering the flow information in the character string format into an operable object;
packaging the deserialized flow information into a first JavaBean component;
inserting the first JavaBean component into a source code of a service system;
The process parameter configuration table stores process information of a plurality of different processes, and after the first java bean component is inserted into a source code of a service system, the process parameter configuration table further includes:
when the target flow adopted by the service system at present starts to be executed, starting a timer;
after the target flow is executed, acquiring a timing value of the timer;
Counting the number of multi-stage backspacing paths and the number of total backspacing paths in the execution process of the target flow, wherein the multi-stage backspacing paths refer to flow backspacing paths containing multiple flow node backspacing, the total backspacing paths consist of multi-stage backspacing paths and single-stage backspacing paths, and the single-stage backspacing paths refer to flow backspacing paths containing one-time flow node backspacing;
Calculating to obtain a decision value of flow change according to the timing value, the number of the multi-stage backspacing paths and the number of the total backspacing paths;
And if the decision value is greater than a preset threshold value, replacing the current adopted flow of the service system with another set of flow.
7. The server of claim 6, further comprising, prior to extracting the flow information from the pre-built flow parameter configuration table:
Extracting a second JavaBean component from the source code of the service system, wherein the second JavaBean component contains original flow information;
Serializing the original flow information to obtain flow information in a character string format;
and storing the flow information in the character string format into the flow parameter configuration table.
8. The server according to claim 6, wherein the decision value for calculating the flow change according to the timing value, the number of the multi-stage back-off paths, and the number of the total back-off paths is:
Using the formula Calculating to obtain a decision value of the flow change;
Wherein D represents the decision value, R represents the number of the multi-stage back-off paths, S represents the number of the total back-off paths, and T represents the timing value.
CN201811030168.1A 2018-09-05 Flow configuration method, storage medium and server of business system Active CN109408035B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811030168.1A CN109408035B (en) 2018-09-05 Flow configuration method, storage medium and server of business system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811030168.1A CN109408035B (en) 2018-09-05 Flow configuration method, storage medium and server of business system

Publications (2)

Publication Number Publication Date
CN109408035A CN109408035A (en) 2019-03-01
CN109408035B true CN109408035B (en) 2024-06-28

Family

ID=

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897806A (en) * 2015-12-17 2017-06-27 北京奇虎科技有限公司 Workflow creation method and system, operation system
CN107357567A (en) * 2017-06-07 2017-11-17 珠海金山网络游戏科技有限公司 A kind of design system and method for visualization script editing machine

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897806A (en) * 2015-12-17 2017-06-27 北京奇虎科技有限公司 Workflow creation method and system, operation system
CN107357567A (en) * 2017-06-07 2017-11-17 珠海金山网络游戏科技有限公司 A kind of design system and method for visualization script editing machine

Similar Documents

Publication Publication Date Title
CN108446314B (en) Student information storage method, computer readable storage medium and terminal equipment
CN107832062B (en) Program updating method and terminal equipment
CN103593440B (en) The reading/writing method and device of journal file
CN111177113B (en) Data migration method, device, computer equipment and storage medium
CN110570311B (en) Block chain consensus method, device and equipment
CN103838626A (en) Data processing device and method for processing serial tasks
CN110490416B (en) Task management method and terminal equipment
CN111767144A (en) Transaction routing determination method, device, equipment and system for transaction data
CN107784073B (en) Data query method for local cache, storage medium and server
CN114138231B (en) Method, circuit and SOC for executing matrix multiplication operation
CN112329954A (en) Article recall method and device, terminal equipment and storage medium
CN108776665B (en) Data processing method and device
CN113886590A (en) Data summarizing method and device, computer equipment and storage medium
CN109408035B (en) Flow configuration method, storage medium and server of business system
CN109324838B (en) Execution method and execution device of single chip microcomputer program and terminal
CN111381905B (en) Program processing method, device and equipment
CN107368283B (en) True random number generation method
CN113703753B (en) Method and device for product development and product development system
CN115981935A (en) Chip testing method, chip, device and storage medium
CN112035471B (en) Transaction processing method and computer equipment
CN115098232A (en) Task scheduling method, device and equipment
CN106156169B (en) Discrete data processing method and device
US20130198138A1 (en) Model for capturing audit trail data with reduced probability of loss of critical data
CN111399832B (en) Page editing method and device
CN114722927A (en) Collapse clustering method and device, electronic equipment and storage medium

Legal Events

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