Method and device for processing critical path of workflow
By obtaining and updating the execution status information of the critical paths of the workflow and determining its execution strategy, it solves the problem of critical path execution failure caused by emergencies in data interactions, and improves the flexibility of workflow calls and data processing efficiency.
Patent Information
- Application Number
- CN202110427332.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-20
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2041-04-20
AI Technical Summary
In the data interaction between different applications, commercial banks have difficulty in handling unplanned emergencies flexibly, resulting in the failure of key path execution, which in turn affects the execution of the entire workflow, increases development and operation and maintenance costs, and reduces data processing efficiency.
By obtaining the execution status information of the workflow critical path, update the switch parameter table, and determine the execution strategy of the workflow critical path based on the updated switch parameter table, avoiding the problem that the entire workflow cannot be executed due to the failure of the execution of a certain branch workflow.
Improve the flexibility of workflow calls, avoid the problem that the entire workflow cannot be executed due to the failure of execution of a certain branch workflow, and improve the efficiency of batch processing of data.
Smart Images

Figure CN113052571B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a method, device, equipment, medium and program product for processing a workflow critical path. Background Art
[0002] Due to business needs, commercial banks have data interactions between different applications. A common form of this is to use automated tool scheduling tools to create multiple workflows for concurrent execution to achieve batch jobs.
[0003] Because all job scheduling needs to be designed in advance before being deployed to production, there is no flexibility in dealing with unexpected situations. For example, the upstream cannot provide files on time for some reason, which leads to the failure of the critical path execution, and then the failure of the workflow execution of the entire branch, which in turn affects the execution of all workflows the next day, increasing the cost of developers and operation and maintenance personnel and reducing data processing efficiency. Summary of the invention
[0004] In view of the above problems, the present disclosure provides a method, apparatus, device, medium and program product for processing a workflow critical path.
[0005] According to a first aspect of the present disclosure, a method for processing a workflow critical path is provided, comprising:
[0006] Get the workflow critical path execution status information;
[0007] In response to the state information, updating a switch parameter table, wherein the switch parameter table represents a switch state of each workflow critical path;
[0008] According to the updated switch parameter table, the execution of the workflow critical path is determined.
[0009] According to an embodiment of the present disclosure, updating the switch parameter table in response to the state information includes:
[0010] If the status information is execution failure, the switch parameter of the critical path in the switch parameter table is changed to closed.
[0011] According to an embodiment of the present disclosure, the step of obtaining workflow critical path execution status information includes:
[0012] Set a key path name and record the execution result corresponding to the key path name in the status information table;
[0013] Poll the workflow critical path status information table;
[0014] The workflow critical path execution status information is obtained according to the status information table.
[0015] According to an embodiment of the present disclosure, determining the execution of the workflow critical path according to the updated switch parameter table includes:
[0016] Get the key path name of the workflow to be executed;
[0017] Determine the switch parameters of the key path of the workflow to be executed according to the updated switch parameter table and the name of the key path of the workflow to be executed;
[0018] The critical path of the workflow to be executed is executed according to the switch parameter.
[0019] According to an embodiment of the present disclosure, executing the critical path of the to-be-executed workflow according to the switch parameter includes:
[0020] If the switch parameter indicates that the switch state of the critical path of the workflow to be executed is off, the critical path of the workflow to be executed is not executed, and execution status information indicating successful execution is returned;
[0021] If the switch parameter indicates that the switch state of the critical path of the to-be-executed workflow is on, the critical path of the to-be-executed workflow is executed, and execution state information is returned according to the execution result.
[0022] According to an embodiment of the present disclosure, the switch parameter table includes a key path name and a switch parameter corresponding to the key path name.
[0023] A second aspect of the present disclosure provides a processing device for a workflow critical path, comprising: an acquisition module, configured to acquire execution status information of the workflow critical path;
[0024] an updating module, configured to update a switch parameter table in response to the state information, wherein the switch parameter table represents a switch state of each workflow critical path; and
[0025] The execution module is used to determine the execution of the workflow critical path according to the updated switch parameter table.
[0026] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the method described in the first aspect above.
[0027] The fourth aspect of the present disclosure further provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the method described in the first aspect above.
[0028] The fifth aspect of the present disclosure further provides a computer program product, including a computer program, which implements the method described in the first aspect when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The above contents and other purposes, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0030] Figure 1 A schematic diagram of calling a concurrent job execution of an automated scheduling tool according to an embodiment of the present disclosure is schematically shown;
[0031] Figure 2 A flowchart of a method for processing a workflow critical path according to an embodiment of the present disclosure is schematically shown;
[0032] Figure 3 A flowchart schematically shows another method for processing a workflow critical path according to an embodiment of the present disclosure;
[0033] Figure 4 A structural block diagram schematically shows a device for processing a workflow critical path according to an embodiment of the present disclosure; and
[0034] Figure 5 A block diagram of an electronic device suitable for implementing a processing method for a workflow critical path according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0035] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0036] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0037] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0038] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0039] An embodiment of the present disclosure provides a method for processing a workflow critical path, comprising: obtaining execution status information of the workflow critical path; updating a switch parameter table in response to the status information, wherein the switch parameter table represents the switch status of each workflow critical path; and determining the execution of the workflow critical path according to the updated switch parameter table.
[0040] Figure 1 The schematic diagram of calling the automated scheduling tool for concurrently executing jobs in the embodiment of the present disclosure is shown schematically. Figure 1 As shown in the figure, the workflow call activity can call multiple workflows, with five concurrent executions and two serial executions. Only after all the batch jobs of the day are executed normally, the batch projects of the next day will be called normally. If one job call fails, the batch projects of the next day cannot be executed normally.
[0041] Figure 2 A flowchart of a method for processing a workflow critical path according to an embodiment of the present disclosure is schematically shown.
[0042] like Figure 2 As shown, the method of this embodiment includes operations S210 to S230.
[0043] In operation S210 , workflow critical path execution status information is acquired.
[0044] In one example, a critical path is a step that must be executed in a workflow job, that is, the core function that needs to be implemented. A workflow can have one or more critical paths. Only when a critical path in a workflow is successfully executed, the workflow is successfully executed. Each critical path is set with a name. When the critical path is executed, a parameter will be returned to the workflow caller to represent the execution result of the critical path. The execution results of the critical path are either successful or failed. For example, the execution results of the critical path are represented by "1" and "0", where "1" indicates successful execution and "0" indicates failed execution. The parameters and critical path names returned to the workflow caller are saved in the database as a status information table. The execution results of all critical paths in the workflow can be obtained through the status information table.
[0045] In operation S220 , in response to the state information, a switch parameter table is updated, wherein the switch parameter table represents the switch state of each workflow critical path.
[0046] In one example, the switch parameter table includes the key path name and the switch parameters corresponding to the key path. The switch parameter table is used to record the switch status of each workflow key path. Initially, the parameters in the switch parameter table are all set to on. When the switch parameter represents the switch status of the corresponding key path as on, the workflow will execute this key path when it is called for execution; on the contrary, when the switch parameter represents the switch status of the corresponding key path as off, the workflow will skip this key path when it is called for execution and will no longer execute the key path.
[0047] According to the status information of the critical path obtained in operation S210, the configuration switch parameter table is updated. If the status information of the critical path obtained in operation S210 is execution failure, the switch parameter corresponding to the critical path is set to off; if the status information of the critical path obtained in operation S210 is execution success, the switch parameter corresponding to the critical path is set to on; the switch parameter table is updated according to the execution result of the critical path.
[0048] In operation S230, execution of the workflow critical path is determined according to the updated switch parameter table.
[0049] According to the embodiment of the present disclosure, according to the updated switch parameter table, the updated switch parameters of each key path are obtained. If the switch parameter of the updated key path is closed, it is determined to re-execute the workflow where the key path is located. When the workflow is re-executed to the node of the key path, since the switch parameter of the key path is closed, the key path will be directly skipped and a parameter of successful execution will be returned to the caller. According to the updated switch parameter table, the flexibility of workflow calling can be improved, the problem of the failure of a branch workflow to execute causing the entire workflow to fail to execute can be avoided, and the efficiency of batch processing of data can be improved.
[0050] According to the method provided by the present invention, by setting the state parameter table and the switch parameter table, the execution information of the critical path of the workflow is obtained, and the execution strategy of the critical path is determined according to the switch parameter table, so as to avoid the technical problem that the failure of a branch workflow to execute causes the entire workflow to be unable to execute, improve the flexibility of workflow calls, and improve the efficiency of batch data processing.
[0051] Figure 3 A flowchart schematically shows another method for processing a workflow critical path according to an embodiment of the present disclosure.
[0052] like Figure 3 As shown, the method of the embodiment of the present disclosure includes operations S310 to S350.
[0053] In operation S310, a critical path name is set and an execution result corresponding to the critical path name is recorded in a state information table.
[0054] According to an embodiment of the present disclosure, before obtaining the execution status information of the workflow critical path, it is necessary to set the critical path name and record the execution result corresponding to the critical path name in the status information table. Specifically, all critical paths of the entire workflow are named and marked, which can be a name or a number. Each critical path corresponds to a unique identifier. After obtaining the execution of the critical path, the parameters of the caller are returned, and the execution result of the critical path is determined based on the parameters, and the execution result of the critical path and the critical path name are recorded in the status information table.
[0055] In operation S320 , workflow critical path execution status information is acquired.
[0056] According to an embodiment of the present disclosure, the workflow critical path execution status information is obtained according to the status information table. Specifically, the status information of the critical path can be obtained by periodically polling the workflow critical path status information table.
[0057] In operation S330, in response to the status information, the switch parameter table is updated.
[0058] According to an embodiment of the present disclosure, the switch parameter table is updated according to the execution status of the critical path obtained in operation S320, wherein the switch parameter table is used to characterize the switch status of each workflow critical path, and the switch parameter table includes the name of the critical path and the switch parameters corresponding to the critical path. Specifically, if the status information is execution failure, it indicates that the current critical path execution has failed. If it is not handled in time, it will affect the execution of the entire workflow the next day. In order to solve this problem, the switch parameter of the critical path in the switch parameter table is changed to off to skip the execution of the critical path; if the status information is execution success, the switch parameter of the critical path in the switch parameter table is changed to on.
[0059] In operation S340, the key path name of the workflow to be executed is obtained.
[0060] In operation S350, the switch parameters of the key path of the to-be-executed workflow are determined according to the updated switch parameter table and the name of the key path of the to-be-executed workflow.
[0061] In one example, before each execution of a workflow critical path, it is necessary to obtain the switch parameters of the critical path. Specifically, first obtain the name of the workflow critical path to be executed, and then obtain the switch parameters corresponding to the critical path in the switch parameter table according to the name.
[0062] In operation S360, the critical path of the to-be-executed workflow is executed according to the switch parameters.
[0063] According to an embodiment of the present disclosure, operation S360 has two implementation modes including:
[0064] In a first feasible implementation manner, if the switch parameter represents that the switch state of the critical path of the workflow to be executed is off, the critical path of the workflow to be executed is not executed, and execution status information indicating successful execution is returned.
[0065] In one example, if the switch parameter of the critical path of the workflow to be executed is closed in operation S350, the critical path is directly skipped, and the execution status information that the critical path has been successfully executed is returned to the workflow caller. In this embodiment, if the switch parameter is closed, it means that there is a problem with the critical path and it cannot be successfully executed, such as the upstream file for executing the critical path is missing, or there is a problem with the program of the critical path itself. In order not to affect the normal operation of other branch workflows, it is necessary to directly skip the critical path and return the execution status information that has been successfully executed to the caller. After waiting for the operation and maintenance staff to fix the problem, the switch parameters in the switch status table can be manually changed to continue executing the workflow.
[0066] In a second feasible implementation manner, if the switch parameter indicates that the switch state of the critical path of the workflow to be executed is on, the critical path of the workflow to be executed is executed, and execution status information is returned according to the execution result.
[0067] In one example, if the switch parameter of the critical path of the workflow to be executed is turned on in operation S350, the workflow to be executed is executed, and the status information of the actual execution of the critical path is returned to the workflow caller. In this embodiment, if the switch parameter is turned on, it means that there is no problem with the critical path and it can be executed directly. After the execution is completed, the actual execution result will be returned to the workflow caller, and the actual execution result can be a successful execution or a failed execution.
[0068] According to the method provided by the embodiment of the present disclosure, by setting the key path name and recording the execution result corresponding to the key path name in the status information table; obtaining the workflow key path execution status information; in response to the status information, updating the switch parameter table; determining the switch parameters of the workflow key path to be executed according to the updated switch parameter table and the name of the workflow key path to be executed; and executing the workflow key path to be executed according to the switch parameters. Before executing the key path, the switch status of the key path is judged to avoid the failure of a branch workflow to execute and cause the entire workflow to fail to execute, thereby improving the flexibility of workflow calls and the efficiency of batch processing of data.
[0069] Based on the above-mentioned workflow critical path processing method, the present disclosure also provides a workflow critical path processing device. Figure 4The device is described in detail.
[0070] Figure 4 The structural block diagram of a device for processing a workflow critical path according to an embodiment of the present disclosure is schematically shown.
[0071] like Figure 4 As shown, the processing device 400 of this embodiment includes an acquisition module 410 , an update module 420 and an execution module 430 .
[0072] The acquisition module 410 is used to acquire the workflow critical path execution state information. In one embodiment, the acquisition module 410 can be used to perform the operation S210 described above, which will not be described in detail here.
[0073] The updating module 420 is used to update the switch parameter table in response to the state information. The switch parameter table represents the switch state of each workflow critical path. In one embodiment, the updating module 420 can be used to perform the operation S220 described above, which will not be repeated here.
[0074] The execution module 430 is used to determine the execution of the workflow critical path according to the updated switch parameter table. In one embodiment, the execution module 430 can be used to execute the operation S230 described above, which will not be described in detail here.
[0075] According to an embodiment of the present disclosure, any multiple modules in the acquisition module 410, the update module 420 and the execution module 430 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the acquisition module 410, the update module 420 and the execution module 430 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, at least one of the acquisition module 410, the update module 420 and the execution module 430 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be executed.
[0076] Figure 5 A block diagram of an electronic device suitable for implementing a processing method for a workflow critical path according to an embodiment of the present disclosure is schematically shown.
[0077] like Figure 5 As shown, the electronic device 500 according to an embodiment of the present disclosure includes a processor 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. The processor 501 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 501 may also include an onboard memory for caching purposes. The processor 501 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0078] In RAM 503, various programs and data required for the operation of electronic device 500 are stored. Processor 501, ROM 502 and RAM 503 are connected to each other via bus 504. Processor 501 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 502 and / or RAM 503. It should be noted that the program can also be stored in one or more memories other than ROM 502 and RAM 503. Processor 501 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0079] According to an embodiment of the present disclosure, the electronic device 500 may further include an input / output (I / O) interface 505, which is also connected to the bus 504. The electronic device 500 may further include one or more of the following components connected to the I / O interface 505: an input portion 506 including a keyboard, a mouse, etc.; an output portion 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 508 including a hard disk, etc.; and a communication portion 509 including a network interface card such as a LAN card, a modem, etc. The communication portion 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage portion 508 as needed.
[0080] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0081] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 502 and / or RAM 503 described above and / or one or more memories other than ROM 502 and RAM 503.
[0082] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the item recommendation method provided by the embodiment of the present disclosure.
[0083] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 501. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0084] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 509, and / or installed from the removable medium 511. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0085] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the processor 501, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.
[0086] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0087] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0088] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0089] It should be noted that the method and device for processing the workflow critical path provided by the embodiments of the present disclosure can be used in the financial field, and can also be used in any field other than the financial field. The application field of the method and device for processing the workflow critical path provided by the embodiments of the present disclosure is not limited.
[0090] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A method for processing a workflow critical path, comprising: Acquire workflow critical path execution status information, where the critical path is a step that must be executed for a workflow job, and each workflow includes at least one critical path; In response to the state information, updating a switch parameter table, wherein the switch parameter table represents the switch state of each workflow critical path, and the switch parameter table includes a critical path name and a switch parameter corresponding to the critical path; According to the updated switch parameter table, the execution of the workflow critical path is determined. The step of determining the execution of the workflow critical path according to the updated switch parameter table includes: If the switch parameter indicates that the switch state of the critical path of the workflow to be executed is off, the critical path of the workflow to be executed is not executed, and execution status information indicating successful execution is returned; If the switch parameter indicates that the switch state of the critical path of the workflow to be executed is on, the critical path of the workflow to be executed is executed, and execution status information is returned according to the execution result. The updating of the switch parameter table in response to the state information comprises: If the status information is execution failure, the switch parameter of the critical path in the switch parameter table is changed to closed.
2. The method according to claim 1, characterized in that: The obtaining of workflow critical path execution status information includes: Set a key path name and record the execution result corresponding to the key path name in the status information table; Poll the workflow critical path status information table; The workflow critical path execution status information is obtained according to the status information table.
3. The method according to claim 2, characterized in that Determining the execution of the workflow critical path according to the updated switch parameter table includes: Get the key path name of the workflow to be executed; Determine the switch parameters of the key path of the workflow to be executed according to the updated switch parameter table and the name of the key path of the workflow to be executed; The critical path of the workflow to be executed is executed according to the switch parameter.
4. The method according to any one of claims 1 to 3, characterized in that: The switch parameter table includes key path names and switch parameters corresponding to the key path names.
5. A workflow critical path processing device, comprising: An acquisition module is used to acquire the execution status information of the workflow key path, where the key path is the step that must be executed by the workflow job, and each workflow includes at least one key path; An updating module, configured to update a switch parameter table in response to the state information, wherein the switch parameter table represents the switch state of each workflow critical path, and the switch parameter table includes a critical path name and a switch parameter corresponding to the critical path; as well as an execution module, for determining the execution of the workflow critical path according to the updated switch parameter table, and for not executing the workflow critical path to be executed if the switch parameter indicates that the switch state of the workflow critical path to be executed is off, and returning execution status information indicating successful execution; and for executing the workflow critical path to be executed if the switch parameter indicates that the switch state of the workflow critical path to be executed is on, and returning execution status information according to the execution result, The update module is also used to change the switch parameter of the key path in the switch parameter table to closed if the status information is execution failure.
6. An electronic device comprising: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors execute the method according to any one of claims 1 to 4.
7. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the method according to any one of claims 1 to 4.
8. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Data processing method and device and electronic equipment
CN110275768A