CN107133741B - To-do task processing method and device, readable storage medium and electronic equipment - Google Patents

To-do task processing method and device, readable storage medium and electronic equipment Download PDF

Info

Publication number
CN107133741B
CN107133741B CN201710313055.1A CN201710313055A CN107133741B CN 107133741 B CN107133741 B CN 107133741B CN 201710313055 A CN201710313055 A CN 201710313055A CN 107133741 B CN107133741 B CN 107133741B
Authority
CN
China
Prior art keywords
fact
target
type
matching
matched
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.)
Active
Application number
CN201710313055.1A
Other languages
Chinese (zh)
Other versions
CN107133741A (en
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.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201710313055.1A priority Critical patent/CN107133741B/en
Publication of CN107133741A publication Critical patent/CN107133741A/en
Application granted granted Critical
Publication of CN107133741B publication Critical patent/CN107133741B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Tourism & Hospitality (AREA)
  • Theoretical Computer Science (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Educational Administration (AREA)
  • Game Theory and Decision Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a to-do task processing method, a to-do task processing device, a readable storage medium and an electronic device, wherein the method comprises the following steps: receiving a fact set of tasks to be handled; matching the facts in the fact set one by one according to a target fact type and an inputtable event corresponding to the target fact type; and when the matched fact meets a preset rule, executing the operation corresponding to the preset rule. Through the technical scheme, on one hand, the matching speed can be effectively improved, so that the processing efficiency of the tasks to be handled is improved. On the other hand, when the fact type or the event corresponding to the fact is modified or increased, only the modified fact type or the rule corresponding to the event which can be input and corresponds to the fact type needs to be modified or increased, and a mode of modifying a large number of codes and increasing the complexity of code logic in the prior art is not needed, so that the processing of the complex task to be handled is simplified, and the later maintenance is facilitated.

Description

To-do task processing method and device, readable storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of workflow processing, and in particular, to a to-do task processing method and apparatus, a readable storage medium, and an electronic device.
Background
The task to be handled is an important object in the workflow product, and is mainly used for processing the content needing manual processing in the business process flow. With the application of workflows in different industries and different service scenarios, the processing of tasks to be handled becomes more and more complex, such as the service functions of transfer, co-handling, bundling and reporting, and signing. The complex task to be handled is processed, so that the complexity of the workflow engine for processing the task to be handled is greatly increased, and the performance of the workflow engine is lower and lower.
Although the existing workflow products have processing flows for complex tasks to be handled, the modern codes generally adopt a hard coding mode, the more and more complex tasks to be handled lead to more and more complex code logic, the codes are more and more difficult to maintain, and a small function is added or modified to modify a plurality of places, so that the task processing module is more and more huge, and is inconvenient for later maintenance and upgrading.
Disclosure of Invention
The purpose of the disclosure is to provide a to-do task processing method, a to-do task processing device, a readable storage medium and an electronic device, which can perform quick matching and are easy and convenient to maintain.
In order to achieve the above object, according to a first aspect of the present disclosure, there is provided a to-do task processing method, including: receiving a fact set of tasks to be handled; matching the facts in the fact set one by one according to a target fact type and an inputtable event corresponding to the target fact type; and when the matched fact meets a preset rule, executing the operation corresponding to the preset rule.
Optionally, the matching the facts in the fact set one by one according to the target fact type and the inputtable event corresponding to the target fact type includes: and matching the facts in the fact set one by one according to a target fact type and an inputtable event corresponding to the target fact type and a preset matching sequence aiming at the target fact type.
Optionally, the preset rule is multiple; when the matched fact meets a preset rule, executing an operation corresponding to the preset rule, wherein the operation comprises the following steps: in the process of matching the facts in the fact set one by one, when one fact is matched from the fact set, if the matched fact meets a target rule, the operation corresponding to the target rule is executed, wherein the target rule is any one of a plurality of preset rules.
Optionally, the method further comprises: and returning the inputtable events corresponding to the target fact type and the target fact type if the currently matched facts do not meet the target rule, and matching the facts in the fact set one by one.
Optionally, the fact includes a first content and a second content, the first content is used for indicating a fact type corresponding to the fact, and the second content is used for indicating an event corresponding to the fact; the step of matching the facts in the fact set one by one according to the target fact type and the inputtable events corresponding to the target fact type includes: matching first content of facts in the fact set according to the target fact type; and matching second content of the fact of which the first content is matched with the target fact type according to the inputtable event corresponding to the target fact type when the fact of which the first content is matched with the target fact type is obtained.
According to a second aspect of the present disclosure, there is provided a to-do task processing apparatus, the apparatus including: the receiving module is used for receiving a fact set of tasks to be handled; the matching module is used for matching the facts in the fact set one by one according to a target fact type and the inputtable events corresponding to the target fact type; and the execution module is used for executing the operation corresponding to the preset rule when the matched fact meets the preset rule.
Optionally, the matching module is configured to: and matching the facts in the fact set one by one according to a target fact type and an inputtable event corresponding to the target fact type and a preset matching sequence aiming at the target fact type.
Optionally, the preset rule is multiple; the execution module is configured to: in the process of matching the facts in the fact set one by one, when one fact is matched from the fact set, if the matched fact meets a target rule, the operation corresponding to the target rule is executed, wherein the target rule is any one of a plurality of preset rules.
Optionally, the execution module is further configured to: and if the currently matched facts do not meet the target rule, the matching module is triggered again to match the facts in the fact set one by one according to the target fact type and the inputtable events corresponding to the target fact type.
Optionally, the fact includes a first content and a second content, the first content is used for indicating a fact type corresponding to the fact, and the second content is used for indicating an event corresponding to the fact; the matching module comprises: a first matching sub-module, configured to match a first content of a fact in the fact set according to the target fact type; and the second matching sub-module is used for matching the second content of the fact of which the first content is matched with the target fact type according to the inputtable event corresponding to the target fact type when the fact of which the first content is matched with the target fact type is obtained.
According to a third aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor, implements the steps of the to-do task processing method provided by the first aspect described above.
According to a fourth aspect of the present disclosure, there is provided an electronic device comprising: the computer-readable storage medium provided by the third aspect above; and one or more processors for executing the program in the computer-readable storage medium.
Through the technical scheme, on one hand, the facts in the fact set are matched one by one according to the target fact type and the inputtable event corresponding to the target fact type, the matching speed can be effectively increased, and therefore the processing efficiency of the tasks to be handled is improved. On the other hand, by judging whether the matched facts meet the preset rules and executing the corresponding operation when the matched facts meet the preset rules, when the fact types or the events corresponding to the facts are modified or increased in the process of processing the tasks to be handled, only the modified fact types or the rules corresponding to the events which can be input and correspond to the fact types need to be modified or increased, the rules of other fact types do not need to be affected, and a mode of greatly modifying codes and increasing the complexity of code logic does not need to be adopted in the prior art, so that the processing of the complex tasks to be handled is simplified, and the later maintenance is facilitated.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
FIG. 1 is a schematic diagram of a portion of a network for processing tasks to be handled;
FIG. 2 is a flowchart of a task processing method provided according to an embodiment of the present disclosure;
FIG. 3 is a flow diagram of an example implementation of matching facts in a fact set one-by-one based on a target fact type and an inputtable event corresponding to the target fact type;
FIG. 4 is a block diagram of a task processing device provided according to an embodiment of the present disclosure;
FIG. 5 is a block diagram of a matching module in a to-do task processing device according to another embodiment of the present disclosure;
FIG. 6 is a block diagram illustrating an electronic device in accordance with an exemplary embodiment;
FIG. 7 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
Before executing the to-do task processing method provided by the present disclosure, a rule needs to be written for each item of the to-do task, where the rule includes a matching condition and a processing operation corresponding to the matching condition, so as to construct a to-do task processing network according to the rule. Fig. 1 is a schematic diagram of a part of a network in a task processing network. In the process of constructing the network, the type of the sub-condition in each matching condition is used as a type node of the network, and the type node is in one-to-one correspondence with the target fact type. The processing process of the tasks to be handled is analyzed, and the target fact type of the tasks to be handled can be determined to be N types, wherein N is a positive integer, and the more complex the tasks to be handled are, the larger N is. Illustratively, as shown in fig. 1, N ═ 4, i.e., the target fact types of the to-do task include four types, i.e., "current state", "transition state", "transaction manner", and "transactor type".
After the target fact types are determined, the inputtable events corresponding to each fact type are determined according to the tasks to be processed. Illustratively, as shown in FIG. 1, the inputtable events corresponding to the "current state" include an active state, and a waste state; the inputtable events corresponding to the 'conversion state' comprise an operation state and a completion state, and the inputtable events corresponding to the 'handling mode' comprise single-person submission validity, multi-person submission validity and condition submission; the "transactor type" corresponds to an inputtable event that includes personnel and roles.
Taking the task transaction completion operation as an example, the rule is as follows: when the current state is the running state, the conversion state is the completion state, the handling mode is single handing over to be effective, and the handling human type is personnel, the handling operation is as follows: and setting the current task as a completion state, and setting other tasks of the business processing link as completion states. I.e. can be expressed as:
Figure BDA0001287702200000051
and after the target fact type and the inputtable events corresponding to the fact types are determined, constructing the to-do task processing network through a Rete algorithm. The target fact type corresponds to a type node in a network constructed by a Rete algorithm, events corresponding to each fact type can be input to correspond to an alpha node in the network, a beta node in the network is a node for processing facts matched with the alpha node, as shown in fig. 1, a joint node is a special beta node, the joint node has two inputs, one is a set of the facts matched before, the other is a currently matched fact, and the two inputs are processed in the joint node according to conditions of the joint node, so that a set corresponding to the current joint node is obtained and stored in the beta node. As shown in fig. 1, when the network is switched to the end node for processing, the β 2 node indicates that all the facts matched at this time satisfy a preset rule, so as to execute the operation corresponding to the end node in the end node, where the operation corresponding to the end node is the operation corresponding to the rule satisfied by all the facts matched at present, that is, the operation of "setting other tasks of the service processing link to a complete state" is executed. The β 1 node is both an end node and an intermediate node in another rule, and therefore, the node executes an operation corresponding to the node as the end node, that is, executes an operation of "setting a task to be handled to a completed state", and after the operation is executed, the node serves as the intermediate node, and continues to wait for a fact that a next matching is reached, and executes subsequent operations.
The to-do task processing network is used for matching facts in the fact set, so that when the facts meet the rules, the operations corresponding to the rules are executed.
Fig. 2 is a flowchart illustrating a to-do task processing method according to an embodiment of the present disclosure. As shown in fig. 2, the method is applied to the to-do task processing network, and includes:
in S21, a set of facts for the to-Do task is received.
Illustratively, the fact set of the to-do task includes: the four facts of "the current state is the running state", "the conversion state is the completion state", "the handling mode is the single hand-over effective", "handle the human being as the personnel", and the like.
In S22, the facts in the fact set are matched one by one according to the target fact type and the inputtable event corresponding to the target fact type.
Optionally, the facts in the fact set are matched one by one according to the target fact type and the inputtable events corresponding to the target fact type and a matching sequence preset for the target fact type.
Wherein the preset matching sequence for the target fact type is set when the to-do task processing network is constructed. Illustratively, in the network shown in FIG. 1, the types of target facts in the network include "current status", "transition status", "transacted mode", "transactor type". In the process of constructing the task processing network to be handled, the matching sequence of the target fact types is set to be the current state, the conversion state, the handling mode and the handler type in sequence.
In the technical scheme, the preset matching sequence is set according to the rules of the tasks to be handled when the task processing network is constructed, and matching of the facts in the fact set according to the matching sequence can effectively improve matching speed and accuracy, so that the processing efficiency of the tasks to be handled can be effectively improved.
Optionally, the fact includes a first content and a second content, the first content is used for indicating a fact type corresponding to the fact, and the second content is used for indicating an event corresponding to the fact. Taking the fact that the "current state is the running state" as an example, wherein the first content of the fact is the "current state" for indicating the fact type corresponding to the fact, in the to-do task processing network, the first content corresponds to the target fact type, the second content of the fact is the "running state" for indicating the event corresponding to the fact, and in the to-do task processing network, the second content corresponds to the inputtable event corresponding to the target fact type.
Fig. 3 is a flowchart of an exemplary implementation manner of matching facts in a fact set one by one according to a target fact type and an inputtable event corresponding to the target fact type, where:
in S31, the first content of the fact in the fact set is matched according to the target fact type.
For example, the matching process may also be performed according to a preset matching order. For example, the fact set includes four facts of "the current state is a running state", "the transition state is a completed state", "the transaction mode is single-person submission valid", and "the transaction mode is human-person". According to the matching sequence, the first matched target fact type is the current state, so that the facts in the fact set are matched to judge whether the fact that the first content is matched with the current state exists.
In S32, in obtaining the fact whose first content matches the target fact type, the second content of the fact whose first content matches the target fact type is matched according to the inputtable event corresponding to the target fact type.
As an example, in S31, when the fact that the first content matches the "current state" is matched, the second content of the fact is matched with the inputtable event corresponding to the "current state", and the fact type and the event corresponding to the fact are determined. As shown in fig. 1, in the to-do task processing network, the inputtable events corresponding to the "current state" include an active state, and a waste state. The second content of the fact matched in S31, that is, the event corresponding to the fact is matched with the inputtable event corresponding to the "current state", so that it can be determined that the event corresponding to the fact is in the "running state", and thus the fact that the "current state is in the running state" is matched. And according to the matching sequence, determining that the next target fact type to be matched is in a 'conversion state', and then matching the facts in the fact set by taking the 'conversion state' as the target fact type. The matching process is the same as the process of matching the facts in the fact set by using the "current state" as the target fact type, and is not described herein again.
Illustratively, after matching the facts of the current state being the running state and the transition state being the running state, and the transactor type being the role, the first content of the fact in the fact set needs to be matched with the target fact type of the "transaction mode" according to the matching sequence. In the process of matching the facts in the current fact set, the fact that the first content matches the "handling way" is not matched, at this time, the next target fact type, namely the "handler type", needs to be determined according to the preset matching sequence, and then the matching process is continuously executed.
In the above technical solution, after the matching of the fact type corresponding to the fact is completed, the matching is performed on the event corresponding to the fact. Through the technical scheme, when the events corresponding to the facts are matched, the matching can be performed only aiming at the inputtable events of the target fact type, so that the matching range is effectively reduced, the matching speed is improved, the task processing method to be handled is optimized, and the use by a user is facilitated.
In S23, when the matched fact satisfies the preset rule, an operation corresponding to the preset rule is performed.
Optionally, the preset rule is multiple. When the matched fact meets a preset rule, executing an operation corresponding to the preset rule, wherein the operation comprises the following steps:
in the process of matching the facts in the fact set one by one, when one fact is matched from the fact set, if the matched fact meets a target rule, the operation corresponding to the target rule is executed, wherein the target rule is any one of a plurality of preset rules.
And returning the inputtable events corresponding to the target fact type and the target fact type if the currently matched facts do not meet the target rule, and matching the facts in the fact set one by one.
Illustratively, the preset rule 1 is: and when the current state is a running state and the conversion state is a completion state, setting the current task to be the completion state.
The preset rule 2 is: and when the current state is the running state, the conversion state is the completion state, the handling mode is single-person submitting effective and the human type is handled, setting the current task as the completion state and setting other tasks of the business processing link as the completion state.
Illustratively, the fact set includes four facts, i.e., "the current state is the running state", "the transition state is the completion state", "the transaction mode is single-person submission effective", "the transaction mode is human-person", and the like. As shown in fig. 1, when the fact that the current state is the running state is matched, it is determined whether the currently matched fact meets a preset rule, and at this time, the matched fact does not meet the preset rule, and the matching process is continuously executed. When the fact that the conversion state is the completion state is matched, the beta 1 node (namely, the end node corresponding to the preset rule 1) is entered, and if the fact that is matched currently meets the preset rule 1 is judged, the operation corresponding to the preset rule 1 is executed, namely, the operation of setting the current task to the completion state is executed. At this time, when there are unmatched facts in the fact set, the matching process is continued until the matching of the facts in the fact set is completed. And when the matching is carried out in the real-time condition that the transaction mode is effective for single submission, the joint node is entered, and the matching process is continuously executed when the matched fact does not meet the preset rule. When the fact that the human type is handled is matched, entering a beta 2 node (namely an end node corresponding to the preset rule 2), judging that the matched fact meets the preset rule 2, executing the operation corresponding to the preset rule 2, and at the moment, finishing the operation of setting the current task to be in the finished state, so that the operation of setting other tasks of the business processing link to be in the finished state is only needed to be executed.
In the above technical solution, by matching facts in the fact set, it is determined whether the matched facts meet a preset rule, and when the preset rule is met, corresponding operations in the preset rule are executed. Through the technical scheme, on one hand, the facts in the fact set are matched one by one according to the target fact type and the inputtable event corresponding to the target fact type, the matching speed can be effectively increased, and therefore the processing efficiency of the tasks to be handled is improved. On the other hand, by executing the corresponding operation when the matched fact is judged to meet the preset rule, in the process of processing the task to be handled, when the fact type or the event corresponding to the fact is modified or increased, only the modified fact type or the rule corresponding to the event which can be input and corresponds to the fact type needs to be modified or increased, the rules of other fact types cannot be influenced, and a mode of modifying a large number of codes and increasing the complexity of code logic in the prior art is not needed, so that the processing of the complex task to be handled is simplified, and the later maintenance is facilitated.
According to a second aspect of the present disclosure, a to-do task processing apparatus is provided. Fig. 4 is a block diagram illustrating a task processing apparatus according to an embodiment of the present disclosure. As shown in fig. 4, the apparatus 10 includes:
a receiving module 100, configured to receive a fact set of tasks to be handled;
a matching module 200, configured to match facts in the fact set one by one according to a target fact type and an inputtable event corresponding to the target fact type;
and the executing module 300 is configured to execute an operation corresponding to the preset rule when the matched fact meets the preset rule.
Optionally, the matching module 200 is configured to:
and matching the facts in the fact set one by one according to a target fact type and an inputtable event corresponding to the target fact type and a preset matching sequence aiming at the target fact type.
Optionally, the preset rule is multiple; the execution module 300 is configured to:
in the process of matching the facts in the fact set one by one, when one fact is matched from the fact set, if the matched fact meets a target rule, the operation corresponding to the target rule is executed, wherein the target rule is any one of a plurality of preset rules.
Optionally, the executing module 300 is further configured to:
and if the currently matched facts do not meet the target rule, re-triggering the matching module 200 to match the facts in the fact set one by one according to the target fact type and the inputtable events corresponding to the target fact type.
Optionally, the fact includes a first content and a second content, the first content is used for indicating a fact type corresponding to the fact, and the second content is used for indicating an event corresponding to the fact; fig. 5 is a block diagram illustrating a matching module in a to-do task processing apparatus according to another embodiment of the present disclosure, and as shown in fig. 5, the matching module 200 includes:
a first matching sub-module 201, configured to match a first content of a fact in the fact set according to the target fact type;
and the second matching sub-module 202 is configured to, when a fact that the first content of the fact matches the target fact type is obtained, match the second content of the fact that the first content of the fact matches the target fact type according to the inputtable event corresponding to the target fact type.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 6 is a block diagram illustrating an electronic device 600 according to an example embodiment. As shown in fig. 6, the electronic device 600 may include: a processor 601, a memory 602, multimedia components 603, input/output (I/O) interfaces 604, and communication components 605.
The processor 601 is configured to control the overall operation of the electronic device 600 to complete all or part of the steps in the above-mentioned to-do task processing method. The memory 602 is used to store various types of data to support operation at the electronic device 600, such as instructions for any application or method operating on the electronic device 600 and application-related data, such as contact data, transmitted and received messages, pictures, audio, video, and so forth. The Memory 602 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia components 603 may include a screen and audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 602 or transmitted through the communication component 605. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 604 provides an interface between the processor 601 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 605 is used for wired or wireless communication between the electronic device 600 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding Communication component 605 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the electronic Device 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for executing the above-mentioned task Processing method.
In another exemplary embodiment, a computer readable storage medium including program instructions, such as the memory 602 including the program instructions, which are executable by the processor 601 of the electronic device 600 to perform the above-mentioned to-do task processing method, is also provided.
Fig. 7 is a block diagram illustrating an electronic device 700 in accordance with an example embodiment. For example, the electronic device 700 may be provided as a server. Referring to fig. 7, an electronic device 700 includes a processor 722, which may be one or more in number, and a memory 732 for storing computer programs that are executable by the processor 722. The computer programs stored in memory 732 may include one or more modules that each correspond to a set of instructions. Further, the processor 722 may be configured to execute the computer program to perform the to-do task processing method described above.
Additionally, the electronic device 700 may also include a power component 726 that may be configured to perform power management of the electronic device 700 and a communication component 750 that may be configured to enable communication, e.g., wired or wireless communication, of the electronic device 700. The electronic device 700 may also include input/output (I/O) interfaces 758. The electronic device 700 may operate based on an operating system stored in memory 732, such as Windows Server, Mac OS XTM, UnixTM, Linux, and the like.
In another exemplary embodiment, a computer readable storage medium including program instructions, such as the memory 732 including program instructions, which are executable by the processor 722 of the electronic device 700 to perform the above-mentioned to-do task processing method is also provided.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, various possible combinations will not be separately described in this disclosure.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (9)

1. A to-do task processing method is characterized by comprising the following steps:
receiving a fact set of tasks to be handled;
matching the facts in the fact set one by one according to a target fact type and an inputtable event corresponding to the target fact type;
when the matched fact meets a preset rule, executing an operation corresponding to the preset rule;
wherein the fact comprises a first content and a second content, the first content is used for indicating a fact type corresponding to the fact, and the second content is used for indicating an event corresponding to the fact;
the step of matching the facts in the fact set one by one according to the target fact type and the inputtable events corresponding to the target fact type includes:
matching first content of facts in the fact set according to the target fact type;
and matching second content of the fact of which the first content is matched with the target fact type according to the inputtable event corresponding to the target fact type when the fact of which the first content is matched with the target fact type is obtained.
2. The method according to claim 1, wherein matching facts in the fact set one by one according to a target fact type and an inputtable event corresponding to the target fact type comprises:
and matching the facts in the fact set one by one according to a target fact type and an inputtable event corresponding to the target fact type and a preset matching sequence aiming at the target fact type.
3. The method according to claim 1, wherein the preset rule is plural;
when the matched fact meets a preset rule, executing an operation corresponding to the preset rule, wherein the operation comprises the following steps:
in the process of matching the facts in the fact set one by one, when one fact is matched from the fact set, if the matched fact meets a target rule, the operation corresponding to the target rule is executed, wherein the target rule is any one of a plurality of preset rules.
4. The method of claim 3, further comprising:
and returning the inputtable events corresponding to the target fact type and the target fact type if the currently matched facts do not meet the target rule, and matching the facts in the fact set one by one.
5. A to-do task processing apparatus, the apparatus comprising:
the receiving module is used for receiving a fact set of tasks to be handled;
the matching module is used for matching the facts in the fact set one by one according to a target fact type and the inputtable events corresponding to the target fact type;
the execution module is used for executing the operation corresponding to the preset rule when the matched fact meets the preset rule;
wherein the fact comprises a first content and a second content, the first content is used for indicating a fact type corresponding to the fact, and the second content is used for indicating an event corresponding to the fact;
the matching module comprises:
a first matching sub-module, configured to match a first content of a fact in the fact set according to the target fact type;
and the second matching sub-module is used for matching the second content of the fact of which the first content is matched with the target fact type according to the inputtable event corresponding to the target fact type when the fact of which the first content is matched with the target fact type is obtained.
6. The apparatus according to claim 5, wherein the preset rule is plural;
the execution module is configured to:
in the process of matching the facts in the fact set one by one, when one fact is matched from the fact set, if the matched fact meets a target rule, the operation corresponding to the target rule is executed, wherein the target rule is any one of a plurality of preset rules.
7. The apparatus of claim 6, wherein the execution module is further configured to:
and if the currently matched facts do not meet the target rule, the matching module is triggered again to match the facts in the fact set one by one according to the target fact type and the inputtable events corresponding to the target fact type.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
9. An electronic device, comprising:
the computer-readable storage medium recited in claim 8; and
one or more processors to execute the program in the computer-readable storage medium.
CN201710313055.1A 2017-05-05 2017-05-05 To-do task processing method and device, readable storage medium and electronic equipment Active CN107133741B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710313055.1A CN107133741B (en) 2017-05-05 2017-05-05 To-do task processing method and device, readable storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710313055.1A CN107133741B (en) 2017-05-05 2017-05-05 To-do task processing method and device, readable storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN107133741A CN107133741A (en) 2017-09-05
CN107133741B true CN107133741B (en) 2020-12-25

Family

ID=59732649

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710313055.1A Active CN107133741B (en) 2017-05-05 2017-05-05 To-do task processing method and device, readable storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN107133741B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107886295A (en) * 2017-10-23 2018-04-06 东软集团股份有限公司 Flow template changing process method, device, readable storage medium storing program for executing and electronic equipment
CN108960584A (en) * 2018-06-13 2018-12-07 东软集团股份有限公司 Workflow task classification method, device, readable storage medium storing program for executing and electronic equipment
CN112712249A (en) * 2020-12-28 2021-04-27 中电金信软件有限公司 To-do task pushing method and device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866283A (en) * 2005-12-13 2006-11-22 华为技术有限公司 System and method for implementing regular system triggering
CN105635328A (en) * 2014-10-31 2016-06-01 中国科学院声学研究所 Method for improving rule engine response speed

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102170360B (en) * 2011-04-19 2013-08-28 北京思特奇信息技术股份有限公司 Mode matching method of rule engine and RETE network
CN103870898A (en) * 2012-12-11 2014-06-18 镇江京江软件园有限公司 Task decomposition method based on outsourcing service
CN103455611A (en) * 2013-09-06 2013-12-18 北京邮电大学 Data processing method for RFID (Radio Frequency Identification) middleware
US10332109B2 (en) * 2015-08-04 2019-06-25 Accenture Global Services Limited Data reconciliation
CN105677536A (en) * 2016-01-08 2016-06-15 上海斐讯数据通信技术有限公司 Implementing method for task messages and task system for implementing task messages
CN106022908A (en) * 2016-05-17 2016-10-12 中国建设银行股份有限公司 Method and system for querying information of assets and liabilities

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866283A (en) * 2005-12-13 2006-11-22 华为技术有限公司 System and method for implementing regular system triggering
CN105635328A (en) * 2014-10-31 2016-06-01 中国科学院声学研究所 Method for improving rule engine response speed

Also Published As

Publication number Publication date
CN107133741A (en) 2017-09-05

Similar Documents

Publication Publication Date Title
CN113342345A (en) Operator fusion method and device of deep learning framework
US10896178B2 (en) High performance query processing and data analytics
CN107133741B (en) To-do task processing method and device, readable storage medium and electronic equipment
US20230035910A1 (en) Method, system and device for parallel processing of data, and storage medium
US9542461B2 (en) Enhancing performance of extract, transform, and load (ETL) jobs
US11379259B2 (en) Worker thread manager
CN111198813A (en) Interface testing method and device
WO2017045450A1 (en) Resource operation processing method and device
US20200327001A1 (en) Message processing method and system, storage medium and electronic device
CN112787999B (en) Cross-chain calling method, device, system and computer readable storage medium
CN113139660A (en) Model reasoning method and device, electronic equipment and storage medium
CN108959571B (en) SQL statement operation method and device, terminal equipment and storage medium
CN112948081A (en) Method, device and equipment for processing task in delayed mode and storage medium
US20210303162A1 (en) Method, electronic device, and computer program product for recovering data
CN114792125B (en) Data processing method and device based on distributed training, electronic equipment and medium
CN116016686A (en) Method and device for determining node to be optimized, electronic equipment and medium
CN111694686B (en) Processing method and device for abnormal service, electronic equipment and storage medium
CN111080250B (en) Flow backspacing compensation method and device, storage medium and electronic equipment
CN112711602B (en) Method and device for running stored procedure, database system and storage medium
WO2020236360A1 (en) Remote operations application programming interface
CN114615144B (en) Network optimization method and system
CN115600671B (en) Data processing method, device, equipment and storage medium of deep learning framework
CN115526453B (en) Vehicle scheduling method, device, equipment and storage medium
CN113011494B (en) Feature processing method, device, equipment and storage medium
CN110727654B (en) Data extraction method and device for distributed system, server 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
GR01 Patent grant
GR01 Patent grant