Method and system for batch task configuration scheduling
A technology of task configuration and batch processing, which is applied in the direction of multi-program device, program startup/switching, etc., can solve the problems of unable to maintain batch processing, and the scheduling framework does not have a visual configuration interface, etc., to achieve convenient batch processing and improve efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] Please refer to figure 1 , figure 1 It is a flow chart of a method for configuring and scheduling batch processing tasks provided in the embodiment of the present application, and the specific scheme is as follows:
[0043] S101: Read the configuration data of the batch task to generate an XML file;
[0044] At present, in the enterprise application system, the batch processing tool mainly adopts the Spring Batch batch processing framework, and reading the configuration data of the batch processing task is also the task of configuring Spring Batch. The Spring Batch task usually consists of multiple steps, and these configuration information need to be placed in an XML file. By generating the xml file can be:
[0045] Read the configuration data of the batch task; create a document object instance; write the task into an XML file through the createElement function and creatTextNode function of the document object instance; output the XML file to disk. The purpose of ...
Embodiment 2
[0054] Based on the foregoing embodiments, when the XML file does not contain a Cron expression, the task can be executed manually. can refer to figure 2 , the flow chart of the batch task configuration scheduling method at this time is as follows figure 2 shown, compared tofigure 1 , step S104 is added, that is, manually execute the task, corresponding to the situation when the code of the XML file in step 102 of the above embodiment does not contain a Cron expression. A code generation script can be pre-written, and when manual execution is required, the script can be called to implement the manual execution of the task. It is also possible to utilize a visual interface, such as an interface that includes settings for the time, and an "on" switch. After setting the start time, clicking the "Start" switch means that the task can start at the set time.
Embodiment 3
[0056] Based on the above-mentioned embodiments, this embodiment provides a visual interface of a batch processing task configuration and scheduling method, see Figure 3 to Figure 5 .
[0057] image 3 It is a configuration interface for batch processing tasks, where relevant parameters can be input to generate corresponding XML files. Some function codes in this interface can be shown as follows:
[0058] Generate jobs:
[0059]
[0060]
[0061] Description of the entire job:
[0062] description.appendChild(doc.createTextNode(pmBatchJobVO2.getRemark()));
[0063] beans.appendChild(description);
[0064] Generate an xml file according to the sort number:
[0065]
[0066] Of course, the process of generating XML may also include controlling the output format, selecting an output path, etc., and outputting an XML file.
[0067] Figure 4 It is a visual configuration interface for the scheduled execution time of batch tasks, which actually belongs to image ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com