Task processing flow control processing method and device and electronic equipment
By obtaining task configuration information, generating and combining task components and configuring exception handling methods, the problem that existing scheduling systems cannot flexibly control task processing processes is solved, and efficient and flexible process management is achieved.
Patent Information
- Application Number
- CN202510230846.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-27
- Publication Date
- 2025-05-30
AI Technical Summary
The existing scheduling systems rely on fixed timetables and preset rules, cannot flexibly control a certain part of the task processing process, lack real-time response capabilities, and are difficult to meet efficient and flexible process management needs.
By obtaining task configuration information, generating and combining task components, configuring exception handling methods, including skipping or enabling alternate components, we can achieve flexible adjustments to the task processing process.
It realizes separate control of each part of the task processing process, enhances the flexibility and real-time response capabilities of the process, and can dynamically adjust the processing process according to business needs.
Smart Images

Figure CN120066623A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and more particularly, to a control processing method, apparatus, and electronic device for a task processing flow. Background Art
[0002] Currently, in the related art, the scheduling system usually relies on a fixed schedule and preset rules to control the task processing flow, and the object of control is usually the entire task processing flow, and it is impossible to control a certain part of the task processing flow separately, lacking flexibility and real-time response capabilities. With the continuous change of business requirements and the increase in complexity, the existing scheduling methods are difficult to meet the requirements of efficient and flexible process management.
[0003] In view of the above problems, no effective solution has been proposed yet. Summary of the Invention
[0004] Embodiments of the present application provide a control processing method, apparatus, and electronic device for a task processing flow, so as to at least solve the technical problem that the task processing flow in the related art usually depends on a fixed schedule and preset rules to control the entire task processing flow, resulting in the inability to flexibly adjust the task processing flow.
[0005] According to one aspect of the embodiments of the present application, a control processing method for a task processing flow is provided, including: obtaining task configuration information of a target task, where the task configuration information includes component configuration information of task components corresponding to the target task and the connection relationship between the task components; generating task components according to the component configuration information, and combining the task components according to the connection relationship to obtain a task processing flow corresponding to the target task; configuring an exception handling method for the task components according to the connection relationship and the component functions of the task components, where the exception handling method includes a handling method for task components with an abnormal running state.
[0006] Optionally, configuring an exception handling method for the task components according to the connection relationship and the component functions of the task components includes: receiving an initial exception handling method sent by a target object; determining a process execution result obtained by processing the task components by executing the initial exception handling method according to preset test data, the connection relationship, and the component functions, and comparing the process execution result with a preset process execution result, where the preset process execution result is a processing result obtained by calling the task processing flow to process the preset test data when there are no abnormal task components in the task processing flow; determining the exception handling method for the task components according to the comparison result and the initial exception handling method.
[0007] Optionally, determining the exception handling method of the task component based on the comparison result and the initial exception handling method includes: when the deviation value between the process execution result and the preset process execution result in the comparison result is less than the preset threshold, determining the initial exception handling method as the exception handling method; when the comparison result is that the deviation value is not less than the preset threshold, generating and displaying a prompt message for prompting the target object to update the initial exception handling method, and re-determining the deviation value corresponding to the updated initial exception handling method after the initial exception handling method is updated until the deviation value is less than the preset threshold.
[0008] Optionally, the exception handling method includes skipping the task component and enabling the corresponding backup component of the task component; configuring the exception handling method of the task component according to the connection relationship and the component function of the task component includes: determining the execution situation of the task processing flow when skipping the task component according to the connection relationship and the component function; when the execution situation is a failed execution, configuring the exception handling method of the task component as enabling the corresponding backup component of the task component; when the execution situation is a successful execution, configuring the exception handling method of the task component as skipping the task component.
[0009] Optionally, after detecting an abnormal task component with an abnormal running state, the method further includes: when the exception handling method corresponding to the abnormal task component is to start the target backup component corresponding to the abnormal task component, determining the target backup component corresponding to the abnormal task component, where the target backup component corresponds to one or more task components; determining the component image file corresponding to the abnormal task component and loading the component image file in the target backup component; replacing the abnormal task component in the task processing flow with the target backup component after loading the component image file.
[0010] Optionally, combining task components according to the connection relationship includes: determining preset trigger conditions and the connection relationships corresponding to the preset trigger conditions; generating a selection-type component and configuring the preset trigger conditions and the connection relationships corresponding to the preset trigger conditions in the selection-type component, where the selection-type component is used to determine the triggered target preset trigger condition and adjust the connection method between each task component according to the connection relationship corresponding to the target preset trigger condition.
[0011] Optionally, after generating a task component according to the component configuration information, the method further includes: responding to the selection instruction of the target object and selecting multiple task components; establishing a grouped processing component according to the selected multiple task components, where the grouped processing component includes the selected multiple task components.
[0012] According to another aspect of the embodiments of the present application, there is also provided a control processing device for a task processing flow, including: a first processing module, configured to obtain task configuration information of a target task, where the task configuration information includes component configuration information of task components corresponding to the target task and the connection relationship between the task components; a second processing module, configured to generate task components according to the component configuration information and combine the task components according to the connection relationship to obtain a task processing flow corresponding to the target task; a third processing module, configured to configure an exception handling method for the task components according to the connection relationship and the component functions of the task components, where the exception handling method includes a handling method for task components with an abnormal running state.
[0013] According to another aspect of the embodiments of the present application, there is also provided a non-volatile storage medium storing a program, where when the program runs, it controls the device where the non-volatile storage medium is located to execute the control processing method of the task flow.
[0014] According to another aspect of the embodiments of the present application, there is also provided an electronic device, including: a memory and a processor, where the processor is configured to run a program stored in the memory, and when the program runs, it executes the control processing method of the task processing flow.
[0015] According to another aspect of the embodiments of the present application, there is also provided a computer program product including a computer program, and when the computer program is executed by a processor, it implements the control processing method of the task processing flow.
[0016] In the embodiments of the present application, by obtaining the task configuration information of the target task, where the task configuration information includes the component configuration information of the task components corresponding to the target task and the connection relationship between the task components; generating task components according to the component configuration information and combining the task components according to the connection relationship to obtain a task processing flow corresponding to the target task; and configuring the exception handling method for the task components according to the connection relationship and the component functions of the task components, where the exception handling method includes a handling method for task components with an abnormal running state, by splitting the task processing flow into multiple components and configuring each component separately, the purpose of separately regulating each part of the task processing flow is achieved, thereby achieving the technical effect of flexibly adjusting the task processing flow, and further solving the technical problem that the task processing flow in the related art cannot be flexibly adjusted because it usually depends on a fixed schedule and preset rules to control the entire task processing flow. Description of the Drawings
[0017] The accompanying drawings described herein are used to provide a further understanding of the present application, and form a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application, and do not constitute an improper limitation of the present application. In the drawings:
[0018] Figure 1 is a schematic structural diagram of a computer terminal (portable terminal) provided according to an embodiment of the present application;
[0019] Figure 2 is a schematic flowchart of a control processing method for a task processing flow provided according to an embodiment of the present application;
[0020] Figure 3 is a schematic flowchart of a scheduling execution process of two-level interactive multi-form components in an anti-fraud service scenario provided according to an embodiment of the present application;
[0021] Figure 4 is a schematic flowchart of a configuration process of a task processing flow provided according to an embodiment of the present application;
[0022] Figure 5 is a schematic structural diagram of a control processing device for a task processing flow provided according to an embodiment of the present application. Detailed Embodiments
[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units does not necessarily need to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0025] In order to better understand the embodiments of the present application, the technical terms involved in the embodiments of the present application are explained as follows:
[0026] Multi-Modal Component Driven: A process is divided into multiple components with different morphological functions for joint scheduling. Each morphological component undertakes different processing functions, and the components communicate asynchronously through events. The event publisher does not need to wait for the response of the subscriber, thus improving the system's response speed and overall throughput. Asynchronous communication makes the system more flexible and capable of effectively handling a large number of concurrent operations.
[0027] In related technologies, the scheduling system usually relies on a fixed schedule and preset rules to control the task processing flow, and the object of control is usually the entire task processing flow. It is impossible to control a certain part of the task processing flow separately, lacking flexibility and real-time response capabilities. With the continuous change and increasing complexity of business requirements, the existing scheduling methods are difficult to meet the needs of efficient and flexible process management. For example, when an exception occurs in the task processing flow, related technologies cannot efficiently and accurately locate which part of the process has the exception.
[0028] To solve the above problems, relevant solutions are provided in the embodiments of this application, which are described in detail below.
[0029] According to the embodiments of this application, a method embodiment of a control processing method for a task processing flow is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.
[0030] The method embodiments provided by the embodiments of this application can be executed on a mobile terminal, a computer terminal, or a similar computing device. Figure 1 A hardware structure block diagram of a computer terminal (or mobile device) for implementing a control processing method for a task processing flow is shown. As Figure 1 shown, the computer terminal 10 (or mobile device 10) may include one or more processors 102 (the processors 102 may include, but are not limited to, processing devices such as a microprocessor MCU or a programmable logic device FPGA) shown as 102a, 102b,..., 102n in the figure, a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may further include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply, and / or a camera. Those of ordinary skill in the art can understand, Figure 1The structure shown is only schematic and does not limit the structure of the above-mentioned electronic device. For example, the computer terminal 10 may further include more or fewer components than those shown in Figure 1 or have a different configuration from that shown in Figure 1 .
[0031] It should be noted that one or more of the above-mentioned processors 102 and / or other data processing circuits can generally be referred to as "data processing circuits" herein. The data processing circuit can be embodied in software, hardware, firmware, or any combination thereof, in whole or in part. In addition, the data processing circuit can be a single independent processing module, or be incorporated in whole or in part into any one of the other elements in the computer terminal 10 (or mobile device). As involved in the embodiments of the present application, the data processing circuit is used for processor control (such as the selection of a variable resistance terminal path connected to an interface).
[0032] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the control processing method of the task processing flow in the embodiments of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, implements the control processing method of the above-mentioned task processing flow. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory remotely disposed relative to the processor 102, and these remote memories can be connected to the computer terminal 10 through a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.
[0033] The transmission device 106 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wireless network provided by the communication provider of the computer terminal 10. In one instance, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station and thus communicate with the Internet. In one instance, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0034] The display can be, for example, a touch-screen liquid crystal display (LCD), which enables a user to interact with the user interface of the computer terminal 10 (or mobile device).
[0035] Under the above operating environment, an embodiment of the present application provides a control method for a task processing flow, as Figure 2 shown, the method includes the following steps:
[0036] Step S202, obtain the task configuration information of the target task, where the task configuration information includes the component configuration information of the task components corresponding to the target task, and the connection relationship between the task components;
[0037] In the technical solution provided in step S202, after generating task components according to the component configuration information, the method further includes: responding to the selection instruction of the target object, and selecting multiple task components; establishing a grouped processing component according to the selected multiple task components, where the grouped processing component includes the selected multiple task components.
[0038] In some embodiments of the present application, the interaction method between different task components can be synchronous interaction or asynchronous interaction.
[0039] Step S204, generate task components according to the component configuration information, and combine the task components according to the connection relationship to obtain a task processing flow corresponding to the target task;
[0040] In the technical solution provided in step S204, combining task components according to the connection relationship includes: determining preset trigger conditions and the connection relationships corresponding to each preset trigger condition; generating a selection type component, and configuring the preset trigger conditions and the connection relationships corresponding to the preset trigger conditions in the selection type component, where the selection type component is used to determine the target preset trigger condition to be triggered, and adjust the connection method between each task component according to the connection relationship corresponding to the target preset trigger condition.
[0041] As an optional implementation manner, the types of task components include ordinary components, message queue components, selection type components, inputtable components, judgment components, loop components, and grouped components. Among them, ordinary components are basic components, responsible for executing specific business logics and functions, such as data processing, service calls, etc. In addition, ordinary components can be configured with parameters and set exception handling strategies according to needs. Message queue components are responsible for message publishing and subscribing. Through message queue components, asynchronous communication and decoupling between components can be achieved. Specifically, when a component completes a task, it can send an event to other components through the message queue component without waiting for a response, thereby improving the response speed and overall data throughput of the system running this method.
[0042] The selection type component is used to select one from multiple alternative paths for execution according to the set conditions or rules. It includes selecting task components and the connection relationships between components that are connected to the task processing flow under the effective conditions.
[0043] Input-enabled components allow users or external systems to directly input data or instructions, thereby adjusting the task processing flow. Such components enhance the interactivity and flexibility of the task processing flow, enabling the task processing flow to be adjusted according to real-time inputs.
[0044] Judgment components can make judgments and decisions based on preset business rules and conditional strategies to determine the next operation of the process. Loop components are used to provide the ability to execute specific tasks in a loop and are applicable to scenarios that require repeated execution until specific conditions are met. Loop components can be triggered based on control instructions or events to perform repeated operations such as data cleaning and file uploading. Grouping components can classify multiple components and thus divide these components into the same grouping component. Subsequently, operations can be directly performed on the grouping component to achieve batch processing of each component within the grouping component, such as setting connection relationships. For example, after defining a grouping component and assigning multiple components to the grouping component, the components within the group indicated by the grouping component have the same characteristic and can be set to have the same exit and then associated with other components. Moreover, when path associations are made between components or between components and groups, they can be serial or parallel.
[0045] In some embodiments of the present application, when configuring the internal logic of a component, dependency parameter settings, retry count formulation, and component exception handling method configuration can be performed. Complex business logic processing can also be carried out by customizing script content, and it can be set whether the current component is a source component or a target component.
[0046] As an alternative implementation, the path association information between components can also be converted into control instructions for the scheduler to execute.
[0047] In some embodiments of the present application, when a process call is triggered manually or automatically, the process scheduler will execute the business rule logic according to this call instruction.
[0048] Step S206: Configure the exception handling method of the task component according to the connection relationship and the component function of the task component, where the exception handling method includes the handling method executed for the task component with an abnormal running state.
[0049] In the technical solution provided in step S206, the steps of configuring the exception handling method of the task component according to the connection relationship and the component function of the task component include: receiving the initial exception handling method sent by the target object; determining the process execution result obtained by processing the task component with the initial exception handling method according to the preset test data, the connection relationship and the component function, and comparing the process execution result with the preset process execution result, where the preset process execution result is the processing result obtained by calling the task processing process to process the preset test data when there is no abnormal task component in the task processing process; determining the exception handling method of the task component according to the comparison result and the initial exception handling method.
[0050] As an optional implementation manner, the steps of determining the exception handling method of the task component according to the comparison result and the initial exception handling method include: when the comparison result is that the deviation value between the process execution result and the preset process execution result is less than the preset threshold, determining the initial exception handling method as the exception handling method; when the comparison result is that the deviation value is not less than the preset threshold, generating and displaying a prompt message for prompting the target object to update the initial exception handling method, and determining the deviation value corresponding to the updated initial exception handling method again after the initial exception handling method is updated until the deviation value is less than the preset threshold.
[0051] In some embodiments of the present application, the complete process of configuring the exception handling method of the task component includes the following steps:
[0052] The first step is to receive the initial exception handling method sent by the target object;
[0053] Optionally, the configuration process starts with receiving the initial exception handling method provided by the target object (such as a process designer or a system administrator). These initial methods are usually based on the experience of the target object and the understanding of the task component functions, and may include strategies such as retry mechanisms, skipping errors, logging, sending alarm messages, or starting standby components. After receiving this information, the system will perform preliminary parsing and verification on it to ensure that it conforms to the preset rules and logic.
[0054] The second step is to perform simulation evaluation using preset test data;
[0055] The system will then use the preset test data to simulate the execution of various exception handling methods, including the initial exception handling method provided by the target object. The preset test data should cover various possible exception scenarios to ensure the comprehensiveness and accuracy of the evaluation. During the simulation process, the system will dynamically adjust the execution path and parameters of the process according to the connection relationship between the task components and the specific functions of each component.
[0056] The third step is to compare the simulation result with the preset process execution result;
[0057] Through simulation execution, the system will obtain a series of process execution results. Next, the system will compare these results with the preset process execution results, which are the results obtained using the same test data in the case of no abnormal task components in the task processing process. The purpose of the comparison is to evaluate the impact of the exception handling method on the process results, that is, the magnitude of the deviation value.
[0058] In addition, the calculation of the deviation value can be based on multiple metrics, including but not limited to data accuracy, process execution time, resource consumption, etc. Ideally, the deviation value should be as small as possible, indicating that the exception handling method has the least interference on the process and the process execution results are closest to the preset results.
[0059] Step 4, determine the exception handling method;
[0060] Based on the comparison result of the deviation value, the system will decide whether to adopt the initial exception handling method provided by the target object. If the deviation value is less than the preset threshold, it indicates that the initial method has an acceptable interference on the process results when handling exceptions. At this time, the system will determine the initial exception handling method as the final exception handling method.
[0061] However, if the deviation value is not less than the preset threshold, this indicates that the initial exception handling method has a greater impact on the process results, which may lead to inaccurate data or low process execution efficiency. At this time, the system will not directly adopt this method, but enter a more detailed optimization process.
[0062] Step 5, optimize the exception handling method;
[0063] In the case where the deviation value exceeds the preset threshold, the system will generate and display a prompt message for prompting the target object to update the initial exception handling method. The prompt message may include the specific value of the deviation value, the possible negative impacts brought by the exception handling method, and the recommended optimization direction.
[0064] Subsequently, the target object updates the initial exception handling method according to the information fed back by the system. This update can be a manual correction or an automatic adjustment based on the system's recommended strategy. After receiving the updated exception handling method, the system will conduct a simulation evaluation again until the deviation value is less than the preset threshold to ensure that the exception handling method is both effective and efficient.
[0065] Step 6, record and feedback;
[0066] After determining the exception handling method, the system will record this configuration for use in subsequent process executions. At the same time, the system will also feedback the configuration result to the target object, including the finally determined exception handling method, the magnitude of the deviation value, and a description of the optimization effect, to ensure that the target object has a clear understanding of the final configuration.
[0067] By configuring the exception handling method in the above manner, since the system can screen out the exception handling method with the least impact on the process result through simulation evaluation and comparison of deviation values, the deviation of the final output result caused by component exceptions is effectively reduced, ensuring the accuracy and reliability of the business process. Additionally, during the evaluation process, the system not only focuses on the result deviation but also considers the resource consumption. This helps avoid adopting exception handling strategies with excessive resource consumption, thereby realizing the rational utilization of resources and improving the overall operation efficiency of the system while ensuring the process stability. It can effectively reduce the impact of exception handling on the result of the task processing flow, and also realize the optimal utilization of resources, enhance the robustness and response ability of the system, and promote the continuous improvement of process control. Through this process, the system can provide users with more accurate, efficient, and reliable business process management services, significantly improving user satisfaction and the achievement rate of business goals.
[0068] In some embodiments of the present application, the exception handling method includes skipping a task component and enabling a corresponding standby component of the task component; configuring the exception handling method of the task component according to the connection relationship and the component function of the task component includes: determining the execution situation of the task processing flow in the case of skipping the task component according to the connection relationship and the component function; in the case where the execution situation is execution failure, configuring the exception handling method of the task component as enabling the corresponding standby component of the task component; in the case where the execution situation is execution success, configuring the exception handling method of the task component as skipping the task component.
[0069] As an optional implementation manner, when the number of exceptions of the component involved in the execution is too high or an exception is caused by user input but the operation of other components is not desired to be affected, intelligent risk control can be enabled, and the system will automatically analyze and predict the component, providing intelligent support for whether the system excludes the component from being called, achieving intelligent rejection of the component.
[0070] Optionally, after detecting an abnormal task component with an abnormal operating state, when the exception handling method corresponding to the abnormal task component is to start the target standby component corresponding to the abnormal task component, determine the target standby component corresponding to the abnormal task component, where the target standby component corresponds to one or more task components; determine the component image file corresponding to the abnormal task component, and load the component image file in the target standby component; replace the abnormal task component in the task processing flow with the target standby component after loading the component image file.
[0071] In some embodiments of the present application, the first number of task components can correspond to the second number of spare components, where the second number is less than the first number. When a task component is determined to be an abnormal task component, a spare component can be selected to load the mirror backup file corresponding to the abnormal task component and replace the abnormal task component to access the task processing flow.
[0072] As an alternative implementation, since the task process in the present application is componentized, the task processing flow is clearly decomposed into multiple independent and functionally clear components. Therefore, when an exception occurs, the system can accurately locate the affected abnormal task component and the data that may be incorrectly modified or processed during the processing of this component. This feature makes it possible to accurately correct abnormal data, avoiding unnecessary waste of system resources and redundant processing. An alternative correction process includes the following steps:
[0073] The first step, exception detection and component location;
[0074] When the system monitors that the running state of a certain task component enters an abnormal state, the exception detection module immediately starts the exception handling process. Exception detection is based on the running logs, performance metrics, and business rules of the component to automatically identify the type and possible causes of the exception. Once it is determined that a component is abnormal, the system will quickly lock the position of the abnormal task component in the process and other components associated with this component.
[0075] The second step, determination of the affected data range;
[0076] After locating the abnormal task component, the system further analyzes the input and output data of the abnormal task component and other components that directly or indirectly interact with it to determine the range of the affected data. This step may involve the tracing and analysis of the data flow to ensure that the correction operation is limited to the affected data part and avoid unnecessary interference to the entire process.
[0077] The third step, data difference analysis;
[0078] The system performs difference analysis on the affected data, compares the data states before and after the exception occurs, and identifies possible errors or deviations in the data. Difference analysis may use a variety of techniques, including but not limited to data verification, consistency checking, and machine learning model prediction, etc., to ensure that the abnormal changes in the data can be accurately identified.
[0079] The fourth step, correction of abnormal data;
[0080] Based on the results of data difference analysis, the system will automatically or after manual confirmation, correct the abnormal data. The correction operations may include data recovery, modifying error values, re-executing data processing logic, etc. During this process, the system will first call the backup logic or backup components of the exception task component for data processing, and at the same time, determine the correction priority and specific operations according to the preset exception handling strategy.
[0081] Step 5, verification of correction results;
[0082] After the correction is completed, the system will verify the correction results to ensure the accuracy, integrity, and consistency of the data. The verification may be carried out by re-running the data verification logic, consistency check, or comparing with the preset correct data, etc. If the verification results indicate that the data still has abnormalities, the system will re-enter the abnormal data correction process until the data is completely corrected.
[0083] Step 6, process recovery and monitoring;
[0084] Once the abnormal data is corrected successfully, the system will restore the normal operating state of the affected components, and at the same time, re-enter the corrected data into the process to ensure that the entire task processing process can continue to execute. During the recovery period, the system will strengthen monitoring to ensure that the abnormal events have been completely resolved and the execution situation after the process recovery meets the expectations.
[0085] Step 7, recording and analysis of exception handling;
[0086] The last step of the correction process is to record the detailed information of exception handling, including the exception type, the scope of affected data, correction operations, correction results, and recovery time, etc. These records will be used for subsequent optimization of exception handling strategies and system performance analysis, helping the system to respond faster and more accurately in future similar abnormal situations.
[0087] In some embodiments of the present application, the scheduling execution process of the group anti-fraud business process constructed by the method provided in the present application is as Figure 3 shown. It can be seen from Figure 3 that after the business process is componentized by the method provided in the present application, the decoupling between businesses and the rapid modification of strategies can be realized.
[0088] When the group anti-fraud business needs to query the real-name authentication information of a certain mobile phone number, it can require the provincial system to report to the group ftp server in the form of a file, and then push it from the group ftp server to the Ministry of Industry and Information Technology. The system can configure the general component information according to the input of the target object, set the strategy for obtaining the provincial call address, identify the swapped call address according to the header information, or identify the call address according to the message content, and at the same time, the call method can also be set.
[0089] After that, the message middleware component can be configured, and the MQ connection information and the assembled message content to be sent can be configured. And the policy information and link call information of the component are loaded into the context.
[0090] When the file transfer is completed, the link call is executed. The link executes to the pre-component, and the call method and call address are obtained according to the policy of the pre-component. Then the link executes to the mq component, assembles the message and sends it to the MQ. Then the message processing module reads the content of the message module in real time and executes the next-level notification interface to notify that the file has been uploaded successfully.
[0091] In addition, when the provincial address changes, it can be changed in real time by modifying the policy of the pre-component.
[0092] In some embodiments of the present application, a configuration process as Figure 4 shown is also provided, including the following steps:
[0093] Step S402, constructing a component of a general type;
[0094] Step S404, configuring the internal logic of the component;
[0095] Step S406, performing grouped configuration and path association configuration on the component;
[0096] Step S408, processing the control instructions of the component.
[0097] Optionally, processing the control instructions of the component includes configuring various instructions involved in the component, so that the component can execute the actions indicated by the instructions after receiving the instructions.
[0098] By obtaining the task configuration information of the target task, where the task configuration information includes the component configuration information of the task components corresponding to the target task and the connection relationship between the task components; generating task components according to the component configuration information, and combining the task components according to the connection relationship to obtain the task processing flow corresponding to the target task; configuring the exception handling method of the task components according to the connection relationship and the component functions of the task components, where the exception handling method includes the method of handling the task components with an abnormal running state, by splitting the task processing flow into multiple components and configuring each component separately, the purpose of separately regulating each part of the task processing flow is achieved, thereby achieving the technical effect of flexibly adjusting the task processing flow, and further solving the technical problem that the task processing flow in the related art usually depends on a fixed schedule and preset rules to control the whole task processing flow, resulting in the inability to flexibly adjust the task processing flow.
[0099] The embodiment of the present application provides a control processing device for a task processing flow,Figure 5 is a structural schematic diagram of the device. As can be seen from Figure 5 it, the device includes: a first processing module 50, configured to obtain task configuration information of a target task, where the task configuration information includes component configuration information of task components corresponding to the target task, and connection relationships between the task components; a second processing module 52, configured to generate task components according to the component configuration information, and combine the task components according to the connection relationships to obtain a task processing flow corresponding to the target task; and a third processing module 54, configured to configure an exception handling method for the task components according to the connection relationships and component functions of the task components, where the exception handling method includes a handling method executed on a task component with an abnormal running state.
[0100] In some embodiments of the present application, after generating task components according to the component configuration information, the control processing device of the task processing flow is further configured to: respond to a selection instruction of a target object, and select a plurality of task components; and establish a grouped processing component according to the selected plurality of task components, where the grouped processing component includes the selected plurality of task components.
[0101] In some embodiments of the present application, the step of the second processing module 52 combining the task components according to the connection relationships includes: determining preset trigger conditions and connection relationships corresponding to the preset trigger conditions; generating a selection type component, and configuring the preset trigger conditions and the connection relationships corresponding to the preset trigger conditions in the selection type component, where the selection type component is configured to determine a triggered target preset trigger condition, and adjust the connection manner between the task components according to the connection relationship corresponding to the target preset trigger condition.
[0102] In some embodiments of the present application, the step of the third processing module 54 configuring the exception handling method for the task components according to the connection relationships and component functions of the task components includes: receiving an initial exception handling method sent by a target object; determining a process execution result obtained by processing the task components by executing the initial exception handling method according to preset test data, connection relationships, and component functions, and comparing the process execution result with a preset process execution result, where the preset process execution result is a processing result obtained by calling the task processing flow to process the preset test data when there are no abnormal task components in the task processing flow; and determining the exception handling method for the task components according to the comparison result and the initial exception handling method.
[0103] In some embodiments of the present application, the steps for the third processing module 54 to determine the exception handling method of the task component according to the comparison result and the initial exception handling method include: when the deviation value between the process execution result and the preset process execution result in the comparison result is less than the preset threshold, determining the initial exception handling method as the exception handling method; when the deviation value in the comparison result is not less than the preset threshold, generating and displaying a prompt message for prompting the target object to update the initial exception handling method, and re-determining the deviation value corresponding to the updated initial exception handling method after the initial exception handling method is updated until the deviation value is less than the preset threshold.
[0104] In some embodiments of the present application, the exception handling method includes skipping the task component and enabling the corresponding standby component of the task component; the steps for the third processing module 54 to configure the exception handling method of the task component according to the connection relationship and the component function of the task component include: determining the execution situation of the task processing flow when the task component is skipped according to the connection relationship and the component function; when the execution situation is execution failure, configuring the exception handling method of the task component as enabling the corresponding standby component of the task component; when the execution situation is execution success, configuring the exception handling method of the task component as skipping the task component.
[0105] As an alternative implementation manner, after detecting an abnormal task component with an abnormal running state, the control processing device of the task processing flow is further configured to: when the exception handling method corresponding to the abnormal task component is to start the target standby component corresponding to the abnormal task component, determining the target standby component corresponding to the abnormal task component, where the target standby component corresponds to one or more task components; determining the component image file corresponding to the abnormal task component and loading the component image file in the target standby component; replacing the abnormal task component in the task processing flow with the target standby component after loading the component image file.
[0106] It should be noted that each module in the above control processing device of the task processing flow may be a program module (for example, a set of program instructions for implementing a specific function), or a hardware module. For the latter, it may be presented in the following forms, but not limited to: the manifestation form of each of the above modules is a processor, or the functions of each of the above modules are implemented by a processor.
[0107] According to an embodiment of the present application, a non-volatile storage medium is provided. A program is stored in the non-volatile storage medium. When the program runs, a control processing method for the following task flow is performed to control the device where the non-volatile storage medium is located: obtaining task configuration information of a target task, where the task configuration information includes component configuration information of task components corresponding to the target task and the connection relationship between the task components; generating task components according to the component configuration information, and combining the task components according to the connection relationship to obtain a task processing flow corresponding to the target task; configuring an exception handling method for the task components according to the connection relationship and the component functions of the task components, where the exception handling method includes the handling method for task components with an abnormal running state.
[0108] According to an embodiment of the present application, an electronic device is provided, including: a memory and a processor. The processor is used to run a program stored in the memory. When the program runs, a control processing method for the following task flow is performed: obtaining task configuration information of a target task, where the task configuration information includes component configuration information of task components corresponding to the target task and the connection relationship between the task components; generating task components according to the component configuration information, and combining the task components according to the connection relationship to obtain a task processing flow corresponding to the target task; configuring an exception handling method for the task components according to the connection relationship and the component functions of the task components, where the exception handling method includes the handling method for task components with an abnormal running state.
[0109] According to an embodiment of the present application, a computer program product is provided, including a computer program. When the computer program is executed by a processor, a control processing method for the following task flow is implemented: obtaining task configuration information of a target task, where the task configuration information includes component configuration information of task components corresponding to the target task and the connection relationship between the task components; generating task components according to the component configuration information, and combining the task components according to the connection relationship to obtain a task processing flow corresponding to the target task; configuring an exception handling method for the task components according to the connection relationship and the component functions of the task components, where the exception handling method includes the handling method for task components with an abnormal running state.
[0110] In the above embodiments of the present application, the descriptions of the respective embodiments have their own emphases. For parts not detailed in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
[0111] In several embodiments provided in the present application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are merely illustrative. For example, the division of the units can be a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections between each other can be through some interfaces. The indirect couplings or communication connections of units or modules can be in electrical or other forms.
[0112] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0113] In addition, in each embodiment of the present application, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
[0114] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the related technology, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media such as USB flash drives, read-only memories (ROMs), random access memories (RAMs), mobile hard disks, magnetic disks, or optical discs that can store program codes.
[0115] The above is only the preferred embodiment of the present application. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present application.
Claims
1. A control processing method for a task processing flow, characterized in that: include: Acquire task configuration information of the target task, wherein the task configuration information includes component configuration information of the task components corresponding to the target task and connection relationships between the task components; Generating the task components according to the component configuration information, and combining the task components according to the connection relationship to obtain a task processing flow corresponding to the target task; According to the connection relationship and the component function of the task component, an exception handling method of the task component is configured, wherein the exception handling method includes a handling method executed on the task component whose running state is an abnormal state.
2. The task processing flow control method according to claim 1, characterized in that: According to the connection relationship and the component function of the task component, the exception handling method of configuring the task component includes: Receive the initial exception handling method sent by the target object; Determine the process execution result obtained after executing the initial exception handling method to process the task component according to the preset test data, the connection relationship and the component function, and compare the process execution result with the preset process execution result, wherein the preset process execution result is the processing result obtained by calling the task processing process to process the preset test data when there is no abnormal task component in the task processing process; The exception handling method of the task component is determined according to the comparison result and the initial exception handling method.
3. The task processing flow control method according to claim 2, characterized in that: Determining the exception handling method of the task component according to the comparison result and the initial exception handling method includes: When the comparison result is that the deviation value between the process execution result and the preset process execution result is less than a preset threshold, determining that the initial exception handling method is the exception handling method; When the comparison result is that the deviation value is not less than the preset threshold, a prompt message is generated and displayed to prompt the target object to update the initial exception handling method, and after the initial exception handling method is updated, the deviation value corresponding to the updated initial exception handling method is determined again until the deviation value is less than the preset threshold.
4. The task processing flow control method according to claim 1, characterized in that: The exception handling method includes skipping the task component and enabling a standby component corresponding to the task component; configuring the exception handling method of the task component according to the connection relationship and the component function of the task component includes: Determining, based on the connection relationship and the component function, the execution status of the task processing flow when the task component is skipped; In the case where the execution condition is an execution failure, configuring the task component to handle an exception by enabling a backup component corresponding to the task component; When the execution status is successful, the exception handling method of configuring the task component is to skip the task component.
5. The task processing flow control method according to claim 4, characterized in that: After the abnormal task component whose running state is abnormal is detected, the method further includes: In the case where the abnormal processing method corresponding to the abnormal task component is to start the target standby component corresponding to the abnormal task component, determining the target standby component corresponding to the abnormal task component, wherein the target standby component corresponds to one or more task components; Determine the component image file corresponding to the abnormal task component, and load the component image file in the target standby component; The abnormal task component in the task processing flow is replaced by the target standby component after the component image file is loaded.
6. The task processing flow control method according to claim 1, characterized in that: Combining the task components according to the connection relationship includes: Determine preset trigger conditions and the connection relationships corresponding to the preset trigger conditions; Generate a selective component, and configure the preset trigger condition and the connection relationship corresponding to the preset trigger condition in the selective component, wherein the selective component is used to determine the target preset trigger condition to be triggered, and adjust the connection method between each of the task components according to the connection relationship corresponding to the target preset trigger condition.
7. The task processing flow control method according to claim 1, characterized in that: After generating the task component according to the component configuration information, the method further includes: In response to a selection instruction of the target object, a plurality of the task components are selected; A group processing component is established based on the selected multiple task components, wherein the group processing component includes the selected multiple task components.
8. A control processing device for a task processing flow, characterized in that: include: A first processing module is used to obtain task configuration information of a target task, wherein the task configuration information includes component configuration information of task components corresponding to the target task and connection relationships between the task components; A second processing module, configured to generate the task components according to the component configuration information, and to combine the task components according to the connection relationship to obtain a task processing flow corresponding to the target task; The third processing module is used to configure the exception handling method of the task component according to the connection relationship and the component function of the task component, wherein the exception handling method includes a processing method executed on the task component whose running state is an abnormal state.
9. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a program, wherein when the program is executed, the device where the non-volatile storage medium is located is controlled to execute the control processing method of the task processing flow described in any one of claims 1 to 7.
10. An electronic device, characterized in that: include: A memory and a processor, wherein the processor is used to run a program stored in the memory, wherein the program executes the control processing method of the task processing flow described in any one of claims 1 to 7 when running.
11. A computer program product, characterized in that It comprises a computer program, which, when executed by a processor, implements the control processing method of the task processing flow according to any one of claims 1 to 7.