Batch file generation method, device, equipment, storage medium and program product

By automatically generating batch files, the heterogeneity of batch processing needs among different enterprise organizations is solved, processing efficiency is improved, manual processing time is reduced, and automated and flexible batch file generation is achieved.

CN117271449BActive Publication Date: 2026-07-10CHINA CONSTRUCTION BANK +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA CONSTRUCTION BANK
Filing Date
2023-09-05
Publication Date
2026-07-10

AI Technical Summary

Technical Problem

In existing technologies, the batch processing needs of different organizations within an enterprise vary, resulting in long processing times and low efficiency when manually processing batch commands.

Method used

A batch file generation method is provided, which automatically generates batch files by importing and displaying batch processing requirement templates, filling in job flow information and job information, responding to interface operation requests for adjustment and configuration, and reducing manual intervention.

Benefits of technology

It improves the efficiency of batch file generation, reduces the steps of manually processing batch commands, and realizes automated and flexible batch file generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117271449B_ABST
    Figure CN117271449B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of data processing, and in particular to a batch processing file generation method and device, equipment, a storage medium and a program product. The method comprises the following steps: importing and displaying an import file, the import file is a file obtained after job flow information and job information are filled in a batch processing demand template; in response to an adjustment operation request received by an interface, the job flow information and the job information in the import file are adjusted; in response to a configuration operation request received by the interface, export information of the import file is configured; and a batch processing file is generated based on the adjusted job flow information, the job information and the configured export information. The method can improve processing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a batch file generation method, apparatus, device, storage medium, and program product. Background Technology

[0002] In big data application environments, batch processing services offer unique advantages. They aggregate multiple operations into a single user transaction, thereby improving service efficiency and reducing communication overhead. Furthermore, batch processing services allow users to control the entire batch processing behavior, which is particularly advantageous in certain application scenarios. However, current batch processing service methods still have certain limitations. For example, within an enterprise, there may be different organizational structures. Each structure may use batch processing to handle its business, but these different structures may have different batch processing requirements.

[0003] Currently, these batch commands are processed manually using traditional techniques, which is time-consuming and inefficient. Summary of the Invention

[0004] Therefore, it is necessary to provide a batch file generation method, apparatus, device, storage medium, and program product that can improve processing efficiency in response to the above-mentioned technical problems.

[0005] Firstly, this application provides a batch file generation method, the method comprising:

[0006] Import and display the imported file, which is a file obtained after filling in the workflow information and job information of the batch processing requirement template;

[0007] In response to the adjustment operation request received by the interface, the workflow information and the job information in the imported file are adjusted;

[0008] In response to the configuration operation request received by the interface, the export information of the imported file is configured;

[0009] A batch file is generated based on the adjusted job flow information, the job information, and the configured export information.

[0010] In one embodiment, generating a batch file based on the adjusted job flow information, the job information, and the configured export information includes:

[0011] Based on the adjusted job flow information and the instance number distribution database name and instance number distribution table name in the job information, obtain the instance number distribution table from the instance number distribution database;

[0012] Based on the institution identifiers in the exported information, determine the number of exports for each institution from the instance number distribution table;

[0013] A batch file is generated based on the number of exports from each of the aforementioned institutions, the workflow information, and the job information.

[0014] In one embodiment, before generating the batch file based on the number of exports from each of the institutions, the job flow information, and the job information, the method further includes:

[0015] Get the export configuration;

[0016] The export result is determined based on the type of the export configuration, the export flag in the import file, and the export flag in the environment;

[0017] When the export result is "export", the step of generating a batch file based on the export quantity, job flow information and job information of each institution continues.

[0018] In one embodiment, generating a batch file based on the adjusted job flow information, the job information, and the configured export information includes:

[0019] Replace the job flow and job name in the imported file with the organization name in the exported information;

[0020] Based on the job flow and jobs with the names replaced, a batch file is generated.

[0021] In one embodiment, generating a batch file based on the adjusted job flow information, the job information, and the configured export information includes:

[0022] Obtain the job relationships from the adjusted imported file;

[0023] Based on the job relationships, the naming and quantity of each job and job flow in the imported file are processed;

[0024] Based on the processed job flow and jobs, a batch file is generated.

[0025] In one embodiment, after generating the batch file based on the adjusted job flow information, the job information, and the configured export information, the process includes:

[0026] Obtain the pre-configured batch file conversion logic;

[0027] The batch file is converted based on the conversion logic to obtain the converted batch file, wherein the converted batch file is used for the target scheduling system.

[0028] Secondly, this application also provides a batch file generation apparatus, the apparatus comprising:

[0029] The import module is used to import and display imported files, which are files obtained after filling in the workflow information and job information of the batch processing requirement template.

[0030] The adjustment module is used to adjust the job flow information and job information in the imported file in response to the adjustment operation request received by the interface.

[0031] The export information configuration module is used to configure the export information of the imported file in response to the configuration operation request received by the interface.

[0032] The generation module is used to generate batch files based on the adjusted job flow information, the job information, and the configured export information.

[0033] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method in any of the above embodiments.

[0034] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the methods in any of the above embodiments.

[0035] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the methods in any of the above embodiments.

[0036] The batch file generation method, apparatus, device, storage medium, and program product described above obtain a batch template file in advance based on a batch template, import the file, and adjust the job flow information and job information in the imported file through interface operation, and configure the export information of the imported file. In this way, based on the adjusted job flow information, job information, and configured export information, batch files are automatically generated without the need to manually process each batch command, thus improving efficiency. Attached Figure Description

[0037] Figure 1 This is a flowchart illustrating a batch file generation method in one embodiment;

[0038] Figure 2 This is a schematic diagram of the export interface in one embodiment;

[0039] Figure 3 This is a flowchart illustrating a batch file generation method in another embodiment;

[0040] Figure 4 This is a flowchart illustrating the batch file generation method in another embodiment;

[0041] Figure 5 This is a structural block diagram of a batch file generation device in one embodiment;

[0042] Figure 6 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0043] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0044] In one embodiment, such as Figure 1 As shown, a batch file generation method is provided. This embodiment illustrates the method's application to a terminal, but it is understood that the method can also be applied to a server, or to a system including both a terminal and a server, and is implemented through interaction between the terminal and the server. The terminal can be, but is not limited to, various personal computers, laptops, smartphones, tablets, etc. In this embodiment, the method includes the following steps:

[0045] S102: Import and display the imported file. The imported file is the file obtained after filling in the workflow information and job information of the batch processing requirement template.

[0046] Optionally, the batch processing requirement template is maintained in the background, which provides the necessary parameters for batch processing. These parameters include workflow information and job information, where workflow information includes workflow identifier, etc.; job information includes the workflow to which the job belongs, job identifier, etc.

[0047] The terminal receives a batch processing requirement template retrieval instruction, thereby displaying the batch processing requirement template. Then, the terminal receives an instruction to fill in the workflow information and job information in the input batch processing requirement template, fills in the workflow information and job information based on the filling instruction, and saves the filled batch processing requirement template to obtain the import file.

[0048] The terminal receives an import command for an imported file. For example, if the user clicks "import," the terminal displays a file selection interface, selects the corresponding import file in response to the user's selection command, and then displays the imported file on the terminal.

[0049] In one optional embodiment, in response to an import file selection instruction, the import file is imported; fields in the import file are validated; when the fields in the import file are validated successfully, the detailed content of the import file is displayed; when the fields in the import file are validated unsuccessfully, a validation failure message is output. Field validation includes validating the format of the fields.

[0050] S104: In response to the adjustment operation request received by the interface, adjust the job flow information and job information in the imported file.

[0051] Specifically, after the imported file is imported, the terminal displays the imported file, allowing the user to adjust it, such as adjusting the workflow and job information. Specifically, if field validation fails during the import process, a prompt is output, but the imported file is still not displayed correctly. This prompt can highlight the fields that failed validation, for example, by highlighting them. This way, the user only needs to adjust these fields; that is, the terminal receives the adjustment instructions for the fields that failed validation and adjusts them accordingly.

[0052] It should be noted that the imported file contains a large number of job flows and jobs. The terminal can respond to the export flag setting command of the job flows and jobs to determine whether the corresponding job flows and jobs should be exported. In this way, the number of exported job flows can be increased or decreased without deleting or adding job flows and jobs in the imported file, thereby improving processing efficiency.

[0053] S106: In response to the configuration operation request received by the interface, configure the export information of the imported file.

[0054] Specifically, the exported information includes legal entity information, organization information, template information, and workflow selection, etc., without specific restrictions.

[0055] The legal entity information and organization information are used to generate the job flow and job names in the batch file. The template information is the template for the batch file, which includes multiple fields whose content is generated based on the job flow and job information in the imported file. The job flow and job selection are the job flows and jobs output in the batch file.

[0056] Specifically, in combination Figure 2 As shown, Figure 2This is a schematic diagram of an export interface in one embodiment. In this embodiment, when the terminal receives an export command, the export interface is displayed, and export information configuration commands are received through the export interface, thereby facilitating user operation.

[0057] S108: Generate a batch file based on the adjusted workflow information, job information, and configured export information.

[0058] The terminal can generate batch files that include each organization based on the configured workflow information, job information, and organization information.

[0059] The batch file can be an XML (Extensible Markup Language) file, and the name of the generated batch file can include the legal abbreviation of the organization in the exported information. The format of the exported batch file is obtained based on the job flow information in the imported file and the template in the job information. Then, the various fields in the batch file are generated based on the job flow information and job information. The entire process does not require manual intervention.

[0060] The fields generated in the batch file based on job flow information and job information may include: determining the number of exports, processing the names of exported job flows and jobs, processing the names of jobs involved in pre- and post-job processes, and processing special fields, as detailed below.

[0061] The above batch file generation method obtains a batch template file in advance based on the batch template, imports the file, and adjusts the job flow information and job information in the imported file through interface operation, and configures the export information of the imported file. In this way, based on the adjusted job flow information, job information and configured export information, the batch file is automatically generated without the need to manually process each batch command, thus improving efficiency.

[0062] In one embodiment, a batch file is generated based on the adjusted workflow information, job information, and configured export information, including: obtaining an instance number distribution table from the instance number distribution database based on the adjusted workflow information and the instance number distribution database name and instance number distribution table name in the job information; determining the export quantity of each institution from the instance number distribution table according to the institution identifier in the export information; and generating a batch file based on the export quantity of each institution, the workflow information, and the job information.

[0063] Specifically, the database maintains instance data distribution databases and instance number distribution tables. The instance number distribution table stores the export quantity for each organization, i.e., the export quantity of jobs and job flows for each organization. These export quantities can be pre-configured by the user. The terminal retrieves the instance number distribution table from the instance number distribution database based on the adjusted job flow information and the instance number distribution database name and instance number distribution table name in the job information. Then, based on the organization identifier in the export information, it determines the export quantity for each organization from the instance number distribution table. This directly determines the number of job flows and jobs that need to be exported for each organization based on the export quantity, and can be directly copied according to the export quantity, eliminating the need for manual processing by the user. Automated reading and processing significantly improves efficiency.

[0064] In one embodiment, before generating a batch file based on the number of exports, workflow information, and job information of each institution, the method further includes: obtaining an export configuration; determining the export result based on the type of the export configuration, the export flag in the import file, and the export flag in the environment; and when the export result is an export, continuing to execute the step of generating a batch file based on the number of exports, workflow information, and job information of each institution.

[0065] Specifically, the export configuration refers to the configuration for different environments. For example, it may include the scheduling of the export host, distributed systems, dual-machine parallelism, etc., without specific limitations. Different export configurations have different export flags. Specifically, the import file includes whether to move distributed systems down and environment parameters. The "whether to move distributed systems down" flag is determined by the user, i.e., the export flag. Without changing the overall environment parameters, the user can choose whether to export the job. The overall environment parameters are maintained by administrators and are the most important environment parameters. They are generally not changed after the environment is determined. Only when all the above parameters are exported will the corresponding job flow and job be exported.

[0066] Specifically, if the "move down to distributed" flag in the imported file is empty, the system will export by default. If exporting the host's scheduling, it is necessary to combine the "move down to distributed" flag in the imported file, the export flag in the environment parameters, and the organization information selected in the export interface to make a judgment; for example, if the "move down" flag in the imported file is yes, and the selected organization's export flag in the environment file is no, then the system will export; if the "move down" flag in the imported file is no, and the selected organization's export flag in the environment file is yes, then the system will export.

[0067] The shift-down distributed flag in the imported file can be set by the user through the interface, and the terminal responds to the configuration of this shift-down distributed flag. Subsequently, when generating batch files, this shift-down distributed flag is used to determine whether to export the corresponding job flow and job.

[0068] By adjusting the down-distribution flag of the imported file, the required scheduling file can be flexibly exported without having to delete or add jobs each time. You only need to adjust the down-distribution flag of the imported file through the interface.

[0069] In one embodiment, a batch file is generated based on the adjusted job flow information, job information, and configured export information, including: replacing the job flow and job name in the import file with the organization name in the export information; and generating a batch file based on the job flow and job with the replaced names.

[0070] Specifically, the names in the job flow information and job information within the imported file will use specified wildcards. Subsequent processing will then replace these wildcards with the corresponding copied organization names and numbers according to these wildcard rules. For example, if the wildcard is #ORGEN#, then the #ORGEN# part will be replaced with the legal entity information selected in the export interface, and #PRV# will be replaced with the organization name selected in the export interface.

[0071] In one embodiment, before generating a batch file based on the adjusted job flow information, job information, and configured export information, the method further includes: obtaining the job relationships in the adjusted import file; processing the naming and quantity of each job and job flow in the import file based on the job relationships; and generating a batch file based on the processed job flows and jobs.

[0072] Specifically, the imported file includes job relationships, which include at least one of preconditions and postconditions. Preconditions refer to jobs included before the current job, and postconditions refer to jobs included after the current job.

[0073] Specifically, the associated jobs are determined based on the preconditions, and the number of jobs exported is judged. If the number of jobs exported is consistent, no processing is required; otherwise, if they are inconsistent, an alarm is triggered, or the number of jobs exported that are inconsistent is modified based on the preconditions. This ensures that the final exported batch file is consistent.

[0074] Special processing can refer to the handling of components in the operation. For example, some components do not require a specific organization's name, so they are uniformly processed to use a standard name.

[0075] In the above embodiments, jobs are processed based on job relationships to avoid exporting errors.

[0076] In one embodiment, after generating a batch file based on the adjusted job flow information, job information, and configured export information, the process includes: obtaining pre-configured batch file conversion logic; converting the batch file based on the conversion logic to obtain a converted batch file, wherein the converted batch file is used for the target scheduling system.

[0077] Specifically, the batch file output in the above embodiments is a standard XML file. When other target scheduling systems need to use this batch file, they need to perform format conversion. The conversion logic can be pre-set, in which most of the content can be directly obtained from the batch file, and the remaining fields are converted based on the information in the imported file and the information in the batch file.

[0078] In one embodiment, combined with Figure 3 As shown, Figure 3 The flowchart below illustrates a batch file generation method in another embodiment. In this embodiment, the terminal obtains a template based on the imported job flow information and template information in the job information. It then processes the job flow information and job information based on the format of each field in the template. Specifically, it obtains the corresponding instance number distribution table based on the instance number distribution database name and instance number distribution table name in the job flow information and job information. Then, it reads the export quantity of each institution from the instance number distribution table based on the institution identifier in the export information. Furthermore, the terminal obtains the export configuration and determines the export result based on the export flags of the job flow information and job information in the imported file and the export flags in the environment. If the export result is an export, the job flow and job name in the imported file are replaced with the institution name in the export information, and job flows and jobs corresponding to the export quantities are generated. Additionally, the naming and quantity of each job and job flow are processed based on job relationships. Finally, a batch file is generated based on the processed job flows and jobs.

[0079] In the above embodiments, a batch processing template file is obtained in advance based on the batch processing template, the file is imported, and the job flow information and job information in the imported file are adjusted through interface operations. The export information of the imported file is configured. In this way, based on the adjusted job flow information, job information and configured export information, a batch processing file is automatically generated without the need to manually process each batch processing command, thus improving efficiency.

[0080] In one embodiment, combined with Figure 4 As shown, Figure 4The flowchart below shows a batch file generation method in another embodiment. In this embodiment, the terminal obtains a template based on the imported job flow information and template information in the job information, and processes the job flow information and job information based on the format of each field in the template. Specifically, the terminal obtains the corresponding instance number distribution table based on the instance number distribution database name and instance number distribution data table name in the job flow information and job information, and then reads the export quantity of each institution from the instance number distribution table based on the institution identifier in the export information. In addition, the terminal also obtains the export configuration, and obtains the job flow information and job information export flag in the import file and the export flag in the environment based on the export configuration to determine the export result. If the export result is an export, the job flow and job name in the import file are replaced by the organization name in the export information, and job flow and job corresponding to the export quantity are generated. In addition, the naming and quantity of each job and job flow are processed based on the job relationship. Finally, a batch processing file is generated based on the processed job flow and job, the file conversion logic is obtained, the first target content is obtained from the batch processing file based on the file conversion logic, and the second target content is obtained based on the job information and job flow information in the import file. The converted batch processing file is obtained based on the first target content and the second target content.

[0081] In the above embodiments, the conversion logic for batch files between different systems is pre-configured, so there is no need to reconfigure and generate them; only the format of the batch files needs to be converted according to the conversion logic.

[0082] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0083] Based on the same inventive concept, this application also provides a batch file generation apparatus for implementing the batch file generation method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more batch file generation apparatus embodiments provided below can be found in the limitations of the batch file generation method described above, and will not be repeated here.

[0084] In one embodiment, such as Figure 5 As shown, a batch file generation device is provided, including: an import module 501, an adjustment module 502, an export information configuration module 503, and a generation module 504, wherein:

[0085] Import module 501 is used to import and display imported files. Imported files are files obtained after filling in the workflow information and job information of the batch processing requirement template.

[0086] The adjustment module 502 is used to adjust the job flow information and job information in the imported file in response to the adjustment operation request received by the interface.

[0087] The export information configuration module 503 is used to configure the export information of the imported file in response to the configuration operation request received by the interface.

[0088] The generation module 504 is used to generate batch files based on the adjusted job flow information, job information, and configured export information.

[0089] In one embodiment, the generation module 504 includes:

[0090] The table retrieval unit is used to retrieve the instance number distribution table from the instance number distribution database based on the adjusted job flow information and the instance number distribution database name and instance number distribution table name in the job information.

[0091] The export quantity determination unit is used to determine the export quantity of each institution from the instance number distribution table based on the institution identifier in the export information.

[0092] The first generation unit is used to generate batch files based on the number of exports, workflow information, and job information of each institution.

[0093] In one embodiment, the batch file generation apparatus further includes:

[0094] The export configuration retrieval module is used to retrieve export configurations.

[0095] The export result acquisition module is used to determine the export result based on the type of export configuration, the export flag in the import file, and the export flag in the environment.

[0096] The aforementioned generation module 504 is also used to continue executing the step of generating a batch file based on the number of exports, workflow information, and job information of each institution when the export result is an export.

[0097] In one embodiment, the generation module 504 includes:

[0098] The replacement unit is used to replace the job flow and job name in the imported file with the organization name in the exported information;

[0099] The second generation unit is used to generate batch files based on the job flow and jobs after name replacement.

[0100] In one embodiment, the generation module 504 includes:

[0101] The job relationship acquisition unit is used to acquire the job relationships in the adjusted import file;

[0102] The job processing unit is used to process the naming and quantity of each job and job flow in the imported file based on job relationships;

[0103] The third generation unit is used to generate batch files based on the processed job flow and jobs.

[0104] In one embodiment, the batch file generation apparatus further includes:

[0105] The conversion logic acquisition module is used to acquire the pre-configured batch file conversion logic;

[0106] The conversion module is used to convert batch files based on conversion logic to obtain converted batch files, which are then used by the target scheduling system.

[0107] Each module in the aforementioned batch file generation device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0108] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 6As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a batch file generation method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0109] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0110] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to perform the following steps: importing and displaying an import file, the import file being a file obtained after filling in job flow information and job information for a batch processing requirement template; adjusting the job flow information and job information in the import file in response to an adjustment operation request received by the interface; configuring the export information of the import file in response to a configuration operation request received by the interface; and generating a batch processing file based on the adjusted job flow information, job information, and configured export information.

[0111] In one embodiment, when the processor executes a computer program, it generates a batch file based on adjusted job flow information, job information, and configured export information, including: obtaining an instance number distribution table from the instance number distribution database based on the adjusted job flow information and the instance number distribution database name and instance number distribution table name in the job information; determining the export quantity of each institution from the instance number distribution table according to the institution identifier in the export information; and generating a batch file based on the export quantity of each institution, the job flow information, and the job information.

[0112] In one embodiment, before the processor generates a batch file based on the number of exports, workflow information, and job information of each institution when executing the computer program, the process further includes: obtaining an export configuration; determining the export result based on the type of the export configuration, the export flag in the import file, and the export flag in the environment; and if the export result is an export, continuing to execute the step of generating a batch file based on the number of exports, workflow information, and job information of each institution.

[0113] In one embodiment, when the processor executes a computer program, it generates a batch file based on the adjusted job flow information, job information, and configured export information, including: replacing the job flow and job name in the import file with the organization name in the export information; and generating a batch file based on the job flow and job with the replaced names.

[0114] In one embodiment, before the processor generates a batch file based on the adjusted job flow information, job information, and configured export information when executing a computer program, the method further includes: obtaining the job relationships in the adjusted import file; processing the naming and quantity of each job and job flow in the import file based on the job relationships; and generating a batch file based on the processed job flows and jobs.

[0115] In one embodiment, after the processor generates a batch file based on the adjusted job flow information, job information, and configured export information when executing a computer program, the process includes: obtaining pre-configured batch file conversion logic; converting the batch file based on the conversion logic to obtain a converted batch file, wherein the converted batch file is used by the target scheduling system.

[0116] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon. When executed by a processor, the computer program performs the following steps: importing and displaying an import file, the import file being a file obtained by filling in job flow information and job information for a batch processing requirement template; adjusting the job flow information and job information in the import file in response to an adjustment operation request received by the interface; configuring the export information of the import file in response to a configuration operation request received by the interface; and generating a batch processing file based on the adjusted job flow information, job information, and configured export information.

[0117] In one embodiment, when a computer program is executed by a processor, it generates a batch file based on adjusted job flow information, job information, and configured export information, including: obtaining an instance number distribution table from an instance number distribution database based on the adjusted job flow information and the instance number distribution database name and instance number distribution table name in the job information; determining the export quantity of each institution from the instance number distribution table according to the institution identifier in the export information; and generating a batch file based on the export quantity of each institution, the job flow information, and the job information.

[0118] In one embodiment, before the computer program generates a batch file based on the number of exports, workflow information, and job information of each institution when executed by the processor, the method further includes: obtaining an export configuration; determining the export result based on the type of the export configuration, the export flag in the import file, and the export flag in the environment; and continuing to execute the step of generating a batch file based on the number of exports, workflow information, and job information of each institution when the export result is an export.

[0119] In one embodiment, when a computer program is executed by a processor, it generates a batch file based on adjusted job flow information, job information, and configured export information, including: replacing the job flow and job name in the import file with the organization name in the export information; and generating a batch file based on the job flow and job with the replaced names.

[0120] In one embodiment, before generating a batch file based on the adjusted job flow information, job information, and configured export information when the computer program is executed by the processor, the method further includes: obtaining the job relationships in the adjusted import file; processing the naming and quantity of each job and job flow in the import file based on the job relationships; and generating a batch file based on the processed job flows and jobs.

[0121] In one embodiment, after the computer program is executed by the processor to generate a batch file based on the adjusted job flow information, job information and configured export information, the process includes: obtaining pre-configured batch file conversion logic; converting the batch file based on the conversion logic to obtain a converted batch file, wherein the converted batch file is used for the target scheduling system.

[0122] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps: importing and displaying an import file, the import file being a file obtained by filling in workflow information and job information for a batch processing requirement template; adjusting the workflow information and job information in the import file in response to an adjustment operation request received by an interface; configuring the export information of the import file in response to a configuration operation request received by an interface; and generating a batch processing file based on the adjusted workflow information, job information, and configured export information.

[0123] In one embodiment, when a computer program is executed by a processor, it generates a batch file based on adjusted job flow information, job information, and configured export information, including: obtaining an instance number distribution table from an instance number distribution database based on the adjusted job flow information and the instance number distribution database name and instance number distribution table name in the job information; determining the export quantity of each institution from the instance number distribution table according to the institution identifier in the export information; and generating a batch file based on the export quantity of each institution, the job flow information, and the job information.

[0124] In one embodiment, before the computer program generates a batch file based on the number of exports, workflow information, and job information of each institution when executed by the processor, the method further includes: obtaining an export configuration; determining the export result based on the type of the export configuration, the export flag in the import file, and the export flag in the environment; and continuing to execute the step of generating a batch file based on the number of exports, workflow information, and job information of each institution when the export result is an export.

[0125] In one embodiment, when a computer program is executed by a processor, it generates a batch file based on adjusted job flow information, job information, and configured export information, including: replacing the job flow and job name in the import file with the organization name in the export information; and generating a batch file based on the job flow and job with the replaced names.

[0126] In one embodiment, before generating a batch file based on the adjusted job flow information, job information, and configured export information when the computer program is executed by the processor, the method further includes: obtaining the job relationships in the adjusted import file; processing the naming and quantity of each job and job flow in the import file based on the job relationships; and generating a batch file based on the processed job flows and jobs.

[0127] In one embodiment, after the computer program is executed by the processor to generate a batch file based on the adjusted job flow information, job information and configured export information, the process includes: obtaining pre-configured batch file conversion logic; converting the batch file based on the conversion logic to obtain a converted batch file, wherein the converted batch file is used for the target scheduling system.

[0128] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0129] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0130] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0131] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A batch file generation method, characterized in that, The method includes: Import and display the imported file, which is a file obtained after filling in the workflow information and job information of the batch processing requirement template; In response to the adjustment operation request received by the interface, the workflow information and the job information in the imported file are adjusted; In response to the configuration operation request received by the interface, the export information of the imported file is configured; Based on the adjusted job flow information, the job information, and the configured export information, a batch file is generated; The step of generating a batch file based on the adjusted job flow information, the job information, and the configured export information includes: Based on the adjusted job flow information and the instance number distribution database name and instance number distribution table name in the job information, obtain the instance number distribution table from the instance number distribution database; Based on the organization identifiers in the export information, the export quantity of each organization is determined from the instance number distribution table. The export quantity is used to determine the number of job flows and jobs that need to be exported for each organization. A batch file is generated based on the number of exports from each of the aforementioned institutions, the workflow information, and the job information.

2. The method according to claim 1, characterized in that, Before generating the batch file based on the export quantity, the workflow information, and the job information of each of the aforementioned institutions, the method further includes: Get the export configuration; The export result is determined based on the type of the export configuration, the export flag in the import file, and the export flag in the environment; When the export result is "export", the step of generating a batch file based on the export quantity, job flow information and job information of each institution continues.

3. The method according to claim 1, characterized in that, The step of generating a batch file based on the adjusted job flow information, the job information, and the configured export information includes: Replace the job flow and job name in the imported file with the organization name in the exported information; Based on the job flow and jobs with the names replaced, a batch file is generated.

4. The method according to claim 3, characterized in that, The step of generating a batch file based on the adjusted job flow information, the job information, and the configured export information includes: Obtain the job relationships from the adjusted imported file; Based on the job relationships, the naming and quantity of each job and job flow in the imported file are processed; Based on the processed job flow and jobs, a batch file is generated.

5. The method according to any one of claims 1 to 4, characterized in that, After generating the batch file based on the adjusted job flow information, the job information, and the configured export information, the process includes: Obtain the pre-configured batch file conversion logic; The batch file is converted based on the conversion logic to obtain the converted batch file, wherein the converted batch file is used for the target scheduling system.

6. A batch file generation device, characterized in that, The device includes: The import module is used to import and display imported files, which are files obtained after filling in the workflow information and job information of the batch processing requirement template. The adjustment module is used to respond to the adjustment operation request received by the interface and adjust the job flow information and job information in the imported file, including: determining whether the job flow information and job information are exported; The export information configuration module is used to configure the export information of the imported file in response to the configuration operation request received by the interface. The generation module is used to generate batch files based on the adjusted job flow information, the job information, and the configured export information; The generation module includes: The table acquisition unit is used to obtain the instance number distribution table from the instance number distribution database based on the adjusted job flow information and the instance number distribution database name and instance number distribution table name in the job information. The export quantity determination unit is used to determine the export quantity of each institution from the instance number distribution table based on the institution identifier in the export information. The export quantity is used to determine the number of job flows and jobs that need to be exported for each institution. The first generation unit is used to generate batch files based on the number of exports from each of the institutions, the job flow information, and the job information.

7. The apparatus according to claim 6, characterized in that, The device further includes: The export configuration retrieval module is used to retrieve export configurations. The export result acquisition module is used to determine the export result based on the type of the export configuration, the export flag in the import file, and the export flag in the environment; The generation module is also used to continue executing the step of generating a batch file based on the number of exports, the job flow information, and the job information of each institution when the export result is an export.

8. The apparatus according to claim 6, characterized in that, The generation module includes: The replacement unit is used to replace the job flow and job name in the imported file with the organization name in the exported information; The second generation unit is used to generate batch files based on the job flow and jobs after name replacement.

9. The apparatus according to claim 8, characterized in that, The generation module includes: The job relationship acquisition unit is used to acquire the job relationships in the adjusted imported file; The job processing unit is used to process the naming and quantity of each job and job flow in the imported file based on the job relationship; The third generation unit is used to generate batch files based on the processed job flow and jobs.

10. The apparatus according to any one of claims 6 to 9, characterized in that, The device further includes: The conversion logic acquisition module is used to acquire the pre-configured batch file conversion logic; A conversion module is used to convert the batch file based on the conversion logic to obtain the converted batch file, wherein the converted batch file is used for the target scheduling system.

11. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.

13. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Data processing method of cloud computing system

    CN102930021A

  • An information batch processing method and device

    CN109885541A