CN116450311A - Decision task processing method, device, equipment and storage medium - Google Patents

Decision task processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN116450311A
CN116450311A CN202310213437.2A CN202310213437A CN116450311A CN 116450311 A CN116450311 A CN 116450311A CN 202310213437 A CN202310213437 A CN 202310213437A CN 116450311 A CN116450311 A CN 116450311A
Authority
CN
China
Prior art keywords
decision
data
result
external data
triggering
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310213437.2A
Other languages
Chinese (zh)
Inventor
张伟杰
张满
郭翔
黄晓瑜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202310213437.2A priority Critical patent/CN116450311A/en
Publication of CN116450311A publication Critical patent/CN116450311A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/484Precedence
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a method, a device, equipment and a storage medium for processing a decision task. Relates to the technical fields of artificial intelligence, big data, decision engines and automatic decision scheduling. The method comprises the following steps: responding to first external data fed back by an external data source, and acquiring a first decision in a decision task queue; acquiring a first pre-decision result of the overlapped data; performing a pre-decision according to the non-overlapped data to obtain a second pre-decision result; executing a first decision according to the first external data, the first data range, the pre-decision result and the decision configuration to obtain a first decision result, wherein the pre-decision result comprises a first pre-decision result and a second pre-decision result. When first external data is received, a first decision is called to start, the first external data fed back by the corresponding automatic external data source is realized, the response speed of the external data is improved, and the execution efficiency of decision tasks is improved. And repeated decisions for reducing overlapped data are realized, and the decision running time is reduced.

Description

Decision task processing method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the technical fields of artificial intelligence, big data, decision engines and automatic decision scheduling, in particular to a method, a device, equipment and a storage medium for processing a decision task.
Background
In the consumer finance scenario, a decision engine is used for risk control and marketing management. In general, a service person inputs input data required for running a decision engine into the decision engine, and the decision engine performs operation according to the input data to obtain output data for the service person to use.
The business personnel call the decision engine by establishing decision tasks, the decision tasks have pre-processing, and if different decision tasks have the condition that the pre-tasks overlap, the same pre-processing can be repeatedly executed, so that resource waste is caused. Meanwhile, if the input data required by the decision engine comprises external data provided by a third-party platform, the external data needs to be manually acquired, and when the external data is returned, the decision task is manually controlled to recover, so that time and labor are wasted. The above decision task processing method results in lower execution efficiency of decision tasks.
Disclosure of Invention
The application provides a method, a device, equipment and a storage medium for processing a decision task, which are used for solving the problem of low execution efficiency of the decision task in the prior art.
In a first aspect, an embodiment of the present application provides a method for processing a decision task, including:
responding to first external data fed back by an external data source, and acquiring a first decision in a decision task queue, wherein the first decision is a task which has triggered a first external data request;
acquiring a pre-decision of the first decision;
if the pre-decision is executed and the first data range of the first decision and the second data range of the pre-decision are overlapped, a first pre-decision result of overlapped data is obtained; performing pre-decision according to non-overlapped data in the first data range to obtain a second pre-decision result;
if the pre-decision is not executed, executing the pre-decision according to the first data range to obtain a pre-decision result of the first decision;
executing a first decision according to the first external data, the first data range, the pre-decision result and the decision configuration to obtain a first decision result, wherein the pre-decision result comprises a first pre-decision result and a second pre-decision result.
In a second aspect, an embodiment of the present application further provides a processing apparatus for a decision task, including:
a processing apparatus for decision tasks, comprising:
The external data response module is used for responding to the first external data fed back by the external data source, acquiring a first decision in the decision task queue, wherein the first decision is a task which has triggered a first external data request;
the first pre-decision acquisition module is used for acquiring a pre-decision of the first decision;
the first pre-decision processing module is used for acquiring a first pre-decision result of overlapped data if the pre-decision is executed and the first data range of the first decision is overlapped with the second data range of the pre-decision; performing pre-decision according to non-overlapped data in the first data range to obtain a second pre-decision result;
if the pre-decision is not executed, executing the pre-decision according to the first data range to obtain a pre-decision result of the first decision;
the first decision processing module is used for executing a first decision according to the first external data, the first data range, the front decision result and the decision configuration to obtain a first decision result, wherein the front decision result comprises a first front decision result and a second front decision result.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a memory communicatively coupled to the processor;
The memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored in the memory to implement the method for processing decision tasks as shown in the embodiments of the present application.
In a fourth aspect, embodiments of the present application further provide a computer readable storage medium, where computer executable instructions are stored, where the computer executable instructions are used to implement a processing method for a decision task as shown in the embodiments of the present application when executed by a processor.
In a fifth aspect, embodiments of the present application further provide a computer program product, including a computer program, which when executed by a processor implements a method for processing a decision task shown in embodiments of the present application.
According to the processing method of the decision task, a first decision in a decision task queue is obtained in response to first external data fed back by an external data source, wherein the first decision is a task triggered by a first external data request; acquiring a pre-decision of the first decision; if the pre-decision is executed and the first data range of the first decision and the second data range of the pre-decision are overlapped, a first pre-decision result of overlapped data is obtained; performing pre-decision according to non-overlapped data in the first data range to obtain a second pre-decision result; if the pre-decision is not executed, executing the pre-decision according to the first data range to obtain a pre-decision result of the first decision; executing a first decision according to the first external data, the first data range, the pre-decision result and the decision configuration to obtain a first decision result, wherein the pre-decision result comprises a first pre-decision result and a second pre-decision result. Compared with the prior art that the pre-processing is repeatedly operated and the external data is manually processed, the method and the device for processing the external data have the advantage that the problem of low execution efficiency of the decision task can be solved, after the first external data is obtained, the first task which triggers the first external data request can be found from a decision task team, and the first task is restarted. After the first task is started, the first data range of the first task is expanded by the first external data. And acquiring a pre-decision of the first task. If the first data range of the first decision and the second data range of the pre-decision overlap, and the pre-decision is executed, the pre-decision is processed on the overlapped data to obtain a first pre-decision result, and the first pre-decision result obtained by the pre-decision can be directly obtained. And performing pre-decision on the non-overlapped data to obtain a second pre-decision result, thereby avoiding the overlapped data from repeatedly performing the pre-decision of the first task. The first pre-decision result and the second pre-decision result form a pre-decision result of the first task. And if the pre-decision is not executed, executing the pre-decision according to the first data range to obtain a pre-decision result. And repeated decisions for reducing overlapped data are realized, and the decision running time is reduced. When first external data is received, a first decision is called to start, the first external data fed back by the corresponding automatic external data source is realized, the response speed of the external data is improved, and the execution efficiency of decision tasks is improved.
Drawings
FIG. 1 is a flowchart I of a method for processing decision tasks provided in an embodiment of the present application;
FIG. 2 is a second flowchart of a method for processing a decision task provided in an embodiment of the present application;
FIG. 3 is a flowchart III of a method of processing decision tasks provided in an embodiment of the present application;
FIG. 4 is a flowchart IV of a method for processing decision tasks provided in an embodiment of the present application;
FIG. 5 is a fifth flowchart of a method for processing decision tasks provided in an embodiment of the present application;
FIG. 6 is a schematic structural diagram of a processing device for decision tasks provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
In the consumer finance scenario, a decision engine is used for risk control and marketing management. In general, a service person inputs input data required for running a decision engine into the decision engine, and the decision engine performs operation according to the input data to obtain output data for the service person to use.
The business personnel call the decision engine by establishing decision tasks, the decision tasks have pre-processing, and if different decision tasks have the condition that the pre-tasks overlap, the same pre-processing can be repeatedly executed, so that resource waste is caused. Meanwhile, if the input data required by the decision engine comprises external data provided by a third-party platform, the external data needs to be manually acquired, and when the external data is returned, the decision task is manually controlled to recover, so that time and labor are wasted. The above decision task processing method results in lower execution efficiency of decision tasks.
The following describes the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. The processing of the information such as the user identification, the user card number and the like related by the invention all belong to the category conforming to national laws and regulations. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a decision task processing method provided in an embodiment of the present application, where the embodiment is applicable to a situation of decision task scheduling in a consumer finance scenario, and the method may be executed by an electronic device such as a server or a terminal. As shown in fig. 1, the method for processing a decision task provided in the present application includes:
s110, responding to first external data fed back by an external data source, and acquiring a first decision in a decision task queue, wherein the first decision is a task which has triggered a first external data request.
The first external data request is initiated by the first decision prior to initiation, after which the first task is suspended in the decision task queue. And distinguishing the first task from other tasks which do not trigger the first external data request in the decision task queue by adding an external request mark to the first task.
Alternatively, the first decision in the task queue may be obtained by:
obtaining data aging according to the first external data; and determining a first decision conforming to the data aging according to the decision task queue.
The data age is the effective time of the first external data, and an alternative effective time may be N days, such as 15 days. The data age of the first external data for the different decision tasks may be the same or different. The task with the external request mark is searched from the decision task degree column, and a first decision for initiating a first external data request is searched from the task with the external request mark.
S120, acquiring a front decision of the first decision.
The pre-decisions of the first decision may be obtained by accessing a control file. The pre-decision refers to a decision to be executed before the first decision is executed, and a pre-decision result obtained by the pre-decision can be used as a part of the original data of the first decision.
S130, if the pre-decision is executed and the first data range of the first decision is overlapped with the second data range of the pre-decision, acquiring a first pre-decision result of overlapped data; and executing the pre-decision according to the non-overlapped data in the first data range to obtain a second pre-decision result.
Due to the timeliness of the data, the timeliness of the pre-decisions of the first decision needs to coincide with the time at which the first decision is performed. Within the time of decision, judging whether the pre-decision is executed or not, and if the first data range of the first decision is overlapped with the second data range of the pre-decision, judging whether the pre-decision is executed or not. Illustratively, the timeliness of the pre-decisions is one day. The first data range and the second data range each include a plurality of decided user identities. The user identification may be user authorized information such as a user account number or a user card number.
If the pre-decision is executed and the first data range of the first decision overlaps with the second data range of the pre-decision, the first pre-decision result of the overlapped data is existing, and the first pre-decision result of the overlapped data obtained by the pre-decision can be directly read without executing the pre-decision again. And for the non-overlapped data, executing the pre-decision to obtain a second pre-decision result. The first pre-decision result and the second pre-decision result form a pre-decision result.
And S140, if the pre-decision is not executed, executing the pre-decision according to the first data range to obtain a pre-decision result of the first decision.
And S150, executing a first decision according to the first external data, the first data range, the pre-decision result and the decision configuration to obtain a first decision result, wherein the pre-decision result comprises a first pre-decision result and a second pre-decision result.
Optionally, executing the first decision according to the first external data, the first data range, the pre-decision result and the decision configuration, and obtaining the first decision result may be implemented by:
determining primary data of a first decision according to the first external data, the first data range and the front decision result; the method comprises the steps that original data and decision configuration are used as input data to be sent to a decision engine, and the decision engine is used for making decisions according to the original data to obtain a first decision result; and receiving a first decision result output by the decision engine.
The inputs to the decision engine may be raw data and decision configuration. The original data comprises first external data, a first data range and a pre-decision result. The first external data serves as an extension of the raw data, and the raw data of the first decision is updated. The decision configuration is used for configuring decision content. The existing decision engine may be used, and the use and selection of the decision engine may refer to the existing related art, which is not described herein.
According to the processing method of the decision task, a first decision in a decision task queue is obtained in response to first external data fed back by an external data source, wherein the first decision is a task triggered by a first external data request; acquiring a pre-decision of the first decision; if the pre-decision is executed and the first data range of the first decision and the second data range of the pre-decision are overlapped, a first pre-decision result of overlapped data is obtained; performing pre-decision according to non-overlapped data in the first data range to obtain a second pre-decision result; if the pre-decision is not executed, executing the pre-decision according to the first data range to obtain a pre-decision result of the first decision; executing a first decision according to the first external data, the first data range, the pre-decision result and the decision configuration to obtain a first decision result, wherein the pre-decision result comprises a first pre-decision result and a second pre-decision result. Compared with the prior art that the pre-processing is repeatedly operated and the external data is manually processed, the method and the device for processing the external data have the advantage that the problem of low execution efficiency of the decision task can be solved, after the first external data is obtained, the first task which triggers the first external data request can be found from a decision task team, and the first task is restarted. After the first task is started, the first data range of the first task is expanded by the first external data. And acquiring a pre-decision of the first task. If the first data range of the first decision and the second data range of the pre-decision overlap, and the pre-decision is executed, the pre-decision is processed on the overlapped data to obtain a first pre-decision result, and the first pre-decision result obtained by the pre-decision can be directly obtained. And performing pre-decision on the non-overlapped data to obtain a second pre-decision result, thereby avoiding the overlapped data from repeatedly performing the pre-decision of the first task. The first pre-decision result and the second pre-decision result form a pre-decision result of the first task. And if the pre-decision is not executed, executing the pre-decision according to the first data range to obtain a pre-decision result. And repeated decisions for reducing overlapped data are realized, and the decision running time is reduced. When first external data is received, a first decision is called to start, the first external data fed back by the corresponding automatic external data source is realized, the response speed of the external data is improved, and the execution efficiency of decision tasks is improved.
Fig. 2 is a flowchart second of a method for processing a decision task according to an embodiment of the present application. As shown in fig. 2, the processing method of the decision task includes the following steps:
s210, responding to first external data fed back by an external data source, and acquiring a first decision in a decision task queue, wherein the first decision is a task which has triggered a first external data request.
S220, acquiring a pre-decision of the first decision.
S230, if the pre-decision is executed and the first data range of the first decision is overlapped with the second data range of the pre-decision, acquiring a first pre-decision result of overlapped data; performing pre-decision according to non-overlapped data in the first data range to obtain a second pre-decision result;
and S240, if the pre-decision is not executed, executing the pre-decision according to the first data range to obtain a pre-decision result of the first decision.
S250, judging whether second external data are configured.
The first external data is an augmentation of the raw data of the first decision. All parameters required for decision making are recorded in the control file. However, the plurality of parameters are sequentially acquired in order, and the decision sequence in the control file may be to trigger the acquisition of the second external data after the acquisition of the first external data. Therefore, after the first external data fed back by the external data source is acquired, it is also necessary to determine whether the second external data is configured by the control file.
And S260, if the second external data is configured, triggering a second external data request, and suspending the first decision to a decision task queue.
If external data is configured, a second external data request is initiated to the external data source so that the external data source feeds back the second external data. After the second external data request is initiated, the first decision needs to wait in the process of waiting for the second external data feedback, so that the first decision is suspended to a decision task queue, and an external request mark is added for the first decision. When the second external data is returned, the execution returns to step 210.
S270, executing a first decision according to the first external data, the first data range, the pre-decision result and the decision configuration to obtain a first decision result, wherein the pre-decision result comprises a first pre-decision result and a second pre-decision result.
The processing method of the decision task provided by the embodiment of the invention can judge whether a new second external data request appears after the first external data is acquired, if so, the first decision is suspended to the decision task queue, the feedback of the second external data request is waited, the automatic processing of multiple external data requests is realized, and the execution efficiency of the decision task is improved.
Fig. 3 is a flowchart III of a method for processing a decision task according to an embodiment of the present application. As shown in fig. 3, the processing method of the decision task includes the following steps:
s301, triggering a second decision according to a preset scheduling strategy.
The first decision is referred to as a second decision when initiating the first external data request.
Alternatively, the second decision may be triggered according to any one or more of the following:
triggering when the control file reaches the card turning control condition, triggering when the time is matched with the holiday date, triggering when the time is matched with the task starting time when the time is preset, triggering when the time is matched with the preset time, or triggering by responding to a business person through a page button.
The card turning time can be configured in the control file, and when the card turning condition is reached, the card turning is triggered to start a second decision. Alternatively, the holiday date is obtained by the Hitachi application, and the second decision is triggered when the current date matches the holiday date. Or, tasks to be executed periodically such as daily, weekly, etc. are also called preset timing tasks; when the preset timed task start time is reached, a second decision is triggered.
S302, acquiring the primary data of the second decision and the decision configuration.
S303, if the first external data is configured in the original data, triggering a first external data request, and suspending the second decision to a decision task queue.
S304, responding to first external data fed back by an external data source, and acquiring a first decision in a decision task queue, wherein the first decision is a task which has triggered a first external data request.
Optionally, a first decision in the task queue is obtained, can be implemented by the following modes:
obtaining data aging according to the first external data; and determining a first decision conforming to the data aging according to the decision task queue.
S305, acquiring a pre-decision of the first decision.
S306, if the pre-decision is executed and the first data range of the first decision is overlapped with the second data range of the pre-decision, acquiring a first pre-decision result of overlapped data; and executing the pre-decision according to the non-overlapped data in the first data range to obtain a second pre-decision result.
S307, if the pre-decision is not executed, the pre-decision is executed according to the first data range, and a pre-decision result of the first decision is obtained.
S308, executing a first decision according to the first external data, the first data range, the pre-decision result and the decision configuration to obtain a first decision result, wherein the pre-decision result comprises a first pre-decision result and a second pre-decision result.
The current decision triggering mode is that service personnel trigger decision tasks through web pages, in other words, manual real-time triggering is needed. The method can not realize automatic decision triggering and has high labor cost. The processing method of the decision task provided by the embodiment of the invention can trigger the second decision according to the preset scheduling strategy, and can realize diversified decision triggering by configuring different preset scheduling strategies, thereby improving usability. In addition, when the triggered second decision is configured with the first external data, a first external data request is initiated to an external data source, feedback of the external data source is waited, and the second decision is suspended to a decision task queue, so that automatic scheduling of the decision task with the configuration of the external data source is realized, and execution efficiency of the decision task is improved.
Fig. 4 is a flowchart of a method for processing a decision task according to an embodiment of the present application. As shown in fig. 4, the processing method of the decision task includes the following steps:
s401, triggering a second decision according to a preset scheduling strategy.
Alternatively, the second decision may be triggered according to any one or more of the following:
triggering when the control file reaches the card turning control condition, triggering when the time is matched with the holiday date, triggering when the time is matched with the task starting time when the time is preset, triggering when the time is matched with the preset time, or triggering by responding to a business person through a page button.
S402, acquiring a pre-decision of the second decision.
S403, if the pre-decision is executed and the third data range of the second decision and the fourth data range of the pre-decision are overlapped, a third pre-decision result of overlapped data is obtained; and executing the pre-decision according to the non-overlapped data in the third data range to obtain a fourth pre-decision result.
And S404, if the pre-decision is not executed, executing the pre-decision according to the third data range to obtain a pre-decision result of the second decision.
S405, adding the pre-decision result to the primary data of the second decision.
S406, acquiring the primary data of the second decision and the decision configuration.
S407, if the first external data is configured in the original data, triggering the first external data request, and suspending the second decision to the decision task queue.
S408, responding to the first external data fed back by the external data source, and acquiring a first decision in a decision task queue, wherein the first decision is a task which has triggered a first external data request.
Alternatively, the first decision in the task queue may be obtained by:
obtaining data aging according to the first external data; and determining a first decision conforming to the data aging according to the decision task queue.
S409, acquiring a pre-decision of the first decision;
s410, if the pre-decision is executed and the first data range of the first decision is overlapped with the second data range of the pre-decision, acquiring a first pre-decision result of overlapped data; performing pre-decision according to non-overlapped data in the first data range to obtain a second pre-decision result;
s411, if the pre-decision is not executed, executing the pre-decision according to the first data range to obtain a pre-decision result of the first decision;
and S412, executing the first decision according to the first external data, the first data range, the pre-decision result and the decision configuration to obtain a first decision result, wherein the pre-decision result comprises a first pre-decision result and a second pre-decision result.
The processing method of the decision task provided by the embodiment of the invention can acquire the pre-decision of the second decision when the decision task is triggered for the first time, namely the second decision, and determine the overlapped data according to the fourth data range of the pre-decision and the third data range of the second decision, thereby further determining the third pre-decision result which can be directly acquired. And executing the pre-decision on the non-overlapped data without executing the pre-decision to obtain a fourth pre-decision result. The method and the device can avoid repeated execution of the same decision on the same data and improve the resource utilization rate.
Fig. 5 is a flowchart fifth of a method for processing a decision task according to an embodiment of the present application. As shown in fig. 5, the processing method of the decision task includes the following steps:
s510, responding to first external data fed back by an external data source, and acquiring a first decision in a decision task queue, wherein the first decision is a task which has triggered a first external data request.
S520, acquiring a pre-decision of the first decision;
s530, if the pre-decision is executed and the first data range of the first decision overlaps with the second data range of the pre-decision, acquiring a first pre-decision result of the overlapped data; performing pre-decision according to non-overlapped data in the first data range to obtain a second pre-decision result;
S540, if the pre-decision is not executed, executing the pre-decision according to the first data range to obtain a pre-decision result of the first decision.
S550, judging whether the configuration is the complement decision.
The business personnel can trigger the supplementary recording configuration through real-time communication modes such as web pages and the like. And when the triggered complement configuration is received, determining the complement decision configuration.
S560, if the complement decision configuration is performed, the original data is expanded according to the complement data.
And receiving the supplementary record of the decision configuration by the service personnel to obtain an intermediate table, and obtaining a final decision configuration table as decision configuration according to the intermediate table and the decision variable table of the decision configuration.
S570, executing a first decision according to the first external data, the first data range, the pre-decision result and the decision configuration to obtain a first decision result, wherein the pre-decision result comprises a first pre-decision result and a second pre-decision result.
The processing method of the decision task provided by the embodiment of the invention can provide the supplementary record interface of the decision configuration for the service personnel, the service personnel generates the intermediate table by carrying out supplementary record, and the final decision configuration table is obtained as the decision configuration according to the intermediate table and the decision variable table of the decision configuration, thereby improving the usability.
The embodiment of the application also provides a processing method of the decision task, which comprises the following steps:
s601, triggering a second decision according to a preset scheduling strategy.
Optionally, the second decision is triggered according to any one or more of the following ways: triggering when the control file reaches the card turning control condition, triggering when the time is matched with the holiday date, triggering when the time is matched with the task starting time when the time is preset, triggering when the time is matched with the preset time, or triggering by responding to a business person through a page button.
S602, acquiring a pre-decision of a second decision;
s603, if the pre-decision is executed and the third data range of the second decision is overlapped with the fourth data range of the pre-decision, a third pre-decision result of overlapped data is obtained; performing pre-decision according to the non-overlapped data in the third data range to obtain a fourth pre-decision result;
s604, if the pre-decision is not executed, executing the pre-decision according to the third data range to obtain a pre-decision result of the second decision;
s605, adding the pre-decision result to the primary data of the second decision.
S606, acquiring the primary data of the second decision and the decision configuration.
S607, judging whether the configuration of the complement decision is carried out;
S608, if the complement decision configuration is performed, the original data is expanded according to the complement data.
S609, if the first external data is configured in the original data, triggering the first external data request, and suspending the second decision to the decision task queue.
S610, responding to first external data fed back by an external data source, and acquiring a first decision in a decision task queue, wherein the first decision is a task which has triggered a first external data request.
Alternatively, the first decision in the task queue may be obtained by:
obtaining data aging according to the first external data; and determining a first decision conforming to the data aging according to the decision task queue.
S611, acquiring a front decision of the first decision;
s612, if the pre-decision is executed and the first data range of the first decision overlaps with the second data range of the pre-decision, acquiring a first pre-decision result of the overlapped data; and executing the pre-decision according to the non-overlapped data in the first data range to obtain a second pre-decision result.
And S613, if the pre-decision is not executed, executing the pre-decision according to the first data range to obtain a pre-decision result of the first decision.
S614, judging whether second external data is configured;
S615, if the second external data is configured, triggering a second external data request, and suspending the first decision to a decision task queue.
S616, judging whether the complement decision configuration is carried out;
s617, if the complement decision configuration is performed, the original data is expanded according to the complement data.
And S618, executing a first decision according to the first external data, the first data range, the pre-decision result and the decision configuration to obtain a first decision result, wherein the pre-decision result comprises a first pre-decision result and a second pre-decision result.
Optionally, executing the first decision according to the first external data, the first data range, the pre-decision result and the decision configuration, and obtaining the first decision result may be implemented by:
determining primary data of a first decision according to the first external data, the first data range and the front decision result; the method comprises the steps that original data and decision configuration are used as input data to be sent to a decision engine, and the decision engine is used for making decisions according to the original data to obtain a first decision result; and receiving a first decision result output by the decision engine.
When any decision task (the second decision or the first decision) is pulled up from the decision task queue, the judgment of the pre-decision, the judgment of the external data configuration, and the judgment of the supplementary decision configuration are all needed. When the external data source feeds back data (first external data or second external data), the external data expands the original data of the decision, and the original data changes, so that the above-mentioned judgment needs to be re-performed. In addition, when performing the pre-decision judgment and the external data matching judgment, the data aging needs to be considered.
At present, the operation of each decision strategy is not only variable input and result output, but also the time of strategy operation and multiplexing among different strategy results are considered, so that better resource utilization rate and maximum decision effect are achieved. However, the decision task scheduling of the conventional decision engine is single, and after the decision task is triggered, the decision task is sequentially executed according to the triggered time sequence, so that the decision data cannot be reused, and the decision scheduling is unreasonable. The method provided by the embodiment of the invention can comprehensively manage the front decision related to the decision and the related external data, and improves the decision execution efficiency and the overall stability.
Fig. 6 is a schematic structural diagram of a processing device for decision tasks according to an embodiment of the present application. As shown in fig. 6, the processing device for decision task includes: the external data response module 71, the first pre-decision acquisition module 72, the first pre-decision processing module 73 and the first decision processing module 74.
The external data response module 71 is configured to obtain a first decision in the decision task queue in response to the first external data fed back by the external data source, where the first decision is a task that has triggered the first external data request;
A first pre-decision acquisition module 72 for acquiring a pre-decision of the first decision;
a first pre-decision processing module 73, configured to obtain a first pre-decision result of the overlapped data if the pre-decision has been performed and there is an overlap between a first data range of the first decision and a second data range of the pre-decision; performing pre-decision according to non-overlapped data in the first data range to obtain a second pre-decision result;
if the pre-decision is not executed, executing the pre-decision according to the first data range to obtain a pre-decision result of the first decision;
the first decision processing module 74 is configured to execute a first decision according to the first external data, the first data range, the pre-decision result, and the decision configuration, and obtain a first decision result, where the pre-decision result includes a first pre-decision result and a second pre-decision result.
In some embodiments, the external data response module 71 is to:
obtaining data aging according to the first external data;
and determining a first decision conforming to the data aging according to the decision task queue.
In some embodiments, the method further comprises a second external data scheduling module for:
Judging whether second external data is configured; and if the second external data is configured, triggering a second external data request, and suspending the first decision to a decision task queue.
In some embodiments, the system further comprises a second decision triggering module and a second decision processing module;
the second decision triggering module is used for triggering a second decision according to a preset scheduling strategy;
the second decision processing module is used for acquiring the original data of the second decision and the decision configuration;
and if the first external data is configured in the original data, triggering the first external data request, and suspending the second decision to a decision task queue.
In some embodiments, the second decision triggering module is to:
triggering the second decision according to any one or more of the following: triggering when the control file reaches the card turning control condition, triggering when the time is matched with the holiday date, triggering when the time is matched with the task starting time when the time is preset, triggering when the time is matched with the preset time, or triggering by responding to a business person through a page button.
In some embodiments, the method further comprises a second pre-fetch module and a second pre-processing module:
the second pre-acquisition module is used for acquiring a pre-decision of the second decision;
The second pre-processing module is used for: if the pre-decision is executed and the third data range of the second decision and the fourth data range of the pre-decision are overlapped, a third pre-decision result of overlapped data is obtained; performing pre-decision according to the non-overlapped data in the third data range to obtain a fourth pre-decision result;
if the pre-decision is not executed, executing the pre-decision according to the third data range to obtain a pre-decision result of the second decision;
and adding the pre-decision result to the primary data of the second decision.
In some embodiments, the system further comprises a complement module; the complement module is used for:
judging whether the configuration is the complement decision configuration;
if the complement decision configuration is performed, the original data is expanded according to the complement data.
In some embodiments, the first decision processing module 74 is to:
determining primary data of a first decision according to the first external data, the first data range and the front decision result;
the method comprises the steps that original data and decision configuration are used as input data to be sent to a decision engine, and the decision engine is used for making decisions according to the original data to obtain a first decision result;
and receiving a first decision result output by the decision engine.
The external data response module 71 is configured to obtain, in response to first external data fed back by an external data source, a first decision in a decision task queue, where the first decision is a task that has triggered a first external data request. A first pre-decision acquisition module 72 for acquiring a pre-decision of the first decision. A first pre-decision processing module 73, configured to obtain a first pre-decision result of the overlapped data if the pre-decision has been performed and there is an overlap between a first data range of the first decision and a second data range of the pre-decision; performing pre-decision according to non-overlapped data in the first data range to obtain a second pre-decision result; if the pre-decision is not executed, executing the pre-decision according to the first data range to obtain a pre-decision result of the first decision. The first decision processing module 74 is configured to execute a first decision according to the first external data, the first data range, the pre-decision result, and the decision configuration, and obtain a first decision result, where the pre-decision result includes a first pre-decision result and a second pre-decision result. Compared with the prior art that the pre-processing is repeatedly operated and the external data is manually processed, the method and the device for processing the external data have the advantage that the problem of low execution efficiency of the decision task can be solved, after the first external data is obtained, the first task which triggers the first external data request can be found from a decision task team, and the first task is restarted. After the first task is started, the first data range of the first task is expanded by the first external data. And acquiring a pre-decision of the first task. If the first data range of the first decision and the second data range of the pre-decision overlap, and the pre-decision is executed, the pre-decision is processed on the overlapped data to obtain a first pre-decision result, and the first pre-decision result obtained by the pre-decision can be directly obtained. And performing pre-decision on the non-overlapped data to obtain a second pre-decision result, thereby avoiding the overlapped data from repeatedly performing the pre-decision of the first task. The first pre-decision result and the second pre-decision result form a pre-decision result of the first task. And if the pre-decision is not executed, executing the pre-decision according to the first data range to obtain a pre-decision result. And repeated decisions for reducing overlapped data are realized, and the decision running time is reduced. When first external data is received, a first decision is called to start, the first external data fed back by the corresponding automatic external data source is realized, the response speed of the external data is improved, and the execution efficiency of decision tasks is improved.
The processing device for decision tasks provided in the embodiment of the present application may be used to execute the technical scheme of the processing method for decision tasks in the above embodiment, and its implementation principle and technical effect are similar, and are not described herein again.
It should be noted that, it should be understood that the division of the modules of the above apparatus is merely a division of a logic function, and may be fully or partially integrated into a physical entity or may be physically separated. And these modules may all be implemented in software in the form of calls by the processing element; or can be realized in hardware; the method can also be realized in a form of calling software by a processing element, and the method can be realized in a form of hardware by a part of modules. For example, the external data response module 71 may be a processing element that is set up separately, may be implemented in a chip of the above-described apparatus, or may be stored in a memory of the above-described apparatus in the form of program codes, and the functions of the above-described external data response module 71 may be called and executed by a processing element of the above-described apparatus. The implementation of the other modules is similar. In addition, all or part of the modules can be integrated together or can be independently implemented. The processing element here may be an integrated circuit with signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in a software form.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 7, the electronic device may include: a transceiver 81, a processor 82, a memory 83.
Processor 82 executes computer-executable instructions stored in memory that cause processor 82 to perform the aspects of the embodiments described above. The processor 82 may be a general purpose processor including a central processing unit CPU, a network processor (network processor, NP), etc.; but may also be a digital signal processor DSP, an application specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.
The memory 83 is connected to the processor 82 via a system bus and communicates with each other, and the memory 83 is adapted to store computer program instructions.
The transceiver 81 may be used for data interaction with clients.
The system bus may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The system bus may be classified into an address bus, a data bus, a control bus, and the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus. The transceiver is used to enable communication between the database access device and other computers (e.g., clients, read-write libraries, and read-only libraries). The memory may include random access memory (random access memory, RAM) and may also include non-volatile memory (non-volatile memory).
The electronic device provided in the embodiment of the present application may be a server in the above embodiment.
The embodiment of the application also provides a chip for running the instruction, which is used for executing the technical scheme of the processing method of the decision task in the embodiment.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores computer instructions, and when the computer instructions run on a computer, the computer is caused to execute the technical scheme of the processing method of the decision task of the embodiment.
The embodiment of the application also provides a computer program product, which comprises a computer program, wherein the computer program is stored in a computer readable storage medium, the computer program can be read from the computer readable storage medium by at least one processor, and the technical scheme of the processing method of the decision task in the embodiment can be realized when the computer program is executed by the at least one processor.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the present application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (19)

1. A method for processing a decision task, comprising:
responding to first external data fed back by an external data source, and acquiring a first decision in a decision task queue, wherein the first decision is a task which has triggered a first external data request;
acquiring a pre-decision of the first decision;
if the pre-decision is executed and the first data range of the first decision is overlapped with the second data range of the pre-decision, a first pre-decision result of overlapped data is obtained; executing the pre-decision according to the non-overlapped data in the first data range to obtain a second pre-decision result;
if the pre-decision is not executed, executing the pre-decision according to the first data range to obtain a pre-decision result of the first decision;
executing the first decision according to the first external data, the first data range, a pre-decision result and the decision configuration to obtain a first decision result, wherein the pre-decision result comprises the first pre-decision result and the second pre-decision result.
2. The method of claim 1, wherein the obtaining a first decision in a task queue comprises:
obtaining data aging according to the first external data;
and determining a first decision conforming to the data aging according to the decision task queue.
3. The method of claim 1, further comprising, prior to performing a target decision based on the first external data, the first data range, a pre-decision result, and a decision configuration, obtaining a target decision result:
judging whether second external data is configured;
and if the second external data is configured, triggering a second external data request, and suspending the first decision to the decision task queue.
4. The method of claim 1, further comprising, prior to the first external data being fed back in response to the external data source:
triggering a second decision according to a preset scheduling strategy;
acquiring the primary data and decision configuration of the second decision;
and if the first external data is configured in the original data, triggering a first external data request, and suspending the second decision to the decision task queue.
5. The method of claim 4, wherein triggering the second decision according to the preset scheduling policy comprises:
Triggering the second decision according to any one or more of the following: triggering when the control file reaches the card turning control condition, triggering when the time is matched with the holiday date, triggering when the time is matched with the task starting time when the time is preset, triggering when the time is matched with the preset time, or triggering by responding to a business person through a page button.
6. The method of claim 4, further comprising, after triggering the second decision according to a preset scheduling policy:
acquiring a pre-decision of the second decision;
if the pre-decision is executed and the third data range of the second decision is overlapped with the fourth data range of the pre-decision, a third pre-decision result of overlapped data is obtained; executing the pre-decision according to the non-overlapped data in the third data range to obtain a fourth pre-decision result;
if the pre-decision is not executed, executing the pre-decision according to the third data range to obtain a pre-decision result of the second decision;
and adding a pre-decision result to the primary data of the second decision.
7. The method of claim 1, further comprising, prior to performing the first decision based on the first external data, the first data range, a pre-decision result, and a decision configuration, obtaining a first decision result:
Judging whether the configuration is the complement decision configuration;
if the complement decision configuration is performed, the original data is expanded according to the complement data.
8. The method of claim 1, wherein the performing the first decision based on the first external data, the first data range, a pre-decision result, and a decision configuration, resulting in a first decision result, comprises:
determining primary data of a first decision according to the first external data, the first data range and a pre-decision result;
the original data and the decision configuration are used as input data to be sent to a decision engine, and the decision engine is used for making a decision according to the original data to obtain a first decision result;
and receiving a first decision result output by the decision engine.
9. A processing apparatus for decision tasks, comprising:
the external data response module is used for responding to first external data fed back by an external data source, and acquiring a first decision in a decision task queue, wherein the first decision is a task which has triggered a first external data request;
the first pre-decision acquisition module is used for acquiring a pre-decision of the first decision;
the first pre-decision processing module is used for acquiring a first pre-decision result of overlapped data if the pre-decision is executed and the first data range of the first decision is overlapped with the second data range of the pre-decision; executing the pre-decision according to the non-overlapped data in the first data range to obtain a second pre-decision result;
If the pre-decision is not executed, executing the pre-decision according to the first data range to obtain a pre-decision result of the first decision;
the first decision processing module is used for executing the first decision according to the first external data, the first data range, a pre-decision result and the decision configuration to obtain a first decision result, and the pre-decision result comprises the first pre-decision result and the second pre-decision result.
10. The apparatus of claim 9, wherein the external data response module is configured to:
obtaining data aging according to the first external data;
and determining a first decision conforming to the data aging according to the decision task queue.
11. The apparatus of claim 9, further comprising a second external data scheduling module configured to:
judging whether second external data is configured; and if the second external data is configured, triggering a second external data request, and suspending the first decision to the decision task queue.
12. The apparatus of claim 9, further comprising a second decision triggering module and a second decision processing module;
The second decision triggering module is used for triggering a second decision according to a preset scheduling strategy;
the second decision processing module is used for acquiring the original data of the second decision and decision configuration;
and if the first external data is configured in the original data, triggering a first external data request, and suspending the second decision to the decision task queue.
13. The apparatus of claim 12, wherein the second decision triggering module is configured to:
triggering the second decision according to any one or more of the following: triggering when the control file reaches the card turning control condition, triggering when the time is matched with the holiday date, triggering when the time is matched with the task starting time when the time is preset, triggering when the time is matched with the preset time, or triggering by responding to a business person through a page button.
14. The apparatus of claim 12, further comprising a second pre-fetch module and a second pre-processing module:
the second pre-acquisition module is used for acquiring a pre-decision of the second decision;
the second pre-processing module is used for: if the pre-decision is executed and the third data range of the second decision is overlapped with the fourth data range of the pre-decision, a third pre-decision result of overlapped data is obtained; executing the pre-decision according to the non-overlapped data in the third data range to obtain a fourth pre-decision result;
If the pre-decision is not executed, executing the pre-decision according to the third data range to obtain a pre-decision result of the second decision;
and adding a pre-decision result to the primary data of the second decision.
15. The apparatus of claim 9, further comprising a complement module; the complement module is used for:
judging whether the configuration is the complement decision configuration;
if the complement decision configuration is performed, the original data is expanded according to the complement data.
16. The apparatus of claim 9, wherein the first decision processing module is configured to:
determining primary data of a first decision according to the first external data, the first data range and a pre-decision result;
the original data and the decision configuration are used as input data to be sent to a decision engine, and the decision engine is used for making a decision according to the original data to obtain a first decision result;
and receiving a first decision result output by the decision engine.
17. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 1-8.
18. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1-8.
19. A computer program product comprising a computer program which, when executed by a processor, implements the method of any of claims 1-8.
CN202310213437.2A 2023-02-28 2023-02-28 Decision task processing method, device, equipment and storage medium Pending CN116450311A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310213437.2A CN116450311A (en) 2023-02-28 2023-02-28 Decision task processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310213437.2A CN116450311A (en) 2023-02-28 2023-02-28 Decision task processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116450311A true CN116450311A (en) 2023-07-18

Family

ID=87119141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310213437.2A Pending CN116450311A (en) 2023-02-28 2023-02-28 Decision task processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116450311A (en)

Similar Documents

Publication Publication Date Title
CN105550370B (en) Input method and input system
CN109710402A (en) Method, apparatus, computer equipment and the storage medium of process resource acquisition request
CN112468879A (en) Television user scene switching method, device and terminal based on fingerprint identification
CN111190727A (en) Asynchronous memory destructuring method and device, computer equipment and storage medium
CN108520401B (en) User list management method, device, platform and storage medium
CN111260253A (en) Information sending method and device, computer equipment and storage medium
CN112529711B (en) Transaction processing method and device based on block chain virtual machine multiplexing
CN110928656B (en) Service processing method, device, computer equipment and storage medium
CN116450311A (en) Decision task processing method, device, equipment and storage medium
CN110852603A (en) High-throughput wind control data processing method, device, equipment and storage medium
CN113746932B (en) Network request merging method, device, electronic device and computer program product
CN115294979A (en) Method, apparatus, storage medium, and voice device for reducing voice response time
CN115599652A (en) Method, device, equipment and storage medium for testing system performance parameters
CN114666411A (en) Request processing method, device, server, storage medium and product
CN111125336A (en) Information prompting method, device, equipment and medium
CN117234512B (en) Method, system, electronic equipment and storage medium for rapidly developing business
CN117499539A (en) Method and device for dynamically distributing agents in two stages, computer equipment and storage medium
CN113599833B (en) Account login method, account login device, computing equipment and storage medium
CN114201279A (en) Timed task management method, device, system, electronic equipment and storage medium
CN114756573B (en) Data processing method, device and system
CN113901377B (en) Service calling method, device, storage medium and equipment of legacy system
CN102857524A (en) Assembly calling method and device
CN116501473A (en) Asynchronous task processing method, device, equipment and storage medium
CN110825736A (en) Method, device and system for asynchronously calling data
CN115658802A (en) Data synchronization method and device based on serial number, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination