Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2021-02-26
SHANDONG CVIC SOFTWARE ENG
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the existing scheduling framework does not have a visual configuration interface. Once the developer configures it, it is impossible to maintain batch processing without changing the program.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for batch task configuration scheduling
  • Method and system for batch task configuration scheduling
  • Method and system for batch task configuration scheduling

Examples

Experimental program
Comparison scheme
Effect test

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 ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A method for configuring and scheduling batch processing tasks provided by the present application includes reading the configuration data of the batch processing tasks and generating an XML file; judging whether the code of the XML file contains a Cron expression; The server starts the batch processing task at regular intervals. Realized the integration of batch task configuration and task scheduling based on the scheduling framework, no need to call the scheduling framework, and using the scheduling technology based on Cron expression in this framework makes the batch processing of tasks in business processing more convenient and faster, Improved batch processing efficiency. The present application also provides a system for configuring and scheduling batch processing tasks, which has the above beneficial effects.

Description

technical field [0001] The present application relates to the field of batch processing tools, in particular to a method and system for configuring and scheduling batch processing tasks. Background technique [0002] With the current enterprise application system, batch processing tools mainly use the Spring Batch batch processing framework. Spring Batch is a batch processing application framework, not a scheduling framework, and needs to cooperate with the scheduling framework to build and complete processing tasks. However, the existing scheduling framework does not have a visual configuration interface. Once the developer completes the configuration, it is impossible to maintain batch processing without changing the program. Contents of the invention [0003] The purpose of this application is to provide a batch processing framework solution, including batch processing and batch scheduling. After solving the batch processing, the scheduling framework must be called to r...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/48
Inventor 刘占魁田冬张乐奎鲍东
Owner SHANDONG CVIC SOFTWARE ENG
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products