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

Batch processing task configuration and scheduling method and system

A task configuration and batch processing technology, applied in the direction of multi-programming device, program startup/switching, etc., can solve the problems of unmaintainable batch processing, the scheduling framework does not have a visual configuration interface, etc., to achieve the effect of convenient batch processing and improved efficiency

Active Publication Date: 2018-01-19
SHANDONG CVIC SOFTWARE ENG
View PDF6 Cites 6 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
  • Batch processing task configuration and scheduling method and system
  • Batch processing task configuration and scheduling method and system
  • Batch processing task configuration and scheduling method and system

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

The invention provides a batch processing task configuration and scheduling method. The method comprises the steps that configuration data of batch processing tasks is read, and an XML file is generated; whether a code of the XML file contains a Cron expression is judged; and if yes, the batch processing tasks are started at fixed time through a scheduler. In this way, integration of batch processing task configuration and task scheduling based on a scheduling framework is realized, it is not needed to call the scheduling framework again, a scheduling technology based on the Cron expression inthe framework is used, therefore, batch processing of the tasks is more convenient and faster during service processing, and batch processing efficiency is improved. The invention furthermore provides a batch processing task configuration and scheduling system which has the advantages as the method.

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