Job execution method and device, storage medium and program product

By obtaining target job identification and context environment variables, dynamically identifying and iterating the job template units in the financial system, the problem of job processing logic solidification in the prior art is solved, and higher flexibility and adaptability are achieved.

CN120469754APending Publication Date: 2025-08-12THE PEOPLES BANK OF CHINA NAT CLEARING CENT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510515541.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-23
Publication Date
2025-08-12

AI Technical Summary

Technical Problem

The operation processing logic in the existing financial system is solidified and cannot be flexibly adjusted according to actual needs, resulting in lower flexibility in operation processing.

Method used

By obtaining the initial values of the target job identification and context environment variables, the target template unit and its execution order are determined, and the target process semantic unit is used to iterate to determine the actual executed template unit, and the job process is dynamically arranged according to the value of the context environment variable and iteration results.

Benefits of technology

It realizes the initial values of different context environment variables, and flexibly arranges the job execution process, improving the flexibility and adaptability of job processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120469754A_ABST
    Figure CN120469754A_ABST
Patent Text Reader

Abstract

The invention discloses a job execution method and device, a storage medium and a program product. The method comprises the steps of obtaining a target job identifier and an initial value of a context environment variable; according to the target job identifier, determining at least one target template unit included in a target job corresponding to the target job identifier and an initial execution sequence of the at least one target template unit; obtaining a target process semantic unit corresponding to each target template unit; and according to the initial value of the context environment variable, the initial execution sequence, the at least one target template unit and the semantic calculation result of the target flow semantic unit corresponding to the target template unit, iteratively determining and executing the actually executed target template unit in each target template unit. The operation execution method is high in flexibility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a job execution method, device, storage medium and program product. Background Art

[0002] Financial systems such as modern payment systems can provide financial institutions and financial markets with a safe, efficient and convenient financial operation processing platform.

[0003] In the current financial system, the job processing logic is solidified in a hard-coded manner, and jobs are processed using pre-established processing procedures.

[0004] However, in the above-mentioned job processing process, it is impossible to perform job processing according to actual job requirements, and the flexibility is low. Summary of the Invention

[0005] The present invention provides a job execution method, device, storage medium and program product to solve the technical problem of low flexibility in job processing in related technologies.

[0006] According to one aspect of the present invention, a job execution method is provided, comprising:

[0007] Get the target job ID and the initial value of the context environment variable;

[0008] Determining, according to the target job identifier, at least one target template unit included in the target job corresponding to the target job identifier, and an initial execution order of the at least one target template unit;

[0009] Obtaining a target process semantic unit corresponding to each target template unit; wherein the semantic calculation result of the target process semantic unit is used to indicate an execution path related to the corresponding target template unit;

[0010] According to the initial value of the context environment variable, the initial execution order, the at least one target template unit and the semantic calculation result of the target process semantic unit corresponding to the target template unit, the target template unit actually executed in each target template unit is iteratively determined and executed; wherein, the number of the target template units actually executed is less than or equal to the number of target template units included in the target job, the semantic calculation result of the target process semantic unit is determined according to the value of the context environment variable during the iteration process, and the value of the context environment variable is determined according to the initial value of the context environment variable and the execution result of the target template unit that has been actually executed during the iteration process.

[0011] According to another aspect of the present invention, an electronic device is provided, comprising:

[0012] at least one processor; and

[0013] a memory communicatively connected to the at least one processor; wherein,

[0014] The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to perform the job execution method described in any embodiment of the present invention.

[0015] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and the computer program is configured to enable a processor to implement the job execution method according to any embodiment of the present invention when executed.

[0016] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the job execution method according to any embodiment of the present invention.

[0017] The technical solution of the embodiment of the present invention can iteratively determine and execute the target template unit actually executed in each target template unit based on the initial value of the context environment variable, the initial execution order, at least one target template unit, and the semantic calculation result of the target process semantic unit corresponding to the target template unit, and the semantic calculation result is determined according to the value of the context environment variable during the iteration process, and the value of the context environment variable is determined according to the initial value of the context environment variable and the execution result of the target template unit that has been actually executed during the iteration process, so that for the same target job identifier, different target template units actually executed can be determined based on different initial values of the context environment variables. This is equivalent to achieving the flexible arrangement of each target template unit actually executed according to the actual needs of the job, thereby improving the flexibility of the job execution process.

[0018] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1is a flowchart of a job execution method provided by an embodiment of the present invention;

[0021] Figure 2 It is a schematic diagram of the target template unit that is actually executed;

[0022] Figure 3 is a flowchart of another job execution method provided by an embodiment of the present invention;

[0023] Figure 4 is a schematic diagram of an example provided by an embodiment of the present invention;

[0024] Figure 5 is a schematic diagram of the execution process of another job execution method provided by an embodiment of the present invention;

[0025] Figure 6 1 is a schematic structural diagram of a job execution device provided by an embodiment of the present invention;

[0026] Figure 7 It is a structural diagram of an electronic device for implementing the job execution method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the term "comprising" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. The acquisition, storage, use, processing, etc. of data in the embodiments of the present invention comply with the relevant provisions of national laws and regulations.

[0029] Figure 1This is a flowchart of a method for executing a job provided by an embodiment of the present invention. This embodiment is applicable to scenarios where jobs are executed according to actual job requirements. The method can be executed by a job execution device, which can be implemented in the form of hardware and / or software. The job execution device can be configured in an electronic device, such as a computer device. Figure 1 As shown, the method includes the following steps 101 to 104.

[0030] Step 101: Obtain the target job identifier and the initial value of the context environment variable.

[0031] The job in this embodiment refers to a task composed of multiple template units. A template unit in this embodiment is used to characterize the basic implementation method of the job logic and calculation formula, which is formed after abstracting and defining the scenario of the basic unit of the job. The template unit defines a most basic job rule, job function and job element. The most basic job rule, job function and job element in this embodiment cannot be split any further. The most basic job rule, job function and job element in this embodiment can also be called atomic function.

[0032] In this embodiment, the template unit includes a context variable. Optionally, the context variable in this embodiment can be a time variable, a location variable, or other type of variable. For example, the context variable in this embodiment can be at least one of the following: the current date, the current month, the current year, the previous working day, and the next working day.

[0033] Optionally, before step 101, the job execution method provided in this embodiment may further include the following steps 100a to 100c.

[0034] Step 100a: pre-define information of each template unit.

[0035] The information of each template unit includes: template unit identification, template unit content and context variables in the template unit. Table 1 shows the content of the template unit information.

[0036] Table 1 Information of template unit

[0037] Field illustrate TEMPID Template unit identification TEMPNAME Template unit name TEMPLATE Template unit content VARIABLE Context variables

[0038] The template unit identifier is a unique number of the template unit, which identifies the uniqueness of the template unit. The template unit content includes the basic logical function implementation of the template unit, which can realize the data processing function. The template unit content includes variable fields, that is, context variables. Optionally, the template unit content can be written in a programming language, for example, using Structured Query Language (SQL). Context variables refer to variable information in the template unit.

[0039] Optionally, the template unit information may further include a template unit name. Optionally, the template unit name in this embodiment may be General Message Billing Data Statistics Summary, General Message Billing Unit Price Calculation, General Message Daily Billing Basic Discount Calculation, General Message Month-End Basic Summary Calculation, General Message Month-End Dimension Discount Basic Calculation, General Message Month-End Automatic Package Selection Calculation, etc.

[0040] Step 100b: Define information of each job.

[0041] The information of each job includes: job identification.

[0042] In this embodiment, the job information defines the basic information of the job (also called a job unit). Table 2 shows the content of the job information.

[0043] Table 2 Job information

[0044]

[0045]

[0046] The job identifier is a unique number for each job. Optionally, the job unit information may also include a job description and job steps. The job description refers to the job description information. The job steps refer to the job step information.

[0047] Step 100c: Define the information of the process semantic unit of each template unit.

[0048] The information of the process semantic unit of each template unit includes: process semantic unit identifier, template unit identifier corresponding to the process semantic unit, process semantic unit expression, classification of semantic calculation results, and context variables in the process semantic unit.

[0049] In this embodiment, the process semantic unit defines the dynamic process judgment logic of the corresponding template unit, that is, defines the process flow operation to provide the dynamic logic arrangement function of the template unit during runtime. Table 3 shows the information content of the process semantic unit.

[0050] Table 3 Information of process semantic unit

[0051]

[0052]

[0053] Among them, the process semantic unit identifier is the unique number of each process semantic unit. The associated template unit identifier refers to the template unit identifier corresponding to the process semantic unit, and this information is used to associate the process semantic unit and the template unit. The process semantic unit expression refers to the specific calculation expression of the process semantic unit. During the execution of the job, it supports the calculation of the value of the process semantic unit expression according to the value of the context environment variable, and this value is the semantic calculation result of the process semantic unit. The semantic calculation result in this embodiment is used to indicate the execution path related to the corresponding template unit. Through the semantic calculation result, the job execution method provided by this embodiment supports dynamic process orchestration and improves the flexibility in the job execution process. The classification of the semantic calculation results in this embodiment is shown in Table 3. The context environment variables in the process semantic unit represent the variables needed in the process semantic unit expression. For example, the current date, the statistical business volume of the previous job step, the average value, the parameter calculation value, the maximum value, the minimum value, etc.

[0054] In one implementation, all process semantic units involved in this embodiment are either pre-process semantic units or post-process semantic units. Pre-process semantic units are used to perform logical judgments before corresponding template units, and after the judgment results are determined, dynamic process control orchestration is performed based on the semantic calculation results. Post-process semantic units are used to perform logical judgments after corresponding template units, supporting dynamic process control orchestration based on the execution results of the corresponding template units.

[0055] In another implementation, the information of the process semantic unit may further include a process semantic unit classification, which is used to describe whether the process semantic unit is a pre-process semantic unit or a post-process semantic unit.

[0056] During a job execution, the job execution device may obtain the target job identifier and the initial values of the context environment variables from the upstream device or system, or receive the target job identifier and the initial values of the context environment variables input by the user.

[0057] The target job identifier in this embodiment is used to uniquely identify the target job. The initial value of the context environment variable in this embodiment can be, for example, date information such as September 25, 2024.

[0058] Step 102: Determine, according to the target job identifier, at least one target template unit included in the target job corresponding to the target job identifier, and an initial execution order of the at least one target template unit.

[0059] In one implementation method, for ease of implementation, the implementation process of step 102 is: based on the target job identifier and the mapping relationship between the job and the template unit, determine at least one target template unit included in the target job corresponding to the target job identifier, and the initial execution order of at least one target template unit.

[0060] This implementation predefines a mapping between jobs and template units. This mapping indicates the correspondence between template units and jobs, and also indicates the initial execution order of multiple template units within a job. A job can be associated with multiple template units, enabling the combination of multiple template units within a job. A template unit can also be associated with multiple jobs, enabling template unit reuse.

[0061] Based on this implementation, before step 101, the following step may be further included: defining a mapping relationship between jobs and template units. The mapping relationship between jobs and template units includes: job identifiers and template unit identifiers. Table 4 shows the mapping relationship between jobs and template units.

[0062] Table 4 Mapping relationship between jobs and template units

[0063] Field illustrate JOBID Job ID TEMPID Template unit identification RELTDESC Relationship Description sequence Execution order

[0064] The job identifier refers to the number of the associated job. The template unit identifier refers to the number of the associated template unit. The execution order refers to the initial execution order of the multiple template units included in a job. Optionally, the mapping relationship may also include an association description, which is a description of the association between the job and the corresponding template unit.

[0065] This implementation method has low complexity and high accuracy and efficiency.

[0066] The job execution method provided in this embodiment predefines the template unit, job, process semantic unit, and the mapping relationship between the job and the template unit. Therefore, the execution logic can be defined according to the actual job requirements on the premise of only modifying the template unit, process semantic unit, job, and the mapping relationship between the job and the template unit, thereby realizing rapid adjustment of the job logic.

[0067] In another implementation, at least one target template unit included in the target job and the initial execution order of the at least one target template unit may be determined based on a model trained with big data.

[0068] The target job identifier is input into a trained model to obtain at least one target template unit output by the model and an initial execution order of the at least one target template unit.

[0069] Step 103: Obtain the target process semantic unit corresponding to each target template unit.

[0070] The semantic calculation result of the target process semantic unit is used to indicate the execution path related to the corresponding target template unit.

[0071] As described in step 100c, the template unit corresponds to a process semantic unit. In step 102, at least one target template unit is determined. In order to achieve dynamic logical arrangement of each target template unit during job execution, in step 103, the target process semantic unit corresponding to each target template unit is obtained.

[0072] In this embodiment, based on the different classifications of process semantic units, the semantic calculation result of the target process semantic unit is used to indicate the execution path related to the corresponding target template unit, which means that the semantic calculation result indicates the execution path before executing the target template unit, or indicates the execution path after executing the target template unit.

[0073] Step 104: iteratively determine and execute the target template unit actually executed in each target template unit according to the initial value of the context environment variable, the initial execution order, at least one target template unit, and the semantic calculation result of the target process semantic unit corresponding to the target template unit.

[0074] The number of target template units actually executed is less than or equal to the number of target template units included in the target job. The semantic calculation results of the target process semantic unit are determined based on the values of the context environment variables during the iteration process. The values of the context environment variables are determined based on the initial values of the context environment variables and the execution results of the target template units that have actually been executed during the iteration process.

[0075] During the implementation of step 104, the target template units actually executed during the execution of the target job can be determined in an iterative manner. Since not all of the at least one target template unit included in the target job is necessarily executed, the number of target template units actually executed is less than or equal to the number of target template units included in the target job.

[0076] In general, the target template unit that is actually executed and determined in the subsequent iteration process depends on the execution result of the target template unit that is actually executed in the previous iteration process and the semantic calculation result of the target process semantic unit corresponding to the target template unit that is actually executed in the previous iteration process. The semantic calculation result is determined according to the value of the context environment variable in the iteration process. The value of the context environment variable is determined according to the initial value of the context environment variable and the execution result of the target template unit that has been actually executed in the iteration process. Therefore, for the same target job identifier, different target template units that are actually executed can be determined based on different initial values of the context environment variables. This is equivalent to achieving flexible arrangement of each target template unit that is actually executed according to the actual needs of the job, thereby improving the flexibility of the job execution process.

[0077] In one implementation, the target process semantic unit corresponding to the target template unit is the target process post-semantic unit. The implementation process of step 104 includes: replacing the corresponding context environment variable in the target template unit currently being actually executed with the current value of the context environment variable to obtain the instantiated target template unit currently being actually executed; executing the instantiated target template unit currently being actually executed to obtain the execution result, and determining the execution result as the updated value of the context environment variable; determining the semantic calculation result of the target process post-semantic unit corresponding to the target template unit currently being actually executed based on the updated value of the context environment variable, and determining the next target template unit to be actually executed based on the semantic calculation result; using the updated value of the context environment variable as the new current value of the context environment variable, using the next target template unit actually being actually executed as the new target template unit currently being actually executed, and returning to execute the step of "replacing the corresponding context environment variable in the target template unit currently being actually executed with the current value of the context environment variable to obtain the instantiated target template unit currently being actually executed". Wherein, in the first iteration process, the target template unit currently being actually executed is at least the first target template unit in the initial execution order, and the current value of the context environment variable is the initial value of the context environment variable.

[0078] In another implementation, the target process semantic unit corresponding to the target template unit is the target process pre-semantic unit. The implementation process of step 104 includes: determining the semantic calculation result based on the target process pre-semantic unit corresponding to the current candidate target template unit and the current value of the context environment variable, and determining the target template unit currently actually executed or determining the next candidate target template unit based on the semantic calculation result; if the target template unit currently actually executed is determined, then the current value of the context environment variable is used to replace the corresponding context environment variable in the target template unit currently actually executed to obtain the instantiated target template unit currently actually executed; execute the instantiated target template unit currently actually executed to obtain the current execution result, and determine the updated value of the context environment variable based on the current execution result; determine the next candidate target template unit based on the initial execution order, use the next candidate target template unit as the new current candidate target template unit, and replace the updated value of the context environment variable with the updated value of the context environment variable. The new value is used as the new current value of the context environment variable, and the process returns to execute the step of "determining the semantic calculation result based on the target process pre-semantic unit corresponding to the current candidate target template unit and the current value of the context environment variable, and determining the target template unit currently being actually executed or determining the next candidate target template unit based on the semantic calculation result" until the next candidate target template unit no longer exists; if the next candidate target template unit is determined to be the next candidate target template unit, the next candidate target template unit is used as the new current candidate target template unit, and the process returns to execute the step of "determining the semantic calculation result based on the target process pre-semantic unit corresponding to the current candidate target template unit and the current value of the context environment variable, and determining the target template unit currently being actually executed or determining the next candidate target template unit based on the semantic calculation result" until the next candidate target template unit no longer exists. In the first iteration, the current candidate target template unit is the first target template unit indicated by the initial execution order, and the current value of the context environment variable is the initial value of the context environment variable.

[0079] In this implementation, when determining the next candidate target template unit according to the initial execution order, the next target template unit of the currently actually executed target template unit in the initial execution order is determined as the next candidate target template unit.

[0080] In another implementation, the target process semantic unit corresponding to the target template unit is a target process pre-semantic unit and / or a target process post-semantic unit. The specific implementation process of the corresponding step 104 will be described in detail in subsequent embodiments.

[0081] Figure 2 It is a schematic diagram of the target template unit that is actually executed. Figure 2As shown in the left figure, the target job includes five target template units: target template unit 21, target template unit 22, target template unit 23, target template unit 24, and target template unit 25. The target template units actually executed may be target template unit 22 and target template unit 25.

[0082] The job execution method provided in this embodiment enables flexible configuration and real-time calculation of the job process, enabling dynamic orchestration of the process. This allows the job process to self-judge based on real-time computation results and predefined semantic computation results. This flexible configuration allows it to meet a variety of changing demand scenarios. This job execution method enables customized job execution processes, effectively and quickly responding to temporary needs, reducing business complexity and development costs, and improving the flexibility, versatility, and ease of use of the job execution process.

[0083] Exemplarily, the operation in this embodiment may be a billing operation in a modern payment system.

[0084] The job execution method provided in this embodiment can iteratively determine and execute the target template unit actually executed in each target template unit based on the initial value of the context environment variable, the initial execution order, at least one target template unit, and the semantic calculation result of the target process semantic unit corresponding to the target template unit, and the semantic calculation result is determined according to the value of the context environment variable during the iteration process, and the value of the context environment variable is determined according to the initial value of the context environment variable and the execution result of the target template unit that has been actually executed during the iteration process, so that for the same target job identifier, different target template units actually executed can be determined based on different initial values of the context environment variables. This is equivalent to achieving the flexible arrangement of each target template unit actually executed according to the actual needs of the job, thereby improving the flexibility of the job execution process.

[0085] Figure 3 This is a flowchart of another method for executing a job provided by an embodiment of the present invention. Figure 1 Based on the embodiment shown and various optional implementations, a detailed description of an implementation of step 104 is given. In this embodiment, the target process semantic unit includes a target process pre-semantic unit and / or a target process post-semantic unit. Figure 3 As shown, the job execution method provided in this embodiment includes the following steps 301 to 308.

[0086] Step 301: Obtain the target job identifier and the initial value of the context environment variable.

[0087] Step 302: Determine, according to the target job identifier, at least one target template unit included in the target job corresponding to the target job identifier, and an initial execution order of the at least one target template unit.

[0088] Step 303: Obtain the target process semantic unit corresponding to each target template unit.

[0089] The semantic calculation result of the target process semantic unit is used to indicate the execution path related to the corresponding target template unit.

[0090] The implementation process and technical principles of step 301 are similar to step 101, step 302 is similar to step 102, and step 303 is similar to step 103, and will not be repeated here.

[0091] Step 304: Determine a first semantic calculation result based on the target process pre-semantic unit corresponding to the current candidate target template unit and the current value of the context environment variable, and determine the currently actually executed target template unit or the next candidate target template unit based on the first semantic calculation result.

[0092] In the first iteration, the current candidate target template unit is the first target template unit indicated by the initial execution order. In the first iteration, the current value of the context environment variable is the initial value of the context environment variable.

[0093] Optionally, if the current candidate target template unit has a corresponding target pre-process semantic unit, the first semantic calculation result is determined based on the current value of the context environment variable and the target pre-process semantic unit corresponding to the current candidate target template unit; if the first semantic calculation result is used to indicate the execution of the current candidate target template unit, the current candidate target template unit is determined as the target template unit currently being actually executed; if the first semantic calculation result is used to indicate that the current candidate target template unit is not being executed, the next candidate target template unit is determined based on the first semantic calculation result; if the current candidate target template unit does not have a corresponding target pre-process semantic unit, the current candidate target template unit is determined as the target template unit currently being actually executed.

[0094] Step 305: If it is determined that the target template unit is currently being actually executed, the corresponding context environment variable in the target template unit currently being actually executed is replaced with the current value of the context environment variable to obtain the instantiated target template unit currently being actually executed.

[0095] Step 306: Execute the instantiated target template unit that is currently being actually executed, obtain the current execution result, and determine the updated value of the context environment variable according to the current execution result.

[0096] Step 307: Determine the second semantic calculation result based on the target process post-semantic unit corresponding to the currently actually executed target template unit and the updated value of the context environment variable, determine the next candidate target template unit based on the second semantic calculation result or the initial execution order, use the next candidate target template unit as the new current candidate target template unit, use the updated value of the context environment variable as the new current value of the context environment variable, and return to the step of executing step 304 until there is no next candidate target template unit.

[0097] In one implementation, if the current actual execution target template unit has a corresponding target process post-semantic unit, the second semantic calculation result is determined based on the updated value of the context environment variable and the target process post-semantic unit corresponding to the current candidate target template unit; based on the second semantic calculation result, the next candidate target template unit is determined; if the current actual execution target template unit does not have a corresponding target process post-semantic unit, the next target template unit of the current actual execution target template unit is determined as the next candidate target template unit according to the initial execution order.

[0098] Optionally, the first semantic calculation result and the second semantic calculation result in this embodiment may indicate the next candidate target template unit.

[0099] It should be noted that when determining the next candidate target template unit based on the first semantic calculation result, there may be a situation where the next candidate target template unit does not exist. When determining the next candidate target template unit based on the second semantic calculation result or the initial execution order, there may also be a situation where the next candidate target template unit does not exist. In this case, the iterative process is exited.

[0100] Step 308: If the next candidate target template unit is determined, the next candidate target template unit is used as the new current candidate target template unit, and the process returns to step 304 until there is no next candidate target template unit.

[0101] The following describes steps 304 to 308 by way of example. Figure 4 This is a schematic diagram of an example provided by an embodiment of the present invention. Figure 4As shown, it is assumed that the target job includes 4 target template units: target template unit 31, target template unit 32, target template unit 33 and target template unit 34. The initial execution order is 31, 32, 33 and 34 are executed in sequence. Among them, the target template unit 31 has a corresponding target process pre-semantic unit (represented by the pre-semantic in the figure) and a target process post-semantic unit (represented by the post-semantic in the figure). The target template unit 32 has a corresponding target process pre-semantic unit. The target template unit 33 has neither a corresponding target process pre-semantic unit nor a corresponding target process post-semantic unit. The target template unit 34 has a corresponding target process pre-semantic unit.

[0102] During the first iteration, the current candidate target template unit is target template unit 31. A first semantic calculation result is determined based on the initial value of the context variable and the target pre-process semantic unit corresponding to target template unit 31. If the first semantic calculation result indicates that target template unit 31 should be executed, target template unit 31 is determined as the target template unit currently being executed.

[0103] The initial values of the context variables are used to replace the corresponding context variables in the target template unit 31 to obtain the instantiated target template unit 31. The instantiated target template unit 31 is executed to obtain the current execution result, and the updated value of the context variable is determined according to the current execution result.

[0104] Based on the target post-process semantic unit corresponding to target template unit 31 and the updated value of the context environment variable, a second semantic calculation result is determined. Based on the second semantic calculation result, the next candidate target template unit is determined. Assume that the next candidate target template unit is target template unit 33. Target template unit 33 is used as the new current candidate target template unit, and the updated value of the context environment variable is used as the new current value of the context environment variable. Return to step 304 to continue iteration.

[0105] During the second iteration, the current candidate target template unit is target template unit 33. Since target template unit 33 does not have a corresponding target pre-process semantic unit, target template unit 33 is determined as the target template unit currently being executed.

[0106] The corresponding context variables in the target template unit 33 are replaced with the current values of the context variables (i.e., the updated values of the context variables during the first iteration) to obtain the instantiated target template unit 33. The instantiated target template unit 33 is executed to obtain the current execution result, and the updated values of the context variables are determined based on the current execution result.

[0107] According to the initial execution order, the target template unit 34 next to the target template unit 33 is determined as the next candidate target template unit. The target template unit 34 is used as the new current candidate target template unit, and the updated value of the context environment variable is used as the new current value of the context environment variable, and the process returns to step 304 to continue iteration.

[0108] During the third iteration, a first semantic calculation result is determined based on the current value of the context variable (i.e., the updated value of the context variable obtained during the second iteration) and the target pre-process semantic unit corresponding to the target template unit 34. If the first semantic calculation result indicates immediate success, the iteration process is exited.

[0109] Furthermore, the current execution result obtained after executing the instantiated target template unit 33 may be determined as the execution result of the target job.

[0110] It can be seen that in the above example process, the target template units actually executed are the target template unit 31 and the target template unit 33 .

[0111] Optionally, in the actual development process, in order to facilitate the implementation of the job execution method, a generation component, a process component, and an execution component may be set. Figure 5 It is a schematic diagram of the execution process of another job execution method provided by an embodiment of the present invention.

[0112] The function of the generation component is to execute the operations of instantiating the template unit in step 302 and steps 304 to 308. Figure 5 As shown, the generation component loads template units, job information, and maps jobs to template units. The generation component provides the values of environment variables during job runtime, reads various control variables and business variable attributes during job execution, and generates the final processing logic based on the template unit's predefined template within the template engine.

[0113] The function of the process component is to execute the operations of determining the semantic calculation results in step 303 and steps 304 to 308. Figure 5 As shown, the process component provides preloaded process semantic units and provides runtime dynamic process semantic computation capabilities. The semantic computation results are provided to the execution component, which then performs unified dynamic process orchestration and tailoring. The process component provides logic for dynamic process orchestration at runtime, supports real-time computation of process scenarios, and offers operational semantics such as immediate success, immediate failure, skipping this line, exiting the loop, and continuing to the next loop, enabling dynamic runtime judgment of job logic.

[0114] The role of the execution component is to schedule the running process of the entire job. It is responsible for scheduling the generation component to preload the template unit, job information, and the mapping relationship between the job and the template unit, and load the above information into the memory to improve the efficiency of subsequent job execution.

[0115] The execution component is also responsible for scheduling the process component to preload the process semantic unit. It loads the process semantic unit and uses the associated template unit identification field to combine the template unit already loaded in memory with the process semantic unit, thus enabling dynamic process semantic control during job execution.

[0116] The execution component is also responsible for maintaining, initializing, and dynamically updating the values of runtime context variables. During initialization, the execution component populates the initial values of the context variables with basic information required for job execution, including but not limited to the current work date, current work month, current system date, current billing system, and current billing type. Furthermore, after each step of the instantiated template unit is executed, the values in the context variables are dynamically updated based on the execution results of the instantiated template unit, obtaining the updated values of the context variables.

[0117] The execution component is also responsible for scheduling the generation component using the updated values of the context environment variables during the job execution process, and completing the instantiation of the model unit in real time based on the model unit.

[0118] After the model unit is instantiated, the execution component is responsible for performing real-time calculations on the loaded process semantic units using the updated values of the context variables. Based on the semantic calculation results, the execution process is dynamically orchestrated. Based on the results of the template unit instantiation and dynamic process orchestration, the job is dynamically scheduled according to the logical execution path calculated in real time.

[0119] like Figure 5 As shown in FIG, it shows a scenario where there is interaction between template units of multiple target jobs. Figure 5 The billing template in the text refers to the template unit. Each billing template has a pre-process semantic unit ( Figure 5 Before the semantic representation) and after the process semantic unit ( Figure 5 (The following semantic representation is in the predefined format.) Job 1 is predefined to include billing templates 1-1, 1-2, and 1-3. Job 2 includes billing templates 2-1, 2-2, and 2-3. Different execution paths are determined based on the initial values of different context variables. Figure 5 Execution path 1 and execution path 2 are shown in FIG.

[0120] It can be seen that the job execution method provided by this embodiment improves the flexibility, scalability and diversity of the job execution process.

[0121] The following uses a specific scenario as an example to illustrate the job execution method provided by this embodiment. Assume that the target job is named "Multi-dimensional Discount Calculation in Daily Statistics Processing for Small Billing." This target job is used to process multi-dimensional discount calculations. The scenario context involves performing discount calculations on the basic charging results of daily statistics for small billing, based on multiple dimensions: indirect participants, direct participants, bank type, city processing center, time, and amount.

[0122] In this scenario, predefined template units are: t1 Discount combination configuration template unit, t2 Discount calculation template unit for indirect participants, t3 Discount calculation template unit for direct participants, t4 Discount calculation template unit for line type, t5 Discount calculation template unit for city processing center, t6 Discount calculation template unit for time dimension, t7 Discount calculation template unit for amount dimension, and t8 Post-discount summary calculation template unit. The initial execution order is t1 through t8. Define job information (j1).

[0123] Predefine the process semantic unit corresponding to each template unit. For example, t1 corresponds to the pre-process semantic unit s11, which implements the scenario judgment of the preferential combination configuration template unit. t2 corresponds to the pre-process semantic unit s21, which implements the scenario judgment of the indirect participant dimension preferential treatment, etc.

[0124] The mapping relationship between jobs and template units is predefined, and the composition relationships between template units and jobs are defined as r1, r2, r3, ..., r8. Among them, r1 is the mapping relationship between t1 and job, r2 is the mapping relationship between t2 and job, ..., r8 is the mapping relationship between t8 and job.

[0125] In this example, the template unit defines abstract processing logic. For example, the indirect participant discount template unit defines the abstract processing logic for different discount methods in the indirect participant dimension. The process semantic unit defines the judgment logic for the nodes before and after the corresponding template unit is executed. For example, if no discount combination is configured, the immediate success semantics are returned.

[0126] After obtaining the target job identifier and the initial values of the context variables, the generation component preloads the template units (t1...t8), job information (j1), and the mapping relationship between the job and the template units (r1...rn) for the daily statistics multi-dimensional discount calculation job based on the target job identifier. The job information and the corresponding calculation steps in the template units are then loaded into memory.

[0127] The process component preloads process semantic units. It reads the process semantic units (s11...s81) corresponding to the template units associated with this job, loads the semantic judgment logic corresponding to each template unit, and loads the semantic units into memory. For example, s12 contains the semantic judgment logic for determining if a discount combination configuration does not exist, and s31 contains the semantic judgment logic for determining if a direct participant dimension discount is not configured.

[0128] Initialize the runtime context environment variables. Create a context environment variable c in memory, including basic information such as the current working month, previous working day, next working day, current billing system, current billing type, and various input parameters.

[0129] Afterwards, execute steps 304 to 308. The execution component performs dynamic process orchestration and execution. For example: instantiate template unit z1 (the instantiated template unit corresponding to t1), query the small monthly discount combination configuration, and save the combination configuration to the context environment variable c. Before instantiating template unit z2 (the instantiated template unit corresponding to t2) for indirect participant dimension discount calculation, z3 (the instantiated template unit corresponding to t3) for direct participant dimension discount calculation, z4 (the instantiated template unit corresponding to t4) for line dimension discount calculation, z5 (the instantiated template unit corresponding to t5) for city processing center dimension discount calculation, z6 (the instantiated template unit corresponding to t6) for time dimension discount calculation, and z7 (the instantiated template unit corresponding to t7) for amount dimension discount calculation, perform pre-semantic judgment respectively to determine whether the logic after the instantiation of the current template unit in each step is executed or skipped, and finally determine and execute the target template units that are actually executed.

[0130] In this example, the multi-dimensional discount calculation for daily small-amount billing statistics includes six combined discount scenarios: indirect participants, direct participants, bank type, city processing center, time, and amount. Depending on the initial values of the context variables, the runtime semantic calculation results will vary accordingly, supporting 2^6 different dimensional combinations and providing high flexibility.

[0131] The job execution method provided in this embodiment can generate specific billing logic based on the template unit, realize the runtime model instantiation function, perform process orchestration according to the pre-defined process semantic unit, realize flexible configuration and real-time calculation of the job execution process, realize dynamic orchestration of the process, and enable the job process to make self-judgments based on the real-time semantic calculation results. It has the characteristics of flexible configuration and can meet various demand change scenarios. It supports runtime template unit generation instantiation and dynamic process orchestration, which is used to control the flexible jump of the billing process and has high flexibility. At the same time, the reliability of the above-mentioned method of iteratively determining and executing the target template unit actually executed in each target template unit is relatively high.

[0132] Figure 6 This is a schematic diagram of the structure of a job execution device provided by an embodiment of the present invention. Figure 6 As shown, the job execution device provided by this embodiment includes the following modules: a first acquisition unit 61 , a determination unit 62 , a second acquisition unit 63 , and an iterative determination execution unit 64 .

[0133] The first acquiring unit 61 is configured to acquire a target job identifier and an initial value of a context environment variable.

[0134] The determining unit 62 is configured to determine, according to the target job identifier, at least one target template unit included in the target job corresponding to the target job identifier, and an initial execution order of the at least one target template unit.

[0135] The second acquiring unit 63 is configured to acquire the target process semantic unit corresponding to each target template unit.

[0136] The semantic calculation result of the target process semantic unit is used to indicate the execution path related to the corresponding target template unit.

[0137] The iterative determination execution unit 64 is used to iteratively determine and execute the target template unit actually executed in each target template unit based on the initial value of the context environment variable, the initial execution order, the at least one target template unit and the semantic calculation result of the target process semantic unit corresponding to the target template unit.

[0138] Among them, the number of target template units actually executed is less than or equal to the number of target template units included in the target job, the semantic calculation result of the target process semantic unit is determined according to the value of the context environment variable during the iteration process, and the value of the context environment variable is determined according to the initial value of the context environment variable and the execution result of the target template unit that has been actually executed during the iteration process.

[0139] In one embodiment, the target process semantic unit includes a target process pre-semantic unit and / or a target process post-semantic unit.

[0140] The iterative determination execution unit 64 includes: a first determination submodule, a second determination submodule, a third determination submodule, a fourth determination submodule, and a fifth determination submodule.

[0141] The first determination submodule is used to determine the first semantic calculation result based on the target process pre-semantic unit corresponding to the current candidate target template unit and the current value of the context environment variable, and determine the target template unit currently being executed or the next candidate target template unit based on the first semantic calculation result.

[0142] In the first iteration process, the current candidate target template unit is the first target template unit indicated by the initial execution order, and in the first iteration process, the current value of the context environment variable is the initial value of the context environment variable.

[0143] The second determining submodule is used to replace the corresponding context environment variable in the currently actually executed target template unit with the current value of the context environment variable if it is determined that the target template unit is currently actually executed, so as to obtain the instantiated target template unit currently actually executed.

[0144] The third determining submodule is configured to execute the instantiated target template unit that is currently actually executed, obtain a current execution result, and determine an updated value of a context environment variable according to the current execution result.

[0145] The fourth determination submodule is used to determine the second semantic calculation result based on the target process post-semantic unit corresponding to the currently actually executed target template unit and the updated value of the context environment variable, determine the next candidate target template unit based on the second semantic calculation result or the initial execution order, use the next candidate target template unit as the new current candidate target template unit, use the updated value of the context environment variable as the new current value of the context environment variable, and return to the steps of executing the first determination submodule until the next candidate target template unit does not exist.

[0146] The fifth determining submodule is configured to, if the next candidate target template unit is determined, use the next candidate target template unit as the new current candidate target template unit and return to execute the steps of the first determining submodule until the next candidate target template unit does not exist.

[0147] In one embodiment, the first determination submodule is specifically used to: if the current candidate target template unit has a corresponding pre-target process semantic unit, determine the first semantic calculation result based on the current value of the context environment variable and the pre-target process semantic unit corresponding to the current candidate target template unit; if the first semantic calculation result is used to indicate the execution of the current candidate target template unit, determine the current candidate target template unit as the currently actually executed target template unit; if the first semantic calculation result is used to indicate not to execute the current candidate target template unit, determine the next candidate target template unit based on the first semantic calculation result; if the current candidate target template unit does not have a corresponding pre-target process semantic unit, determine the current candidate target template unit as the currently actually executed target template unit.

[0148] In one embodiment, in the aspect of determining the second semantic calculation result based on the target process post-semantic unit corresponding to the currently actually executed target template unit and the updated value of the context environment variable, and determining the next candidate target template unit based on the second semantic calculation result or the initial execution order, the fourth determination submodule is specifically used to: if the currently actually executed target template unit has a corresponding target process post-semantic unit, determine the second semantic calculation result based on the updated value of the context environment variable and the target process post-semantic unit corresponding to the current candidate target template unit; determine the next candidate target template unit based on the second semantic calculation result; if the currently actually executed target template unit does not have a corresponding target process post-semantic unit, determine the next target template unit of the currently actually executed target template unit as the next candidate target template unit according to the initial execution order.

[0149] In one embodiment, the determination unit 62 is specifically used to: determine at least one target template unit included in the target job corresponding to the target job identifier and the initial execution order of the at least one target template unit based on the target job identifier and the mapping relationship between the job and the template unit.

[0150] In one embodiment, the device also includes a definition module, which is used to: define information of each template unit, wherein the information of each template unit includes: template unit identification, template unit content and context environment variables in the template unit; define information of each job, wherein the information of each job includes: job identification; define information of the process semantic unit of each template unit, wherein the information of the process semantic unit of each template unit includes: process semantic unit identification, template unit identification corresponding to the process semantic unit, process semantic unit expression, classification of semantic calculation results and context environment variables in the process semantic unit.

[0151] In one embodiment, the definition module is further configured to define a mapping relationship between a job and a template unit, wherein the mapping relationship between a job and a template unit includes a job identifier and a template unit identifier.

[0152] The job execution device provided in the embodiment of the present invention can execute the job execution method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0153] Figure 71 is a block diagram of an electronic device that implements the job execution method of an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are provided for example only and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0154] like Figure 7 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0155] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0156] The processor 11 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the job execution method.

[0157] In some embodiments, the job execution method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the job execution method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the job execution method in any other suitable manner (e.g., via firmware).

[0158] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0159] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0160] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0161] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0162] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0163] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.

[0164] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the job execution method provided by any embodiment of the present invention.

[0165] The computer program product may be implemented by writing computer program code for performing the operations of the present invention in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0166] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.

[0167] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A method for executing a job, characterized in that: include: Get the target job ID and the initial value of the context environment variable; Determining, according to the target job identifier, at least one target template unit included in the target job corresponding to the target job identifier, and an initial execution order of the at least one target template unit; Obtaining a target process semantic unit corresponding to each target template unit; wherein the semantic calculation result of the target process semantic unit is used to indicate an execution path related to the corresponding target template unit; According to the initial value of the context environment variable, the initial execution order, the at least one target template unit and the semantic calculation result of the target process semantic unit corresponding to the target template unit, the target template unit actually executed in each target template unit is iteratively determined and executed; wherein, the number of the target template units actually executed is less than or equal to the number of target template units included in the target job, the semantic calculation result of the target process semantic unit is determined according to the value of the context environment variable during the iteration process, and the value of the context environment variable is determined according to the initial value of the context environment variable and the execution result of the target template unit that has been actually executed during the iteration process.

2. The method according to claim 1, characterized in that The target process semantic unit includes a target process pre-semantic unit and / or a target process post-semantic unit; The iterative determination and execution of the target template unit actually executed in each target template unit according to the initial value of the context environment variable, the initial execution order, the at least one target template unit, and the semantic calculation result of the target process semantic unit corresponding to the target template unit includes: Determine a first semantic calculation result based on the target process pre-semantic unit corresponding to the current candidate target template unit and the current value of the context environment variable, and determine the target template unit currently being actually executed or determine the next candidate target template unit based on the first semantic calculation result; wherein, during the first iteration, the current candidate target template unit is the first target template unit indicated by the initial execution order, and during the first iteration, the current value of the context environment variable is the initial value of the context environment variable; If it is determined that the target template unit is currently being actually executed, the corresponding context environment variable in the target template unit currently being actually executed is replaced with the current value of the context environment variable to obtain the instantiated target template unit currently being actually executed; Executing the instantiated target template unit that is currently actually executed to obtain a current execution result, and determining an updated value of a context environment variable according to the current execution result; Determine the second semantic calculation result based on the target process post-semantic unit corresponding to the currently actually executed target template unit and the updated value of the context environment variable, determine the next candidate target template unit based on the second semantic calculation result or the initial execution order, use the next candidate target template unit as the new current candidate target template unit, use the updated value of the context environment variable as the new current value of the context environment variable, and return to execute the step of "determine the first semantic calculation result based on the target process pre-semantic unit corresponding to the current candidate target template unit and the current value of the context environment variable, and determine the currently actually executed target template unit or determine the next candidate target template unit based on the first semantic calculation result" until the next candidate target template unit does not exist; If the next candidate target template unit is determined, the next candidate target template unit will be used as the new current candidate target template unit, and the process returns to the step of "determining the first semantic calculation result based on the target process pre-semantic unit corresponding to the current candidate target template unit and the current value of the context environment variable, and determining the currently actually executed target template unit or determining the next candidate target template unit based on the first semantic calculation result" until the next candidate target template unit does not exist.

3. The method according to claim 2, characterized in that The method of determining a first semantic calculation result based on the target process pre-semantic unit corresponding to the current candidate target template unit and the current value of the context environment variable, and determining the currently actually executed target template unit or determining the next candidate target template unit based on the first semantic calculation result, includes: If the current candidate target template unit has a corresponding target pre-process semantic unit, determining a first semantic calculation result according to the current value of the context environment variable and the target pre-process semantic unit corresponding to the current candidate target template unit; If the first semantic calculation result is used to instruct to execute the current candidate target template unit, determining the current candidate target template unit as the currently actually executed target template unit; If the first semantic calculation result is used to indicate not to execute the current candidate target template unit, determining the next candidate target template unit according to the first semantic calculation result; If the current candidate target template unit does not have a corresponding target process pre-semantic unit, the current candidate target template unit is determined as the currently actually executed target template unit.

4. The method according to claim 2, characterized in that The step of determining a second semantic calculation result based on the target post-process semantic unit corresponding to the currently actually executed target template unit and the updated value of the context environment variable, and determining a next candidate target template unit based on the second semantic calculation result or the initial execution order includes: If the currently actually executed target template unit has a corresponding target process post-semantic unit, determining a second semantic calculation result according to the updated value of the context environment variable and the target process post-semantic unit corresponding to the current candidate target template unit; Determining the next candidate target template unit according to the second semantic calculation result; If the current actual execution target template unit does not have a corresponding target process post-semantic unit, then according to the initial execution order, the next target template unit of the current actual execution target template unit is determined as the next candidate target template unit.

5. The method according to any one of claims 1 to 4, characterized in that The step of determining, based on the target job identifier, at least one target template unit included in the target job corresponding to the target job identifier and an initial execution order of the at least one target template unit comprises: According to the target job identifier and the mapping relationship between jobs and template units, at least one target template unit included in the target job corresponding to the target job identifier and an initial execution order of the at least one target template unit are determined.

6. The method according to any one of claims 1 to 4, characterized in that Before obtaining the target job identifier and the initial value of the context environment variable, the method further includes: Defining information of each template unit; wherein the information of each template unit includes: template unit identification, template unit content and context environment variables in the template unit; Defining information for each job; wherein the information for each job includes: a job identifier; Define the information of the process semantic unit of each template unit; wherein, the information of the process semantic unit of each template unit includes: the process semantic unit identifier, the template unit identifier corresponding to the process semantic unit, the process semantic unit expression, the classification of the semantic calculation results and the context environment variables in the process semantic unit.

7. The method according to claim 5, characterized in that Before obtaining the target job identifier and the initial value of the context environment variable, the method further includes: A mapping relationship between a job and a template unit is defined; wherein the mapping relationship between a job and a template unit includes: a job identifier and a template unit identifier.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to perform the job execution method according to any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and the computer program is configured to enable a processor to implement the job execution method according to any one of claims 1 to 7 when the computer program is executed.

10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the job execution method according to any one of claims 1 to 7.