Business process execution method and device, storage medium and electronic device

By displaying the template selection page and generating business processes, and processing process nodes one by one, the process configuration process is simplified, the process is low in the execution operation and maintenance business process in the existing technology, and the execution efficiency of the process engine is improved.

CN113706022BActive Publication Date: 2024-12-20BEIJING SOUFUN SCI & TECH DEV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111004086.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-30
Publication Date
2024-12-20
Estimated Expiration
2041-08-30

AI Technical Summary

Technical Problem

When the existing process engine executes operation and maintenance business processes, the configuration of the business process is complicated and time-consuming, resulting in inefficient execution.

Method used

Provide a business process execution method, by displaying the template selection page, generating business processes based on the process template selected by the applicant, reading and processing process nodes one by one until all node states are processed states, simplifying the process configuration process.

Benefits of technology

The business process generation process is simplified, the generation time is shortened, and the process engine is improved in the efficiency of executing business processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113706022B_ABST
    Figure CN113706022B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for executing a business process, a storage medium and an electronic device. The method comprises: when receiving a process application instruction, obtaining selection information input by an applicant based on a displayed template selection page, and determining a process template based on the selection information; generating a business process based on the business information submitted by the applicant; reading each process node in the business process one by one, and taking the currently read process node as the current node; performing a processing operation corresponding to the node type on the current node to obtain a processing result; when the processing result is characterized as a successful processing, updating the node state of the current node to a processed state, and continuing to read each process node in the business process until the node state of each process node in the business process is in a processed state. Generating a business process according to the process template selected by the applicant simplifies the process of generating a business process, shortens the time of generating a business process, and improves the efficiency of executing the business process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of process engines, and in particular to a method and device for executing a business process, a storage medium and an electronic device. Background Art

[0002] There are many popular process engine frameworks on the market, such as JBPM, Actitvit and other powerful process engine frameworks with open source and commercial characteristics. By using the process engine, the business can be driven to flow according to the set fixed process, thereby ensuring the accuracy of business execution.

[0003] Process engines have been applied in various technical fields in life. Operation and maintenance is one of the technical fields using process engines. By using process engines to execute the business processes of operation and maintenance, the operation and maintenance process is made more convenient. However, each time the business process of operation and maintenance is executed, a lot of time is required to configure the business process. The process of business process configuration is complicated and time-consuming, which reduces the efficiency of the process engine in executing the process. Summary of the invention

[0004] In view of this, the present invention provides a method and device for executing a business process, a storage medium and an electronic device, so as to improve the efficiency of executing business processes in a system loaded with a process engine.

[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0006] A method for executing a business process, comprising:

[0007] When receiving a process application instruction sent by an applicant, displaying a template selection page to the applicant;

[0008] Determining the process template selected by the applicant based on the selection information entered by the applicant in the template selection page;

[0009] Displaying the information collection page of the process template to the applicant, and upon receiving the business information submitted by the applicant based on the information collection page, generating a business process corresponding to the process application instruction;

[0010] Read each process node in the business process whose node status is an unprocessed state one by one, and use the currently read process node as the current node;

[0011] Determine the node type of the current node, and perform a processing operation corresponding to the node type on the current node to obtain a processing result of the current node;

[0012] When the processing result is characterized as a processing failure, stop reading each process node in the business process;

[0013] When the processing result is characterized as successful processing, the node state of the current node is updated to a processed state, and the next process node in the business process is read, and the process node is used as the current node, and the operation of determining the node type of the current node and performing a processing operation corresponding to the node type on the current node to obtain the processing result of the current node is returned, until the node state of each process node in the business process is a processed state.

[0014] In the above method, optionally, presenting the template selection page to the applicant includes:

[0015] Get the status information of each process module preset in the template library;

[0016] Determining a template state of each process template based on the state information of each process template;

[0017] A template selection page including the template status of each of the process templates is generated, and the template selection page is displayed to the applicant.

[0018] Optionally, the method of determining the node type of the current node and performing a processing operation corresponding to the node type on the current node to obtain a processing result of the current node includes:

[0019] Obtaining type information in the type field of the current node;

[0020] Based on the type information, determining whether the node type of the current node is an automatic processing type;

[0021] If the node type of the current node is an automatic processing type, a calling interface corresponding to the current node is determined based on the interface field in the current node, and a processing system corresponding to the calling interface is called through the calling interface to process the current node, so as to obtain a processing result of the current node fed back by the processing system;

[0022] If the node type of the current node is a manual processing type, obtaining node information of the current node, and judging whether the current node meets a preset automatic processing condition based on the node information;

[0023] If the current node meets the preset automatic processing conditions, the processing interface corresponding to the current node is determined based on the interface field in the current node, and the current node is processed by calling the processing interface; when the current node is processed successfully, a processing result indicating that the current node is processed successfully is generated; when the current node is processed unsuccessfully, the processing interface is called again to process the current node until the number of times the processing interface is called is greater than a preset value, and a processing result indicating that the current node is processed unsuccessfully is generated;

[0024] If the current node does not meet the preset automatic processing conditions, the processor information in the processor information field in the current node is obtained, and the node information to be processed of the current node is generated;

[0025] The information of the node to be processed is fed back to the processor corresponding to the processor information, so as to obtain the processing result fed back by the processor after processing the current node.

[0026] The above method may, optionally, further include: when the node status of each process node in the business process is in the processed status:

[0027] Marking the business process as an execution completed process and generating execution completion information of the business process;

[0028] The execution completion information is saved in a preset process information library, and the execution completion information is displayed to the applicant.

[0029] The above method may, optionally, further include, after stopping reading each process node in the business process:

[0030] Determine the supervisor information of the current node based on the supervisor information field in the current node;

[0031] Based on the supervisor information, the preset rollback information is displayed to the supervisor to prompt the supervisor whether to perform a preset rollback operation on the business process;

[0032] When receiving the cancellation instruction fed back by the supervisor, marking the business process as an uncompleted process, generating stop information of the business process, and saving the stop information to the process information library;

[0033] When the rollback instruction fed back by the supervisor is received, the rollback operation is performed on the business process.

[0034] A business process execution device, comprising:

[0035] A display unit, configured to display a template selection page to the applicant when receiving a process application instruction sent by the applicant;

[0036] A first determining unit, configured to determine the process template selected by the applicant based on the selection information input by the applicant in the template selection page;

[0037] A generating unit, configured to display the information collection page of the process template to the applicant, and upon receiving the business information submitted by the applicant based on the information collection page, generate a business process corresponding to the process application instruction;

[0038] A reading unit, used to read each process node in the business process whose node status is an unprocessed state one by one, and use the currently read process node as the current node;

[0039] a second determining unit, configured to determine a node type of the current node, and perform a processing operation corresponding to the node type on the current node to obtain a processing result of the current node;

[0040] A stopping unit, used for stopping reading each process node in the business process when the processing result is characterized as a processing failure;

[0041] An updating unit is used to update the node status of the current node to a processed status when the processing result is characterized as successful processing, and read the next process node in the business process, and use the process node as the current node, and return to execute to determine the node type of the current node, and perform a processing operation corresponding to the node type on the current node to obtain the processing result of the current node, until the node status of each process node in the business process is a processed status.

[0042] In the above device, optionally, the display unit comprises:

[0043] The first acquisition subunit is used to acquire the status information of each process module preset in the template library;

[0044] A first determining subunit, configured to determine a template state of each process template based on the state information of each process template;

[0045] The generating subunit is used to generate a template selection page including the template status of each of the process templates, and present the template selection page to the applicant.

[0046] In the above device, optionally, the second determining unit includes:

[0047] A second acquisition subunit, used to acquire type information in the type field of the current node;

[0048] A first judgment subunit, configured to judge whether the node type of the current node is an automatic processing type based on the type information;

[0049] a processing subunit, configured to determine, if the node type of the current node is an automatic processing type, a calling interface corresponding to the current node based on an interface field in the current node, and to process the current node by calling a processing system corresponding to the calling interface through the calling interface, so as to obtain a processing result of the current node fed back by the processing system;

[0050] A second judgment subunit is used to obtain node information of the current node if the node type of the current node is a manual processing type, and judge whether the current node meets a preset automatic processing condition based on the node information;

[0051] A second determination subunit is used to determine, if the current node meets the preset automatic processing conditions, a processing interface corresponding to the current node based on the interface field in the current node, and process the current node by calling the processing interface; when the processing of the current node is successful, generate a processing result indicating that the processing of the current node is successful; when the processing of the current node fails, re-call the processing interface to process the current node until the number of times the processing interface is called is greater than a preset value, and generate a processing result indicating that the processing of the current node fails;

[0052] A third acquisition subunit is used to acquire the processor information in the processor information field in the current node and generate the node information to be processed of the current node if the current node does not meet the preset automatic processing condition;

[0053] The feedback subunit is used to feed back the information of the node to be processed to the processor corresponding to the processor information, so as to obtain the processing result fed back by the processor after processing the current node.

[0054] The above device may optionally further include:

[0055] A marking unit, used to mark the business process as an execution completed process and generate execution completion information of the business process;

[0056] The first storage unit is used to save the execution completion information into a preset process information library and display the execution completion information to the applicant.

[0057] The above device may optionally further include:

[0058] A third determining unit, configured to determine the supervisor information of the current node based on the supervisor information field in the current node;

[0059] A prompting unit, configured to display preset rollback information to the supervisor based on the supervisor information, so as to prompt the supervisor whether to perform a preset rollback operation on the business process;

[0060] A second storage unit is used to mark the business process as an uncompleted process when receiving a cancellation instruction fed back by the supervisor, generate stop information of the business process, and save the stop information to a process information library;

[0061] An execution unit is used to execute the rollback operation on the business process when receiving the rollback instruction fed back by the supervisor.

[0062] A storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the execution method of the business process as described above.

[0063] An electronic device includes a memory and one or more instructions, wherein the one or more instructions are stored in the memory and are configured to be executed by one or more processors to implement the above-mentioned method for executing the business process.

[0064] Compared with the prior art, the present invention has the following advantages:

[0065] The embodiment of the present invention provides a method and device for executing a business process, a storage medium and an electronic device, the method comprising: when receiving a process application instruction sent by an applicant, displaying a template selection page to the applicant; determining the process template based on the selection information input by the applicant in the template selection page; obtaining the business information submitted by the applicant based on the information collection page of the process template, and generating a business process; reading each process node in the business process one by one, and taking the currently read process node as the current node; performing a processing operation corresponding to the node type on the current node to obtain a processing result; when the processing result is characterized as a processing failure, stopping reading each process node in the business process; when the processing result is characterized as a processing success, updating the node state of the current node to a processed state, and continuing to read each process node in the business process until the node state of each process node in the business process is a processed state. The business process is generated according to the process template selected by the applicant, the process is simple and convenient, simplifies the process of generating the business process, shortens the time of generating the business process, and thus improves the execution efficiency of the process engine executing the business process. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0067] Figure 1 A method flow chart of a method for executing a business process provided by an embodiment of the present invention;

[0068] Figure 2 A flowchart of another method for executing a business process provided by an embodiment of the present invention;

[0069] Figure 3 A flowchart of another method for executing a business process provided by an embodiment of the present invention;

[0070] Figure 4 Another method flow chart of a method for executing a business process provided by an embodiment of the present invention;

[0071] Figure 5 A schematic diagram of the structure of a business process execution device provided by an embodiment of the present invention;

[0072] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0073] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0074] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0075] The present invention can be used in many general or special computing device environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multi-processor devices, distributed computing environments including any of the above devices or devices, etc.

[0076] The embodiment of the present invention is applied to a system constructed using an automated process engine, which may specifically be an operation and maintenance system, and the execution subject of the method may be a processor or a server in the system.

[0077] Reference Figure 1 , which is a method flow chart of a method for executing a business process provided by an embodiment of the present invention, and is specifically described as follows:

[0078] S101. When a process application instruction sent by an applicant is received, a template selection page is displayed to the applicant.

[0079] The process application instruction may be an instruction generated when the applicant clicks the process application button in the front-end display page of the system. After receiving the process application instruction, the system displays the template selection page to the applicant through the front-end. The template selection page includes the template status of each process template in the template library. The template status of the process template can be divided into maintenance status, suspended status, and usable status, etc.

[0080] In another embodiment provided by the present invention, referring to Figure 2 , is a flow chart of a method for displaying a template selection page to an applicant, and the specific instructions are as follows:

[0081] S201. Obtain status information of each process module preset in the template library.

[0082] The template library has multiple process templates pre-saved. The process templates are templates for operation and maintenance services that are pre-developed by developers. Different operation and maintenance services have different process templates.

[0083] Administrators can manage the process templates in the template library, such as adding newly developed process templates to the template library, deleting unnecessary process templates in the template library, or maintaining the process templates in the template library.

[0084] Optionally, the state information of the process template may include a state identifier representing the current state of the process template, wherein different state identifiers represent different template states of the process template.

[0085] S202: Determine the template status of each process template based on the status information of each process template.

[0086] The current template state of the process template is determined according to the state identifier in the state information of the process template; optionally, when the state identifier is 0, the template state of the process template is in maintenance state; when the state identifier is 1, the template state of the process template is in usable state; when the state identifier is 2, the template state of the process template is in suspended state. It should be noted that the process template can only provide services to the applicant when the template state of the process template is in usable state; when the process template is in maintenance state or suspended state, the process template cannot provide services to the applicant.

[0087] S203: Generate a template selection page including the template status of each process template, and display the template selection page to the applicant.

[0088] According to the template status of each process template, a template selection page containing the template status of each process template is generated. It should be noted that different template statuses are displayed in different colors in the template selection page. Specifically, when the template status is usable, it is displayed in green; when the template status is maintenance status, it is displayed in yellow; when the template status is suspended, it is displayed in red.

[0089] Different colors are used to represent different template states, and the colors representing the template states are rendered correspondingly in the template selection page. The template selection page is displayed to the applicant so that the applicant can intuitively know the process templates that can be used in the template library, which facilitates the applicant to select the process template.

[0090] S102. Determine the process template selected by the applicant based on the selection information entered by the applicant in the template selection page.

[0091] The applicant can click on the selected process template on the template selection page, and the system can receive the selection information entered by the applicant on the template selection page.

[0092] Optionally, the applicant may also input the selection information of the required process template in the template selection page. Specifically, the selection information may be the template name or the unique template number of the process template selected by the applicant.

[0093] S103: Display the information collection page of the process template to the applicant, and upon receiving the business information submitted by the applicant based on the information collection page, generate a business process corresponding to the process application instruction.

[0094] Each process template has a corresponding information collection page, where the information collection page is used to collect information. It should be noted that different process templates have different information collection pages, different information collection pages have different collection fields, and different collection fields collect different information.

[0095] The applicant shall fill in the necessary information required to generate the business process on the information collection page according to the various collection fields on the information collection page. The business information includes but is not limited to the applicant's basic information and operation and maintenance information; among which, the operation and maintenance information includes but is not limited to the necessary information of the operation and maintenance business that the applicant needs to perform, and the necessary operation and maintenance information that the applicant needs to provide in the process template. Specifically, when the process template is a server shelf process template, the applicant needs to fill in the work order name, workflow type, priority, process person in charge, host name, IP usage, number of applied IPs, business, operation and maintenance person in charge, data center, operating system, application and host usage on the information collection page of the process template. Applicants need to submit different business information on different information collection pages, and no examples are given here.

[0096] After the applicant has filled in the information on the information collection page, he / she can click the Submit button. As a result, the system can receive the business information submitted by the applicant and generate a business process corresponding to the process application execution after receiving the business information.

[0097] S104, reading each process node in the business process whose node status is an unprocessed state one by one, and taking the currently read process node as the current node.

[0098] There are multiple process nodes in a business process. When the business process is just generated, the node states of the process nodes in the business process are all unprocessed, and the various process nodes are arranged in the order of execution.

[0099] Read each process node in the business process whose node status is unprocessed one by one, and use the currently read process node as the current node.

[0100] S105: Determine the node type of the current node, and perform a processing operation corresponding to the node type on the current node to obtain a processing result of the current node.

[0101] The current node is parsed to determine the node type of the current node. There are two types of node types, one is a manual processing type and the other is an automatic processing type. Different node types correspond to different processing operations. After performing the processing operation corresponding to the node type on the current node, the processing result of the current node is obtained.

[0102] S106, determining whether the processing result indicates processing failure, if so, executing S107; if not, executing S108.

[0103] There are two situations for the processing results. One situation is that the processing result indicates that the processing has failed, and the other situation is that the processing result indicates that the processing has succeeded.

[0104] S107: Stop reading each process node in the business process.

[0105] S108. Update the node status of the current node to a processed status, read the next process node in the business process, and use the process node as the current node, and return to execute to determine the node type of the current node, and perform a processing operation corresponding to the node type on the current node to obtain the processing result of the current node, until the node status of each process node in the business process is a processed status.

[0106] When the current node is a processing result indicating successful processing, read the next process node in the business process whose status is an unprocessed state, use the node as the current node, and return to execute S105 until the status of each process node in the business process is a processed state.

[0107] When the node status of each process node in the business process is in the processed state, the business process is executed and the operation and maintenance business corresponding to the business process is completed.

[0108] In the method provided by the embodiment of the present invention, when a process application instruction sent by an applicant is received, a template selection page is displayed to the applicant; based on the selection information entered by the applicant in the template selection page, the process template selected by the applicant is determined; the information collection page of the process template is displayed to the applicant, and when the business information submitted by the applicant based on the information collection page is received, a business process corresponding to the process application instruction is generated; each process node in the business process whose node status is an unprocessed state is read one by one, and the currently read process node is used as the current node; the node type of the current node is determined, and the processing operation corresponding to the node type is performed on the current node to obtain the processing result of the current node; when the processing result is characterized as a processing failure, the reading of each process node in the business process is stopped; when the processing result is characterized as a processing success, the node status of the current node is updated to a processed state, and the next process node in the business process is read, and the process node is used as the current node, and the operation of determining the node type of the current node and performing the processing operation corresponding to the node type on the current node to obtain the processing result of the current node is returned, until the node status of each process node in the business process is a processed state. The present invention provides a process template for the applicant, and guides the applicant to create a business process through page guidance, thereby shortening the time spent by the process engine in executing the business process and improving the efficiency of the process engine in executing the business process.

[0109] In the process of executing business processes, nodes are processed one by one in the order in which they are executed, thereby ensuring the accuracy of operation and maintenance business execution, and executing each process in an orderly manner, which can also improve the efficiency of the process engine in executing business processes.

[0110] In the method provided by an embodiment of the present invention, when the node status of each process node in the business process is in a processed state, the business process can also be marked as an execution completion process and execution completion information of the business process can be generated; the execution completion information can be saved in a preset process information library, and the execution completion information can be displayed to the applicant.

[0111] The execution completion information includes, but is not limited to, the applicant information, supervisor information, execution process of each process node, time taken to complete the execution, etc. The execution completion information is displayed to the applicant through the front-end display page, thereby informing the applicant that the business process created by his application has been completed.

[0112] In another embodiment provided by the present invention, referring to Figure 3 , which is a flowchart of a method for performing a processing operation corresponding to the node type on the current node to obtain a processing result, and the specific description is as follows:

[0113] S301. Obtain type information in the type field of the current node.

[0114] The type field stores the type information of the process node, and the node type of the current node is determined through the type information.

[0115] S302. Based on the type information, determine whether the node type of the current node is an automatic processing type; if the node type of the current node is an automatic processing type, execute S303; if the node type of the current node is not an automatic processing type, execute S304.

[0116] When the type information includes automatic processing information, it can be determined that the node type of the current node is an automatic processing type; when the type information includes manual processing information, it can be determined that the node type of the current node is not an automatic processing type, and the current node is a manual processing type.

[0117] S303: Based on the interface field in the current node, determine the calling interface corresponding to the current node, and call the processing system corresponding to the calling interface through the calling interface to process the current node, so as to obtain the processing result of the current node fed back by the processing system.

[0118] After determining that the current node is an automatic processing type, the interface information in the interface field in the current node is obtained, and the calling interface is determined based on the interface information, wherein different calling interfaces can call different processing systems, and the calling interface in the current node is an interface configured according to the interface standard of the processing system and the interface standard of the system using the process engine in the present invention, so that the interface can connect the system of the present invention with the processing system. The calling interface is used to call the processing system corresponding to the calling interface to process the current node, and then the processing result of the current node fed back by the processing system is obtained. By using the processing system to process the current node, the automatic processing of the node is realized, thereby improving the efficiency of executing the business process.

[0119] Furthermore, when the processing system processes the current node, in order to improve the fault tolerance rate of the processing system in the process of processing the current node, when the processing system processes the current node, if the processing of the current node fails, the current node needs to be processed again until the number of times the current node is processed reaches a preset number of times, and the processing of the current node is still failed, and a processing result representing the failure of the processing is generated; in the process of processing the current node, if the processing is successful, the processing of the current node is stopped, and a processing result representing the success of the processing is generated. The number of times the current node is processed is set according to actual needs, for example, 3 times, then when the processing system processes the current node 3 times in a row and the processing results are all failed, a processing result representing the failure of the processing is generated; if the processing is successful during the processing, the processing system generates a processing result representing the success of the processing.

[0120] When the processing of the current node fails, by repeatedly processing the current node, the reasons for the failure of the processing of the current node due to environmental factors can be effectively avoided, thereby improving the fault tolerance rate of processing the current node and improving the accuracy of the processing result of the current node.

[0121] S304: Obtain node information of the current node.

[0122] The node information includes but is not limited to the information that needs to be reviewed when processing the current node. The node information of different current nodes is different. For example, if the current node needs to review the number of IPs applied for, the node information includes the number of IPs filled in by the applicant; when the current node needs to review the number of container copies, the node information includes the number of container copies filled in by the applicant.

[0123] S305. Based on the node information, determine whether the current node meets the preset automatic processing conditions; if the current node meets the preset automatic processing conditions, then S306; if the current node does not meet the preset automatic processing conditions, then execute S307.

[0124] The automatic processing condition is used to determine whether to perform automatic processing on the current node.

[0125] Continuing with the description of S304, when judging whether the current node meets the preset automated processing conditions, when the current node needs to review the number of applied IPs, determine whether the number of IPs filled in by the applicant is within the preset first numerical range. If it is within the preset first numerical range, it is determined that the current node meets the preset automated processing conditions. If it is not within the preset first numerical range, it is determined that the current node does not meet the preset automated processing conditions. The first numerical range can be set according to actual needs, for example [4,18].

[0126] When the current node needs to review the number of container copies, determine whether the number of container copies filled in by the applicant is within a preset second numerical range. If so, determine that the current node meets the preset automatic processing conditions. If not, determine that the current node does not meet the preset automatic processing conditions. The second numerical range can be set according to actual needs, for example [5,10].

[0127] Furthermore, for determining whether the current node meets the preset automatic processing conditions, examples will not be given one by one here. The developer or manager sets the automatic processing conditions, and the automatic processing conditions are used to determine whether to automatically process the current node whose node type is the manual processing type.

[0128] S306. Based on the interface field in the current node, determine the processing interface corresponding to the current node, and process the current node by calling the processing interface; when the current node is successfully processed, generate a processing result indicating the successful processing of the current node; when the current node is failed to be processed, re-call the processing interface to process the current node until the number of times the processing interface is called is greater than a preset value, and generate a processing result indicating the failure of the current node processing.

[0129] When the current node meets the automatic processing conditions, the processing interface is determined according to the interface field in the current node. The processing interface is an interface configured according to the interface standard of the system of the present invention. The automatic processing of the current node can be achieved by calling the interface.

[0130] It should be noted that in order to improve the fault tolerance rate of calling the processing interface to process the current node, the number of times the processing interface is called is set, for example, 4 times; when the processing interface fails to process the current node, the processing interface is called again to process the current node. When the number of times the processing interface is called reaches 4 times, if the processing of the current node still fails, a processing result representing the failure of processing the current node is generated. By repeatedly calling the processing interface to process the current node, the situation where the processing of the current node fails due to environmental factors can be effectively avoided, thereby improving the fault tolerance rate of processing the current node and improving the accuracy of the processing result of processing the current node.

[0131] S307: Acquire the processor information in the processor information field in the current node, and generate the node information to be processed of the current node.

[0132] The processor information includes but is not limited to the processor's name, contact information, information of the terminal used, etc.; the node information to be processed includes but is not limited to information that needs to be reviewed by the processor, the process type of the business process to which the current node belongs, and the effective time for the processor to review, etc.

[0133] S308: Feedback the node information to be processed to the processor corresponding to the processor information, so as to obtain the processing result fed back by the processor after processing the current node.

[0134] The processor is determined based on the processor information, and the information of the node to be processed is fed back to the processor. Specifically, the information of the node to be processed can be fed back to the processor through the contact information in the processor information, or the information of the node to be processed can be sent to the terminal used by the processor; after obtaining the information of the node to be processed, the processor processes the current node and feeds back the processing result of the current node.

[0135] In the method provided by the embodiment of the present invention, when processing the current node, the corresponding processing operation is performed on the current node according to the node type of the current node, wherein, when the node type of the current node is a manual processing type, it is first determined whether the current node meets the automatic processing conditions, and when the current node meets the automatic processing conditions, the processing interface is called to process the current node to automatically process the current node. This operation realizes the conversion of the manually processed node into an automatically processed node, thereby effectively reducing the degree of manual participation, making the execution of the business process more automated, and improving the efficiency of executing the business process. In addition, by using the interface to process the node, it is convenient for seamless access to any business of operation and maintenance, and for the access of third-party systems, and it also realizes automated approval and reduces the cost of executing business processes.

[0136] After stopping reading each process node of the business process, you can perform a rollback operation on the business process. Figure 4 , is a method flow chart of a method for executing a business process provided by another embodiment of the present invention, and is specifically described as follows:

[0137] S401. Determine the supervisor information of the current node based on the supervisor information field in the current node.

[0138] Supervisor information includes but is not limited to the supervisor's basic information, the device information of the terminal used, and the communication method, etc.; among them, the device information includes the IP address used by the terminal, the unique identification code of the terminal, etc.; the specific communication method includes email, text message, etc.

[0139] S402: Displaying preset rollback information to the supervisor based on the supervisor information.

[0140] The rollback information can be fed back to the supervisor based on the communication method in the supervisor information, or the rollback information can be sent to the terminal used by the supervisor based on the device information. Furthermore, these two methods can be applied at the same time. By showing the rollback information to the supervisor, the supervisor is prompted whether to perform a rollback operation on the process.

[0141] S403, obtaining the operation instruction fed back by the supervisor, and determining whether the operation instruction is a cancellation instruction; if so, executing S404; if not, executing S405.

[0142] The supervisor feeds back the operation instruction to the system, and determines whether the operation instruction is a cancellation instruction based on the operation identifier in the operation instruction. When the operation identifier indicates cancellation, the operation instruction is determined to be a cancellation instruction and S404 is executed; when the operation identifier is not indicated as cancellation but indicated as confirmation, the operation instruction is determined to be a rollback instruction and S405 is executed.

[0143] S404: Mark the business process as an uncompleted process, generate stop information of the business process, and save the stop information in the process information library.

[0144] The stop information includes the node status information of each process node in the business process, the failure information of the process node that failed to execute, the time information of starting to execute the business process, etc.

[0145] S405: When receiving the rollback instruction fed back by the supervisor, execute the rollback operation on the business process.

[0146] The rollback operation in the present invention includes:

[0147] Determine whether there is a process node in the business process whose node status is processed;

[0148] If the business process does not have a process node with a node status of processed, prompt the applicant to modify the business information, update the business process based on the modified business information submitted by the applicant, and re-read each process node with a node status of unprocessed in the updated business process one by one;

[0149] If the business process has a process node with a node status of processed, determining whether there is a process node with a node type of manual processing type among the process nodes with a node status of processed;

[0150] If it does not exist, the applicant is prompted to modify the business information, and based on the modified business information submitted by the applicant, the business process is updated, and each process node in the updated business process whose node status is unprocessed is re-read one by one; it should be noted that in the process of updating the business process, in addition to updating the information in the process node, the node status of each process node needs to be updated to unprocessed;

[0151] If so, all process nodes whose node status is processed and whose node type is manual processing type are determined as nodes to be selected;

[0152] The node to be selected that is closest to the current node is determined as a fallback node, and the node status of each process node located after the fallback node in the business process is updated to an unprocessed state, and the processor of the fallback node is reminded to update the information in the fallback node;

[0153] After the processor updates the information in the rollback node, each process node in the business process whose node status is in an unprocessed state is read one by one starting from the updated rollback node.

[0154] It should be noted that upon receiving the rollback instruction sent by the supervisor, roll back to the process node that has been processed and is the manually processed type that is closest to the current node, update the information in the process node, and update the node status of the process node and each process node located after the process node to an unprocessed status, and start reading each process node in the business process one by one from this process node; when there is no processed process node that is the manually processed type that is closest to the current node in the business process, directly prompt the applicant to re-provide the business information, update the business process according to the new business information, and re-read the process nodes in the business process with an unprocessed status one by one.

[0155] In the method provided in the embodiment of the present invention, a rollback operation is performed on the business process. The applicant does not need to reapply for the process template to create a new business process. The rollback operation does not require the execution of all process nodes in the business process, which can effectively reduce the workload of the process engine and improve the efficiency of the process engine in executing business processes.

[0156] and Figure 1 Correspondingly, an embodiment of the present invention further provides a business process execution device, which is arranged in a system equipped with a process engine, and is used to support Figure 1 The method shown is applied in real life. Figure 5 , is a schematic diagram of a structure of a business process execution device provided by an embodiment of the present invention, and is specifically described as follows:

[0157] The display unit 501 is used to display a template selection page to the applicant when receiving a process application instruction sent by the applicant;

[0158] A first determining unit 502, configured to determine the process template selected by the applicant based on the selection information input by the applicant in the template selection page;

[0159] The generating unit 503 is used to display the information collection page of the process template to the applicant, and generate a business process corresponding to the process application instruction upon receiving the business information submitted by the applicant based on the information collection page;

[0160] The reading unit 504 is used to read each process node in the business process whose node status is an unprocessed state one by one, and use the currently read process node as the current node;

[0161] A second determining unit 505 is used to determine the node type of the current node, and perform a processing operation corresponding to the node type on the current node to obtain a processing result of the current node;

[0162] A stopping unit 506, configured to stop reading each process node in the business process when the processing result indicates that the processing has failed;

[0163] The updating unit 507 is used to update the node status of the current node to a processed status when the processing result is characterized as successful processing, and read the next process node in the business process, and use the process node as the current node, and return to execute the operation of determining the node type of the current node, and performing the processing operation corresponding to the node type on the current node to obtain the processing result of the current node, until the node status of each process node in the business process is a processed status.

[0164] In the device provided by the embodiment of the present invention, when a process application instruction sent by an applicant is received, a template selection page is displayed to the applicant; based on the selection information entered by the applicant in the template selection page, the process template selected by the applicant is determined; the information collection page of the process template is displayed to the applicant, and when the business information submitted by the applicant based on the information collection page is received, a business process corresponding to the process application instruction is generated; each process node in the business process whose node status is an unprocessed state is read one by one, and the currently read process node is used as the current node; the node type of the current node is determined, and the processing operation corresponding to the node type is performed on the current node to obtain the processing result of the current node; when the processing result is characterized as a processing failure, the reading of each process node in the business process is stopped; when the processing result is characterized as a processing success, the node status of the current node is updated to a processed state, and the next process node in the business process is read, and the process node is used as the current node, and the operation of determining the node type of the current node and performing the processing operation corresponding to the node type on the current node to obtain the processing result of the current node is returned, until the node status of each process node in the business process is a processed state. The present invention uses process templates to generate business processes, which is simple and convenient, and effectively improves the execution efficiency of business processes. Business processes can be generated at any time, and applicants do not need to learn the knowledge of process engines specifically, which reduces the learning cost. Moreover, process templates can be reused, which effectively reduces the investment cost.

[0165] In the device provided by the embodiment of the present invention, the display unit 501 may be configured as:

[0166] The first acquisition subunit is used to acquire the status information of each process module preset in the template library;

[0167] A first determining subunit, configured to determine a template state of each process template based on the state information of each process template;

[0168] The generating subunit is used to generate a template selection page including the template status of each of the process templates, and present the template selection page to the applicant.

[0169] In the device provided by the embodiment of the present invention, the second determining unit 505 may be configured as follows:

[0170] A second acquisition subunit, used to acquire type information in the type field of the current node;

[0171] A first judgment subunit, configured to judge whether the node type of the current node is an automatic processing type based on the type information;

[0172] a processing subunit, configured to determine, if the node type of the current node is an automatic processing type, a calling interface corresponding to the current node based on an interface field in the current node, and to process the current node by calling a processing system corresponding to the calling interface through the calling interface, so as to obtain a processing result of the current node fed back by the processing system;

[0173] A second judgment subunit is used to obtain node information of the current node if the node type of the current node is a manual processing type, and judge whether the current node meets a preset automatic processing condition based on the node information;

[0174] A second determination subunit is used to determine, if the current node meets the preset automatic processing conditions, a processing interface corresponding to the current node based on the interface field in the current node, and process the current node by calling the processing interface; when the processing of the current node is successful, generate a processing result indicating that the processing of the current node is successful; when the processing of the current node fails, re-call the processing interface to process the current node until the number of times the processing interface is called is greater than a preset value, and generate a processing result indicating that the processing of the current node fails;

[0175] A third acquisition subunit is used to acquire the processor information in the processor information field in the current node and generate the node information to be processed of the current node if the current node does not meet the preset automatic processing condition;

[0176] The feedback subunit is used to feed back the information of the node to be processed to the processor corresponding to the processor information, so as to obtain the processing result fed back by the processor after processing the current node.

[0177] The device provided in the embodiment of the present invention may also be configured as follows:

[0178] A marking unit, used to mark the business process as an execution completed process and generate execution completion information of the business process;

[0179] The first storage unit is used to save the execution completion information into a preset process information library and display the execution completion information to the applicant.

[0180] The device provided in the embodiment of the present invention may also be configured as follows:

[0181] A third determining unit, configured to determine the supervisor information of the current node based on the supervisor information field in the current node;

[0182] A prompting unit, configured to display preset rollback information to the supervisor based on the supervisor information, so as to prompt the supervisor whether to perform a preset rollback operation on the business process;

[0183] A second storage unit is used to mark the business process as an uncompleted process when receiving a cancellation instruction fed back by the supervisor, generate stop information of the business process, and save the stop information to a process information library;

[0184] An execution unit is used to execute the rollback operation on the business process when receiving the rollback instruction fed back by the supervisor.

[0185] An embodiment of the present invention further provides a storage medium, wherein the storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to perform the following operations:

[0186] When receiving a process application instruction sent by an applicant, displaying a template selection page to the applicant;

[0187] Determining the process template selected by the applicant based on the selection information entered by the applicant in the template selection page;

[0188] Displaying the information collection page of the process template to the applicant, and upon receiving the business information submitted by the applicant based on the information collection page, generating a business process corresponding to the process application instruction;

[0189] Read each process node in the business process whose node status is an unprocessed state one by one, and use the currently read process node as the current node;

[0190] Determine the node type of the current node, and perform a processing operation corresponding to the node type on the current node to obtain a processing result of the current node;

[0191] When the processing result is characterized as a processing failure, stop reading each process node in the business process;

[0192] When the processing result is characterized as successful processing, the node state of the current node is updated to a processed state, and the next process node in the business process is read, and the process node is used as the current node, and the operation of determining the node type of the current node and performing a processing operation corresponding to the node type on the current node to obtain the processing result of the current node is returned, until the node state of each process node in the business process is a processed state.

[0193] The embodiment of the present invention further provides an electronic device, the structural diagram of which is shown in FIG. Figure 6 As shown, it specifically includes a memory 601 and one or more instructions 602, wherein the one or more instructions 602 are stored in the memory 601 and are configured to be executed by one or more processors 603 to perform the following operations:

[0194] When receiving a process application instruction sent by an applicant, displaying a template selection page to the applicant;

[0195] Determining the process template selected by the applicant based on the selection information entered by the applicant in the template selection page;

[0196] Displaying the information collection page of the process template to the applicant, and upon receiving the business information submitted by the applicant based on the information collection page, generating a business process corresponding to the process application instruction;

[0197] Read each process node in the business process whose node status is an unprocessed state one by one, and use the currently read process node as the current node;

[0198] Determine the node type of the current node, and perform a processing operation corresponding to the node type on the current node to obtain a processing result of the current node;

[0199] When the processing result is characterized as a processing failure, stop reading each process node in the business process;

[0200] When the processing result is characterized as successful processing, the node state of the current node is updated to a processed state, and the next process node in the business process is read, and the process node is used as the current node, and the operation of determining the node type of the current node and performing a processing operation corresponding to the node type on the current node to obtain the processing result of the current node is returned, until the node state of each process node in the business process is a processed state.

[0201] The specific implementation processes and derivative methods of the above-mentioned embodiments are all within the protection scope of the present invention.

[0202] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.

[0203] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0204] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for executing a business process, characterized in that: Applied in operation and maintenance systems, including: When receiving a process application instruction sent by an applicant, obtaining status information of each process template preset in the template library; determining the template status of each process template based on the status information of each process template; generating a template selection page including the template status of each process template, and displaying the template selection page to the applicant; the template status of the process template includes at least a maintenance status, a suspended status, and an available status; Determining the process template selected by the applicant based on the selection information entered by the applicant in the template selection page; The information collection page of the process template is displayed to the applicant, and upon receiving the business information submitted by the applicant based on the information collection page, a business process corresponding to the process application instruction is generated; the business information includes at least: basic information of the applicant and operation and maintenance information; Read each process node in the business process whose node status is an unprocessed state one by one, and use the currently read process node as the current node; Determine the node type of the current node, and perform a processing operation corresponding to the node type on the current node to obtain a processing result of the current node; the node type includes: a manual processing type and an automatic processing type; When the processing result is characterized as a processing failure, stop reading each process node in the business process; When the processing result is characterized as successful processing, the node state of the current node is updated to a processed state, and the next process node in the business process is read, and the process node is used as the current node, and the operation of determining the node type of the current node and performing a processing operation corresponding to the node type on the current node to obtain the processing result of the current node is returned, until the node state of each process node in the business process is a processed state.

2. The method according to claim 1, characterized in that The determining the node type of the current node and performing a processing operation corresponding to the node type on the current node to obtain a processing result of the current node includes: Obtaining type information in the type field of the current node; Based on the type information, determining whether the node type of the current node is an automatic processing type; If the node type of the current node is an automatic processing type, a calling interface corresponding to the current node is determined based on the interface field in the current node, and a processing system corresponding to the calling interface is called through the calling interface to process the current node, so as to obtain a processing result of the current node fed back by the processing system; If the node type of the current node is a manual processing type, obtaining node information of the current node, and judging whether the current node meets a preset automatic processing condition based on the node information; If the current node meets the preset automatic processing conditions, the processing interface corresponding to the current node is determined based on the interface field in the current node, and the current node is processed by calling the processing interface; when the current node is processed successfully, a processing result indicating that the current node is processed successfully is generated; when the current node is processed unsuccessfully, the processing interface is called again to process the current node until the number of times the processing interface is called is greater than a preset value, and a processing result indicating that the current node is processed unsuccessfully is generated; If the current node does not meet the preset automatic processing conditions, the processor information in the processor information field in the current node is obtained, and the node information to be processed of the current node is generated; The information of the node to be processed is fed back to the processor corresponding to the processor information, so as to obtain the processing result fed back by the processor after processing the current node.

3. The method according to claim 1, characterized in that When the node status of each process node in the business process is in the processed state, it also includes: Marking the business process as an execution completed process and generating execution completion information of the business process; The execution completion information is saved in a preset process information library, and the execution completion information is displayed to the applicant.

4. The method according to claim 1, characterized in that: After stopping reading each process node in the business process, the process further includes: Determine the supervisor information of the current node based on the supervisor information field in the current node; Based on the supervisor information, the preset rollback information is displayed to the supervisor to prompt the supervisor whether to perform a preset rollback operation on the business process; When receiving the cancellation instruction fed back by the supervisor, marking the business process as an uncompleted process, generating stop information of the business process, and saving the stop information to the process information library; When the rollback instruction fed back by the supervisor is received, the rollback operation is performed on the business process.

5. A business process execution device, characterized in that: Applied in operation and maintenance systems, including: The display unit includes: a first acquisition subunit, a first determination subunit and a generation subunit; The first acquisition subunit is used to acquire the status information of each process template preset in the template library when receiving the process application instruction sent by the applicant; The first determining subunit is used to determine the template state of each process template based on the state information of each process template; the template state of the process template at least includes a maintenance state, a suspended state, and an available state; The generating subunit is used to generate a template selection page including the template status of each of the process templates, and display the template selection page to the applicant; A first determining unit, configured to determine the process template selected by the applicant based on the selection information input by the applicant in the template selection page; A generating unit, configured to display the information collection page of the process template to the applicant, and upon receiving the business information submitted by the applicant based on the information collection page, generate a business process corresponding to the process application instruction; the business information includes at least: basic information of the applicant and operation and maintenance information; A reading unit, used to read each process node in the business process whose node status is an unprocessed state one by one, and use the currently read process node as the current node; A second determining unit is used to determine a node type of the current node, and perform a processing operation corresponding to the node type on the current node to obtain a processing result of the current node; the node type includes: a manual processing type and an automatic processing type; A stopping unit, used for stopping reading each process node in the business process when the processing result is characterized as a processing failure; An updating unit is used to update the node status of the current node to a processed status when the processing result is characterized as successful processing, and read the next process node in the business process, and use the process node as the current node, and return to execute to determine the node type of the current node, and perform a processing operation corresponding to the node type on the current node to obtain the processing result of the current node, until the node status of each process node in the business process is a processed status.

6. The device according to claim 5, characterized in that The second determining unit includes: A second acquisition subunit, used to acquire type information in the type field of the current node; A first judgment subunit, configured to judge whether the node type of the current node is an automatic processing type based on the type information; a processing subunit, configured to determine, if the node type of the current node is an automatic processing type, a calling interface corresponding to the current node based on an interface field in the current node, and to process the current node by calling a processing system corresponding to the calling interface through the calling interface, so as to obtain a processing result of the current node fed back by the processing system; A second judgment subunit is used to obtain node information of the current node if the node type of the current node is a manual processing type, and judge whether the current node meets a preset automatic processing condition based on the node information; A second determination subunit is used to determine, if the current node meets the preset automatic processing conditions, a processing interface corresponding to the current node based on the interface field in the current node, and process the current node by calling the processing interface; when the processing of the current node is successful, generate a processing result indicating that the processing of the current node is successful; when the processing of the current node fails, re-call the processing interface to process the current node until the number of times the processing interface is called is greater than a preset value, and generate a processing result indicating that the processing of the current node fails; A third acquisition subunit is used to acquire the processor information in the processor information field in the current node and generate the node information to be processed of the current node if the current node does not meet the preset automatic processing condition; The feedback subunit is used to feed back the information of the node to be processed to the processor corresponding to the processor information, so as to obtain the processing result fed back by the processor after processing the current node.

7. A storage medium, characterized in that: The storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the business process execution method according to any one of claims 1 to 4.

8. An electronic device, characterized in that: It comprises a memory and one or more instructions, wherein the one or more instructions are stored in the memory and are configured to be executed by one or more processors to execute the business process execution method as described in any one of claims 1 to 4.