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

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

Info

Publication number
CN110750267A
CN110750267A CN201910915580.XA CN201910915580A CN110750267A CN 110750267 A CN110750267 A CN 110750267A CN 201910915580 A CN201910915580 A CN 201910915580A CN 110750267 A CN110750267 A CN 110750267A
Authority
CN
China
Prior art keywords
node
original
business process
execution
acquiring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910915580.XA
Other languages
Chinese (zh)
Other versions
CN110750267B (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

Images

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 method and an apparatus for updating service information, a computer device, and a 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 service flow corresponding to an original service flow identifier, extracting an original service node from the acquired original service flow, comparing the original service node with a target service node, and obtaining an update type of service information update according to a comparison result; and adjusting the logic parameters of the execution conditions of the corresponding nodes according to the updating type, and associating the adjusted corresponding nodes to the original business process to obtain the target business process. The method can save the updating time of the business process.

Description

Service information updating method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for updating service information, a computer device, and a storage medium.
Background
With the development of modern technology, a workflow concept appears, for example, a workflow is proposed for a business in daily work of an enterprise, and a process of automatically processing the business of the enterprise is called a workflow, and in the process of business processing, the business processing can be completed according to defined business process processing steps.
However, in the field of vehicle processing, the workflow has too strong coupling, and some minor adjustments, such as adding or deleting some nodes in the process, need to be modified into the code of the whole workflow before being reissued, which wastes time in processing.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a business information updating method, a business information updating apparatus, a computer device, and a storage medium, which can save the business process updating 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 service flow corresponding to the original service flow identification, extracting an original service node from the acquired original service flow, comparing the original service node with the target service node, and obtaining an update type of service information update according to a comparison result;
and adjusting the logic parameters of the execution conditions of the corresponding nodes according to the updating type, and associating the adjusted corresponding nodes to the original business process to obtain the target business process. In this embodiment, the execution logic of the original service node in the original flow is changed to the execution logic of the target service flow by adjusting the logic parameter of the execution condition of the corresponding node, so that the time for updating the service flow information is saved compared with the case of modifying the whole workflow code.
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 the logic parameters in the execution conditions of the corresponding node according to the execution result of the front node. The embodiment achieves the purpose of updating the service flow by classifying the update types of the service information update and acquiring the logic parameters of the execution conditions of the nodes corresponding to the update types, thereby saving the time for updating the service flow information.
In one embodiment, the update type includes:
node addition, node deletion and node modification.
In one embodiment, when the update type is a node addition type, the adjusting the logic parameter of the execution condition of the corresponding node according to the update type includes:
acquiring a newly added node according to a comparison result of the original service node and the target service node, acquiring a first front node of the newly added node, and setting a logic parameter in an execution condition of the newly added node according to an execution result of the first front node;
and acquiring a first post node of the newly added node, and modifying logic parameters in the execution conditions of the first post node according to the execution result of the newly added 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 whole workflow code to newly add the node, 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 the comparison result of the original service node and the target service node, acquiring a second front node and a second rear node of the deleted node, and modifying logic parameters in the execution conditions of the second rear node according to the execution result of the second front node. In the embodiment, the server can update the service flow when the node is deleted by the original service flow, and compared with the node deleted by modifying the whole workflow code, 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 the comparison result of the original service node and the target service node, acquiring a third front node of the modification node, and setting a logic parameter in the execution condition of the modification node according to the execution result of the third front node;
and acquiring a third post node of the newly added node, and modifying logic parameters in the execution conditions of the third post node according to the execution result of the newly added node.
In the embodiment, the server can update the service flow when the node is modified by the original service flow, and compared with modifying the node by modifying the whole workflow code, the time for updating the service flow information is saved.
In one embodiment, after associating the adjusted corresponding node to the original business process, the method further includes:
receiving a starting instruction of the target service process, wherein the starting instruction carries a process identifier; issuing a starting node starting event carrying a flow identification according to the starting instruction;
when the starting node starting event is monitored, acquiring a target service process corresponding to the process identification;
acquiring a current node of which the execution condition comprises starting node opening, judging whether a logic parameter corresponding to the execution condition of the current node is satisfied, if so, executing the current node and storing an execution result of the current node;
and acquiring a next node as a 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. In the embodiment, the target business process after the business information is updated is executed according to the logic parameter of the updated execution condition, so that the integrity of the target business process is ensured.
A traffic information updating apparatus, the apparatus comprising:
the receiving module is used for receiving a definition file of a target business process, wherein the definition file carries an original business process identifier;
the traversal 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 service flow corresponding to the original service flow identifier, extracting an original service node from the acquired original service flow, comparing the original service node with the target service node, and obtaining an update type of service information update 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 updating 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 above method when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
In order to save the update time consumed by the workflow to update the service information, the method and the device for adjusting the pressure test, the computer equipment and the storage medium receive a definition file of a target service process, wherein the definition file carries an original service 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 service flow corresponding to the original service flow identifier according to the original service flow identifier, extracting an original service node from the acquired original service flow, comparing the original service node with a target service node, and obtaining an update type of service information update according to a comparison result; and adjusting the logic parameters of the execution conditions of the corresponding nodes according to the updating type, and associating the adjusted corresponding nodes to the original business process to obtain the target business process. By adjusting the logic parameters of the execution conditions of the corresponding nodes, the execution logic of the original service node of the original flow is changed into the execution logic of the target service flow, and compared with the modification of the whole workflow code, the time for updating the service flow information is saved.
Drawings
Fig. 1 is an application scenario diagram of a service information updating method in an embodiment;
fig. 2 is a schematic flow chart of a service information updating method in an embodiment;
FIG. 3 is a flow diagram illustrating the operational steps of a target business process in one embodiment;
fig. 4 is a block diagram showing the structure of a service information updating apparatus according to an embodiment;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The service information updating method provided by the application can be applied to the application environment shown in fig. 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 service flow corresponding to the original service flow identifier according to the original service flow identifier, extracting an original service node from the acquired original service flow, comparing the original service node with a target service node, and obtaining an update type of service information update according to a comparison result; and adjusting the logic parameters of the execution conditions of the corresponding nodes according to the updating type, and associating the adjusted corresponding nodes to the original business process to obtain the target business process. By adjusting the logic parameters of the execution conditions of the corresponding nodes, the execution logic of the original service node of the original flow is changed into the execution logic of the target service flow, and the whole workflow code is also modified, so that the time for updating the service flow information is saved. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In an embodiment, as shown in fig. 2, a service information updating method is provided, which is described by taking the method as an example applied to the server 104 in fig. 1, and includes the following steps:
step 202, receiving a definition file of the target business process, wherein the definition file carries an original business process identifier.
Specifically, the server receives a definition file of a target service flow sent by the terminal, where the definition file includes data of each flow node of the target service flow, is used to define updating of the service flow, and carries an original service flow identifier. The target business process may be a business process in which the original business is updated according to the needs of the business party. The definition file of the target business process may carry an original business process identifier corresponding to the original business process, and is used to instruct the definition file of the target business process to update the original business process.
And 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 traversal operation on the definition file of the target business process, and obtains a target business node of the target business process through file traversal, where the target business node may be each step of the target business process.
And step 206, acquiring the original service flow corresponding to the original service flow identifier, extracting an original service node from the acquired original service flow, comparing the original service node with the target service node, and obtaining an update type of service information update according to the comparison result.
Specifically, after acquiring a target service node of a target service flow, the server acquires a corresponding original service flow according to an original task flow identifier, may extract the original service node from the original service flow by a traversal method, and compare the extracted original service node with the target service node to obtain a comparison result, and according to the comparison result, may obtain an update type of the target service flow with respect to service information of the original service flow, where the update type may be, for example: the node adding type is adopted, the number of the nodes of the target service node of the target service process is increased relative to the number of the original service node of the original service process, and the updating type of the service information updating is the node adding type; and if the number of the nodes of the target service node of the target service process is reduced relative to the number of the original service node of the original service process, the update type of the service information update is the node deletion type and other types.
And 208, adjusting the 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.
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 a logic result of the node B and the node C, for example, when the operation result of the node B and the node C is determined to be true, the node a may execute. After the server obtains the update type of the service update, the server adjusts the logic parameters of the execution conditions of the corresponding nodes 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 node new type, the corresponding nodes are the new nodes and the nodes of the post-flow of the new nodes, and after the adjustment, the adjusted corresponding nodes are associated to the original service flow for service update.
In the service information updating method, a server receives a definition file of a target service process, and the definition file carries an original service 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 service flow corresponding to the original service flow identifier according to the original service flow identifier, extracting an original service node from the acquired original service flow, comparing the original service node with a target service node, and obtaining an update type of service information update according to a comparison result; and adjusting the logic parameters of the execution conditions of the corresponding nodes according to the updating type, and associating the adjusted corresponding nodes to the original business process to obtain the target business process. By adjusting the logic parameters of the execution conditions of the corresponding nodes, the execution logic of the original service node of the original flow is changed into the execution logic of the target service flow, and compared with the modification of the whole workflow code, the time for updating the service flow information is saved.
In an 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 the logic parameters in the execution conditions of the corresponding node according to the execution result of the front node.
Specifically, the update model may be preset and includes a corresponding relationship between the update type and the corresponding node, the server obtains the corresponding node of the update type according to the update model, obtains a front node of a front flow of the corresponding node, and modifies a logic parameter in an execution condition of the corresponding node according to an execution result of the front node, for example, when the update type is the node new type, the corresponding node is a new node D and a node E of a rear flow of the new node, the front node of the node D and the node E is obtained, the front node of the node D is a node F of the front flow, the front node of the node E is a new node D, and 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 addition type, where the number of the target service node of the target service flow is increased relative to the original service node of the original service flow, and the update type of the service information update is the node addition type; the node deletion type is adopted, the number of the nodes of the target service node of the target service process is reduced relative to the original service node of the original service process, and the update type of the service information update is the node deletion type; and modifying the nodes, wherein the number of the nodes of the target service node of the target service process is not changed relative to the original service node of the original service process, but the service information of the nodes is changed, and the updating type of the service information is the node modification.
In this embodiment, the server classifies the update type of the service information update, and the purpose of updating the service flow is achieved by obtaining the logic parameter of the execution condition of the node corresponding to the update type.
In an embodiment, when the update type in the service information update method is a node addition type, adjusting the logic parameter of the execution condition of the corresponding node according to the update type may include: acquiring a newly added node according to a comparison result of an original service node and a target service node, acquiring a first front node of the newly added node, and setting a logic parameter in an execution condition of the newly added node according to an execution result of the first front node; and acquiring a first post node of the newly added node, and modifying the logic parameters in the execution conditions of the first post node according to the execution result of the newly added node.
Specifically, the first front-end node is a node of a previous process of the current node, and may include one or more nodes, the first back-end node is a node of a subsequent process of the current node, and may include one or more nodes, and when the update type of the service information update is a node addition type, the step of updating the service information may include: the server obtains a comparison result between an original service node and a target service node, obtains a newly added node according to the comparison result, obtains a first front node of the newly added node, and sets a logic parameter in an execution condition of the newly added node according to the obtained execution result of the first front node, namely the logic parameter in the execution condition of the newly added node can be set as: the execution result of the first front node is true. Acquiring a first rear node of the newly added node, and modifying a logic parameter in an execution condition of the first rear node according to an execution result of the newly added node, that is, the logic parameter in the execution condition of the first rear node may be set as: 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 an 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 front node and a second rear node of the deleted node, and modifying the logic parameters in the execution conditions of the second rear node according to the execution result of the second front node.
Specifically, the second front-end node is a node of a previous process of the current node, and may include one or more nodes, and the second back-end node is a node of a subsequent process of 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, obtains a deleted node according to the comparison result, obtains a second preposed node and a second postpositioned node of the newly added node, and modifies logic parameters in second postpositional execution conditions according to the obtained execution result of the second preposed node, namely the logic parameters in the execution conditions of the second postpositional node can be modified from the fact that the execution result of the deleted node is true to the fact that the execution result of the second preposed node is true.
In this embodiment, the server can update the original service flow when the node is deleted.
In an 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 modification node according to the comparison result of the original service node and the target service node, acquiring a third preposed node of the modification node, and setting a logic parameter in the execution condition of the modification node according to the execution result of the third preposed node; and acquiring a third post node of the newly added node, and modifying the logic parameters in the execution conditions of the third post node according to the execution result of the newly added node.
Specifically, the third front-end node is a node of a previous process of the current node, and may include one or more nodes, and the third rear-end node is a node of a subsequent process of 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 between the original service node and the target service node, obtains a modified node according to the comparison result, obtains a third front node of the modified node, and sets a logic parameter in an execution condition of the modified node according to the obtained execution result of the third front node, that is, the logic parameter in the execution condition of the modified node may be set as: the result of the execution of the third front-end node is true. Acquiring a third post node of the modified node, and modifying the logic parameter in the execution condition of the third post node according to the execution result of the modified node, that is, the logic parameter in the execution condition of the third post node may be set as: the result of the execution of the modified node is true.
In this embodiment, the server can update 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 starting node starting event carrying the flow identification according to the starting instruction.
Specifically, after the server finishes updating the service information to obtain the target service flow, and receives 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 start event carrying the flow identifier, which is used for indicating to start the target service flow.
And 304, when the starting node opening event is monitored, acquiring a target service process corresponding to the process identifier.
Specifically, when the server monitors a start node start event, the corresponding target service flow may be obtained through the flow identifier, the monitoring process may be that a publishing module in the server publishes the start event, and an operating module in the server receives the start event and then indicates the operation of the target service flow.
Step 306, obtaining the current node of which the execution condition includes the start node, and judging whether the logic parameter corresponding to the execution condition of the current node is satisfied, if so, executing the current node and saving the execution result of the current node.
Specifically, after the server acquires the corresponding target service flow, the server acquires a current node including a start node in the target service flow, and determines whether a logic parameter corresponding to an execution condition of the current node is satisfied, for example, the logic parameter of the initial node of the target service flow is that a start event is received, that is, after the start event is received, the server executes the node and stores an execution result.
And 308, 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.
Specifically, after the current node is executed, the server acquires a next node of a next post-process of the current node as the current node, and continuously judges whether a logic parameter corresponding to an execution condition of the current node meets an execution result of a previous current node, and when the logic parameter meets the execution result, the server continuously acquires the next node as the current node until all the nodes in the target service process are executed, that is, the target service process is completed.
In this embodiment, the server can execute the target service flow after the service information is updated according to the logic parameter of the updated execution condition, thereby ensuring the integrity of the target service flow.
In an embodiment, according to the service information updating method, the server may receive a new service flow (target service flow) updated for the original service flow, obtain the original service flow through an original service flow identifier carried in a definition file of the target service flow, compare the original service flow with the target service flow to obtain a type of service update, adjust different types of flow nodes according to the type, and then associate the adjusted flow nodes into the original service flow to complete the update of the original service flow into the target service flow.
It should be understood that, although the steps in the flowcharts of fig. 2 and 3 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2 and 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, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the sub-steps or stages 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:
a receiving module 402, configured to receive a definition file of a target service process, where the definition file carries an original service process identifier.
And a traversing module 404, configured to traverse the definition file of the target business process to obtain a target business node of the target business process.
An obtaining module 406, 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.
An adjusting module 408, 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 with the original service flow to obtain the target service flow.
In one embodiment, the apparatus may further comprise:
and the execution module is used for acquiring the 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 conditions of the corresponding node according to the execution result of the front node.
In one embodiment, the apparatus may further comprise:
and the updating type module is used for dividing the updating type into a node adding type, a node deleting type and a node modifying type.
In one embodiment, the apparatus may further comprise:
and the first comparison module is used for acquiring the newly added node according to the comparison result of the original service node and the target service node, acquiring a first preposed node of the newly added node, and setting the logic parameters in the execution conditions of the newly added node according to the execution result of the first preposed node.
And the second acquisition module is used for acquiring the first rear node of the newly added node and modifying the logic parameters in the execution conditions of the first rear node according to the execution result of the newly added node.
In one embodiment, the apparatus may further comprise:
and 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 front node and a second rear node of the deleted node, and modifying the logic parameters in the execution conditions of the second rear node according to the execution result of the second front node.
In one embodiment, the apparatus may further comprise:
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 preposed node of the modified node, and setting the logic parameter in the execution condition of the modified node according to the execution result of the third preposed node.
And the third acquisition module is used for acquiring a third rear node of the newly added node and modifying the logic parameters in the execution conditions of the third rear node according to the execution result of the newly added node.
In one embodiment, the apparatus may further comprise:
the second receiving module is used for receiving a starting instruction of the target service 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;
the fourth obtaining module is used for obtaining a target service process corresponding to the process identifier when a starting node starting event is monitored;
a fifth obtaining module, configured to obtain a current node whose execution condition includes starting node starting, and determine whether a logic parameter corresponding to the execution condition of the current node is satisfied, if so, execute the current node and store an 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 of the service information updating apparatus, reference may be made to the above limitations of the service information updating method, which is not described herein again. The respective modules in the service information updating apparatus described above may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
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 comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the service 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.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: 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 service flow corresponding to an original service flow identifier, extracting an original service node from the acquired original service flow, comparing the original service node with a target service node, and obtaining an update type of service information update according to a comparison result; and adjusting the logic parameters of the execution conditions of the corresponding nodes according to the updating type, and associating the adjusted corresponding nodes to the original business process to obtain the target business process.
In one embodiment, the logic parameter involved in the processor executing the computer program for adjusting the execution condition of the corresponding node according to the update type of the update mode may include: obtaining the execution result of the front node of the corresponding node according to the update type of the update model, and modifying the logic parameter 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: node addition, node deletion and node modification.
In an embodiment, when the update type involved in the execution of the computer program by the processor is the node addition type, the adjusting the logic parameter of the execution condition of the corresponding node according to the update type may include: acquiring a newly added node according to a comparison result of an original service node and a target service node, acquiring a first front node of the newly added node, and setting a logic parameter in an execution condition of the newly added node according to an execution result of the first front node; and acquiring a first post node of the newly added node, and modifying the logic parameters in the execution conditions of the first post node according to the execution result of the newly added node.
In one embodiment, when the update type involved in the execution of the computer program by the processor is the 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 front node and a second rear node of the deleted node, and modifying the logic parameters in the execution conditions of the second rear node according to the execution result of the second front 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 modification node according to the comparison result of the original service node and the target service node, acquiring a third preposed node of the modification node, and setting a logic parameter in the execution condition of the modification node according to the execution result of the third preposed node; and acquiring a third post node of the newly added node, and modifying the logic parameters in the execution conditions of the third post node according to the execution result of the newly added node.
In one embodiment, the associating the adjusted corresponding node to the original business process, which is implemented when the processor executes the computer program, may further include: receiving a starting instruction of a target service flow, wherein the starting instruction carries a flow identifier, and issuing a starting node starting event carrying the flow identifier according to the starting instruction; when a starting node starting event is monitored, acquiring a target service flow corresponding to the flow identification; acquiring a current node of which the execution condition comprises starting node opening, judging whether a logic parameter corresponding to the execution condition of the current node is 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 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.
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 service flow corresponding to an original service flow identifier, extracting an original service node from the acquired original service flow, comparing the original service node with a target service node, and obtaining an update type of service information update according to a comparison result; and adjusting the logic parameters of the execution conditions of the corresponding nodes according to the updating type, and associating the adjusted corresponding nodes to the original business process to obtain the target business process.
In one embodiment, the logic parameter for adjusting the execution condition of the corresponding node according to the update type of the update mode involved in the execution of the computer program by the processor may include: obtaining the execution result of the front node of the corresponding node according to the update type of the update model, and modifying the logic parameter 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: node addition, node deletion and node modification.
In one embodiment, when the update type involved in the execution of the computer program by the processor is a node addition type, the adjusting the logic parameter of the execution condition of the corresponding node according to the update type may include: acquiring a newly added node according to a comparison result of an original service node and a target service node, acquiring a first front node of the newly added node, and setting a logic parameter in an execution condition of the newly added node according to an execution result of the first front node; and acquiring a first post node of the newly added node, and modifying the logic parameters in the execution conditions of the first post node according to the execution result of the newly added node.
In one embodiment, when the update type involved in the execution of the computer program by the processor is the node deletion type, the 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 front node and a second rear node of the deleted node, and modifying the logic parameters in the execution conditions of the second rear node according to the execution result of the second front node.
In one embodiment, when the update type involved in the execution of the computer program by the processor is a node modification type, the adjusting the logic parameter of the execution condition of the corresponding node according to the update type may include: acquiring a modification node according to the comparison result of the original service node and the target service node, acquiring a third preposed node of the modification node, and setting a logic parameter in the execution condition of the modification node according to the execution result of the third preposed node; and acquiring a third post node of the newly added node, and modifying the logic parameters in the execution conditions of the third post node according to the execution result of the newly added node.
In one embodiment, the associating the adjusted corresponding node to the original business process when the computer program is executed by the processor may further include: receiving a starting instruction of a target service flow, wherein the starting instruction carries a flow identifier, and issuing a starting node starting event carrying the flow identifier according to the starting instruction; when a starting node starting event is monitored, acquiring a target service flow corresponding to the flow identification; acquiring a current node of which the execution condition comprises starting node opening, judging whether a logic parameter corresponding to the execution condition of the current node is 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 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.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile 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), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method 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 service flow corresponding to the original service flow identification, extracting an original service node from the acquired original service flow, comparing the original service node with the target service node, and obtaining an update type of service information update according to a comparison result;
and adjusting the logic parameters of the execution conditions of the corresponding nodes according to the updating type, and associating the adjusted corresponding nodes to the original business process to obtain the target business process.
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 the logic parameters in the execution conditions of the corresponding node according to the execution result of the front node.
3. The method of claim 1 or 2, wherein the update type comprises:
node addition, node deletion and node modification.
4. The method of claim 3, wherein when the update type is a node addition type, the adjusting the logic parameter of the execution condition of the corresponding node according to the update type comprises:
acquiring a newly added node according to a comparison result of the original service node and the target service node, acquiring a first front node of the newly added node, and setting a logic parameter in an execution condition of the newly added node according to an execution result of the first front node;
and acquiring a first post node of the newly added node, and modifying logic parameters in the execution conditions of the first post node according to the execution result of the newly added node.
5. The method according to claim 3, wherein 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 the comparison result of the original service node and the target service node, acquiring a second front node and a second rear node of the deleted node, and modifying logic parameters in the execution conditions of the second rear node according to the execution result of the second front node.
6. The method according to 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 comprises:
acquiring a modification node according to the comparison result of the original service node and the target service node, acquiring a third front node of the modification node, and setting a logic parameter in the execution condition of the modification node according to the execution result of the third front node;
and acquiring a third post node of the newly added node, and modifying logic parameters in the execution conditions of the third post node according to the execution result of the newly added node.
7. The method of claim 1, wherein associating the adjusted corresponding node to the original business process further comprises:
receiving a starting instruction of the target service flow, wherein the starting instruction carries a flow identifier, and issuing a starting node starting event carrying the flow identifier according to the starting instruction;
when the starting node starting event is monitored, acquiring a target service process corresponding to the process identification;
acquiring a current node of which the execution condition comprises starting node opening, judging whether a logic parameter corresponding to the execution condition of the current node is satisfied, if so, executing the current node and storing an execution result of the current node;
and acquiring a next node as a 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.
8. A service information updating apparatus, comprising:
the receiving module is used for receiving a definition file of a target business process, wherein the definition file carries an original business process identifier;
the traversal 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 service flow corresponding to the original service flow identifier, extracting an original service node from the acquired original service flow, comparing the original service node with the target service node, and obtaining an update type of service information update 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 updating types and associating the adjusted corresponding nodes to the original business process to obtain the target business process.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
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 true CN110750267A (en) 2020-02-04
CN110750267B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111638904A (en) * 2020-05-11 2020-09-08 贝壳技术有限公司 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
CN112416627A (en) * 2020-12-02 2021-02-26 北京皮尔布莱尼软件有限公司 Event information processing method based on process, computing equipment and storage medium
CN113064905A (en) * 2021-03-25 2021-07-02 北京京东乾石科技有限公司 Business process processing method and device, electronic equipment and computer readable medium
CN113298343A (en) * 2021-03-31 2021-08-24 阿里巴巴新加坡控股有限公司 Task generation method, task execution method and device
CN113780778A (en) * 2021-08-30 2021-12-10 北京沃东天骏信息技术有限公司 Information processing method and device and storage medium
CN114489572A (en) * 2020-11-13 2022-05-13 华为技术有限公司 Service demand adjusting method and related equipment
CN116932008A (en) * 2023-09-12 2023-10-24 湖南速子文化科技有限公司 Method, device, equipment and medium for updating component data of virtual society simulation

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030135496A1 (en) * 2002-01-11 2003-07-17 Kazuyuki Ichikawa Management program, method and apparatus for business process definition
US20090228903A1 (en) * 2008-02-29 2009-09-10 International Business Machines Corporation Data event sending method and apparatus and event processing system
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

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030135496A1 (en) * 2002-01-11 2003-07-17 Kazuyuki Ichikawa Management program, method and apparatus for business process definition
US20090228903A1 (en) * 2008-02-29 2009-09-10 International Business Machines Corporation Data event sending method and apparatus and event processing system
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

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111638904A (en) * 2020-05-11 2020-09-08 贝壳技术有限公司 Data configuration restoration method and device and readable storage medium
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
CN114489572A (en) * 2020-11-13 2022-05-13 华为技术有限公司 Service demand adjusting method and related equipment
CN112416627B (en) * 2020-12-02 2023-08-18 北京皮尔布莱尼软件有限公司 Event information processing method based on flow, computing equipment and storage medium
CN112416627A (en) * 2020-12-02 2021-02-26 北京皮尔布莱尼软件有限公司 Event information processing method based on process, computing equipment and storage medium
CN113064905A (en) * 2021-03-25 2021-07-02 北京京东乾石科技有限公司 Business process processing method and device, electronic equipment and computer readable 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
CN113298343A (en) * 2021-03-31 2021-08-24 阿里巴巴新加坡控股有限公司 Task generation method, task execution method and device
CN113780778A (en) * 2021-08-30 2021-12-10 北京沃东天骏信息技术有限公司 Information processing method and device and storage medium
CN116932008A (en) * 2023-09-12 2023-10-24 湖南速子文化科技有限公司 Method, device, equipment and medium for updating component data of virtual society simulation
CN116932008B (en) * 2023-09-12 2023-12-08 湖南速子文化科技有限公司 Method, device, equipment and medium for updating component data of virtual society simulation

Also Published As

Publication number Publication date
CN110750267B (en) 2023-09-01

Similar Documents

Publication Publication Date Title
CN110750267A (en) Service information updating method and device, computer equipment and storage medium
CN110209652B (en) Data table migration method, device, computer equipment and storage medium
CN108897638B (en) Data backup method and device, computer equipment and storage medium
CN110490594B (en) Service data processing method and device, computer equipment and storage medium
CN110851159B (en) Business rule updating method and device, computer equipment and storage medium
CN109389299B (en) Workflow process deployment method, workflow process deployment device, computer equipment and storage medium
CN110955448A (en) Intelligent contract separation method, contract processing method, apparatus, device and medium
CN110795171A (en) Service data processing method and 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
CN110837956A (en) Underground cable inspection task distribution method and device
CN110633306A (en) Service data processing method and device, computer equipment and storage medium
CN110659373B (en) Image retrieval method, image retrieval device, computer device and storage medium
CN108389124B (en) Data processing method, data processing device, computer equipment and storage medium
CN108984754B (en) Client information updating method and device, computer equipment and storage medium
CN113515322B (en) Application program loading method and device, computer equipment and readable storage medium
CN112948504A (en) Data acquisition method and device, computer equipment and storage medium
CN110569240B (en) Data storage method and device, computer equipment and storage medium
CN113439424A (en) Building a blockchain having blocks including an adjustable number of transaction blocks and a plurality of intermediate blocks
CN113742681B (en) Account management method and device, computer equipment and storage medium
CN115510366A (en) Business message pushing method and device, computer equipment and storage medium
CN112507010B (en) Service data processing method and device, computer equipment and storage medium
CN109656948B (en) Bitmap data processing method and device, computer equipment and storage medium
CN112783866A (en) Data reading method and device, computer equipment and storage medium
CN110969430A (en) Method and device for identifying suspicious user, computer equipment and storage medium

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