Process configuration method, device, equipment and storage medium

By generating the first scheduling index and the second scheduling rule, the product transaction process is abstracted as a scheduling rule, which solves the problem of low efficiency in the development of financial product transaction programs in large banking systems and realizes unified processing and efficient development of the process.

CN114022282BActive Publication Date: 2025-09-09CHINA CONSTRUCTION BANK
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111317360.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-09
Publication Date
2025-09-09
Estimated Expiration
2041-11-09

AI Technical Summary

Technical Problem

In large banking systems, the rich and diverse categories of financial products require personal asset management components to develop separate purchase and transaction procedures for each type of product, resulting in low development efficiency and a large amount of repetitive work. In addition, the inconsistent parameters of different products make transactions complex and time-consuming.

Method used

By generating the first scheduling index and the second scheduling rule, the product transaction process is abstracted as a scheduling rule, the process steps of each process node are uniformly processed, and the process is configured using the preset scheduling rule table and scheduler to achieve unified processing of the process.

Benefits of technology

The development efficiency of product trading programs is improved, and there is no need to write a separate program for each product transaction. It supports multiple product transactions and is easy to expand.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114022282B_ABST
    Figure CN114022282B_ABST
Patent Text Reader

Abstract

This application provides a process configuration method, apparatus, device, and storage medium, relating to the field of computer technology, for improving the development efficiency of product trading programs. The method comprises: generating a first scheduling index based on product order information; obtaining a first scheduling rule that matches the first scheduling index from a preset first scheduling rule table; obtaining a second scheduling rule corresponding to each process step based on the call order corresponding to each process step; and executing the process step corresponding to each process node according to the second scheduling rule corresponding to each process step.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology and provides a process configuration method, apparatus, device and storage medium. Background Art

[0002] Currently, large banks offer a wide variety of financial products, including funds, wealth management products, securities, insurance, physical gold, account gold, account commodities, and agency gold. Typically, personal asset management components intelligently configure bank-wide products based on investment strategies and customer spending patterns. Consequently, each product purchase requires a specific purchase transaction process. This leads to significant workload in developing purchase transaction programs, complex transactions, time-consuming transaction registration, and non-functional performance bottlenecks. Furthermore, when purchasing products within the same category, different purchase transaction processes may need to be invoked due to inconsistent product parameters. Furthermore, when purchasing products with inconsistent attributes, the submitted request attributes can also differ significantly. Consequently, current personal asset management components require separate development of intelligently configured order purchase transaction services for specific product categories. Furthermore, separate development is also required for different models within the same product category. This results in extensive duplication of purchase transaction processes, leading to low efficiency.

[0003] Therefore, how to improve the development efficiency of product trading programs has become an urgent problem to be solved. Summary of the Invention

[0004] The embodiments of the present application provide a process configuration method, apparatus, device, and storage medium for improving the development efficiency of product transaction programs.

[0005] In one aspect, a process configuration method is provided, the method comprising:

[0006] Generate a first scheduling index based on product order information; wherein the product order information includes order-related information when a user conducts a product transaction;

[0007] Obtaining a first scheduling rule that matches the first scheduling index from a preset first scheduling rule table; wherein the preset first scheduling rule table is used to indicate a mapping relationship between each first scheduling index and each first scheduling rule, and the first scheduling rule includes process steps corresponding to each process node during a product transaction and a calling order of the process steps corresponding to each process node;

[0008] Obtaining, according to the calling order corresponding to each process step, a second scheduling rule corresponding to each process step; wherein, for one process step among the various process steps, the second scheduling rule includes execution parameters and execution mode required for executing the one process step;

[0009] According to the second scheduling rules corresponding to the respective process steps, the process steps corresponding to the respective process nodes are executed.

[0010] In one aspect, a text recognition device is provided, the device comprising:

[0011] A first scheduling index generating unit is configured to generate a first scheduling index based on product order information; wherein the product order information includes order-related information when a user conducts a product transaction;

[0012] a first scheduling rule acquisition unit, configured to acquire a first scheduling rule matching the first scheduling index from a preset first scheduling rule table; wherein the preset first scheduling rule table is used to indicate a mapping relationship between each first scheduling index and each first scheduling rule, and the first scheduling rule includes process steps corresponding to each process node during a product transaction, and a calling order of the process steps corresponding to each process node;

[0013] a second scheduling rule acquisition unit, configured to acquire, based on the calling order corresponding to each process step, a second scheduling rule corresponding to each process step; wherein, for one of the process steps, the second scheduling rule includes execution parameters and execution mode required for executing the one process step;

[0014] The process step execution unit is used to execute the process steps corresponding to each process node according to the second scheduling rules corresponding to each process step.

[0015] Optionally, the first scheduling index generating unit is specifically configured to:

[0016] Determine, based on the product order information, an order transaction type number, a transaction channel type number, an order channel type number, an order operation type number, an order type number, and an order product type number corresponding to the product order;

[0017] The order transaction type number, the transaction channel type number, the order channel type number, the order operation type number, the order type number, and the order product type number are assembled to generate the first scheduling index.

[0018] Optionally, the second scheduling rule acquisition unit is specifically configured to:

[0019] For one of the process steps, determining a position of the one process step in a calling sequence according to the first scheduling rule;

[0020] generating a second scheduling index corresponding to the process step according to the product order information and the position of the process step in the calling sequence;

[0021] A second scheduling rule matching the second scheduling index is obtained from a preset second scheduling rule table, wherein the preset second scheduling rule table is used to represent a mapping relationship between each second scheduling index and each second scheduling rule.

[0022] Optionally, the apparatus further includes a second scheduling index generating unit; wherein the second scheduling index generating unit is configured to:

[0023] Determining, based on the product order information and the position of the one process step in the calling sequence, an order transaction type number, a transaction channel type number, an order channel type number, an order operation type number, an order type number, an order product type number corresponding to the product order, and a scheduling identifier corresponding to the calling sequence of the one process step;

[0024] The order transaction type number, the transaction channel type number, the order channel type number, the order operation type number, the order type number, the order product type number, and the position number corresponding to the position of the process step in the calling sequence are assembled to generate the second scheduling index.

[0025] Optionally, the process step execution unit is specifically used to:

[0026] For one of the process steps, determining, according to a second scheduling rule corresponding to the one process step, execution parameters and execution mode required for executing the one process step;

[0027] Executing the one process step according to the execution parameter and the execution mode;

[0028] Obtaining an execution result after executing said one process step;

[0029] According to the execution result, a second scheduling rule corresponding to a next process step adjacent to the one process step is obtained; wherein the execution result includes an identifier of the next process step.

[0030] Optionally, the device further includes a scheduling rule storage unit; wherein the scheduling rule storage unit is configured to:

[0031] When a product transaction is conducted for the first time, a plurality of first scheduling rules and a plurality of second scheduling rules are obtained from a database;

[0032] storing the plurality of first dispatching rules and the plurality of second dispatching rules in an order scheduler;

[0033] Then, obtaining a first scheduling rule that matches the first scheduling index from a preset first scheduling rule table includes:

[0034] A first scheduling rule matching the first scheduling index is obtained from a preset first scheduling rule table stored in the order scheduler.

[0035] In one aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the above aspects when executing the computer program.

[0036] In one aspect, a computer storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the steps of the method described in the above aspect are implemented.

[0037] In an embodiment of the present application, a first scheduling index can be generated based on the product order information, and then a first scheduling rule matching the first scheduling index can be obtained from a preset first scheduling rule table, and then, the second scheduling rule corresponding to each process step can be obtained according to the calling order corresponding to each process step; thus, the process steps corresponding to each process node are executed according to the second scheduling rule corresponding to each process step. It can be seen that in an embodiment of the present application, since the product transaction process is abstracted into the first scheduling rule, and the process steps corresponding to each process node included in the first scheduling rule can be abstracted into the second scheduling rule, the product transaction process is unified, and then no matter what type and quantity of products are in the product transaction order, the technical solution provided by the embodiment of the present application can be used to conduct product transactions, without having to write a corresponding product transaction program for each product transaction process, which greatly improves the development efficiency of the product transaction program. It is also easy to expand when supporting other products in the future. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0039] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;

[0040] Figure 2 A schematic diagram of the comprehensive interface for personal asset management provided in an embodiment of the present application;

[0041] Figure 3 A flowchart of the process configuration method provided in an embodiment of the present application;

[0042] Figure 4 A schematic diagram of the process configuration for creating an order provided in an embodiment of the present application;

[0043] Figure 5 A schematic diagram of a process for obtaining a second scheduling rule according to an embodiment of the present application;

[0044] Figure 6 A schematic diagram of a flow chart for executing the second scheduling rule provided in an embodiment of the present application;

[0045] Figure 7 A flowchart illustrating a process configuration method provided in an embodiment of the present application;

[0046] Figure 8 A schematic diagram of the structure of the process configuration device provided in an embodiment of the present application;

[0047] Figure 9 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions 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, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other in any way. In addition, although a logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.

[0049] Currently, when purchasing each product category, a purchase transaction process specific to each product category must be obtained. This leads to significant development effort, complex transactions, time-consuming transaction registration, and non-functional performance bottlenecks. Furthermore, when purchasing products within the same category, different purchase transaction processes may need to be invoked due to inconsistent product parameters. Furthermore, when the product attributes of the purchased products differ, the submitted request attributes can also differ significantly. Consequently, current personal asset management components require separate development of intelligently configured order purchase transaction services for specific product categories. Furthermore, separate development is also required for different models within the same product category. This results in extensive duplication of purchase transaction process development, leading to low efficiency.

[0050] Based on this, in the embodiment of the present application, a first scheduling index can be generated according to the product order information, and then, a first scheduling rule matching the first scheduling index can be obtained from the preset first scheduling rule table, and then, the second scheduling rule corresponding to each process step can be obtained according to the calling order corresponding to each process step; thus, according to the second scheduling rule corresponding to each process step, the process step corresponding to each process node is executed. It can be seen that in the embodiment of the present application, since the product transaction process is abstracted as the first scheduling rule, and the process steps corresponding to each process node included in the first scheduling rule can be abstracted as the second scheduling rule, the product transaction process is unified, and then no matter what type and quantity of products are in the product transaction order, the technical solution provided by the embodiment of the present application can be used to conduct product transactions, without having to write a corresponding product transaction program for each product transaction process, which greatly improves the development efficiency of the product transaction program. It is also easy to expand when supporting other products in the future.

[0051] After introducing the design concepts of the embodiments of the present application, the following briefly introduces the application scenarios to which the technical solutions of the embodiments of the present application can be applied. It should be noted that the application scenarios introduced below are only used to illustrate the embodiments of the present application and are not limiting. In the specific implementation process, the technical solutions provided by the embodiments of the present application can be flexibly applied according to actual needs.

[0052] like Figure 1 As shown, it is a schematic diagram of an application scenario provided by an embodiment of the present application, wherein the application scenario of the process configuration may include a process configuration device 10 and a user terminal device 11.

[0053] The process configuration device 10 can be a computer device with a certain processing capability, such as a personal computer (PC), a laptop or a server. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms, but is not limited to this. The process configuration device 10 may include one or more processors 101, a memory 102, and an I / O interface 103 for interacting with other devices. In addition, the process configuration device 10 can also be configured with a database 104, which can be used to store data such as the first scheduling rule table and the second scheduling rule table involved in the solution provided in the embodiment of the present application. Among them, the memory 102 of the process configuration device 10 can store program instructions of the process configuration method provided in the embodiment of the present application. When these program instructions are executed by the processor 101, they can be used to implement the steps of the process configuration method provided in the embodiment of the present application to improve the development efficiency of the product trading program.

[0054] The user terminal device 11 has the function of conducting product transactions and placing product orders, and can be a mobile phone, tablet computer, laptop computer, personal computer or other device.

[0055] In an embodiment of the present application, when the I / O interface 103 detects product order information input from the user terminal device 11, it calls the program instructions of the process configuration method stored in the memory 102, and executes these program instructions through the processor 101, thereby performing process configuration on the product transaction process conducted by the user, and while completing the process configuration, improving the development efficiency of the product transaction program, and the first scheduling index, the second scheduling index and the execution result generated during the execution of the program instructions will be stored in the database 104.

[0056] like Figure 2 As shown, it is a schematic diagram of the personal asset management comprehensive interface provided in an embodiment of the present application, wherein the personal asset management comprehensive interface 20 can be composed of an order interface 201, an order processor 202, an order scheduler 203 and a Bean pool 204.

[0057] The order interface 201 is used to package the order request data from user product transactions and store all data required for subsequent process configuration into a Map using a "Key:Value" structure. This Map is used throughout the entire order creation and execution process to store various attributes, parameters, and result flags required during process configuration.

[0058] The order processor 202 can be used to process the order request data. For example, the order request data in the Map can be extracted and integrated into a scheduling index. After obtaining the Bean chain, each Bean node in the Bean chain can be scheduled sequentially.

[0059] The order scheduler 203 can be used to store multiple order scheduling rules. The order scheduling rule is a fixed index table. The order processor 202 can query the Bean chain to be operated next based on the order scheduling index. Through the Bean node, it can also query some user input parameters and configuration information based on the scheduling rule.

[0060] The Bean pool can be used to store all Bean nodes that perform specific operations. Each Bean node performs an operation corresponding to a smaller granularity, and the order processor 202 can serially call the Bean nodes in the Bean pool to complete a complete business function.

[0061] In one possible implementation, Figure 2 As shown, after the order interface 201 receives the user's product order request, the order interface 201 will send the packaged product order information to the order processor 202. Then, the order processor 202 generates a first scheduling index based on the received product order information, and queries the corresponding first scheduling rule from the order scheduler 203 based on the first scheduling index. Then, for the first scheduling rule, the order processor 202 will generate a second scheduling index, and find the corresponding Bean node from the Bean pool based on the second scheduling index. Then, the second scheduling rule corresponding to the Bean node will be queried from the order scheduler 203, and the process steps corresponding to the Bean node will be executed according to the second scheduling rule, thereby completing the process configuration of the business process and improving the development efficiency of the product transaction program.

[0062] Of course, the method provided in the embodiment of the present application is not limited to Figure 1 The application scenarios shown can also be used in other possible application scenarios, and the embodiments of this application are not limited thereto. Figure 1 The functions that can be realized by each device in the application scenario shown will be described in the subsequent method embodiments, and will not be described in detail here.

[0063] like Figure 3 As shown in the figure, it is a flow chart of the process configuration method provided in the embodiment of the present application. The method can be Figure 1 The process configuration device 10 is executed, and the process of this method is described as follows.

[0064] Step 301: Generate a first scheduling index based on product order information.

[0065] In an embodiment of the present application, product order information includes order-related information when a user conducts a product transaction.

[0066] In actual application, users can conduct product transactions on the user terminal device 11, that is, place product orders. Since each user usually conducts product transactions based on his or her own needs, the generated product orders may contain various types of products, and the purchase quantity of each type of product may also be different. Therefore, in order to describe the product order more comprehensively, the product order information should include information such as product type, product data, order amount, etc.

[0067] Step 302: Obtain a first scheduling rule that matches the first scheduling index from a preset first scheduling rule table.

[0068] In an embodiment of the present application, the preset first scheduling rule table is used to represent the mapping relationship between each first scheduling index and each first scheduling rule, and the first scheduling rule includes the process steps corresponding to each process node during product transactions, and the calling order of the process steps corresponding to each process node.

[0069] In actual application, the first scheduling rule can be represented by a Bean chain. Figure 4 As shown in FIG, a process configuration diagram of creating an order provided in an embodiment of the present application, a Bean chain can be composed of multiple Bean nodes, wherein each Bean node can be stored in a Bean pool, each Bean node can represent a process node, and each Bean node can correspond to a process step, such as Figure 4 As shown, these Bean nodes can be represented by letters such as A, B, C, and D. The process steps can be to determine whether "the field is empty", perform "data filtering and mapping", "query the database", and "process outbound call requests", etc. Among them, the process steps corresponding to the Bean node C can be set to determine whether "the field is empty", and the process steps corresponding to the Bean node A can be set to perform "data filtering and mapping", etc. Of course, the specific settings can be made according to user preferences and needs.

[0070] Furthermore, after knowing the first scheduling index, according to the mapping relationship between the first scheduling index and the first scheduling rule, that is, the mapping relationship between the first scheduling index and the Bean chain, the Bean chain that matches the first scheduling index can be obtained from the order scheduler 203. For example, the first scheduling index is "1|7|0038|20090038|Y1|08", and a Bean chain of the form "CAHFJJA" can be obtained from the order scheduler. Among them, the process step corresponding to the process node C is the first in the calling sequence, that is, in the Bean chain, the process step corresponding to the process node C is called first. Similarly, the process step corresponding to the process node A is the second in the calling sequence, that is, in the Bean chain, the process step corresponding to the process node A is called second, and so on.

[0071] Step 303: According to the calling order corresponding to each process step, obtain the second scheduling rule corresponding to each process step.

[0072] In the embodiment of the present application, for one of the process steps, the second scheduling rule includes execution parameters and execution methods required to execute the process step.

[0073] In practical applications, such as Figure 4 As shown, after obtaining the first scheduling rule that matches the first scheduling index, that is, after obtaining the Bean chain, according to the Bean chain, the process steps corresponding to each process node in the product transaction included in the Bean chain and the calling order of the process steps corresponding to each process node can be obtained from the Bean pool.

[0074] Then, according to the calling sequence of each process step, the second scheduling rule corresponding to each process step can be obtained from the order scheduler 203, such as Figure 4 As shown, the second scheduling rule may be rule I.0, rule I.1, rule I.2, and so on.

[0075] Step 304: Execute the process steps corresponding to the respective process nodes according to the second scheduling rules corresponding to the respective process steps.

[0076] In actual application, after obtaining the second scheduling rules corresponding to each process step, the process steps corresponding to each process node can be executed according to the second scheduling rules corresponding to each process step. For example, for process node C in the Bean chain, the process step corresponding to process node C is to determine whether "a field is empty", and its corresponding second scheduling rule is "Rule I.0". Because "Rule I.0" contains the parameters and calculation rules required for the process step corresponding to process node C to determine whether "a field is empty", the process step corresponding to process node C is executed to determine whether "a field is empty" based on the required parameters and calculation rules.

[0077] In one possible implementation, to better describe order-related information, in this embodiment of the present application, information such as product type, product data, and order amount included in product order information can be specifically divided into the following six categories:

[0078] (1) Order operation type

[0079] In practice, order operations can be categorized into two types: 1. Create an order; 2. Execute an order. "1" and "2" represent the corresponding order operation type numbers.

[0080] (2) Order Type

[0081] In practice, order types can be divided into seven categories: 1. Product Order; 2. Portfolio Order; 3. Sales Opportunity Order; 4. Demand Order; 5. Marketing Opportunity Order; 6. Asset Management Plan Order; and 7. Agricultural Support Order. "1," "2," ..., and "7" are the corresponding order type numbers.

[0082] (3) Order channel type

[0083] In practice, order channel types can be divided into two categories: 0038, Account Manager; and 0123, Agricultural Assistance App. "0038" and "0123" are the order operation type codes corresponding to the order channel types.

[0084] (4) Transaction initiation channel category

[0085] In actual applications, transaction initiation channel categories can be specifically divided into two categories: 20090038, Account Manager; 20490123, Agricultural Assistance App. "20090038" and "20490123" are the transaction initiation channel category numbers corresponding to the transaction initiation channel categories.

[0086] (5) Order transaction type

[0087] In practice, order transaction types can be divided into three categories: Y1, cash remittance; Y2, farmer withdrawal; and Y3, transfer remittance. "Y1," "Y2," and "Y3" are the corresponding order transaction type numbers.

[0088] (6) Applicable product types

[0089] In practice, applicable product types can be divided into nine categories: 01. Savings bonds; 02. Open-end funds; 03. Wealth management products; 04. Insurance agency; 05. Trust agency; 06. Segregated account management; 07. Personal physical precious metals; 08. Accounting; 09. Bill payment. "01," "02," ..., and "09" are the corresponding product type numbers.

[0090] Furthermore, after determining the order transaction type number, transaction channel type number, order channel type number, order operation type number, order type number and order product type number corresponding to the product order based on the product order information, the first scheduling index can be generated by assembling the order transaction type number, transaction channel type number, order channel type number, order operation type number, order type number and order product type number.

[0091] For example, if an order is created to transfer funds from a current account to a fixed account to help farmers, and the channel number is 20490123, then the corresponding first scheduling index of the business is "1|7|0123|20490123|T1|08".

[0092] In one possible implementation, Figure 5 As shown in the figure, it is a schematic diagram of the process of obtaining the second scheduling rule provided in the embodiment of the present application, which can be specifically achieved through Figure 1 The process in the configuration device 10 is executed, and the process is described as follows.

[0093] Step 501: For process step A in each process step, determine the position of process step A in the calling sequence according to the first scheduling rule.

[0094] For example, Figure 4 As shown, assuming that the first scheduling rule is "CAHFJJA", then for the process step "assign default value" corresponding to the Bean node H, it is located at the third calling position in the Bean chain, that is, it is the third called process step.

[0095] Step 502: Generate a second scheduling index corresponding to process step A based on the product order information and the position of process step A in the calling sequence.

[0096] In an embodiment of the present application, a "position number" can be used to indicate the position of a process step in a calling sequence, where it can be set according to the calling sequence of the process steps, for example, 0, the position is the first in the calling sequence; 1, the position is the second in the calling sequence; 2, the position is the third in the calling sequence; 3, the position is the fourth in the calling sequence; and so on.

[0097] After determining the position of the process step in the call sequence, the order transaction type number, transaction channel type number, order channel type number, order operation type number, order type number, order product type number corresponding to the product order, and the position number corresponding to the position of process step A in the call sequence can be determined based on the product order information and the position of process step A in the call sequence. Furthermore, a second scheduling index is generated by assembling the order transaction type number, transaction channel type number, order channel type number, order operation type number, order type number, order product type number, and the position number corresponding to the position of a process step in the call sequence.

[0098] For example, if you create an order to help farmers transfer current deposits to regular deposits, the channel number is 20490123, and the process step corresponding to the second Bean node in the Bean chain is called, then the corresponding second scheduling index of this business is "1|7|0123|20490123|T1|08|1".

[0099] Step 503: Obtain a second scheduling rule that matches the second scheduling index from a preset second scheduling rule table.

[0100] In the embodiment of the present application, the preset second scheduling rule table is used to represent the mapping relationship between each second scheduling index and each second scheduling rule.

[0101] For example, Figure 4 As shown, the second scheduling rule table may include various second scheduling rules, such as Rule I.0, Rule I.1, Rule I.2, Rule I.3, etc. Continuing with the above example, assuming that the corresponding second scheduling index of the service is "1|7|0123|20490123|T1|08|1", then, according to the second scheduling rule table, the second scheduling rule that matches the second scheduling index can be obtained as Rule I.1.

[0102] In a possible implementation, each second scheduling rule can be called in a serial call manner to complete a complete business function. Since the execution process of each process step is the same, the following is a specific introduction using the execution process step B as an example. Figure 6As shown, it is a schematic diagram of the process of executing the second scheduling rule provided in an embodiment of the present application, and the process is described as follows.

[0103] Step 601: For process step B among the various process steps, according to the second scheduling rule corresponding to process step B, the execution parameters and execution mode required for executing process step B are determined.

[0104] In practical applications, let's assume that process step B determines whether a field is a date. To execute this process step B, you need to know the execution parameters required for this determination and the execution method used to perform the determination. These execution parameters and the execution method together constitute the specific execution process of process step B. For example, if process step B is "1+2," the required execution parameters are "1" and "2," and the required execution method is the addition operation "+." Therefore, the execution parameters "1" and "2" can be processed using the "+" operation.

[0105] Step 602: Execute process step B according to the execution parameters and execution mode.

[0106] Continuing with the above example, assuming that when executing process step B, the required execution parameters are "1" and "2", and the required execution method is addition "+", then after knowing the execution parameters and execution method of process step B, process step B can be executed based on the execution parameters of "1" and "2" and the execution method of "+".

[0107] Step 603: Obtain the execution result after executing step B of the process.

[0108] Continuing with the above example, assuming that when executing process step B, the required execution parameters are "1" and "2", and the required execution method is through "+", then after executing process step B "1+2", the execution result "3" can be obtained.

[0109] Step 604: According to the execution result, obtain the second scheduling rule corresponding to the next process step adjacent to process step B.

[0110] In the embodiment of the present application, in order to accurately process the next process step, the execution result may include an identifier of the next process step. Of course, the execution result may also include an identifier of the process node corresponding to the next process step to accurately find the next process node to be processed.

[0111] In actual application, after finding the next process node based on the identifier of the next process step contained in the execution result, the second scheduling index corresponding to the next process step can be generated based on the product order information and the position of the next process step in the calling sequence, thereby obtaining the second scheduling rule that matches the second scheduling index corresponding to the next process step from the preset second scheduling rule table.

[0112] In one possible implementation, in order to speed up the query speed of the first scheduling rule and the second scheduling rule, when the product trading program is loaded for the first time, all records about the first scheduling rule and the second scheduling rule in the database can be added to the order scheduler 203, so that the scheduling rules used later are obtained from the local memory of the order scheduler 203 to speed up the query speed.

[0113] Specifically, when a product transaction is first conducted, multiple first and second scheduling rules can be retrieved from the database and stored in the order scheduler. Furthermore, when retrieving the first scheduling rule table, the first scheduling rule that matches the first scheduling index is retrieved from the preset first scheduling rule table stored in the order scheduler. Similarly, when retrieving the second scheduling rule, the second scheduling rule that matches the second scheduling index is retrieved from the preset second scheduling rule table stored in the order scheduler.

[0114] To further illustrate the technical solution of the present application, the following takes the process configuration process with two Bean nodes as an example to illustrate the process configuration method provided in the embodiment of the present application. Figure 7 FIG. 1 is a flow chart illustrating a flow configuration method according to an embodiment of the present application.

[0115] Step 701 : Acquire multiple first scheduling rules and multiple second scheduling rules from a database; and store the multiple first scheduling rules and multiple second scheduling rules in the order scheduler 203 .

[0116] Step 702 : After receiving the user product transaction request for a Class I order, the order interface 201 processes the product order information according to the user product transaction request and sends the processed product order information to the order processor 202 .

[0117] Step 703 : The order processor 202 generates a first scheduling index according to the processed product order information, and obtains a Bean chain matching the first scheduling index from a preset first scheduling rule table in the order scheduler 203 .

[0118] Step 704: The order processor 202 obtains the first Bean node of the Bean chain—Bean A—from the Bean pool.

[0119] Step 705: For Bean A, generate a second scheduling index based on the processed product order information and the position of Bean A in the calling sequence, and obtain the second scheduling rule Rule.I.0 that matches the second scheduling index from the preset second scheduling rule table in the order scheduler 203.

[0120] Step 706: Determine the execution parameters and execution mode required for executing the process step corresponding to Bean A from the second scheduling rule.

[0121] Step 707 : After the process steps corresponding to Bean A are executed, the execution result of Bean A is fed back to the order processor 202 .

[0122] Step 708: The order processor 202 obtains the first Bean node of the Bean chain—Bean B—from the Bean pool.

[0123] Step 709: For Bean B, generate a second scheduling index based on the processed product order information and the position of Bean B in the calling sequence, and obtain the second scheduling rule Rule.I.1 that matches the second scheduling index from the preset second scheduling rule table in the order scheduler 203.

[0124] Step 710: Determine the execution parameters and execution mode required for executing the process step corresponding to Bean B from the second scheduling rule.

[0125] Step 711 : After the process steps corresponding to Bean B are executed, the execution result of Bean B is fed back to the order processor 202 .

[0126] Step 712: The order processor 202 feeds back the execution results of Bean A and Bean B to the order interface 201 for the user to view.

[0127] In summary, in the embodiment of the present application, since the product transaction process is abstracted into the first scheduling rule, and the process steps corresponding to each process node included in the first scheduling rule can be abstracted into the second scheduling rule, the product transaction process is unified. Therefore, regardless of the type and quantity of products in the product transaction order, the technical solution provided by the embodiment of the present application can be used to conduct product transactions without having to write a corresponding product transaction program for each product transaction process, which greatly improves the development efficiency of the product transaction program. It is also easy to expand when supporting other products in the future.

[0128] like Figure 8 As shown, based on the same inventive concept, an embodiment of the present application provides a process configuration device 80, which includes:

[0129] The first scheduling index generating unit 801 is configured to generate a first scheduling index based on product order information, wherein the product order information includes order-related information when a user conducts a product transaction;

[0130] A first scheduling rule acquisition unit 802 is configured to acquire a first scheduling rule that matches the first scheduling index from a preset first scheduling rule table; wherein the preset first scheduling rule table is configured to indicate a mapping relationship between each first scheduling index and each first scheduling rule, and the first scheduling rule includes process steps corresponding to each process node during a product transaction and a calling order of the process steps corresponding to each process node;

[0131] The second scheduling rule acquisition unit 803 is configured to acquire a second scheduling rule corresponding to each process step according to the calling order corresponding to each process step; wherein, for each process step, the second scheduling rule includes execution parameters and execution mode required for executing the process step;

[0132] The process step execution unit 804 is configured to execute the process steps corresponding to the respective process nodes according to the second scheduling rules corresponding to the respective process steps.

[0133] Optionally, the first scheduling index generating unit 801 is specifically configured to:

[0134] Determine the order transaction type number, transaction channel type number, order channel type number, order operation type number, order type number, and order product type number corresponding to the product order based on the product order information;

[0135] The order transaction type number, the transaction channel type number, the order channel type number, the order operation type number, the order type number, and the order product type number are assembled to generate a first scheduling index.

[0136] Optionally, the second scheduling rule acquiring unit 803 is specifically configured to:

[0137] For one of the process steps, determining a position of the process step in the calling sequence according to a first scheduling rule;

[0138] Generate a second scheduling index corresponding to a process step according to the product order information and the position of a process step in the calling sequence;

[0139] A second scheduling rule matching the second scheduling index is obtained from a preset second scheduling rule table, wherein the preset second scheduling rule table is used to represent a mapping relationship between each second scheduling index and each second scheduling rule.

[0140] Optionally, the apparatus further includes a second scheduling index generating unit 805; wherein the second scheduling index generating unit is configured to:

[0141] Based on the product order information and the position of a process step in the calling sequence, determine the order transaction type number, transaction channel type number, order channel type number, order operation type number, order type number, order product type number corresponding to the product order, and the scheduling flag number corresponding to the calling sequence of a process step;

[0142] The order transaction type number, transaction channel type number, order channel type number, order operation type number, order type number, order product type number, and the position number corresponding to the position of a process step in the calling sequence are assembled to generate a second scheduling index.

[0143] Optionally, the process step execution unit 804 is specifically configured to:

[0144] For one of the process steps, determining, according to a second scheduling rule corresponding to the process step, execution parameters and execution methods required for executing the process step;

[0145] Execute a process step according to the execution parameters and execution mode;

[0146] Get the execution result after executing a process step;

[0147] According to the execution result, a second scheduling rule corresponding to a next process step adjacent to a process step is obtained; wherein the execution result includes an identifier of the next process step.

[0148] Optionally, the apparatus further includes a scheduling rule storage unit 806; wherein the scheduling rule storage unit is configured to:

[0149] When a product transaction is conducted for the first time, a plurality of first scheduling rules and a plurality of second scheduling rules are obtained from a database;

[0150] storing a plurality of first dispatching rules and a plurality of second dispatching rules in an order scheduler;

[0151] Then, a first scheduling rule matching the first scheduling index is obtained from a preset first scheduling rule table, including:

[0152] A first scheduling rule matching the first scheduling index is obtained from a preset first scheduling rule table stored in the order scheduler.

[0153] The device can be used to perform Figures 3 to 7 Therefore, for the functions that can be realized by each functional module of the device, please refer to Figures 3 to 7 The description of the embodiment shown is not repeated here. Figure 8 The functional units shown in the dotted boxes are non-essential functional units of the device.

[0154] See Figure 9 Based on the same technical concept, an embodiment of the present application also provides a computer device 90, which may include a memory 901 and a processor 902.

[0155] The memory 901 is used to store computer programs executed by the processor 902. The memory 901 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the computer device, etc. The processor 902 may be a central processing unit (CPU), or a digital processing unit, etc. The specific connection medium between the above-mentioned memory 901 and the processor 902 is not limited in the embodiment of the present application. The embodiment of the present application is Figure 9 In the embodiment, the memory 901 and the processor 902 are connected via a bus 903. The bus 903 is connected to the processor 902 via a bus 903. Figure 9 The bus 903 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 9 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.

[0156] Memory 901 may be a volatile memory, such as random-access memory (RAM); a non-volatile memory, such as read-only memory, flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. Memory 901 may be a combination of the above memories.

[0157] The processor 902 is configured to execute the following when calling the computer program stored in the memory 901: Figures 3 to 7 The method executed by the device in the embodiment shown.

[0158] In some possible implementations, various aspects of the method provided in the present application may also be implemented in the form of a program product, which includes program code. When the program product is run on a computer device, the program code is used to enable the computer device to perform the steps of the method according to various exemplary embodiments of the present application described above in this specification. For example, the computer device may perform the following steps: Figures 3 to 7 The method described in the embodiment shown.

[0159] Those skilled in the art will understand that all or part of the steps of the above-mentioned method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above-mentioned method embodiments. The aforementioned storage medium includes various media that can store program codes, such as mobile storage devices, read-only memory (ROM), random access memory (RAM), magnetic disks or optical disks. Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in various embodiments of the present invention. The aforementioned storage medium includes various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

[0160] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present application.

[0161] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.

Claims

1. A process configuration method, characterized in that: The method comprises: Generate a first scheduling index based on product order information; wherein the product order information includes order-related information when a user conducts a product transaction; Obtaining a first scheduling rule that matches the first scheduling index from a preset first scheduling rule table; wherein the preset first scheduling rule table is used to represent a mapping relationship between each first scheduling index and each first scheduling rule, and the first scheduling rule includes process steps corresponding to each process node during a product transaction and a calling order of the process steps corresponding to each process node; the first scheduling rule is represented by a Bean chain, and the Bean chain is composed of the process nodes determined from the Bean pool according to the first scheduling index in the calling order; Obtaining, according to the calling order corresponding to each process step, a second scheduling rule corresponding to each process step; wherein, for one process step among the various process steps, the second scheduling rule includes execution parameters and execution mode required for executing the one process step; Executing the process steps corresponding to the respective process nodes according to the second scheduling rules corresponding to the respective process steps; Among them, the obtaining of the second scheduling rules corresponding to each process step according to the calling sequence corresponding to each process step includes: executing the corresponding process step by any process node among the process nodes to obtain an execution result, wherein the execution result includes an identifier of the next process step of the corresponding process step; determining the next process node of any process node according to the identifier; generating a second scheduling index corresponding to the next process step according to the product order information and the position of the next process step in the calling sequence, and matching the corresponding second scheduling rule from a preset second scheduling rule table according to the second scheduling index.

2. The method according to claim 1, wherein Generate a first scheduling index based on the product order information, including: Determine, based on the product order information, an order transaction type number, a transaction channel type number, an order channel type number, an order operation type number, an order type number, and an order product type number corresponding to the product order; The order transaction type number, the transaction channel type number, the order channel type number, the order operation type number, the order type number, and the order product type number are assembled to generate the first scheduling index.

3. The method according to claim 1, wherein The acquiring, according to the calling order corresponding to each of the process steps, the second scheduling rule corresponding to each of the process steps includes: For one of the process steps, determining a position of the one process step in a calling sequence according to the first scheduling rule; generating a second scheduling index corresponding to the process step according to the product order information and the position of the process step in the calling sequence; A second scheduling rule matching the second scheduling index is obtained from a preset second scheduling rule table, wherein the preset second scheduling rule table is used to represent a mapping relationship between each second scheduling index and each second scheduling rule.

4. The method according to claim 3, wherein Generating a second scheduling index corresponding to the process step according to the product order information and the position of the process step in the calling sequence includes: Determining, based on the product order information and the position of the one process step in the calling sequence, an order transaction type number, a transaction channel type number, an order channel type number, an order operation type number, an order type number, an order product type number corresponding to the product order, and a position number corresponding to the position of the one process step in the calling sequence; The order transaction type number, the transaction channel type number, the order channel type number, the order operation type number, the order type number, the order product type number, and the position number corresponding to the position of the process step in the calling sequence are assembled to generate the second scheduling index.

5. The method according to claim 1, wherein Executing the process steps corresponding to the respective process nodes according to the second scheduling rules corresponding to the respective process steps, the method further comprising: For one of the process steps, determining, according to a second scheduling rule corresponding to the one process step, execution parameters and execution mode required for executing the one process step; Executing the one process step according to the execution parameter and the execution mode; Obtaining an execution result after executing said one process step; According to the execution result, a second scheduling rule corresponding to a next process step adjacent to the one process step is obtained; wherein the execution result includes an identifier of the next process step.

6. The method according to claim 1, wherein Before generating the first scheduling index according to the product order information, the method further includes: When a product transaction is conducted for the first time, a plurality of first scheduling rules and a plurality of second scheduling rules are obtained from a database; storing the plurality of first dispatching rules and the plurality of second dispatching rules in an order scheduler; Then, obtaining a first scheduling rule that matches the first scheduling index from a preset first scheduling rule table includes: A first scheduling rule matching the first scheduling index is obtained from a preset first scheduling rule table stored in the order scheduler.

7. A process configuration device, characterized in that: The device comprises: A first scheduling index generating unit is configured to generate a first scheduling index based on product order information; wherein the product order information includes order-related information when a user conducts a product transaction; A first scheduling rule acquisition unit is configured to acquire a first scheduling rule matching the first scheduling index from a preset first scheduling rule table; wherein the preset first scheduling rule table is configured to indicate a mapping relationship between each first scheduling index and each first scheduling rule, and the first scheduling rule includes process steps corresponding to each process node during a product transaction and a calling sequence of the process steps corresponding to each process node; the first scheduling rule is represented by a Bean chain, wherein the Bean chain is composed of the process nodes determined from the Bean pool according to the first scheduling index in the calling sequence; a second scheduling rule acquisition unit, configured to acquire, based on the calling order corresponding to each process step, a second scheduling rule corresponding to each process step; wherein, for one of the process steps, the second scheduling rule includes execution parameters and execution mode required for executing the one process step; a process step execution unit, configured to execute the process steps corresponding to the respective process nodes according to the second scheduling rules corresponding to the respective process steps; Among them, the second scheduling rule acquisition unit is specifically used to: execute the corresponding process step of any process node among the various process nodes to obtain an execution result, and the execution result includes an identifier of the next process step of the corresponding process step; determine the next process node of any process node according to the identifier; generate a second scheduling index corresponding to the next process step according to the product order information and the position of the next process step in the calling sequence, and match the corresponding second scheduling rule from the preset second scheduling rule table according to the second scheduling index.

8. The device according to claim 7, wherein The apparatus further includes a second scheduling index generating unit; wherein the second scheduling index generating unit is configured to: Determining, based on the product order information and the position of the one process step in the calling sequence, an order transaction type number, a transaction channel type number, an order channel type number, an order operation type number, an order type number, an order product type number corresponding to the product order, and a scheduling identifier corresponding to the calling sequence of the one process step; The order transaction type number, the transaction channel type number, the order channel type number, the order operation type number, the order type number, the order product type number, and the position number corresponding to the position of the process step in the calling sequence are assembled to generate the second scheduling index.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Process configuration method, computer-readable storage medium and terminal device

    CN109241097A

  • Task processing method and device, equipment and storage medium

    CN110941488A