Resource allocation method and device
By creating a processing flow in the resource allocation method and setting parameters to determine information using the visual interface, the problem of inefficiency after the change of resource allocation method is solved, and the rapid effect of parameter configuration information changes is achieved.
Patent Information
- Application Number
- CN202311346055.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-17
- Publication Date
- 2025-04-18
AI Technical Summary
In the prior art, after the resource allocation method is changed, R&D personnel need to rewrite the software code, resulting in inefficient efficiency in the resource allocation method.
A resource allocation method is provided by creating a processing flow that includes a plurality of processing nodes for determining resource allocation parameters. The parameter determination information of these processing nodes is set through the visual interface, and the output parameters of the current processing node are used as input parameters of the next processing node.
Through this method, the change of parameter configuration information does not require R&D personnel to modify massive software codes, but only needs to modify it in the visual interface, which significantly improves the efficiency of the changed parameter configuration information taking effect.
Smart Images

Figure CN119847717A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a resource allocation method and device. Background Art
[0002] With the development of computer technology, users publish content through clients, for example, users can publish videos through clients. In some scenarios, in order to promote content growth, users can get certain resources as rewards after publishing content through clients, for example, virtual resources such as small red flowers and customized avatars as rewards.
[0003] Currently, R&D personnel can write software codes for allocating resources, such as Structured Query Language (SQL). However, with this approach, once the resource allocation method changes, the R&D personnel need to rewrite the corresponding software code, and it takes a certain amount of time for the R&D personnel to write the software code. Therefore, it also takes a certain amount of time for the new resource allocation method to take effect, resulting in low efficiency in the implementation of the new resource allocation method.
[0004] Therefore, a solution is urgently needed to solve the above problems. Summary of the invention
[0005] In order to solve or at least partially solve the above technical problems, an embodiment of the present application provides a resource allocation method and device.
[0006] In a first aspect, an embodiment of the present application provides a resource allocation method, the method comprising:
[0007] Creating a processing flow corresponding to a target resource allocation scheme, the processing flow comprising a plurality of processing nodes for determining resource allocation parameters, each of the plurality of processing nodes for determining resource allocation parameters being used to: obtain an output parameter corresponding to the processing node according to an input parameter corresponding to the processing node and parameter determination information corresponding to the processing node, wherein the parameter determination information corresponding to the processing node is set in a visual interface, and the output parameter of the current processing node is used as an input parameter of the next working node;
[0008] The processing flow is executed, and a first resource value allocated to the target object is determined according to an output parameter of a last processing node among the plurality of processing nodes that determine resource allocation parameters.
[0009] Optionally, the at least one processing node for determining the resource allocation parameter includes a target node, and the target node determines the output parameter of the target node in the following manner:
[0010] Acquire the input parameter corresponding to the target node and the domain specific language corresponding to the parameter determination information corresponding to the target node;
[0011] The input parameter corresponding to the target node is processed based on the domain specific language to obtain the output parameter corresponding to the target node.
[0012] Optionally, the domain specific language is determined by:
[0013] Receiving the parameter determination information input in the information setting page corresponding to the target node;
[0014] According to the parameter determination information, a domain specific language corresponding to the parameter determination information is generated and saved.
[0015] Optionally, the processing the input parameter corresponding to the target node based on the domain specific language to obtain the output parameter corresponding to the target node includes:
[0016] The domain specific language and the input parameters corresponding to the target node are input into a computing engine, and the computing engine processes the input parameters corresponding to the target node based on the domain specific language to obtain output parameters corresponding to the target node. The computing engine is used to determine the output parameters corresponding to each processing node based on the domain specific language and input parameters corresponding to each processing node.
[0017] Optionally, the method further includes:
[0018] Executing a structured query language statement corresponding to the target resource allocation scheme to obtain a second resource value allocated to the target object;
[0019] If the first resource value and the second resource value are different, an alarm message is output.
[0020] Optionally, the parameter determination information includes: a parameter determination method and execution conditions that need to be met to execute the parameter determination method.
[0021] In a second aspect, an embodiment of the present application provides a resource allocation device, the device comprising:
[0022] A creation unit is used to create a processing flow corresponding to a target resource allocation scheme, wherein the processing flow includes a plurality of processing nodes for determining resource allocation parameters, and each of the plurality of processing nodes for determining resource allocation parameters is used to: obtain an output parameter corresponding to the processing node according to an input parameter corresponding to the processing node and parameter determination information corresponding to the processing node, wherein the parameter determination information corresponding to the processing node is set in a visual interface, and the output parameter of the current processing node is used as an input parameter of the next working node;
[0023] The first execution unit is used to execute the processing flow and determine a first resource value to be allocated to the target object according to an output parameter of a last processing node among the multiple processing nodes for determining resource allocation parameters.
[0024] Optionally, the at least one processing node for determining the resource allocation parameter includes a target node, and the target node determines the output parameter of the target node in the following manner:
[0025] Acquire the input parameter corresponding to the target node and the domain specific language corresponding to the parameter determination information corresponding to the target node;
[0026] The input parameter corresponding to the target node is processed based on the domain specific language to obtain the output parameter corresponding to the target node.
[0027] Optionally, the domain specific language is determined by:
[0028] Receiving the parameter determination information input in the information setting page corresponding to the target node;
[0029] According to the parameter determination information, a domain specific language corresponding to the parameter determination information is generated and saved.
[0030] Optionally, the processing the input parameter corresponding to the target node based on the domain specific language to obtain the output parameter corresponding to the target node includes:
[0031] The domain specific language and the input parameters corresponding to the target node are input into a computing engine, and the computing engine processes the input parameters corresponding to the target node based on the domain specific language to obtain output parameters corresponding to the target node. The computing engine is used to determine the output parameters corresponding to each processing node based on the domain specific language and input parameters corresponding to each processing node.
[0032] Optionally, the device further comprises:
[0033] A second execution unit, configured to execute a structured query language statement corresponding to the target resource allocation scheme to obtain a second resource value allocated to the target object;
[0034] An alarm unit is used to output an alarm message if the first resource value and the second resource value are different.
[0035] Optionally, the parameter determination information includes: a parameter determination method and execution conditions that need to be met to execute the parameter determination method.
[0036] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising a processor and a memory;
[0037] The processor is used to execute instructions stored in the memory so that the electronic device executes the method described in any one of the first aspects above.
[0038] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, wherein the instructions instruct a device to execute any of the methods described in the first aspect above.
[0039] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute any of the methods described in the first aspect above.
[0040] Compared with the prior art, the embodiments of the present application have the following advantages:
[0041] The embodiment of the present application provides a resource allocation method, which includes: creating a processing flow corresponding to a target resource allocation scheme, wherein the processing flow includes a plurality of processing nodes for determining resource allocation parameters. For each of the plurality of processing nodes, it is used to obtain the output parameter corresponding to the processing node according to the input parameter corresponding to the processing node and the parameter configuration information corresponding to the processing node, wherein the parameter determination information corresponding to the processing node is set in a visual interface, and the output parameter of the current processing node is used as the input parameter of the next processing node. After creating the processing flow, the processing flow can be executed, and the first resource value allocated to the target object is determined according to the output parameter of the last processing node in the plurality of processing nodes for determining resource allocation parameters. In the embodiment of the present application, since the parameter configuration information is set through a visual interface, if the parameter configuration information needs to be modified, it is not necessary for the R&D personnel to find the software code related to the parameter configuration information from the massive software code for modification, and only need to modify it in the visual interface, which improves the efficiency of the changed parameter configuration information taking effect. Moreover, the first resource value allocated to the target object is determined based on the processing flow, and each intermediate processing link to obtain the first resource value corresponds to a processing node in the processing flow, so that the intermediate processing links to obtain the first resource value are easy to trace and are also beneficial to the management and maintenance of the target resource allocation plan. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 A schematic diagram of a resource allocation method provided in an embodiment of the present application;
[0044] Figure 2 A schematic diagram of a process of another resource allocation method provided in an embodiment of the present application;
[0045] Figure 3 A schematic diagram of the structure of a resource allocation device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0047] The inventor of the present application has found through research that the software code (such as SQL statements) for allocating resources can be written by R&D personnel. However, in this way, once the resource allocation method changes, the R&D personnel need to rewrite the corresponding software code, and it takes a certain amount of time for the R&D personnel to write the software code. Specifically, the R&D personnel need to find the software code related to resource allocation from a large amount of software code and modify it. Therefore, it takes a certain amount of time for the new resource allocation method to take effect, which leads to low efficiency in the new resource allocation method taking effect.
[0048] Moreover, when writing SQL statements for allocating resources, once an abnormality occurs in resource allocation, it is necessary to analyze the software code for allocating resources to determine the cause of the abnormality. The inefficiency of determining the cause of the abnormality is not conducive to the management and maintenance of the resource allocation plan.
[0049] In order to solve the above problems, an embodiment of the present application provides a resource allocation method and device.
[0050] Various non-limiting implementations of the present application are described in detail below in conjunction with the accompanying drawings.
[0051] Exemplary Methods
[0052] See also Figure 1 , which is a flow chart of a resource allocation method provided in an embodiment of the present application. In one example, the resource allocation method provided in an embodiment of the present application can be executed by a server.
[0053] In this embodiment, the method may include the following steps: S101-S102.
[0054] S101: Create a processing flow corresponding to a target resource allocation scheme, the processing flow including a plurality of processing nodes for determining resource allocation parameters, each of the plurality of processing nodes for determining resource allocation parameters is used to obtain an output parameter corresponding to the processing node according to an input parameter corresponding to the processing node and parameter determination information corresponding to the processing node. The parameter determination information corresponding to the processing node is set in a visual interface, and the output parameter of the current processing node is used as the input parameter of the next processing node.
[0055] In one example, the server can trigger the process creation operation at a fixed time, for example, the server can trigger the process creation task at dawn every day. In another example, the server can be manually triggered by a user to perform the process creation operation.
[0056] In the embodiment of the present application, the processing flow is used to describe the various processing links involved in the target resource allocation scheme. For example, if the target resource allocation scheme is to allocate resources to an account that has published relevant content (such as a video) through a client, the target resource allocation scheme may involve multiple processing links that are executed in sequence.
[0057] In a specific example, the processing flow may include multiple processing nodes, each of the multiple processing nodes is used to determine the resource allocation parameter, and one processing node may correspond to one of the aforementioned processing links.
[0058] In the embodiment of the present application, the multiple processing nodes are executed in sequence, and for any two adjacent processing nodes, the output parameter of the current processing node is used as the input parameter of the next processing node. Each processing node in the multiple processing nodes is used to obtain the output parameter corresponding to the processing node based on the input parameter of the processing node and the parameter determination information corresponding to the processing node.
[0059] In the embodiment of the present application, for any processing node, the parameter determination information corresponding to the processing node can be set in the visual interface, that is, the user can set the parameter determination information corresponding to the processing link in the visual interface for each processing link, so as to obtain the output parameter corresponding to the processing link based on the parameter determination information and the input parameter corresponding to the processing link. It is precisely because the parameter configuration information is set through the visual interface that if the parameter configuration information needs to be modified, the R&D personnel do not need to find the software code related to the parameter configuration information from the massive software code to modify it, but only need to modify it in the visual interface, which improves the efficiency of the changed parameter configuration information taking effect.
[0060] In an embodiment of the present application, for any processing node (e.g., a target node), the parameter determination information corresponding to the processing node characterizes how to obtain the output parameters corresponding to the processing node based on the input parameters corresponding to the processing node. In a specific example, the parameter determination information corresponding to the processing node may include a parameter determination method (e.g., a formula) used to obtain the output parameters from the input parameters corresponding to the processing node. In another specific example, the parameter determination information may also include the execution conditions that need to be met to execute the aforementioned parameter determination method. Among them, the aforementioned formula includes, but is not limited to, any one or more of a linear function, a quadratic function, a cubic function, a logarithmic function, an inverse tangent function, etc.
[0061] In one example, for a target node, the parameter determination information corresponding to the target node may include one or more sub-information. When the parameter determination information corresponding to the target node includes one sub-information, the input of the sub-information is the input parameter of the target node, and the output of the sub-information is the output parameter of the target node. When the parameter determination information corresponding to the target node includes multiple sub-information, each of the multiple sub-information represents how to obtain the output parameter corresponding to the sub-information based on the input parameter corresponding to the sub-information. Among them, the multiple sub-information is executed in sequence, and for any two adjacent sub-information, the output parameter of the previous sub-information is used as the input parameter of the next sub-information. The input of the first sub-information in the multiple sub-information is the input parameter of the target node, and the output of the last sub-information in the multiple sub-information is the output parameter of the target node.
[0062] Regarding the output parameters corresponding to each processing node, it can be an intermediate parameter for calculating resources. It can also be a resource value, such as a resource value corresponding to a certain content, or a resource value allocated to an account. Regarding the input parameters of the first processing node among the aforementioned multiple processing nodes, it can be determined according to actual conditions, and the embodiments of this application do not make specific limitations. For example, it can be the category, duration, and other parameters of the published content, etc., which will not be described in detail here.
[0063] S102: Execute the processing flow, and determine a first resource value to be allocated to the target object according to an output parameter of a last processing node among the plurality of processing nodes for determining resource allocation parameters.
[0064] After the processing flow is created, the processing flow can be executed. After the processing flow is executed, the aforementioned multiple processing nodes can be executed in sequence, and accordingly, the server can obtain the output parameters of the last processing node among the aforementioned multiple processing nodes, and determine the first resource value allocated to the target object based on the output parameters of the last processing node. In a specific example, the output parameters of the last processing node may include parameters corresponding to multiple objects. The server can determine the parameters corresponding to the target object from the output parameters of the last processing node, and determine the first resource value allocated to the target object based on the parameters corresponding to the target object. For example, the parameters corresponding to the target object can be determined as the first resource value.
[0065] In the embodiment of the present application, the principle for each processing node in the aforementioned multiple nodes to determine its corresponding output parameter is the same. Next, the target node determining the output parameter of the target node is taken as an example for explanation.
[0066] In a specific example, the target node can obtain the input parameters corresponding to the target node, and obtain the domain-specific language (DSL) corresponding to the parameter determination information corresponding to the target node, and then process the input parameters corresponding to the target node based on the DSL to obtain the output parameters corresponding to the target node. In an example, the target node can determine the input data table and the fields corresponding to the input data for storing the input parameters corresponding to the target node according to the configuration information corresponding to the target node, and obtain the input parameters corresponding to the target node from the data table. After obtaining the output parameters corresponding to the target node, the output parameters can be written to the fields corresponding to the corresponding output data table based on the configuration information corresponding to the target node. Among them, the configuration parameters corresponding to the target node can be used to indicate the input data table corresponding to the target node, the fields corresponding to the input data, the output data table, and the fields corresponding to the output data.
[0067] In an example, the domain specific language corresponding to the target node may be generated after acquiring parameter determination information corresponding to the target node when the server creates the processing flow.
[0068] In another example, the domain-specific language corresponding to the target node can be generated by the server based on the parameter determination information input by the user after the user enters parameter determination information in the information setting page corresponding to the target node. After the server generates the domain-specific language, it can save the domain-specific language. Accordingly, during the execution phase of the processing flow, the target node can obtain the pre-saved domain-specific language, thereby processing the input parameters of the target node based on the domain-specific language. In this way, during the execution phase of the processing flow, there is no need to generate the domain-specific language in real time, thereby improving the flow efficiency of the processing flow.
[0069] In one example, the server may maintain a parameter calculation module corresponding to each processing node in each processing node, and one processing node corresponds to one parameter calculation module. For a target node, the calculation module corresponding to the target node may be used to obtain corresponding output parameters based on the domain specific language and input parameters.
[0070] In another example, the server can maintain a computing engine common to the aforementioned processing nodes. The computing engine is used to determine the output parameters corresponding to each processing node based on the domain-specific language and input parameters corresponding to each processing node. In other words, the input of the computing engine includes: domain-specific language and input parameters. In addition, the input parameters of the computing engine can also include the storage location of the output parameters. After the computing engine calculates the output parameters, the output parameters can be stored in the corresponding storage location. Each processing node can use the computing engine to calculate and store the output parameters. For the target node, the domain-specific language corresponding to the target node and the input parameters corresponding to the target node can be input into the computing engine, and the computing engine processes the input parameters corresponding to the target node based on the domain-specific language to obtain the output parameters corresponding to the target node. In this way, there is no need to develop corresponding computing modules for each node separately, and a general computing engine can be maintained, which is conducive to improving research and development efficiency, and accordingly, the effectiveness efficiency of the resource allocation scheme can be improved.
[0071] In a specific example, the input data table identifier, the fields corresponding to the input parameters, the output data table identifier, the fields corresponding to the output parameters, and the DSL can be input to the computing engine, and the computing engine determines the input data table through the input data table identifier, and reads the fields corresponding to the input parameters from the input data table, thereby obtaining the input parameters. Further, the DSL is executed to obtain the output parameters, and the output data table is determined based on the output data table representation, and the output parameters are written into the fields corresponding to the output parameters in the output data table. In the embodiment of the present application, the processing flow may include a main line, and the aforementioned multiple processing nodes are all nodes on the main line of the processing flow.
[0072] In one example, in order to verify the reliability of the processing flow, the SQL statement corresponding to the target resource allocation scheme can also be executed to obtain the second resource value allocated to the target object. For example, in the testing phase of the target resource allocation scheme, the traditional technology can be used to write the SQL statement corresponding to the target resource allocation scheme, and the SQL statement can be executed to obtain the second resource value allocated to the target object. After obtaining the second resource value, the first resource value and the second resource value can be compared. If the two are the same, it means that the calculation result of the processing flow is reliable. If the first resource value and the second resource value are different, an alarm message is output to facilitate the operation and maintenance personnel to troubleshoot the processing flow. After determining that the calculation result of the processing flow is reliable, the resource value allocated to the target object can no longer be calculated based on the SQL statement corresponding to the target resource allocation scheme, but only the aforementioned processing flow can be used to calculate the resource value allocated to the target object.
[0073] The resource allocation method provided in the embodiment of the present application is introduced above. Figure 2 The processing flow describes the process of the resource allocation method executed by the server.
[0074] See also Figure 2 , this figure is a process diagram of another resource allocation method provided in an embodiment of the present application.
[0075] like Figure 2 As shown, the server-side process scheduling engine triggers the creation of a process flow, which can include multiple processing nodes. Figure 2 Only processing nodes 201 and 202 are shown. Each processing node may correspond to one or more workers, and a worker includes a processing module and a monitoring module, wherein a worker may be understood as a software module or a function. Figure 2 The worker that calls the computing engine is shown in . The worker corresponding to the processing node 201 can obtain the configuration parameters corresponding to the processing node 201, and obtain the input data table (storing input parameters), DSL and output data table corresponding to the processing node.
[0076] Taking processing node 201 as an example, when the processing flow is transferred to processing node 201, processing node 201 calls back the worker corresponding to processing node 201, and the processing module of the worker corresponding to processing node 201 calls the computing engine, and inputs the input data table identifier corresponding to processing node 201, the fields corresponding to the input parameters, the output data table identifier, the fields corresponding to the output parameters, and the DSL to the computing engine, and the computing engine calculates the output parameters and writes the output parameters into the corresponding output data table. When the computing engine calculates the output parameters, it can obtain the input data and DSL, and construct and execute the corresponding SQL statement to obtain the output data. The monitoring module of the worker corresponding to processing node 201 is used to monitor the execution status of the processing module of the worker corresponding to processing node 201, and notify the execution status to processing node 201. After the processing module completes the calculation of the output parameters corresponding to processing node 201, the processing flow is transferred from the processing node 201 to processing node 202.
[0077] In addition, for any processing node, its corresponding parameter determination information is configured through a visual interface provided by the information configuration service. The information configuration service can determine the metadata corresponding to the input parameters involved in the parameter determination information based on the metadata provided by the meta-information service, and determine the identification information corresponding to the input parameters involved in the parameter determination information based on the metadata, and further generate and save the corresponding DSL. Accordingly, during the processing flow execution phase, the server can obtain the pre-stored DSL.
[0078] In addition, for a certain processing node, it can not only support workers that call the computing engine, but also support workers that perform other operations. For example, it can be used to execute fixed SQL statements. For another example, it can perform monitoring tasks. For another example, it can be used to perform statistics of corresponding data; for another example, it can perform alarm processing, etc., which will not be described in detail here.
[0079] Exemplary Devices
[0080] Based on the method provided in the above embodiment, the embodiment of the present application further provides a device, which is described below in conjunction with the accompanying drawings.
[0081] See also Figure 3 , which is a schematic diagram of the structure of a resource allocation device provided in an embodiment of the present application. The device 300 may specifically include: a creation unit 301 and a first execution unit 302.
[0082] A creation unit 301 is used to create a processing flow corresponding to a target resource allocation scheme, wherein the processing flow includes a plurality of processing nodes for determining resource allocation parameters, and each of the plurality of processing nodes for determining resource allocation parameters is used to: obtain an output parameter corresponding to the processing node according to an input parameter corresponding to the processing node and parameter determination information corresponding to the processing node, wherein the parameter determination information corresponding to the processing node is set in a visual interface, and the output parameter of the current processing node is used as an input parameter of the next working node;
[0083] The first execution unit 302 is used to execute the processing flow and determine the first resource value to be allocated to the target object according to the output parameter of the last processing node among the multiple processing nodes for determining the resource allocation parameters.
[0084] Optionally, the at least one processing node for determining the resource allocation parameter includes a target node, and the target node determines the output parameter of the target node in the following manner:
[0085] Acquire the input parameter corresponding to the target node and the domain specific language corresponding to the parameter determination information corresponding to the target node;
[0086] The input parameter corresponding to the target node is processed based on the domain specific language to obtain the output parameter corresponding to the target node.
[0087] Optionally, the domain specific language is determined by:
[0088] Receiving the parameter determination information input in the information setting page corresponding to the target node;
[0089] According to the parameter determination information, a domain specific language corresponding to the parameter determination information is generated and saved.
[0090] Optionally, the processing the input parameter corresponding to the target node based on the domain specific language to obtain the output parameter corresponding to the target node includes:
[0091] The domain specific language and the input parameters corresponding to the target node are input into a computing engine, and the computing engine processes the input parameters corresponding to the target node based on the domain specific language to obtain output parameters corresponding to the target node. The computing engine is used to determine the output parameters corresponding to each processing node based on the domain specific language and input parameters corresponding to each processing node.
[0092] Optionally, the device further comprises:
[0093] A second execution unit, configured to execute a structured query language statement corresponding to the target resource allocation scheme to obtain a second resource value allocated to the target object;
[0094] An alarm unit is used to output an alarm message if the first resource value and the second resource value are different.
[0095] Optionally, the parameter determination information includes: a parameter determination method and execution conditions that need to be met to execute the parameter determination method.
[0096] Since the device 300 is a device corresponding to the method provided in the above method embodiment, the specific implementation of each unit of the device 300 is based on the same concept as the above method embodiment. Therefore, for the specific implementation of each unit of the device 300, reference can be made to the description part of the above method embodiment, which will not be repeated here.
[0097] The embodiment of the present application also provides an electronic device, the electronic device comprising a processor and a memory;
[0098] The processor is used to execute the instructions stored in the memory, so that the electronic device executes the resource allocation method provided by the above method embodiment.
[0099] An embodiment of the present application provides a computer-readable storage medium, including instructions, wherein the instructions instruct a device to execute the resource allocation method provided in the above method embodiment.
[0100] An embodiment of the present application provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the resource allocation method provided in the above method embodiment.
[0101] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0102] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
[0103] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A resource allocation method, characterized in that: The method comprises: Creating a processing flow corresponding to a target resource allocation scheme, the processing flow comprising a plurality of processing nodes for determining resource allocation parameters, each of the plurality of processing nodes for determining resource allocation parameters being used to: obtain an output parameter corresponding to the processing node according to an input parameter corresponding to the processing node and parameter determination information corresponding to the processing node, wherein the parameter determination information corresponding to the processing node is set in a visual interface, and the output parameter of the current processing node is used as an input parameter of the next working node; The processing flow is executed, and a first resource value allocated to the target object is determined according to an output parameter of a last processing node among the plurality of processing nodes that determine resource allocation parameters.
2. The method according to claim 1, characterized in that: The at least one processing node for determining resource allocation parameters includes a target node, and the target node determines the output parameter of the target node in the following manner: Acquire the input parameter corresponding to the target node and the domain specific language corresponding to the parameter determination information corresponding to the target node; The input parameter corresponding to the target node is processed based on the domain specific language to obtain the output parameter corresponding to the target node.
3. The method according to claim 2, characterized in that The domain specific language is determined as follows: Receiving the parameter determination information input in the information setting page corresponding to the target node; According to the parameter determination information, a domain specific language corresponding to the parameter determination information is generated and saved.
4. The method according to claim 2, characterized in that: The processing of the input parameter corresponding to the target node based on the domain specific language to obtain the output parameter corresponding to the target node includes: The domain specific language and the input parameters corresponding to the target node are input into a computing engine, and the computing engine processes the input parameters corresponding to the target node based on the domain specific language to obtain output parameters corresponding to the target node. The computing engine is used to determine the output parameters corresponding to each processing node based on the domain specific language and input parameters corresponding to each processing node.
5. The method according to claim 1, characterized in that The method further comprises: Executing a structured query language statement corresponding to the target resource allocation scheme to obtain a second resource value allocated to the target object; If the first resource value and the second resource value are different, an alarm message is output.
6. The method according to claim 1, characterized in that The parameter determination information includes: a parameter determination method and execution conditions that need to be met for executing the parameter determination method.
7. A resource allocation device, characterized in that: The device comprises: A creation unit is used to create a processing flow corresponding to a target resource allocation scheme, wherein the processing flow includes a plurality of processing nodes for determining resource allocation parameters, and each of the plurality of processing nodes for determining resource allocation parameters is used to: obtain an output parameter corresponding to the processing node according to an input parameter corresponding to the processing node and parameter determination information corresponding to the processing node, wherein the parameter determination information corresponding to the processing node is set in a visual interface, and the output parameter of the current processing node is used as an input parameter of the next working node; The first execution unit is used to execute the processing flow and determine a first resource value to be allocated to the target object according to an output parameter of a last processing node among the multiple processing nodes for determining resource allocation parameters.
8. The device according to claim 7, characterized in that The at least one processing node for determining resource allocation parameters includes a target node, and the target node determines the output parameter of the target node in the following manner: Acquire the input parameter corresponding to the target node and the domain specific language corresponding to the parameter determination information corresponding to the target node; The input parameter corresponding to the target node is processed based on the domain specific language to obtain the output parameter corresponding to the target node.
9. An electronic device, characterized in that: The electronic device comprises a processor and a memory; The processor is configured to execute instructions stored in the memory, so that the electronic device executes the method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: The method comprises instructions for instructing a device to execute the method according to any one of claims 1 to 6.