CN110750267B - Service information updating method, device, computer equipment and storage medium - Google Patents

Service information updating method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110750267B
CN110750267B CN201910915580.XA CN201910915580A CN110750267B CN 110750267 B CN110750267 B CN 110750267B CN 201910915580 A CN201910915580 A CN 201910915580A CN 110750267 B CN110750267 B CN 110750267B
Authority
CN
China
Prior art keywords
node
business process
original
acquiring
target
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
CN201910915580.XA
Other languages
Chinese (zh)
Other versions
CN110750267A (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 CN201910915580.XA priority Critical patent/CN110750267B/en
Publication of CN110750267A publication Critical patent/CN110750267A/en
Application granted granted Critical
Publication of CN110750267B publication Critical patent/CN110750267B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/43Checking; Contextual analysis
    • G06F8/433Dependency analysis; Data or control flow analysis
    • G06F8/434Pointers; Aliasing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/447Target code generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Abstract

The present application relates to the field of computer technologies, and in particular, to a service information updating method, apparatus, computer device, and storage medium. The method comprises the following steps: receiving a definition file of a target business process, wherein the definition file carries an original business process identifier; traversing the definition file of the target business process to obtain a target business node of the target business process; acquiring an original business process corresponding to the original business process identifier, extracting an original business node from the acquired original business process, comparing the original business node with a target business node, and obtaining an updating type of business information updating according to a comparison result; and adjusting logic parameters of the execution conditions of the corresponding nodes according to the update types, and associating the adjusted corresponding nodes to the original business process to obtain a target business process. By adopting the method, the updating time of the business process can be saved.

Description

Service information updating method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a service information updating method, apparatus, computer device, and storage medium.
Background
With the development of modern technology, a concept of workflow appears, for example, the workflow is proposed for a business in daily work of an enterprise, a process of automatically processing the business of the enterprise is called a workflow, and in the process of processing the business, the business processing can be completed according to defined business flow processing steps.
However, in the field of vehicle processing, the coupling of the workflow is too strong, and some minor adjustments, such as when some nodes need to be newly added or deleted in the process, can be reissued after the code of the whole workflow is modified, thus wasting time.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a business information updating method, apparatus, computer device, and storage medium that can save the business process update time.
A method for updating service information, the method comprising:
receiving a definition file of a target business process, wherein the definition file carries an original business process identifier;
traversing the definition file of the target business process to obtain a target business node of the target business process;
acquiring an original business process corresponding to the original business process identifier, extracting an original business node from the acquired original business process, comparing the original business node with the target business node, and obtaining an updating type of business information updating according to a comparison result;
And adjusting logic parameters of the execution conditions of the corresponding nodes according to the update types, and associating the adjusted corresponding nodes to the original business process to obtain the target business process. According to the embodiment, the logic parameters of the execution conditions of the corresponding nodes are adjusted, so that the execution logic of the original business node of the original flow is changed into the execution logic of the target business flow, and compared with the process of modifying the whole workflow code, the time for updating the business flow information is saved.
In one embodiment, the adjusting the logic parameter of the execution condition of the corresponding node according to the update type of the update mode includes:
and acquiring an execution result of a front node of the corresponding node according to the update type of the update model, and modifying logic parameters in the execution condition of the corresponding node according to the execution result of the front node. According to the embodiment, the purpose of updating the business process is achieved by classifying the update types of the business information update and acquiring the logic parameters of the execution conditions of the corresponding nodes of the update types, and the time for updating the business process information is saved.
In one embodiment, the update type includes:
New node addition type, deleted node type and modified node type.
In one embodiment, when the update type is a node new type, the adjusting the logic parameter of the execution condition of the corresponding node according to the update type includes:
acquiring a new node according to a comparison result of the original service node and the target service node, acquiring a first preposed node of the new node, and setting logic parameters in an execution condition of the new node according to an execution result of the first preposed node;
and acquiring a first post node of the new node, and modifying logic parameters in the execution conditions of the first post node according to the execution result of the new node. In this embodiment, the server can update the service flow when the node is newly added by the original service flow, and compared with modifying the node newly added by the whole workflow code, the time for updating the service flow information is saved.
In one embodiment, when the update type is a node deletion type, the adjusting the logic parameter of the execution condition of the corresponding node according to the update type includes:
and acquiring a deleted node according to a comparison result of the original service node and the target service node, acquiring a second preposed node and a second postsed node of the deleted node, and modifying logic parameters in an execution condition of the second postsed node according to an execution result of the second preposed node. In this embodiment, the server can update the service flow when the original service flow deletes the node, and compared with modifying the whole workflow code to delete the node, the time for updating the service flow information is saved.
In one embodiment, when the update type is a node modification type, the adjusting the logic parameter of the execution condition of the corresponding node according to the update type includes:
acquiring a modification node according to a comparison result of the original service node and the target service node, acquiring a third preposed node of the modification node, and setting logic parameters in an execution condition of the modification node according to an execution result of the third preposed node;
and acquiring a third post node of the new node, and modifying logic parameters in the execution conditions of the third post node according to the execution result of the new node.
In this embodiment, the server can update the service flow when the original service flow modifies the node, and compared with modifying the whole workflow code to modify the node, the time for updating the service flow information is saved.
In one embodiment, after associating the adjusted corresponding node with the original business process, the method further includes:
receiving a start instruction of the target business process, wherein the start instruction carries a process identifier; issuing a starting node starting event carrying a flow identifier according to the starting instruction;
When the starting node starting event is monitored, acquiring a target business process corresponding to the process identifier;
acquiring a current node which is started by a starting node in an execution condition, judging whether logic parameters corresponding to the execution condition of the current node are met, if so, executing the current node and storing an execution result of the current node;
and acquiring the next node as the current node, and continuously judging whether logic parameters corresponding to the execution conditions of the current node are met or not until all nodes in the target business process are executed. In this embodiment, the integrity of the target service flow is ensured by executing the target service flow after service information update according to the logic parameter of the updated execution condition.
A service information updating apparatus, the apparatus comprising:
the receiving module is used for receiving a definition file of the target business process, wherein the definition file carries an original business process identifier;
the traversing module is used for traversing the definition file of the target business process to obtain a target business node of the target business process;
the acquisition module is used for acquiring an original business process corresponding to the original business process identifier, extracting an original business node from the acquired original business process, comparing the original business node with the target business node, and obtaining an updating type of business information updating according to a comparison result;
And the adjusting module is used for adjusting the logic parameters of the execution conditions of the corresponding nodes according to the update types, and associating the adjusted corresponding nodes to the original business process to obtain the target business process.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method described above when the processor executes the computer program.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the above method.
In order to save the update time consumed by the workflow for updating the business information, the pressure test adjusting method, the pressure test adjusting device, the computer equipment and the storage medium receive the definition file of the target business process, wherein the definition file carries the original business process identification; traversing the definition file of the target business process to obtain a target business node of the target business process; acquiring an original business process corresponding to the original business process according to the original business process identifier, extracting an original business node from the acquired original business process, comparing the original business node with a target business node, and obtaining an updating type of business information updating according to a comparison result; and adjusting logic parameters of the execution conditions of the corresponding nodes according to the update types, and associating the adjusted corresponding nodes to the original business process to obtain a target business process. By adjusting the logic parameters of the execution conditions of the corresponding nodes, the execution logic of the original business node of the original flow is changed into the execution logic of the target business flow, and compared with the process of modifying the whole workflow code, the time for updating the business flow information is saved.
Drawings
FIG. 1 is an application scenario diagram of a business information update method in one embodiment;
FIG. 2 is a flow chart of a method for updating service information in one embodiment;
FIG. 3 is a flow diagram of the operational steps of a target business flow in one embodiment;
FIG. 4 is a block diagram of a service information updating apparatus in one embodiment;
fig. 5 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The service information updating method provided by the application can be applied to the application environment shown in figure 1. Wherein the terminal 102 communicates with the server 104 via a network. The server 104 receives a definition file of a target business process sent by the terminal 102, wherein the definition file carries an original business process identifier; traversing the definition file of the target business process to obtain a target business node of the target business process; acquiring an original business process corresponding to the original business process according to the original business process identifier, extracting an original business node from the acquired original business process, comparing the original business node with a target business node, and obtaining an updating type of business information updating according to a comparison result; and adjusting logic parameters of the execution conditions of the corresponding nodes according to the update types, and associating the adjusted corresponding nodes to the original business process to obtain a target business process. By adjusting the logic parameters of the execution conditions of the corresponding nodes, the execution logic of the original business node of the original flow is changed into the execution logic of the target business flow, and compared with the whole workflow code is modified, the time for updating the business flow information is saved. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smartphones, tablet computers, and portable wearable devices, and the server 104 may be implemented by a stand-alone server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a service information updating method is provided, and the method is applied to the server 104 in fig. 1 for illustration, and includes the following steps:
step 202, a definition file of a target business process is received, wherein the definition file carries an original business process identifier.
Specifically, the server receives a definition file of a target business process sent by the terminal, where the definition file includes data of each process node of the target business process, is used to define updating of the business process, and carries an original business process identifier. The target business process may be a business process after updating the original business according to the business party requirement. The definition file of the target business process may carry an original business process identifier corresponding to the original business process, and the definition file is used for indicating the target business process to update the original business process.
Step 204, traversing the definition file of the target business process to obtain the target business node of the target business process.
Specifically, after receiving the definition file of the target business process, the server performs traversing operation on the definition file of the target business process, and obtains a target business node of the target business process through file traversing, where the target business node may be each step of the target business process.
Step 206, obtaining the original business process corresponding to the original business process identifier, extracting the original business node from the obtained original business process, comparing the original business node with the target business node, and obtaining the updating type of the business information updating according to the comparison result.
Specifically, after the server obtains the target service node of the target service flow, the server obtains the corresponding original service flow according to the original task flow identifier, the original service node can be extracted from the original service flow by a traversing method, the extracted original service node is compared with the target service node to obtain a comparison result, and according to the comparison result, the update type of the service information update of the target service flow relative to the original service flow can be obtained, wherein the update type can be as follows: the node is newly added, the number of the target service nodes of the target service flow is increased relative to the original service nodes of the original service flow, and the updating type of the service information updating is the node newly added type; the node deletion type, the number of the target service nodes of the target service flow is reduced relative to the original service nodes of the original service flow, and the update type of the service information update is the node deletion type and other types.
And step 208, adjusting logic parameters of the execution conditions of the corresponding nodes according to the update types, and associating the adjusted corresponding nodes to the original business process to obtain the target business process.
Specifically, the logic parameter of the execution condition may be an opening condition of the node in the corresponding service flow, for example, the execution condition of the node a may be a node B and a node C in a previous flow in the service flow, that is, after the node B and the node C in the service flow are completed, the node a may execute, and the logic parameter of the execution condition may be a parameter for determining the logic results of the node B and the node C, for example, when the operation results of the node B and the node C are determined to be true, the node a may execute. After the server obtains the update type of the service update, the logic parameters of the execution conditions of the corresponding nodes are adjusted according to the update type, the corresponding nodes can be preset and correspondingly changed according to different update types, for example, when the update type is a new node, the corresponding nodes are nodes of a new node and a post-process of the new node, and after the adjustment, the adjusted corresponding nodes are associated to the original service process to update the service.
In the service information updating method, a server receives a definition file of a target service flow, and the definition file carries an original service flow identifier; traversing the definition file of the target business process to obtain a target business node of the target business process; acquiring an original business process corresponding to the original business process according to the original business process identifier, extracting an original business node from the acquired original business process, comparing the original business node with a target business node, and obtaining an updating type of business information updating according to a comparison result; and adjusting logic parameters of the execution conditions of the corresponding nodes according to the update types, and associating the adjusted corresponding nodes to the original business process to obtain a target business process. By adjusting the logic parameters of the execution conditions of the corresponding nodes, the execution logic of the original business node of the original flow is changed into the execution logic of the target business flow, and compared with the process of modifying the whole workflow code, the time for updating the business flow information is saved.
In one embodiment, the logic parameter for adjusting the execution condition of the corresponding node according to the update type of the update mode in the service information update method may include: and acquiring an execution result of the front node of the corresponding node according to the update type of the update model, and modifying logic parameters in the execution condition of the corresponding node according to the execution result of the front node.
Specifically, the update model may be preset, including a correspondence between an update type and a corresponding node, where the server obtains the corresponding node of the update type according to the update model, obtains a pre-node of a pre-process of the corresponding node, and modifies a logic parameter in an execution condition of the corresponding node according to an execution result of the pre-node, for example, when the update type is a newly added node, the corresponding node is a newly added node D and a node E of a post-process of the newly added node, then the pre-node of the node D is a node F of the pre-process, and the pre-node of the node E is a newly added node D, then the logic parameter in the execution condition of the node D and the node E is modified according to the execution result of the node F and the node D.
In addition, the update type may include a node new type, and the number of nodes is increased for the target service node of the target service flow relative to the original service node of the original service flow, and the update type of the service information update is the node new type; the node deletion type, the number of the nodes of the target service node of the target service flow is reduced relative to the original service node of the original service flow, and the updating type of the service information updating is the node deletion type; the node modification type is that the number of the target service nodes of the target service flow is not changed relative to the original service nodes of the original service flow, but the service information of the nodes is changed, and the update type of the service information update is the node modification type.
In this embodiment, the server classifies the update types of the service information update, and achieves the purpose of updating the service flow by acquiring the logic parameters of the execution conditions of the corresponding nodes of the update types, so that compared with modifying the whole workflow code, the time for updating the service flow information is saved.
In one embodiment, when the update type in the service information update method is a node new type, adjusting the logic parameter of the execution condition of the corresponding node according to the update type may include: acquiring a new node according to a comparison result of the original service node and the target service node, acquiring a first preposed node of the new node, and setting logic parameters in an execution condition of the new node according to an execution result of the first preposed node; and acquiring a first post node of the new node, and modifying logic parameters in the execution conditions of the first post node according to the execution result of the new node.
Specifically, the first pre-node is a node of a process before the current node, and may include one or more nodes, the first post-node is a node of a process after the current node, and may include one or more nodes, and when an update type of the service information update is a node newly added type, the step of updating the service information may include: the server obtains a comparison result of the original service node and the target service node, a new node can be obtained according to the comparison result, a first front node of the new node is obtained, and logic parameters in the execution condition of the new node are set according to the obtained execution result of the first front node, namely the logic parameters in the execution condition of the new node can be set as follows: the result of the execution of the first pre-node is true. Acquiring the first post node of the newly added node, and modifying the logic parameter in the execution condition of the first post node according to the execution result of the newly added node, namely, the logic parameter in the execution condition of the first post node can be set as follows: the execution result of the newly added node is true.
In this embodiment, the server can update the service flow of the original service flow when the node is newly added.
In one embodiment, when the update type in the service information update method is a node deletion type, adjusting the logic parameter of the execution condition of the corresponding node according to the update type may include: and acquiring a deleted node according to the comparison result of the original service node and the target service node, acquiring a second preposed node and a second postsed node of the deleted node, and modifying logic parameters in the execution condition of the second postsed node according to the execution result of the second preposed node.
Specifically, the second pre-node is a node of a process before the current node, and may include one or more nodes, the second post-node is a node of a process after the current node, and may include one or more nodes, and when the update type of the service information update is a node deletion type, the step of updating the service information may include: the server obtains a comparison result of the original service node and the target service node, a deleted node can be obtained according to the comparison result, a second preposed node and a second postsed node of the newly added node are obtained, and logic parameters in a second postsed execution condition are modified through the obtained execution result of the second preposed node, namely the logic parameters in the execution condition of the second postsed node can be modified from the execution result of the deleted node to the execution result of the second preposed node.
In this embodiment, the server can update the service flow of the original service flow when the node is deleted.
In one embodiment, when the update type in the service information update method is a node modification type, adjusting the logic parameter of the execution condition of the corresponding node according to the update type may include: acquiring a modified node according to a comparison result of the original service node and the target service node, acquiring a third preposed node of the modified node, and setting logic parameters in an execution condition of the modified node according to an execution result of the third preposed node; and acquiring a third post node of the new node, and modifying logic parameters in the execution conditions of the third post node according to the execution result of the new node.
Specifically, the third pre-node is a node of a process before the current node, and may include one or more nodes, the third post-node is a node of a process after the current node, and may include one or more nodes, and when the update type of the service information update is a node modification type, the step of updating the service information may include: the server obtains a comparison result of the original service node and the target service node, a modified node can be obtained according to the comparison result, a third front node of the modified node is obtained, and logic parameters in execution conditions of the modified node are set according to the obtained execution result of the third front node, namely the logic parameters in the execution conditions of the modified node can be set as follows: the result of the execution of the third pre-node is true. Obtaining a third post node of the modification node, and modifying a logic parameter in an execution condition of the third post node through an execution result of the modification node, namely the logic parameter in the execution condition of the third post node can be set as follows: the execution result of the modified node is true.
In this embodiment, the server can update the service flow of the original service flow when the node is modified.
In one embodiment, as shown in fig. 3, the service information updating method further includes:
step 302, receiving a start instruction of a target business process, wherein the start instruction carries a process identifier; and issuing a start node opening event carrying the flow mark according to the start instruction.
Specifically, after the server updates the service information to end and obtain the target service flow, after receiving a start instruction of the target service flow sent by the terminal, according to a flow identifier carried on the start instruction, the flow identifier corresponds to the target service flow indicated by the terminal, and then the server issues a start node opening event carrying the flow identifier to indicate to start the target service flow.
Step 304, when the start node opening event is monitored, a target business process corresponding to the process identifier is acquired.
Specifically, when the server monitors the starting node starting event, a corresponding target business process can be obtained through the process identifier, the monitoring process can be that a release module in the server releases the starting event, and an operation module in the server indicates the operation of the target business process after receiving the starting event.
Step 306, the current node which is started by the starting node is obtained in the execution condition, whether the logic parameter corresponding to the execution condition of the current node is met is judged, if yes, the current node is executed, and the execution result of the current node is stored.
Specifically, after the server obtains the corresponding target service flow, the server obtains the current node which is started by the starting node in the target service flow, and judges whether the logic parameter corresponding to the execution condition of the current node is satisfied, for example, the logic parameter of the initial node of the target service flow is the start event received, that is, after the start event is received, the node is executed and the execution result is stored.
Step 308, obtaining the next node as the current node, and continuing to judge whether the logic parameters corresponding to the execution conditions of the current node are satisfied or not until all nodes in the target business process are executed.
Specifically, after the current node is executed, the server acquires the next node of the next post-process of the current node as the current node, continuously judges whether the logic parameter corresponding to the execution condition of the current node meets the execution result of the previous current node, and continuously acquires the next node as the current node when the logic parameter meets the execution result of the previous current node until all nodes in the target business process are executed, namely the target business process is completed.
In this embodiment, the server can execute the target service flow after service information update according to the logic parameter of the updated execution condition, thereby ensuring the integrity of the target service flow.
In one embodiment, in the service information updating method, the server may receive a new service flow (target service flow) for updating an original service flow, acquire the original service flow through an original service flow identifier carried by a definition file of the target service flow, compare the original service flow with the target service flow to obtain a service update type, adjust process nodes of different types according to different types, and then associate the adjusted process nodes to the original service flow to complete updating of the original service flow into updating of the target service flow.
It should be understood that, although the steps in the flowcharts of fig. 2 and 3 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2, 3 may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed sequentially, but may be performed alternately or alternately with at least a portion of the other steps or sub-steps of other steps.
In one embodiment, as shown in fig. 4, there is provided a service information updating apparatus, including: a receiving module 402, a traversing module 404, an obtaining module 406, and an adjusting module 408, wherein:
the receiving module 402 is configured to receive a definition file of the target business process, where the definition file carries an original business process identifier.
And the traversing module 404 is configured to traverse the definition file of the target service flow to obtain a target service node of the target service flow.
The obtaining module 406 is configured to obtain an original service flow corresponding to the original service flow identifier, extract an original service node from the obtained original service flow, compare the original service node with the target service node, and obtain an update type of service information update according to a comparison result.
And the adjusting module 408 is configured to adjust a logic parameter of an execution condition of a corresponding node according to the update type, and associate the adjusted corresponding node to the original business process to obtain the target business process.
In one embodiment, the apparatus may further include:
and the execution module is used for acquiring an execution result of the front node of the corresponding node according to the update type of the update model, and modifying the logic parameters in the execution condition of the corresponding node according to the execution result of the front node.
In one embodiment, the apparatus may further include:
and the update type module is used for dividing the update type into a node new type, a node deleted type and a node modified type.
In one embodiment, the apparatus may further include:
the first comparison module is used for acquiring a new node according to the comparison result of the original service node and the target service node, acquiring a first front node of the new node, and setting logic parameters in the execution condition of the new node according to the execution result of the first front node.
The second acquisition module is used for acquiring the first post node of the new node and modifying the logic parameter in the execution condition of the first post node according to the execution result of the new node.
In one embodiment, the apparatus may further include:
the second comparison module is used for acquiring the deleted node according to the comparison result of the original service node and the target service node, acquiring a second prepositive node and a second postsitive node of the deleted node, and modifying the logic parameters in the execution condition of the second postsitive node according to the execution result of the second prepositive node.
In one embodiment, the apparatus may further include:
and the third comparison module is used for acquiring the modified node according to the comparison result of the original service node and the target service node, acquiring a third front node of the modified node, and setting logic parameters in the execution condition of the modified node according to the execution result of the third front node.
The third acquisition module is used for acquiring a third post node of the new node and modifying logic parameters in the execution condition of the third post node according to the execution result of the new node.
In one embodiment, the apparatus may further include:
the second receiving module is used for receiving a starting instruction of the target business flow, wherein the starting instruction carries a flow identifier, and issuing a starting node opening event carrying the flow identifier according to the starting instruction;
a fourth obtaining module, configured to obtain a target service flow corresponding to the flow identifier when a start node opening event is monitored;
the fifth acquisition module is used for acquiring the current node which is started by the starting node in the execution condition, judging whether the logic parameter corresponding to the execution condition of the current node is met, if so, executing the current node and storing the execution result of the current node;
and the sixth acquisition module is used for acquiring the next node as the current node, and continuously judging whether the logic parameters corresponding to the execution conditions of the current node are met or not until all the nodes in the target business process are executed.
For specific limitations on the service information updating apparatus, reference may be made to the above limitation on the service information updating method, and no further description is given here. The above-mentioned various modules in the service information updating apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing business information data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a service information updating method.
It will be appreciated by those skilled in the art that the structure shown in FIG. 5 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory storing a computer program and a processor that when executing the computer program performs the steps of: receiving a definition file of a target business process, wherein the definition file carries an original business process identifier; traversing the definition file of the target business process to obtain a target business node of the target business process; acquiring an original business process corresponding to the original business process identifier, extracting an original business node from the acquired original business process, comparing the original business node with a target business node, and obtaining an updating type of business information updating according to a comparison result; and adjusting logic parameters of the execution conditions of the corresponding nodes according to the update types, and associating the adjusted corresponding nodes to the original business process to obtain a target business process.
In one embodiment, the logic parameter involved in adjusting the execution condition of the corresponding node according to the update type of the update mode when the processor executes the computer program may include: acquiring an execution result of a front node of the corresponding node according to the update type of the update model, and modifying logic parameters in the execution condition of the corresponding node according to the execution result of the front node
In one embodiment, the types of updates involved in the execution of the computer program by the processor may include: new node addition type, deleted node type and modified node type.
In one embodiment, when the update type involved in executing the computer program by the processor is a node newly added type, adjusting the logic parameter of the execution condition of the corresponding node according to the update type may include: acquiring a new node according to a comparison result of the original service node and the target service node, acquiring a first preposed node of the new node, and setting logic parameters in an execution condition of the new node according to an execution result of the first preposed node; and acquiring a first post node of the new node, and modifying logic parameters in the execution conditions of the first post node according to the execution result of the new node.
In one embodiment, when the update type involved in executing the computer program by the processor is a node deletion type, adjusting the logic parameter of the execution condition of the corresponding node according to the update type may include: and acquiring a deleted node according to the comparison result of the original service node and the target service node, acquiring a second preposed node and a second postsed node of the deleted node, and modifying logic parameters in the execution condition of the second postsed node according to the execution result of the second preposed node.
In one embodiment, when the update type involved in executing the computer program by the processor is a node modification type, adjusting the logic parameter of the execution condition of the corresponding node according to the update type may include: acquiring a modified node according to a comparison result of the original service node and the target service node, acquiring a third preposed node of the modified node, and setting logic parameters in an execution condition of the modified node according to an execution result of the third preposed node; and acquiring a third post node of the new node, and modifying logic parameters in the execution conditions of the third post node according to the execution result of the new node.
In one embodiment, after associating the adjusted corresponding node to the original business process, the processor when executing the computer program may further include: receiving a starting instruction of a target business process, wherein the starting instruction carries a process identifier, and issuing a starting node starting event carrying the process identifier according to the starting instruction; when a starting node starting event is monitored, acquiring a target business process corresponding to a process identifier; acquiring a current node which is started by a starting node in an execution condition, judging whether logic parameters corresponding to the execution condition of the current node are met, if so, executing the current node and storing an execution result of the current node; and acquiring the next node as the current node, and continuously judging whether logic parameters corresponding to the execution conditions of the current node are met or not until all nodes in the target business flow are executed.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: receiving a definition file of a target business process, wherein the definition file carries an original business process identifier; traversing the definition file of the target business process to obtain a target business node of the target business process; acquiring an original business process corresponding to the original business process identifier, extracting an original business node from the acquired original business process, comparing the original business node with a target business node, and obtaining an updating type of business information updating according to a comparison result; and adjusting logic parameters of the execution conditions of the corresponding nodes according to the update types, and associating the adjusted corresponding nodes to the original business process to obtain a target business process.
In one embodiment, the logic parameter involved in adjusting the execution condition of the corresponding node according to the update type of the update mode when the computer program is executed by the processor may include: acquiring an execution result of a front node of the corresponding node according to the update type of the update model, and modifying logic parameters in the execution condition of the corresponding node according to the execution result of the front node
In one embodiment, the types of updates involved in the execution of the computer program by the processor may include: new node addition type, deleted node type and modified node type.
In one embodiment, when the update type related to the execution of the computer program by the processor is a node newly added type, adjusting the logic parameter of the execution condition of the corresponding node according to the update type may include: acquiring a new node according to a comparison result of the original service node and the target service node, acquiring a first preposed node of the new node, and setting logic parameters in an execution condition of the new node according to an execution result of the first preposed node; and acquiring a first post node of the new node, and modifying logic parameters in the execution conditions of the first post node according to the execution result of the new node.
In one embodiment, when the update type related to the execution of the computer program by the processor is a node deletion type, adjusting the logic parameter of the execution condition of the corresponding node according to the update type may include: and acquiring a deleted node according to the comparison result of the original service node and the target service node, acquiring a second preposed node and a second postsed node of the deleted node, and modifying logic parameters in the execution condition of the second postsed node according to the execution result of the second preposed node.
In one embodiment, when the update type involved in the execution of the computer program by the processor is a node modification type, adjusting the logic parameter of the execution condition of the corresponding node according to the update type may include: acquiring a modified node according to a comparison result of the original service node and the target service node, acquiring a third preposed node of the modified node, and setting logic parameters in an execution condition of the modified node according to an execution result of the third preposed node; and acquiring a third post node of the new node, and modifying logic parameters in the execution conditions of the third post node according to the execution result of the new node.
In one embodiment, after associating the adjusted corresponding node to the original business process, the computer program when executed by the processor may further include: receiving a starting instruction of a target business process, wherein the starting instruction carries a process identifier, and issuing a starting node starting event carrying the process identifier according to the starting instruction; when a starting node starting event is monitored, acquiring a target business process corresponding to a process identifier; acquiring a current node which is started by a starting node in an execution condition, judging whether logic parameters corresponding to the execution condition of the current node are met, if so, executing the current node and storing an execution result of the current node; and acquiring the next node as the current node, and continuously judging whether logic parameters corresponding to the execution conditions of the current node are met or not until all nodes in the target business flow are executed.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (9)

1. A method for updating service information, the method comprising:
receiving a definition file of a target business process, wherein the definition file carries an original business process identifier;
traversing the definition file of the target business process to obtain a target business node of the target business process;
acquiring an original business process corresponding to the original business process identifier, extracting an original business node from the acquired original business process, comparing the original business node with the target business node, and obtaining an updating type of business information updating according to a comparison result, wherein the updating type comprises a node newly added type;
And adjusting logic parameters of the execution conditions of the corresponding nodes according to the update type, and associating the adjusted corresponding nodes to the original business process to obtain the target business process, wherein when the update type is a new node addition type, the logic parameters of the execution conditions of the corresponding nodes are adjusted according to the update type, and the method comprises the following steps: acquiring a new node according to a comparison result of the original service node and the target service node, acquiring a first preposed node of the new node, and setting logic parameters in an execution condition of the new node according to an execution result of the first preposed node; and acquiring a first post node of the new node, and modifying logic parameters in the execution conditions of the first post node according to the execution result of the new node.
2. The method according to claim 1, wherein the adjusting the logic parameter of the execution condition of the corresponding node according to the update type of the update mode comprises:
and acquiring an execution result of a front node of the corresponding node according to the update type of the update model, and modifying logic parameters in the execution condition of the corresponding node according to the execution result of the front node.
3. The method according to claim 1 or 2, wherein the update type further comprises:
and (3) a node deletion type and a node modification type.
4. The method of claim 3, wherein when the update type is a node delete type, the adjusting the logic parameter of the execution condition of the corresponding node according to the update type comprises:
and acquiring a deleted node according to a comparison result of the original service node and the target service node, acquiring a second preposed node and a second postsed node of the deleted node, and modifying logic parameters in an execution condition of the second postsed node according to an execution result of the second preposed node.
5. The method of claim 3, wherein when the update type is a node modification type, the adjusting the logic parameter of the execution condition of the corresponding node according to the update type includes:
acquiring a modification node according to a comparison result of the original service node and the target service node, acquiring a third preposed node of the modification node, and setting logic parameters in an execution condition of the modification node according to an execution result of the third preposed node;
and acquiring a third post node of the new node, and modifying logic parameters in the execution conditions of the third post node according to the execution result of the new node.
6. The method of claim 1, wherein after associating the adjusted corresponding node to the original business process, further comprising:
receiving a start instruction of the target business process, wherein the start instruction carries a process identifier, and issuing a start node opening event carrying the process identifier according to the start instruction;
when the starting node starting event is monitored, acquiring a target business process corresponding to the process identifier;
acquiring a current node which is started by a starting node in an execution condition, judging whether logic parameters corresponding to the execution condition of the current node are met, if so, executing the current node and storing an execution result of the current node;
and acquiring the next node as the current node, and continuously judging whether logic parameters corresponding to the execution conditions of the current node are met or not until all nodes in the target business process are executed.
7. A service information updating apparatus, characterized in that the apparatus comprises:
the receiving module is used for receiving a definition file of the target business process, wherein the definition file carries an original business process identifier;
The traversing module is used for traversing the definition file of the target business process to obtain a target business node of the target business process;
the acquisition module is used for acquiring an original business process corresponding to the original business process identifier, extracting an original business node from the acquired original business process, comparing the original business node with the target business node, and obtaining an updating type of business information updating according to a comparison result, wherein the updating type comprises a node newly added type;
the adjustment module is configured to adjust a logic parameter of an execution condition of a corresponding node according to the update type, and associate the adjusted corresponding node to the original business process to obtain the target business process, where when the update type is a new node type, the adjusting the logic parameter of the execution condition of the corresponding node according to the update type includes: acquiring a new node according to a comparison result of the original service node and the target service node, acquiring a first preposed node of the new node, and setting logic parameters in an execution condition of the new node according to an execution result of the first preposed node; and acquiring a first post node of the new node, and modifying logic parameters in the execution conditions of the first post node according to the execution result of the new node.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN201910915580.XA 2019-09-26 2019-09-26 Service information updating method, device, computer equipment and storage medium Active CN110750267B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910915580.XA CN110750267B (en) 2019-09-26 2019-09-26 Service information updating method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910915580.XA CN110750267B (en) 2019-09-26 2019-09-26 Service information updating method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110750267A CN110750267A (en) 2020-02-04
CN110750267B true CN110750267B (en) 2023-09-01

Family

ID=69277109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910915580.XA Active CN110750267B (en) 2019-09-26 2019-09-26 Service information updating method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110750267B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111638904B (en) * 2020-05-11 2023-12-22 贝壳技术有限公司 Data configuration restoration method and device and readable storage medium
CN112286572A (en) * 2020-10-23 2021-01-29 北京三快在线科技有限公司 Configuration method and device of business process
CN114489572B (en) * 2020-11-13 2023-12-29 华为技术有限公司 Service demand adjustment method and related equipment
CN112416627B (en) * 2020-12-02 2023-08-18 北京皮尔布莱尼软件有限公司 Event information processing method based on flow, computing equipment and storage medium
CN113064905B (en) * 2021-03-25 2024-04-16 北京京东乾石科技有限公司 Business process processing method, device, electronic equipment and computer readable medium
CN113298343B (en) * 2021-03-31 2023-11-14 阿里巴巴新加坡控股有限公司 Task generation method, task execution method and device
CN113780778A (en) * 2021-08-30 2021-12-10 北京沃东天骏信息技术有限公司 Information processing method and device and storage medium
CN116932008B (en) * 2023-09-12 2023-12-08 湖南速子文化科技有限公司 Method, device, equipment and medium for updating component data of virtual society simulation

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107886295A (en) * 2017-10-23 2018-04-06 东软集团股份有限公司 Flow template changing process method, device, readable storage medium storing program for executing and electronic equipment
CN109144487A (en) * 2018-09-26 2019-01-04 平安普惠企业管理有限公司 Into part business development method, apparatus, computer equipment and storage medium
CN109447411A (en) * 2018-09-26 2019-03-08 平安普惠企业管理有限公司 Business Process Control method, apparatus, computer equipment and storage medium
CN109656585A (en) * 2018-09-27 2019-04-19 深圳壹账通智能科技有限公司 Upgrade method, device, equipment and the storage medium of flow instance
CN109669690A (en) * 2018-09-25 2019-04-23 平安科技(深圳)有限公司 Vocational work stream generating method, device, equipment and computer readable storage medium
WO2019096103A1 (en) * 2017-11-16 2019-05-23 华为技术有限公司 Method and device for configuring service flow

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003208501A (en) * 2002-01-11 2003-07-25 Hitachi Ltd Business process definition display method and program
CN101520861A (en) * 2008-02-29 2009-09-02 国际商业机器公司 Data event sending method and device and event handling system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107886295A (en) * 2017-10-23 2018-04-06 东软集团股份有限公司 Flow template changing process method, device, readable storage medium storing program for executing and electronic equipment
WO2019096103A1 (en) * 2017-11-16 2019-05-23 华为技术有限公司 Method and device for configuring service flow
CN109669690A (en) * 2018-09-25 2019-04-23 平安科技(深圳)有限公司 Vocational work stream generating method, device, equipment and computer readable storage medium
CN109144487A (en) * 2018-09-26 2019-01-04 平安普惠企业管理有限公司 Into part business development method, apparatus, computer equipment and storage medium
CN109447411A (en) * 2018-09-26 2019-03-08 平安普惠企业管理有限公司 Business Process Control method, apparatus, computer equipment and storage medium
CN109656585A (en) * 2018-09-27 2019-04-19 深圳壹账通智能科技有限公司 Upgrade method, device, equipment and the storage medium of flow instance

Also Published As

Publication number Publication date
CN110750267A (en) 2020-02-04

Similar Documents

Publication Publication Date Title
CN110750267B (en) Service information updating method, device, computer equipment and storage medium
CN110008118B (en) Page data testing method and device, computer equipment and storage medium
CN110647438B (en) Event monitoring method and device, computer equipment and storage medium
CN110209652B (en) Data table migration method, device, computer equipment and storage medium
CN109446068B (en) Interface test method, device, computer equipment and storage medium
CN109474578B (en) Message checking method, device, computer equipment and storage medium
CN108322533A (en) Configuration and synchronization method between distributed type assemblies node based on operation log
CN109902272B (en) Electronic form data processing method, electronic form data processing device, computer equipment and storage medium
CN110851159B (en) Business rule updating method and device, computer equipment and storage medium
CN108965383B (en) File synchronization method and device, computer equipment and storage medium
CN110727724B (en) Data extraction method and device, computer equipment and storage medium
CN109389299B (en) Workflow process deployment method, workflow process deployment device, computer equipment and storage medium
CN110727698A (en) Database access method and device, computer equipment and storage medium
CN108512948B (en) Address book updating method and device, computer equipment and storage medium
CN110795171A (en) Service data processing method and device, computer equipment and storage medium
CN105260639A (en) Face recognition system data update method and device
CN108509322B (en) Method for avoiding excessive return visit, electronic device and computer readable storage medium
CN112613993A (en) Transaction data processing method and device, computer equipment and storage medium
CN108389124B (en) Data processing method, data processing device, computer equipment and storage medium
CN110659373A (en) Image retrieval method, image retrieval device, computer device and storage medium
CN111382976B (en) Early warning data processing method and device, computer equipment and storage medium
CN113439424B (en) Establishing a blockchain having blocks including an adjustable number of transaction blocks and a plurality of intermediate blocks
CN110597782B (en) Database dynamic switching method and device, computer equipment and storage medium
CN110569240B (en) Data storage method and device, computer equipment and storage medium
CN109857344B (en) Heartbeat state judgment method and device based on shared memory and computer equipment

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