CN107944662B - Business process control processing method and device - Google Patents

Business process control processing method and device Download PDF

Info

Publication number
CN107944662B
CN107944662B CN201711035931.5A CN201711035931A CN107944662B CN 107944662 B CN107944662 B CN 107944662B CN 201711035931 A CN201711035931 A CN 201711035931A CN 107944662 B CN107944662 B CN 107944662B
Authority
CN
China
Prior art keywords
sub
chain
control
logic
execution
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
CN201711035931.5A
Other languages
Chinese (zh)
Other versions
CN107944662A (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.)
Seashell Housing Beijing Technology Co Ltd
Original Assignee
Seashell Housing Beijing 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 Seashell Housing Beijing Technology Co Ltd filed Critical Seashell Housing Beijing Technology Co Ltd
Priority to CN201711035931.5A priority Critical patent/CN107944662B/en
Publication of CN107944662A publication Critical patent/CN107944662A/en
Application granted granted Critical
Publication of CN107944662B publication Critical patent/CN107944662B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Operations Research (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Educational Administration (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention provides a method and a device for controlling and processing a business process. The method comprises the following steps: dividing a business process to be controlled into a plurality of sub-processes; according to the sub-processes and a pre-established control logic database, a business process control chain corresponding to the business process to be controlled is established, wherein the business process control chain comprises a logic execution chain and/or a result collection chain; and controlling the service process to be controlled according to the service process control chain. The device is used for executing the method. The business process control processing method provided by the embodiment of the invention improves the business process control efficiency.

Description

Business process control processing method and device
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method and a device for controlling and processing a business process.
Background
With the rapid development of computer technology, the control of business processes by computer programs has been widely applied in various scenes, and the problem of control efficiency of business processes is receiving more and more attention from people.
Under the condition of the prior art, when the control logic of one service flow is relatively complex, the control logic of the service flow is usually divided into a plurality of sub-control logics, so that the sub-control logics with similar functions can be multiplexed, the granularity of the control logic can be reduced, the complexity of each control logic is reduced, when the control logic of the service flow is executed, the management scheduling module coordinates and calls the plurality of sub-control logics, all the sub-control logics are executed in parallel or in series, and if an abnormal error or an unrecoverable error occurs in a certain sub-control logic, the management scheduling module is responsible for rolling back the executed operation, so that the service is recovered to the state of starting the calling without influencing data and the flow. However, in the service flow control processing method under the prior art, each sub-control logic must be completely executed in the execution process of the control logic of one service flow, and if a certain sub-control logic has an error in the execution process, all the sub-control logics that have been executed need to be completely rolled back, which greatly affects the control efficiency of the service flow.
Therefore, it is an important issue to be solved in the industry at present to provide a method for controlling and processing a business process to improve the efficiency of controlling the business process.
Disclosure of Invention
Aiming at the defects in the prior art, the embodiment of the invention provides a method and a device for controlling and processing a business process.
In one aspect, an embodiment of the present invention provides a method for controlling and processing a service flow, including:
dividing a business process to be controlled into a plurality of sub-processes;
according to the sub-processes and a pre-established control logic database, a business process control chain corresponding to the business process to be controlled is established, wherein the business process control chain comprises a logic execution chain and/or a result collection chain;
and controlling the service process to be controlled according to the service process control chain.
On the other hand, an embodiment of the present invention provides a service flow control processing apparatus, including a dividing unit, a creating unit, and a processing unit, where:
the dividing unit is used for dividing the business process to be controlled into a plurality of sub-processes;
a creating unit, configured to create a service flow control chain corresponding to the service flow to be controlled according to each sub-flow and a pre-established control logic database, where the service flow control chain includes a logic execution chain and/or a result collection chain;
and the processing unit is used for controlling and processing the service flow to be controlled according to the service flow control chain.
In another aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a bus, where:
the processor and the memory complete mutual communication through a bus;
the processor may invoke a computer program in memory to perform the steps of the above-described method.
In yet another aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the above-mentioned method.
The business process control processing method and the business process control processing device provided by the embodiment of the invention divide the business process to be controlled into a plurality of sub-processes, establish a business process control chain which corresponds to the business process to be controlled and comprises a logic execution chain and/or a result collection chain according to each sub-process and a pre-established control logic database, and control the business process to be controlled according to the business process control chain, thereby improving the business process control efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for controlling and processing a service flow according to an embodiment of the present invention;
fig. 2 is a schematic overall flow chart of a service flow control processing method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a business process control processing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an entity apparatus of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some embodiments, but not all embodiments, of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow diagram of a service flow control processing method according to an embodiment of the present invention, and as shown in fig. 1, the embodiment provides a service flow control processing method, including:
s101, dividing a business process to be controlled into a plurality of sub-processes;
specifically, the service process control processing device divides the service process to be controlled into a plurality of sub-processes, where the service process to be controlled may be a service process in a plurality of application scenarios, and may be specifically set and adjusted according to actual situations, where no specific limitation is made here, control logics corresponding to the plurality of sub-processes are different, and each of the sub-processes is sequentially executed according to a sequence.
S102, creating a business process control chain corresponding to the business process to be controlled according to the sub-processes and a pre-established control logic database, wherein the business process control chain comprises a logic execution chain and/or a result collection chain;
specifically, the device creates a service flow control chain corresponding to the service flow to be controlled according to the sub-flows and a pre-established control logic database, where the service flow control chain includes a logic execution chain and/or a result collection chain. Wherein the control logic database comprises control logic extracted from a plurality of historical business processes; the sub-processes corresponding to the result collection chain are all necessary execution sub-processes, the sub-processes corresponding to the logic execution chain include at least a non-necessary execution sub-process, and may further include a necessary execution sub-process, which may be specifically set and adjusted according to an actual situation, and this is not specifically limited herein, the necessary execution sub-process is a sub-process that must be executed no matter whether an output result of a previous sub-process is empty, and the non-necessary execution sub-process is a sub-process that determines whether to be executed according to an output result of the previous sub-process.
S103, controlling the service process to be controlled according to the service process control chain.
Specifically, after receiving a start signal of the service process to be controlled, the device runs the service process control chain corresponding to the service process to be controlled, and controls the service process.
The business process control processing method and the business process control processing device provided by the embodiment of the invention divide the business process to be controlled into a plurality of sub-processes, establish a business process control chain which corresponds to the business process to be controlled and comprises a logic execution chain and/or a result collection chain according to each sub-process and a pre-established control logic database, and control the business process to be controlled according to the business process control chain, thereby improving the business process control efficiency.
On the basis of the above embodiment, further, the creating a service flow control chain corresponding to the service flow to be controlled according to the sub-flows and a control logic database established in advance includes:
selecting control logic corresponding to each sub-process from the pre-established control logic database;
and generating a business process control chain corresponding to the business process to be controlled according to the execution sequence of each sub-process and the control logic corresponding to each sub-process.
Specifically, the device selects a control logic corresponding to each sub-process from the control logic database established in advance, and generates a service process control chain corresponding to the service process to be controlled according to the execution sequence of each sub-process and the control logic corresponding to each sub-process.
On the basis of the foregoing embodiment, further, the generating a service flow control chain corresponding to the service flow to be controlled according to the execution order of each sub-flow and the control logic corresponding to each sub-flow includes:
judging whether each sub-process is a sub-process which needs to be executed or not in sequence from back to front according to the execution sequence of each sub-process;
if the nth sub-process is judged and known to be a non-necessary execution sub-process, generating a logic execution chain corresponding to the business process to be controlled according to each sub-process and a control logic corresponding to each sub-process, and taking the logic execution chain as a business process control chain of the business process to be controlled;
if the situation that the nth to nth-i sub-processes are all sub-processes which need to be executed is judged and known, and the nth-i-1 sub-process is a sub-process which does not need to be executed, generating a result collection chain corresponding to the business process to be controlled according to control logics corresponding to the nth to nth-i sub-processes and the nth to nth-i sub-processes, generating a logic execution chain corresponding to the business process to be controlled according to the control logics corresponding to the 1 st to nth-i-1 sub-processes and the 1 st to nth-i-1 sub-processes, and taking the logic execution chain and the result collection chain as a business process control chain of the business process to be controlled; wherein n is the number of sub-processes included in the business process to be controlled, and i is greater than or equal to 0 and less than or equal to n-1.
Specifically, the device sequentially judges whether each sub-process is a sub-process which needs to be executed from back to front according to the execution sequence of each sub-process; if the nth sub-process is judged and known to be a non-necessary execution sub-process, generating a logic execution chain corresponding to the business process to be controlled according to each sub-process and a control logic corresponding to each sub-process, and taking the logic execution chain as a business process control chain of the business process to be controlled; if the situation that the nth to nth-i sub-processes are all sub-processes which need to be executed is judged and known, and the nth-i-1 sub-process is a sub-process which does not need to be executed, generating a result collection chain corresponding to the business process to be controlled according to control logics corresponding to the nth to nth-i sub-processes and the nth to nth-i sub-processes, generating a logic execution chain corresponding to the business process to be controlled according to the control logics corresponding to the 1 st to nth-i-1 sub-processes and the 1 st to nth-i-1 sub-processes, and taking the logic execution chain and the result collection chain as a business process control chain of the business process to be controlled; wherein n is the number of sub-processes included in the business process to be controlled, and i is greater than or equal to 0 and less than or equal to n-1.
For example, if the sub-processes included in the service process a to be controlled are a in turn according to the execution sequence1、A2、A3、A4、A5、A6The device first determines A6If the sub-flow is necessary, if not, whether A is necessary1、A2、A3、A4、A5Whether the sub-process is necessary to be executed or not is determined according to A1、A2、A3、A4、A5、A6And their respectively corresponding control logic generation logic execution chains a1→A2→A3→A4→A5→A6(ii) a If A6If the sub-process has to be executed, continue to judge A5If it is necessary to execute the sub-process, if A5If it is not necessary to perform the sub-flow, A will be6As a result collection chain corresponding to the business process A to be controlled, the A is used1→A2→A3→A4→A5The logic execution chain is used as a logic execution chain corresponding to the business process A to be controlled; if A5If the sub-process has to be executed, continue to judge A4If it is necessary to execute the sub-process, if A4If it is not necessary to perform the sub-flow, A will be5→A6As a result collection chain corresponding to the business process A to be controlled, the A is used1→A2→A3→A4The logic execution chain is used as a logic execution chain corresponding to the business process A to be controlled; if A4If the sub-process has to be executed, continue to judge A3And if the sub-process is necessary to be executed, and so on until a logic execution chain and/or a result collection chain corresponding to the business process A to be controlled are obtained.
On the basis of the above embodiment, further, the control logic includes execution logic; correspondingly, the controlling the service process to be controlled according to the service process control chain includes:
and after receiving a starting signal of the service process to be controlled, sequentially starting the execution logic in the control logic corresponding to each sub-process included in the service process to be controlled according to the execution sequence of each sub-process.
Specifically, the control logic includes execution logic, and after receiving a start signal of the service flow to be controlled, the device sequentially starts the execution logic in the control logic corresponding to each sub-flow included in the service flow to be controlled according to the execution sequence of each sub-flow, so as to implement control processing on the service flow to be controlled.
For example, in the above embodiment, the service process a to be controlled includes a logic execution chain as a1→A2→A3The result collection chain is A4→A5→A6(ii) a Wherein A is1、A2And A3Starting execution when the output result of the previous sub-process is empty, otherwise directly outputting the result by the previous sub-process and directly ending the logic execution chain, namely if A is empty1If the output result is not null, directly outputting the result and ending the logic execution chain, and then sequentially executing A included in the result collection chain4、A5And A6(ii) a If A1If the output result is null, A is executed2If A is2If the execution result is not null, directly outputting the result and ending the logic execution chain, and then sequentially executing A included in the result collection chain4、A5And A6(ii) a If A2If the execution result is null, then A is executed3At A3After the execution is finished, sequentially executing A included in the result collection chain4、A5And A6
On the basis of the above embodiment, further, the control logic further includes rollback logic; correspondingly, the controlling the service process to be controlled according to the service process control chain further includes:
and if the execution process of the logic execution chain is judged to be wrong, obtaining the control logic with the mistake, and performing rollback processing according to the rollback logic included in the control logic with the mistake.
Specifically, the control logic further includes a rollback logic, where the rollback logic includes "whether rollback is needed" and "how to perform rollback operation" (rollback operation rule), and may further include other logics, which may be specifically set and adjusted according to an actual situation, and is not specifically limited herein; if the device judges that the execution process of the logic execution chain is wrong, the device positions the sub-flow with the mistake, acquires the control logic corresponding to the sub-flow as the control logic with the mistake, judges whether to perform rollback according to the rollback logic included in the control logic with the mistake, and performs rollback operation according to a rollback operation rule included in the rollback logic if the rollback is needed; and if the rollback is not required, sending the rollback-not-required prompt message.
For example, if the logic execution chain A1→A2→A3If an error occurs in the execution process, the sub-process of the device with the error is positioned, and the sub-process with the error is known as A2According to said sub-process A2The rollback logic included in the corresponding control logic judges whether rollback is needed, if the sub-process A2If no rollback is required, continue to follow sub-flow A1Rollback logic judgment sub-process A included in corresponding control logic1Whether rollback is required; if sub-Process A2If rollback is needed, the sub-process A is executed according to the rollback operation rule included in the rollback logic2After the rollback operation is performed, the operation is continued according to the sub-process A1Rollback logic judgment sub-process A included in corresponding control logic1If rollback is required, if the sub-process A is required1If rollback is needed, the sub-process A is executed according to the rollback operation rule included in the rollback logic1After the rollback operation is carried out, the rollback flow is ended, and then the result collection chain A is executed4→A5→A6(ii) a If the sub-process A1If no rollback is needed, the rollback flow is directly ended, and then the result collection chain A is executed4→A5→A6. It should be noted that the specific method for locating the sub-process with the error is consistent with the locating method in the prior art, and is not described herein again.
On the basis of the above embodiment, further, the method further includes:
and extracting a plurality of control logics from a plurality of historical service control processes, and establishing the control logic database according to the plurality of control logics.
On the basis of the above embodiment, further, if it is determined that the control logic database does not have the control logic corresponding to the sub-process of the service process to be controlled, the control logic of the sub-process is extracted, and the control logic database is updated according to the control logic of the sub-process.
Specifically, if it is judged and known that the control logic database does not have the control logic corresponding to the sub-process of the business process to be controlled, the device extracts the control logic of the sub-process, and adds the control logic of the sub-process into the control logic database to update the control logic database.
The business process control processing method and the business process control processing device provided by the embodiment of the invention divide the business process to be controlled into a plurality of sub-processes, establish a business process control chain which corresponds to the business process to be controlled and comprises a logic execution chain and/or a result collection chain according to each sub-process and a pre-established control logic database, and control the business process to be controlled according to the business process control chain, thereby improving the business process control efficiency.
The service process control processing method provided by the embodiment of the present invention is further described below with reference to a control process of a service process, taking a service process a to be controlled as an example, and sub-processes included in the service process a to be controlled are sequentially a according to an execution sequence1、A2、A3、A4、A5、A6The logic execution chain is A1→A2→A3The result collection chain is A4→A5→A6(ii) a Fig. 2 is a schematic overall flow chart of a service flow control processing method according to an embodiment of the present invention, and as shown in fig. 2, the service flow control processing method according to the embodiment of the present invention specifically includes the following steps:
s201, executing a logic execution chain; after receiving the start signal of the service process a to be controlled, the device starts to execute the logic execution chain, and then executes step S202; the step S201 specifically includes steps S2011 to S2016;
s2011, execute sub-process A1(ii) a The clothesSetting and executing the sub-process A1Executing logic included in the corresponding control logic, and then executing step S2012;
s2012, judging and executing the sub-flow A1If the output result is empty, executing step S2013 if the output result is empty, otherwise executing step S2016;
s2013, and execute sub-process A2(ii) a The device executes the sub-process A2Executing logic included in the corresponding control logic, and then executing step S2014;
s2014, judging and executing the sub-process A2If the output result is empty, executing step S2015 if yes, otherwise executing step S2016;
s2015, executing sub-flow A3(ii) a The device executes the sub-process A3Executing the execution logic included in the corresponding control logic, and then executing the step S2016;
s2016, logic execution link ending; the device ends the logic execution chain and outputs a result;
s202, judging whether the logic execution chain has errors or not; the device judges whether an error occurs in the execution process of the logic execution chain, if so, the step S203 is executed, otherwise, the step S204 is executed;
s203, executing a rollback flow; the apparatus performs a rollback procedure, the rollback procedure comprising steps S2031-S2036;
s2031, the sub-process of positioning error is A2(ii) a The device positions the sub-process with the error, and the sub-process with the error is obtained as A2Of course, the sub-process with error can be other sub-processes, and is denoted by A2For example, the specific error flow positioning method is consistent with the prior art, and is not described herein again; then, step S2032 is performed;
s2032, judging sub-process A2Whether rollback is required; the device according to the sub-process A2Rollback logic judgment sub-process A in corresponding control logic2If so, executing step S2033, otherwise, executing step S2034;
S2033、execute sub-Process A2The rollback operation of (1); the device according to the sub-process A2The rollback operation rule included in the rollback logic in the corresponding control logic executes the rollback operation; then, step S2034 is performed;
s2034, judging the sub-process A1Whether rollback is required; the device according to the sub-process A1Rollback logic judgment sub-process A in corresponding control logic1If so, executing step S2035, otherwise, executing step S2036;
s2035, executing the sub-flow A1The rollback operation of (1); the device according to the sub-process A1The rollback operation rule included in the rollback logic in the corresponding control logic executes the rollback operation; then, step S2036 is performed;
s2036, ending the rollback flow;
s204, executing a result collection chain;
s2041, executing the sub-process A4(ii) a The device executes the sub-process A4Executing the execution logic included in the corresponding control logic, and then executing step S2042;
s2042, executing the sub-process A5(ii) a The device executes the sub-process A5Executing the execution logic included in the corresponding control logic, and then executing step S2043;
s2043, executing the sub-process A6(ii) a The device executes the sub-process A6Executing the execution logic included in the corresponding control logic, and then executing step S2044;
s2044, result collection chain.
Fig. 3 is a schematic structural diagram of a service flow control processing apparatus according to an embodiment of the present invention, and as shown in fig. 3, a service flow control processing apparatus according to an embodiment of the present invention includes: a dividing unit 301, a creating unit 302 and a processing unit 303, wherein:
the dividing unit 301 is configured to divide a service flow to be controlled into multiple sub-flows; the creating unit 302 is configured to create a service flow control chain corresponding to the service flow to be controlled according to each sub-flow and a pre-established control logic database, where the service flow control chain includes a logic execution chain and/or a result collection chain; the processing unit 303 is configured to perform control processing on the service flow to be controlled according to the service flow control chain.
Optionally, the creating unit 302 is specifically configured to select a control logic corresponding to each sub-process from the control logic database established in advance; and generating a business process control chain corresponding to the business process to be controlled according to the execution sequence of each sub-process and the control logic corresponding to each sub-process.
Optionally, the creating unit 302 is specifically configured to sequentially determine, from back to front, whether each sub-flow is a sub-flow that needs to be executed according to the execution sequence of each sub-flow; if the nth sub-process is judged and known to be a non-necessary execution sub-process, generating a logic execution chain corresponding to the business process to be controlled according to each sub-process and a control logic corresponding to each sub-process, and taking the logic execution chain as a business process control chain of the business process to be controlled; if the situation that the nth to nth-i sub-processes are all sub-processes which need to be executed is judged and known, and the nth-i-1 sub-process is a sub-process which does not need to be executed, generating a result collection chain corresponding to the business process to be controlled according to control logics corresponding to the nth to nth-i sub-processes and the nth to nth-i sub-processes, generating a logic execution chain corresponding to the business process to be controlled according to the control logics corresponding to the 1 st to nth-i-1 sub-processes and the 1 st to nth-i-1 sub-processes, and taking the logic execution chain and the result collection chain as a business process control chain of the business process to be controlled; wherein n is the number of sub-processes included in the business process to be controlled, and i is greater than or equal to 0 and less than or equal to n-1.
Optionally, the control logic comprises execution logic; correspondingly, the processing unit 303 is specifically configured to, after receiving the start signal of the to-be-controlled service flow, sequentially start the execution logic in the control logic corresponding to each sub-flow included in the to-be-controlled service flow according to the execution sequence of each sub-flow.
Optionally, each of the control logics further comprises a rollback logic; correspondingly, the processing unit 303 is specifically configured to, if it is determined that an error occurs in the execution process of the logic execution chain, acquire the control logic in which the error occurs, and perform rollback processing according to a rollback logic included in the control logic in which the error occurs.
Optionally, the creating unit 302 is further configured to extract a plurality of control logics from the control flows of the plurality of historical business flows, and establish the control logic database according to the plurality of control logics.
Optionally, the creating unit 302 is further configured to, if it is determined that the control logic corresponding to the sub-process of the to-be-controlled service process does not exist in the control logic database, extract the control logic of the sub-process, and update the control logic database according to the control logic of the sub-process.
The embodiment of the apparatus provided in the present invention may be specifically configured to execute the processing flows of the above method embodiments, and the functions of the apparatus are not described herein again, and refer to the detailed description of the above method embodiments.
Fig. 4 is a schematic structural diagram of an entity apparatus of an electronic device according to an embodiment of the present invention, and as shown in fig. 4, the electronic device may include: a processor (processor)401, a memory (memory)402, and a bus 403, wherein the processor 401 and the memory 402 communicate with each other via the bus 403. The processor 401 may call the computer program in the memory 402 to perform the method provided by the above method embodiments, for example, including: dividing a business process to be controlled into a plurality of sub-processes; according to the sub-processes and a pre-established control logic database, a business process control chain corresponding to the business process to be controlled is established, wherein the business process control chain comprises a logic execution chain and/or a result collection chain; and controlling the service process to be controlled according to the service process control chain.
An embodiment of the present invention discloses a computer program product, which includes a computer program stored on a non-transitory computer readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer can execute the methods provided by the above method embodiments, for example, the method includes: dividing a business process to be controlled into a plurality of sub-processes; according to the sub-processes and a pre-established control logic database, a business process control chain corresponding to the business process to be controlled is established, wherein the business process control chain comprises a logic execution chain and/or a result collection chain; and controlling the service process to be controlled according to the service process control chain.
An embodiment of the present invention provides a non-transitory computer-readable storage medium, where the non-transitory computer-readable storage medium stores a computer program, where the computer program causes the computer to execute the method provided by the foregoing method embodiments, for example, the method includes: dividing a business process to be controlled into a plurality of sub-processes; according to the sub-processes and a pre-established control logic database, a business process control chain corresponding to the business process to be controlled is established, wherein the business process control chain comprises a logic execution chain and/or a result collection chain; and controlling the service process to be controlled according to the service process control chain.
Furthermore, the logic instructions in the memory 402 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (7)

1. A method for controlling and processing a business process is characterized by comprising the following steps:
dividing a business process to be controlled into a plurality of sub-processes;
according to each sub-process and a pre-established control logic database, a business process control chain corresponding to the business process to be controlled is established, wherein the business process control chain comprises a logic execution chain and/or a result collection chain;
controlling the service process to be controlled according to the service process control chain;
the creating a service process control chain corresponding to the service process to be controlled according to each sub-process and a pre-established control logic database comprises:
selecting control logic corresponding to each sub-process from the pre-established control logic database;
judging whether each sub-process is a sub-process which needs to be executed or not in sequence from back to front according to the execution sequence of each sub-process;
if the nth sub-process is judged and known to be a non-necessary execution sub-process, generating a logic execution chain corresponding to the business process to be controlled according to each sub-process and control logic corresponding to each sub-process, and taking the logic execution chain as a business process control chain of the business process to be controlled;
if the situation that the nth to nth-i sub-processes are all sub-processes which need to be executed is judged and known, and the nth-i-1 sub-process is a sub-process which does not need to be executed, generating a result collection chain corresponding to the business process to be controlled according to control logics corresponding to the nth to nth-i sub-processes and the nth to nth-i sub-processes, generating a logic execution chain corresponding to the business process to be controlled according to the control logics corresponding to the 1 st to nth-i-1 sub-processes and the 1 st to nth-i-1 sub-processes, and taking the logic execution chain and the result collection chain as a business process control chain of the business process to be controlled; wherein n is the number of sub-processes included in the business process to be controlled, and i is more than or equal to 0 and less than or equal to n-1;
the control logic comprises execution logic; correspondingly, the controlling the service process to be controlled according to the service process control chain includes:
after receiving a starting signal of the business process to be controlled, sequentially starting the execution logic in the control logic corresponding to each sub-process included in the business process to be controlled according to the execution sequence of each sub-process;
and if not, directly outputting the result by the previous sub-process and directly ending the logic execution chain, and executing the sub-process execution logics of the result collection chain in the service flow control chain in sequence.
2. The method of claim 1, wherein the control logic further comprises rollback logic; correspondingly, the controlling the service process to be controlled according to the service process control chain further includes:
and if the execution process of the logic execution chain is judged to be wrong, obtaining the control logic with the mistake, and performing rollback processing according to the rollback logic included in the control logic with the mistake.
3. The method of claim 1, further comprising:
and extracting a plurality of control logics from a plurality of historical service control processes, and establishing the control logic database according to the plurality of control logics.
4. The method of claim 3, further comprising:
and if judging that the control logic database does not have the control logic corresponding to the sub-process of the business process to be controlled, extracting the control logic of the sub-process, and updating the control logic database according to the control logic of the sub-process.
5. A business process control processing device is characterized by comprising a dividing unit, a creating unit and a processing unit, wherein:
the dividing unit is used for dividing the business process to be controlled into a plurality of sub-processes;
a creating unit, configured to create a service flow control chain corresponding to the service flow to be controlled according to each of the sub-flows and a pre-established control logic database, where the service flow control chain includes a logic execution chain and/or a result collection chain;
the processing unit is used for controlling the service process to be controlled according to the service process control chain;
the creating unit is specifically configured to: selecting control logic corresponding to each sub-process from the pre-established control logic database; judging whether each sub-process is a sub-process which needs to be executed or not in sequence from back to front according to the execution sequence of each sub-process; if the nth sub-process is judged and known to be a non-necessary execution sub-process, generating a logic execution chain corresponding to the business process to be controlled according to each sub-process and control logic corresponding to each sub-process, and taking the logic execution chain as a business process control chain of the business process to be controlled; if the situation that the nth to nth-i sub-processes are all sub-processes which need to be executed is judged and known, and the nth-i-1 sub-process is a sub-process which does not need to be executed, generating a result collection chain corresponding to the business process to be controlled according to control logics corresponding to the nth to nth-i sub-processes and the nth to nth-i sub-processes, generating a logic execution chain corresponding to the business process to be controlled according to the control logics corresponding to the 1 st to nth-i-1 sub-processes and the 1 st to nth-i-1 sub-processes, and taking the logic execution chain and the result collection chain as a business process control chain of the business process to be controlled; wherein n is the number of sub-processes included in the business process to be controlled, and i is more than or equal to 0 and less than or equal to n-1;
the control logic comprises execution logic; correspondingly, the processing unit is specifically configured to, after receiving the start signal of the to-be-controlled service flow, sequentially start the execution logic in the control logic corresponding to each sub-flow included in the to-be-controlled service flow according to the execution sequence of each sub-flow;
and if not, directly outputting the result by the previous sub-process and directly ending the logic execution chain, and executing the sub-process execution logics of the result collection chain in the service flow control chain in sequence.
6. An electronic device comprising a processor, a memory, and a bus, wherein:
the processor and the memory complete mutual communication through a bus;
the processor may invoke a computer program in memory to perform the steps of the method of any of claims 1-4.
7. 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 according to any one of claims 1 to 4.
CN201711035931.5A 2017-10-30 2017-10-30 Business process control processing method and device Active CN107944662B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711035931.5A CN107944662B (en) 2017-10-30 2017-10-30 Business process control processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711035931.5A CN107944662B (en) 2017-10-30 2017-10-30 Business process control processing method and device

Publications (2)

Publication Number Publication Date
CN107944662A CN107944662A (en) 2018-04-20
CN107944662B true CN107944662B (en) 2020-09-11

Family

ID=61936690

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711035931.5A Active CN107944662B (en) 2017-10-30 2017-10-30 Business process control processing method and device

Country Status (1)

Country Link
CN (1) CN107944662B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165905A (en) * 2018-06-26 2019-01-08 北京炎黄盈动科技发展有限责任公司 Processing method, device, equipment and the readable storage medium storing program for executing of operation flow data
CN109799981B (en) * 2018-12-19 2022-09-09 成都多用科技有限公司 Integrated system and method based on execution chain
CN109800965B (en) * 2018-12-28 2021-12-17 广州亚信技术有限公司 Process business processing method and device, computer equipment and storage medium
CN112540856A (en) * 2019-09-23 2021-03-23 北京轻享科技有限公司 Service processing method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101673370A (en) * 2009-09-24 2010-03-17 邱小平 Workflow integration platform system capable of managing and controlling deterministic and nondeterministic flows
CN104598300A (en) * 2014-12-24 2015-05-06 北京奇虎科技有限公司 Distributive business process customization method and system
CN104778074A (en) * 2014-01-14 2015-07-15 腾讯科技(深圳)有限公司 Calculation task processing method and device
CN106296243A (en) * 2015-05-22 2017-01-04 阿里巴巴集团控股有限公司 Service implementation method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9412091B2 (en) * 2012-10-09 2016-08-09 International Business Machines Corporation Dynamic adaption of electronic routing slips for financial messaging

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101673370A (en) * 2009-09-24 2010-03-17 邱小平 Workflow integration platform system capable of managing and controlling deterministic and nondeterministic flows
CN104778074A (en) * 2014-01-14 2015-07-15 腾讯科技(深圳)有限公司 Calculation task processing method and device
CN104598300A (en) * 2014-12-24 2015-05-06 北京奇虎科技有限公司 Distributive business process customization method and system
CN106296243A (en) * 2015-05-22 2017-01-04 阿里巴巴集团控股有限公司 Service implementation method and device

Also Published As

Publication number Publication date
CN107944662A (en) 2018-04-20

Similar Documents

Publication Publication Date Title
CN107944662B (en) Business process control processing method and device
JP2019511033A5 (en)
CN110096263A (en) Web front end code automatic generation method and device
CN110764839A (en) Business processing flow configuration method, business request processing method and device
CN106685894B (en) Risk identification method, device and system
CN110009347B (en) Block chain transaction information auditing method and device
CN110599341A (en) Transaction calling method and system
CN111950579A (en) Training method and training device for classification model
CN115329759B (en) Information processing method, device, equipment and storage medium
CN111106953B (en) Method and device for analyzing abnormal root cause
JP5687122B2 (en) Software evaluation device, software evaluation method, and system evaluation device
CN116911763A (en) Flow approval method, device, terminal equipment and storage medium
CN110266825B (en) Virtual number generation method and device
CN112256978B (en) Data processing method, device and medium based on data model
CN110674628A (en) File template generation method and system
CN115480745B (en) Code generation method and device based on configuration file
CN110716855B (en) Processor instruction set testing method and device
CN116599948A (en) Content distribution process generation method, content distribution device and storage medium
CN113395698B (en) Resource scheduling method, device and computer readable storage medium
CN111177836B (en) Ocean engineering design data acquisition method, system, medium and equipment
CN114004611A (en) Stream type payment acceleration method, system and storage medium based on FPGA
CN115311075A (en) Cash terminal risk control method and device
CN115797035A (en) Risk control method and device for bank outlets
CN114648100A (en) Model training method and device
Terekhov et al. Implementation of the conformation of MSC and SDL diagrams in the REAL technology

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100085 Floor 102-1, Building No. 35, West Second Banner Road, Haidian District, Beijing

Applicant after: Seashell Housing (Beijing) Technology Co.,Ltd.

Address before: 100085 Floor 102-1, Building No. 35, West Second Banner Road, Haidian District, Beijing

Applicant before: LIANJIA(BEIJING) TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant