A method and system for transferring parameters based on process nodes of a scheduling system

By adding task process nodes and constructing parameter transfer rules in the configuration management flow chart editing interface of the scheduling system, the problem of the lack of a unified configuration management interface and poor flexibility in the scheduling system is solved, the dynamic transfer of script parameters is realized, and development operations are simplified and Reduced management costs.

CN114371808BActive Publication Date: 2024-09-10BAIRONG ZHIXIN (BEIJING) TECH CO LTD
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202210022798.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-10
Publication Date
2024-09-10
Estimated Expiration
2042-01-10

AI Technical Summary

Technical Problem

The existing scheduling system lacks a unified configuration management interface, has poor flexibility, and cannot quickly locate and detect problems. It also lacks necessary log information and cannot dynamically transfer script parameters.

Method used

Add task process nodes to the configuration management flow chart editing interface, build parameter transfer rules through configuration instructions, use regular expressions to parse script execution instructions, transfer real-time parameter information to the configuration management module, and realize dynamic transfer of parameters through Redis.

Benefits of technology

It provides a unified configuration interface, realizes the dynamic transfer of script parameters, simplifies developers' operations, reduces script code management costs, and improves the efficiency of data governance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114371808B
    Figure CN114371808B
Patent Text Reader

Abstract

The present invention discloses a method and system for transferring parameters based on a process node of a scheduling system, wherein the method comprises: adding a task process node in a configuration management flowchart editing interface; constructing a first parameter transfer rule according to a first configuration instruction; obtaining a first script execution instruction; parsing the task process node according to the first script execution instruction and the first parameter transfer rule through a regular expression to obtain first parsing parameter information; inputting the first parsing parameter information into a configuration management module, and obtaining first real-time parameter information of a first real-time process node according to the configuration management module; transferring the first real-time parameter information to a downstream script of the task process node as an execution parameter. The method solves the technical problems that the prior art has no unified configuration management interface, poor flexibility, cannot quickly locate and discover problems on the system, and lacks necessary log information.
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, and in particular to a method and system for transferring process node parameters based on a scheduling system. Background Art

[0002] Enterprises usually use task scheduling + script development to process data. However, with the development of the company and the growth of data volume, the original Linux crontab is used for task scheduling. The hive intermediate data table is used as the method for data transmission between multiple scripts. This method cannot meet the complex dependency configuration between multiple tasks. The existing scheduling system can manage the complex dependency between multiple scripts by configuring the task process, but does not support the data parameter transmission between multiple scripts in the process. It only supports all parameters and custom parameters, and cannot realize the function of dynamically transmitting parameters according to the script execution results.

[0003] The global parameters and custom parameters supported by the existing scheduling system can only be set before the task process runs. For example, if the task execution parameter is set to a certain day, the script obtains the set date variable and executes the task of the specified date. However, the parameters cannot be dynamically passed to the downstream nodes of the process according to the script execution results.

[0004] However, in the process of implementing the technical solution of the present invention, it is found that the above technology has at least the following technical problems:

[0005] The existing technology has the problems of no unified configuration management interface, poor flexibility, inability to quickly locate and discover problems on the system, and lack of necessary log information. Summary of the invention

[0006] The present application provides a method and system for transferring process nodes in a scheduling system, thereby solving the technical problems in the prior art that there is no unified configuration management interface, the flexibility is poor, the problem cannot be quickly located and discovered on the system, and the necessary log information is lacking. The present application provides a configuration interface, through which users configure parameter transfer rules to realize dynamic parameter transfer of nodes, and can query the dynamic parameter information of the process in the system, thus solving the problem of dynamic transfer of script parameters; simplifying the operation of developers and making tasks easier to maintain in a configurable manner; and being able to view the script parameter transfer relationship through the system, thus facilitating data governance and reducing the cost of script code management.

[0007] In view of the above problems, the present invention is proposed to provide a method to overcome the above problems or at least partially solve the above problems.

[0008] In the first aspect, the present application provides a method for passing parameters based on a scheduling system process node, the method comprising: adding a task process node in a configuration management flowchart editing interface; constructing a first parameter passing rule according to a first configuration instruction, wherein the first parameter passing rule is a rule for obtaining parameters for a script to pass downstream; obtaining a first script execution instruction; according to the first script execution instruction, parsing the task process node through a regular expression according to the first parameter passing rule to obtain first parsing parameter information; inputting the first parsing parameter information into a configuration management module, and obtaining first real-time parameter information of a first real-time process node according to the configuration management module; and passing the first real-time parameter information to the downstream script of the task process node as an execution parameter.

[0009] On the other hand, the present application also provides a parameter transfer system based on a scheduling system process node, the system comprising: a first adding unit, the first adding unit is used to add a task process node in the configuration management flowchart editing interface; a first building unit, the first building unit is used to build a first parameter transfer rule according to a first configuration instruction, wherein the first parameter transfer rule is a rule for obtaining parameters for a script to pass downstream; a first obtaining unit, the first obtaining unit is used to obtain a first script execution instruction; a second obtaining unit, the second obtaining unit is used to parse the task process node according to the first script execution instruction and the first parameter transfer rule through a regular expression to obtain first parsed parameter information; a third obtaining unit, the third obtaining unit is used to input the first parsed parameter information into a configuration management module, and obtain the first real-time parameter information of a first real-time process node according to the configuration management module; a first transfer unit, the first transfer unit is used to transfer the first real-time parameter information to the downstream script of the task process node as an execution parameter.

[0010] In a third aspect, the present application provides an electronic device, comprising a bus, a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the transceiver, the memory, and the processor are connected via the bus, and the computer program, when executed by the processor, implements the steps in any one of the above-described methods for controlling output data.

[0011] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps in any one of the above-mentioned methods for controlling output data.

[0012] One or more technical solutions provided in this application have at least the following technical effects or advantages:

[0013] Due to the adoption of adding task process nodes in the configuration management flowchart editing interface; constructing the first parameter transfer rule according to the first configuration instruction, wherein the first parameter transfer rule is the acquisition rule for the script to transfer parameters to the downstream; obtaining the first script execution instruction; according to the first script execution instruction, parsing the task process node through the regular expression according to the first parameter transfer rule to obtain the first parsing parameter information; inputting the first parsing parameter information into the configuration management module, and obtaining the first real-time parameter information of the first real-time process node according to the configuration management module; passing the first real-time parameter information to the downstream script of the task process node as the execution parameter. The technical solution is achieved by providing a configuration interface, through which users configure parameter transfer rules to realize node dynamic parameter transfer, and can query process dynamic parameter information in the system, solving the problem of dynamic transfer of script parameters; simplifying the operation of developers, making tasks easier to maintain through configuration; and viewing the script parameter transfer relationship through the system, which is helpful for data governance and reduces the cost of script code management.

[0014] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 A schematic diagram of a process flow of a method for transferring process nodes parameters in a scheduling system based on this application;

[0016] Figure 2 A schematic diagram of a process for constructing a first parameter transfer rule in a method for transferring parameters of a process node in a scheduling system according to the present application;

[0017] Figure 3 This is a flow chart of storing parsed parameter information in redis based on a method for transferring parameters of a process node in a scheduling system in this application;

[0018] Figure 4 This is a structural diagram of a scheduling system process node parameter transmission system based on this application;

[0019] Figure 5 This is a schematic diagram of the structure of an exemplary electronic device of the present application.

[0020] Explanation of the figure marks: first adding unit 11, first constructing unit 12, first obtaining unit 13, second obtaining unit 14, third obtaining unit 15, first transmitting unit 16, bus 1110, processor 1120, transceiver 1130, bus interface 1140, memory 1150, operating system 1151, application 1152 and user interface 1160. DETAILED DESCRIPTION

[0021] In the description of the present application, those skilled in the art should know that the present application can be implemented as a method, an apparatus, an electronic device, and a computer-readable storage medium. Therefore, the present application can be specifically implemented in the following forms: complete hardware, complete software (including firmware, resident software, microcode, etc.), a combination of hardware and software. In addition, in some embodiments, the present application can also be implemented in the form of a computer program product in one or more computer-readable storage media, and the computer-readable storage medium contains computer program code.

[0022] The above-mentioned computer-readable storage medium may adopt any combination of one or more computer-readable storage media. Computer-readable storage media include: electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or devices, or any combination of the above. More specific examples of computer-readable storage media include: portable computer disks, hard disks, random access memories, read-only memories, erasable programmable read-only memories, flash memories, optical fibers, optical disc read-only memories, optical storage devices, magnetic storage devices, or any combination of the above. In the present application, computer-readable storage media can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or device.

[0023] Application Overview

[0024] The present application describes the provided methods, devices, and electronic devices through flowcharts and / or block diagrams.

[0025] It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions. These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine, and these computer-readable program instructions are executed by a computer or other programmable data processing device to produce a device that implements the functions / operations specified by the boxes in the flowchart and / or block diagram.

[0026] These computer-readable program instructions may also be stored in a computer-readable storage medium that enables a computer or other programmable data processing device to work in a specific manner. In this way, the instructions stored in the computer-readable storage medium produce an instruction device product including functions / operations specified in the blocks in the flowchart and / or block diagram.

[0027] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device, so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby enabling the instructions executed on the computer or other programmable data processing apparatus to provide a process for implementing the functions / operations specified in the blocks in the flowchart and / or block diagram.

[0028] The present application is described below in conjunction with the drawings in the present application.

[0029] Embodiment 1

[0030] like Figure 1 As shown, the present application provides a method for transferring parameters based on a process node of a scheduling system, wherein the method comprises:

[0031] Step S100: Adding a task flow node in the configuration management flow chart editing interface;

[0032] Specifically, the system is divided into a configuration management module and a script execution module. The configuration management module provides script and scheduling configuration pages and scheduling process management. The script execution module is deployed on each server node and is responsible for executing the instructions issued by the configuration management module. The configuration management flowchart editing interface provides developers with a convenient and easy-to-use work interface to configure the task scheduling process and ensure development work efficiency. In the configuration management flowchart editing interface, drag and add task process nodes. A process node is a series of steps in the process. A process task consists of several nodes. Node types include task nodes, activity nodes, branch nodes, aggregation nodes, decision nodes, and edge nodes. The process logic is realized through the combination of different types of nodes.

[0033] Step S200: constructing a first parameter transfer rule according to the first configuration instruction, wherein the first parameter transfer rule is a rule for obtaining parameters transferred from the script to the downstream;

[0034] like Figure 2 As shown, further, the first parameter transfer rule is constructed according to the first configuration instruction, and step S200 of the present application also includes:

[0035] Step S210: According to the first configuration instruction, configure an acquisition method and a configuration parameter prefix, wherein the configuration acquisition method is implemented by parsing script output content, and the configuration parameter prefix is ​​implemented by configuring global parameters and local parameters;

[0036] Step S220: construct the first parameter transfer rule according to the configuration acquisition method and the configuration parameter prefix.

[0037] Specifically, when a new task process node is added, the first parameter passing rule is set. The first parameter passing rule is a rule for obtaining parameters passed from the script to the downstream, including a method for obtaining parameters and a parameter prefix. The configuration acquisition method is implemented by parsing the script output content, and is set to: parsing the script output content; the configuration parameter prefix is ​​implemented by configuring global parameters and local parameters, and is set to global parameters "{process name}:{parameter name}:" and local parameters "{process name / node name}:{parameter name}:" or "{process name / sub-process name / node name}:{parameter name}:". Parameter passing rules are configured through the interface to provide a basis for the subsequent implementation of dynamic parameter passing.

[0038] Step S300: obtaining a first script execution instruction;

[0039] Step S400: according to the first script execution instruction, the task flow node is parsed by a regular expression according to the first parameter transfer rule to obtain first parsing parameter information;

[0040] Specifically, the script execution module is deployed on each server node, responsible for executing the instructions issued by the configuration management module, parsing the script execution result log, and uploading it to the configuration management module. When executing a process node configured with parameter passing, the script execution module obtains the standard output stream and the parsed script output log, and matches the parameter information output by the parsing node through a regular expression according to the configuration rules, that is, the first parsing parameter information. A regular expression is a logical formula for string operations, that is, using some pre-defined specific characters and combinations of these specific characters to form a "rule string", which is used to express a filtering logic for the string.

[0041] Step S500: inputting the first parsing parameter information into a configuration management module, and obtaining first real-time parameter information of a first real-time process node according to the configuration management module;

[0042] Specifically, the script execution module reports the parsed first parsing parameter information to the configuration management module, and the configuration management module stores it in redis. Redis (Remote Dictionary Server), that is, remote dictionary service, is an open source log-type, Key-Value database written in ANSI C language, supports the network, can be based on memory or persisted, and provides APIs in multiple languages. The system uses highly available redis as the intermediate medium for script parameter transmission. According to the configured parameter transmission rules, the execution module obtains and parses the script output content and uploads it to the configuration management module. The first real-time process node is the process node executed by the system. The first real-time parameter information is obtained according to the current process execution ID and node name. The first real-time parameter information is the script parameter matched by redis, including global parameters and current node parameters. The process execution ID global obtains global parameters, and the process execution ID node name obtains local parameters.

[0043] Step S600: passing the first real-time parameter information to the downstream script of the task flow node as an execution parameter.

[0044] Specifically, before the downstream script is executed, the configuration management module searches for matching script parameters in redis and passes them to the downstream script of the task flow as execution parameters. After the configuration management module obtains the script parameters, it submits the script and parameter variables to the script execution module, which passes in the script parameters and executes the script. This achieves the technical effect of providing a configuration interface, allowing users to configure parameter transfer rules through the interface, realizing node dynamic parameter transfer, and querying process dynamic parameter information in the system, solving the problem of dynamic script parameter transfer.

[0045] like Figure 3 As shown, further, the application also includes:

[0046] Step S710: the configuration management module and the script execution module have a first connection relationship;

[0047] Step S720: uploading the first parsing parameter information obtained by the script execution module to the configuration management module based on the first connection relationship;

[0048] Step S730: The configuration management module stores the first parsing parameter information in redis.

[0049] Specifically, the system is divided into a configuration management module and a script execution module. The first connection relationship is the connection interaction relationship between the configuration management module and the script execution module. The configuration management module provides script and scheduling configuration pages and scheduling process management, and is responsible for collecting information reported by the execution module. The script execution module is deployed on each server node and is responsible for executing the instructions issued by the configuration management module, parsing the script execution result log, and uploading the parsing parameter information results obtained by the script execution module to the configuration management module based on the first connection relationship. The configuration management module stores the first parsing parameter information in redis. The system uses highly available redis as the intermediate medium for script parameter transmission, and implements node parameter transmission based on redis, achieving high performance and fast processing speed.

[0050] Furthermore, step S730 of the present application also includes:

[0051] Step S731: the redis uses a preset hash structure to store the first parsing parameter information;

[0052] Step S732: storing the global parameters of the first parsing parameter information according to a first storage method, wherein the first storage method is storing in a global field;

[0053] Step S733: storing the local parameters of the first parsing parameter information according to a second storage method, wherein the second storage method is a json method.

[0054] Furthermore, the process local variable uses the node name as the field, and the value of the field is the parameter json; the sub-process local variable uses the sub-process name and node name as the field, and the value of the field is the parameter json.

[0055] Specifically, the redis uses a hash structure to store the first parsing parameter information, i.e., the process parameters. The hash structure is a data structure that is directly accessed based on a key code value. The record is accessed by mapping the key code value to a position in the table to speed up the search. The key of the hash is a unique ID automatically generated by the process execution. The global variable parameters of the first parsing parameter information are stored in the first storage method, i.e., stored in the global field. The global function is to obtain the content of the system global configuration variables. The use of the global flag indicates that the search operation in the string being searched will search for all matching items, not just the first one.

[0056] Furthermore, the local variable parameters of the first parsing parameter information are stored in the second storage method, that is, multiple parameters are stored in json. json is a syntax for storing and exchanging text information, similar to XML. json is smaller, faster, and easier to parse than XML. The process local variable uses the node name as the field field, field represents the characteristics of the field type, and the value of the field field is the parameter json. The sub-process local variable uses the sub-process name + node name as the field field, and the value of the field field is the parameter json. For example, HSET "Process Execution ID" "global" "{}" "Node Name" "{\"dt\":20211018,\"finish\":true}". Highly available redis is used as the intermediate medium for script parameter transmission, and the parsing parameters are stored in redis. It has high performance and fast processing speed, so as to achieve the technical effect of node parameter transmission based on redis.

[0057] Furthermore, the present application also includes:

[0058] Step S810: synchronously accessing the service line data according to the data interface layer to obtain first service data, wherein the data interface layer includes a plurality of synchronization nodes;

[0059] Step S820: obtaining a plurality of synchronization completion parameters according to the plurality of synchronization nodes;

[0060] Step S830: inputting the plurality of synchronization completion parameters into a data aggregation layer for aggregation to obtain first aggregation data;

[0061] Step S840: Execute data processing of the corresponding business line according to the first summary data.

[0062] Specifically, when processing call volume data, the task flow will be configured according to the idea of ​​layered processing. The data interface layer is a temporary data area for operational data storage, namely the ODS layer, which stands for Operational Data Store. It stores business data extracted from source systems such as logs, members, and orders, and synchronizes all business line data at the ODS layer. The data aggregation layer, namely the DW (Data Warehouse) layer, is the main body of the data warehouse. The data obtained from the ODS layer is used to establish various data models according to themes.

[0063] The data is aggregated at the DW layer. When configuring the task flow, the ODS layer includes multiple synchronization nodes. The ODS layer synchronization node can be set as the parameter producer, and the business line synchronization completion status can be set as the parameter value. After the DW layer obtains the parameters for the business line synchronization completion, the multiple synchronization completion parameters are input into the DW layer for aggregation, and the data processing work of the corresponding business line is performed according to the first aggregated data. By solving the problem of dynamic transmission of script parameters, simplifying the operation of developers, and making tasks easier to maintain through configuration, the script parameter transmission relationship can be viewed through the system, which is helpful for data governance work, thereby reducing the technical effect of script code management costs.

[0064] In summary, the method and system for transferring process node parameters based on the scheduling system provided by the present application have the following technical effects:

[0065] Due to the adoption of adding task process nodes in the configuration management flowchart editing interface; constructing the first parameter transfer rule according to the first configuration instruction, wherein the first parameter transfer rule is the acquisition rule for the script to transfer parameters to the downstream; obtaining the first script execution instruction; according to the first script execution instruction, parsing the task process node through the regular expression according to the first parameter transfer rule to obtain the first parsing parameter information; inputting the first parsing parameter information into the configuration management module, and obtaining the first real-time parameter information of the first real-time process node according to the configuration management module; passing the first real-time parameter information to the downstream script of the task process node as the execution parameter. The technical solution is achieved by providing a configuration interface, through which users configure parameter transfer rules to realize node dynamic parameter transfer, and can query process dynamic parameter information in the system, solving the problem of dynamic transfer of script parameters; simplifying the operation of developers, making tasks easier to maintain through configuration; and viewing the script parameter transfer relationship through the system, which is helpful for data governance and reduces the cost of script code management.

[0066] Embodiment 2

[0067] Based on the same inventive concept as the method for transferring parameters based on a scheduling system process node in the aforementioned embodiment, the present invention also provides a system for transferring parameters based on a scheduling system process node, such as Figure 4 As shown, the system comprises:

[0068] A first adding unit 11, the first adding unit 11 is used to add a task flow node in the configuration management flow chart editing interface;

[0069] A first construction unit 12, the first construction unit 12 is used to construct a first parameter transfer rule according to the first configuration instruction, wherein the first parameter transfer rule is an acquisition rule for the script to transfer parameters to the downstream;

[0070] A first obtaining unit 13, wherein the first obtaining unit 13 is used to obtain a first script execution instruction;

[0071] A second obtaining unit 14, the second obtaining unit 14 is used to execute instructions according to the first script, parse the task flow node through a regular expression according to the first parameter transfer rule, and obtain first parsing parameter information;

[0072] A third obtaining unit 15, the third obtaining unit 15 is used to input the first parsing parameter information into a configuration management module, and obtain first real-time parameter information of a first real-time process node according to the configuration management module;

[0073] The first transmission unit 16 is used to transmit the first real-time parameter information to the downstream script of the task flow node as an execution parameter.

[0074] Furthermore, the system also includes:

[0075] A first configuration unit, the first configuration unit is used to configure an acquisition mode and a configuration parameter prefix according to the first configuration instruction, wherein the configuration acquisition mode is implemented by parsing script output content, and the configuration parameter prefix is ​​implemented by configuring global parameters and local parameters;

[0076] A second construction unit, wherein the second construction unit is used to construct the first parameter transfer rule according to the configuration acquisition method and the configuration parameter prefix.

[0077] Furthermore, the system also includes:

[0078] A first connection unit, wherein the first connection unit is used for the configuration management module and the script execution module to have a first connection relationship;

[0079] a first uploading unit, configured to upload the first parsing parameter information obtained by the script execution module to the configuration management module based on the first connection relationship;

[0080] The first storage unit is used by the configuration management module to store the first parsing parameter information in redis.

[0081] Furthermore, the system also includes:

[0082] A second storage unit, wherein the second storage unit is used for the redis to store the first parsing parameter information using a preset hash structure;

[0083] a third storage unit, the third storage unit being used to store the global parameters of the first parsing parameter information according to a first storage method, wherein the first storage method is storing in a global field;

[0084] A fourth storage unit, the fourth storage unit is used to store the local parameters of the first parsing parameter information according to a second storage method, wherein the second storage method is a json method.

[0085] Furthermore, the system also includes:

[0086] A fourth obtaining unit, the fourth obtaining unit is used to synchronously access the service line data according to the data interface layer to obtain the first service data, wherein the data interface layer includes a plurality of synchronization nodes;

[0087] a fifth obtaining unit, configured to obtain a plurality of synchronization completion parameters according to the plurality of synchronization nodes;

[0088] a sixth obtaining unit, the sixth obtaining unit being used to aggregate the plurality of synchronization completion parameter input data aggregation layer to obtain first aggregated data;

[0089] A first execution unit is used to execute data processing of a corresponding business line according to the first summary data.

[0090] The foregoing Figure 1 The various variations and specific examples of the method for transferring process nodes based on a scheduling system in Example 1 are also applicable to a system for transferring process nodes based on a scheduling system in this embodiment. Through the above detailed description of the method for transferring process nodes based on a scheduling system, those skilled in the art can clearly understand the implementation method of a system for transferring process nodes based on a scheduling system in this embodiment. Therefore, for the sake of brevity of the specification, it will not be described in detail here.

[0091] In addition, the present application also provides an electronic device, including a bus, a transceiver, a memory, a processor, and a computer program stored in the memory and run on the processor. The transceiver, the memory, and the processor are respectively connected via a bus. When the computer program is executed by the processor, each process of the above-mentioned method embodiment for controlling output data is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0092] Exemplary Electronic Devices

[0093] For details, see Figure 5As shown, the present application also provides an electronic device, which includes a bus 1110 , a processor 1120 , a transceiver 1130 , a bus interface 1140 , a memory 1150 and a user interface 1160 .

[0094] In the present application, the electronic device further includes: a computer program stored in the memory 1150 and executable on the processor 1120, and when the computer program is executed by the processor 1120, each process of the above-mentioned method embodiment for controlling output data is implemented.

[0095] The transceiver 1130 is configured to receive and send data under the control of the processor 1120 .

[0096] In the present application, a bus architecture (represented by bus 1110 ) may include any number of interconnected buses and bridges, and bus 1110 connects various circuits including one or more processors represented by processor 1120 and a memory represented by memory 1150 .

[0097] Bus 1110 represents one or more of any of several types of bus structures, including a memory bus and memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. Such architectures include, by way of example and not limitation, an Industry Standard Architecture bus, a Micro Channel Architecture bus, an expansion bus, a Video Electronics Standards Association, a Peripheral Component Interconnect bus.

[0098] The processor 1120 may be an integrated circuit chip having signal processing capabilities. In the implementation process, each step of the above method embodiment may be completed by an integrated logic circuit of hardware in the processor or instructions in the form of software. The above processors include: a general-purpose processor, a central processing unit, a network processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array, a complex programmable logic device, a programmable logic array, a microcontroller unit or other programmable logic device, a discrete gate, a transistor logic device, and a discrete hardware component. The various methods, steps, and logic block diagrams disclosed in this application may be implemented or executed. For example, the processor may be a single-core processor or a multi-core processor, and the processor may be integrated into a single chip or located on multiple different chips.

[0099] Processor 1120 may be a microprocessor or any conventional processor. The method steps disclosed in the present application may be directly executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module may be located in a readable storage medium known in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an erasable programmable read-only memory, a register, etc. The readable storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0100] The bus 1110 may also connect various other circuits such as peripheral devices, voltage regulators or power management circuits, and the bus interface 1140 provides an interface between the bus 1110 and the transceiver 1130, which are well known in the art. Therefore, this application will not further describe them.

[0101] The transceiver 1130 may be one element or multiple elements, such as multiple receivers and transmitters, and provides a unit for communicating with various other devices on a transmission medium. For example, the transceiver 1130 receives external data from other devices, and the transceiver 1130 is used to send data processed by the processor 1120 to other devices. Depending on the nature of the computer device, a user interface 1160 may also be provided, such as a touch screen, a physical keyboard, a display, a mouse, a speaker, a microphone, a trackball, a joystick, or a stylus.

[0102] It should be understood that in the present application, the memory 1150 may further include a memory remotely arranged relative to the processor 1120, and these remotely arranged memories may be connected to the server through a network. One or more parts of the above network may be a self-organizing network, an intranet, an extranet, a virtual private network, a local area network, a wireless local area network, a wide area network, a wireless wide area network, a metropolitan area network, the Internet, a public switched telephone network, a plain old telephone service network, a cellular telephone network, a wireless network, a wireless fidelity network, and a combination of two or more of the above networks. For example, the cellular telephone network and the wireless network may be a global mobile communication device, a code division multiple access device, a global microwave interconnection access device, a general packet radio service device, a wideband code division multiple access device, a long term evolution device, a LTE frequency division duplex device, a LTE time division duplex device, an advanced long term evolution device, a universal mobile communication device, an enhanced mobile broadband device, a massive machine type communication device, an ultra-reliable low latency communication device, and the like.

[0103] It should be understood that the memory 1150 in the present application may be a volatile memory or a non-volatile memory, or may include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory includes: a read-only memory, a programmable read-only memory, an erasable programmable read-only memory, an electrically erasable programmable read-only memory, or a flash memory.

[0104] Volatile memory includes random access memory, which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory, dynamic random access memory, synchronous dynamic random access memory, double data rate synchronous dynamic random access memory, enhanced synchronous dynamic random access memory, synchronously linked dynamic random access memory, and direct memory bus random access memory. The memory 1150 of the electronic device described in the present application includes, but is not limited to, the above and any other suitable types of memory.

[0105] In the present application, the memory 1150 stores the following elements of the operating system 1151 and the application program 1152: executable modules, data structures, or subsets thereof, or extended sets thereof.

[0106] Specifically, the operating system 1151 includes various device programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 1152 includes various application programs, such as a media player and a browser, which are used to implement various application services. The program implementing the method of the present application may be included in the application 1152. The application 1152 includes applets, objects, components, logic, data structures, and other computer device executable instructions that perform specific tasks or implement specific abstract data types.

[0107] In addition, the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned method embodiment for controlling output data are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0108] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for transferring parameters based on a process node of a scheduling system, characterized in that: The method comprises: In the configuration management flowchart editing interface, add task flow nodes; According to the first configuration instruction, a first parameter transfer rule is constructed, wherein the first parameter transfer rule is an acquisition rule for the script to transfer parameters to the downstream; The constructing the first parameter transfer rule according to the first configuration instruction includes: configuring an acquisition method and a configuration parameter prefix according to the first configuration instruction, wherein the configuration acquisition method is implemented by parsing script output content, and the configuration parameter prefix is ​​implemented by configuring global parameters and local parameters; constructing the first parameter transfer rule according to the configuration acquisition method and the configuration parameter prefix; Get the first script execution instruction; According to the first script execution instruction, the task flow node is parsed by a regular expression according to the first parameter transfer rule to obtain first parsing parameter information; Inputting the first parsing parameter information into a configuration management module, and obtaining first real-time parameter information of a first real-time process node according to the configuration management module; The first real-time parameter information is passed to the downstream script of the task flow node as an execution parameter.

2. The method according to claim 1, characterized in that The method comprises: The configuration management module and the script execution module have a first connection relationship; Based on the first connection relationship, uploading the first parsing parameter information obtained by the script execution module to the configuration management module; The configuration management module stores the first parsing parameter information in redis.

3. The method according to claim 2, characterized in that The method comprises: The redis uses a preset hash structure to store the first parsing parameter information; Storing the global parameters of the first parsing parameter information according to a first storage method, wherein the first storage method is storing in a global field; The local parameters of the first parsing parameter information are stored according to a second storage method, wherein the second storage method is a JSON method.

4. The method according to claim 3, characterized in that The process local variable uses the node name as the field, and the value of the field is the parameter json; the sub-process local variable uses the sub-process name and node name as the field, and the value of the field is the parameter json.

5. The method according to claim 1, characterized in that The method further comprises: Synchronously accessing the service line data according to the data interface layer to obtain first service data, wherein the data interface layer includes a plurality of synchronization nodes; According to the multiple synchronization nodes, obtaining multiple synchronization completion parameters; The plurality of synchronization completion parameters are input into a data aggregation layer for aggregation to obtain first aggregation data; Data processing of the corresponding business line is performed according to the first summary data.

6. A parameter transfer system based on a scheduling system process node, characterized in that: The system comprises: A first adding unit, the first adding unit is used to add a task flow node in the configuration management flow chart editing interface; A first construction unit, the first construction unit is used to construct a first parameter transfer rule according to the first configuration instruction, wherein the first parameter transfer rule is an acquisition rule for the script to transfer parameters to the downstream; A first configuration unit, the first configuration unit is used to configure an acquisition mode and a configuration parameter prefix according to the first configuration instruction, wherein the configuration acquisition mode is implemented by parsing script output content, and the configuration parameter prefix is ​​implemented by configuring global parameters and local parameters; A second construction unit, the second construction unit is used to construct the first parameter transfer rule according to the configuration acquisition method and the configuration parameter prefix; A first obtaining unit, the first obtaining unit is used to obtain a first script execution instruction; A second obtaining unit, the second obtaining unit is used to execute instructions according to the first script, parse the task flow node through a regular expression according to the first parameter transfer rule, and obtain first parsing parameter information; a third obtaining unit, the third obtaining unit being used to input the first parsing parameter information into a configuration management module, and obtaining first real-time parameter information of a first real-time process node according to the configuration management module; A first transmission unit is used to transmit the first real-time parameter information to the downstream script of the task flow node as an execution parameter.

7. An electronic device for transmitting parameters of process nodes in a scheduling system, comprising a bus, a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the transceiver, the memory, and the processor are connected via the bus, characterized in that: When the computer program is executed by the processor, the steps in the method according to any one of claims 1 to 5 are implemented.

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

Citation Information

Patent Citations

  • Network service fulfillment realization method based on Activiti flow engine and apparatus thereof

    CN106600238A

  • Script based business fault positioning engine realization method

    CN107332713A

  • A method and a system for interacting between a process and a form based on Activiti

    CN109542556A

  • An overall calculation method of a rule engine system of semi-structured text data

    CN109710413A

  • Data structure prediction transmission and automatic data processing method based on flow chart

    CN110727670A