A method and device for generating group tasks
By dynamically configuring task attributes and grouping attributes, the problem of inflexible generation of grouped tasks in the existing technology is solved, flexible adjustment of task attributes and grouping attributes is realized, adapting to business changes, reducing system maintenance costs and improving production efficiency.
Patent Information
- Application Number
- CN201910193454.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-03-14
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2039-03-14
AI Technical Summary
The existing method of generating grouped tasks is inflexible, and task attributes and grouping attributes cannot be dynamically configured. This results in the need to modify the code and re-roll the system when the business changes, which cannot adapt to needs, increases system maintenance costs and reduces production efficiency.
By configuring task attributes and grouping attributes, grouped tasks are dynamically generated, allowing flexible configuration of task attributes and grouping attributes, avoiding code modifications and system re-online, realizing dynamic changes in filtering conditions, and adapting to business needs.
It achieves flexibility and scalability of task generation, reduces system maintenance costs, improves task productivity, and can dynamically adjust task generation and grouping according to business changes.
Smart Images

Figure CN111695749B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for generating grouping tasks. Background Art
[0002] Many production task systems need to generate grouped tasks, that is, after generating tasks, group the tasks to obtain task groups, and merge the same tasks into one group, which can facilitate different personnel to operate different tasks, so as to improve the efficiency of task execution. For example, in the e-commerce logistics warehousing system, warehouse production operates the movement of goods in the warehouse according to the order type (such as sales order, purchase order, etc.). Complex e-commerce order types include as many as dozens of types, and the movement of goods for each order type will include a variety of different attributes, such as operating storage locations, merchants, warehouses, priorities, etc. In the process of generating grouped tasks, the system hard-codes the task attribute values and group attributes in the code.
[0003] Because some attribute values of different order types may change with the business, for example, the source storage location for picking required by the sales order generation task is usually the picking location, not the storage location, but in large-scale promotions, it may also be necessary to pick from the storage location. In this case, the existing solution needs to modify the code and re-launch the system, and it is impossible to dynamically change the filtering conditions. In addition, the grouping attributes may also change with the business. For example, tasks according to the same storage location are usually merged into a task group, so that the pickers pick from the same storage location every time, without having to go back and forth to the warehouse to pick up goods many times. However, in large-scale promotions, task grouping may not need to be specific to the storage location, but only needs to be grouped by storage area (a certain area in the warehouse where goods are stored). In this case, the existing solution also needs to modify the code and re-launch the system, and it is impossible to dynamically group according to business needs.
[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:
[0005] The grouping task generation method is not flexible, and the task attributes and grouping attributes cannot be dynamically configured. When the task attribute values and grouping attributes change, the filtering conditions cannot be changed dynamically, and the code needs to be modified and the system needs to be re-launched. It cannot adapt to changing business needs, and the system maintenance and upgrade costs are high, and the scalability is poor, which reduces the task production efficiency. Summary of the invention
[0006] In view of this, an embodiment of the present invention provides a method and device for generating group tasks, which can dynamically configure task attributes and group attributes. When the task attribute value and the group attribute change, only the configuration needs to be modified. The group tasks can be flexibly generated without modifying the code or re-launching the system. The filtering conditions can be dynamically changed to adapt to the changing needs of business, and the system maintenance and upgrade costs can be reduced. The scalability is good and the task production efficiency is high.
[0007] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for generating a grouping task is provided.
[0008] A method for generating grouped tasks includes: configuring relevant attributes of tasks to be generated, including configuring grouping attributes and task attributes of the tasks to be generated; generating tasks according to the configured task attributes; and grouping the generated tasks according to the configured grouping attributes to obtain grouped tasks.
[0009] Optionally, the step of generating a task according to the configured task attributes includes: judging whether the task to be generated meets the generation conditions according to the attribute values of the configured task attributes; and performing an operation of generating the task on the task to be generated if the task to be generated meets the generation conditions.
[0010] Optionally, the task attributes include variable attributes, and configuring the task attributes of the task to be generated includes: configuring the correspondence between the variable attributes and attribute value search information; judging whether the task to be generated meets the generation conditions according to the attribute values of the configured task attributes, comprising: searching for the attribute value set of the corresponding variable attributes through the attribute value search information; judging whether there is an attribute value in the attribute value set that matches the attribute value of the task to be generated, and if so, the task to be generated meets the generation conditions, otherwise, the task to be generated does not meet the generation conditions.
[0011] Optionally, the task attributes include non-variable attributes, and configuring the task attributes of the task to be generated includes: configuring the attribute value of the non-variable attribute; based on the attribute value of the configured task attribute, judging whether the task to be generated meets the generation condition, comprising: judging whether the attribute value of the configured non-variable attribute is equal to the attribute value of the task to be generated, if so, the task to be generated meets the generation condition, otherwise, the task to be generated does not meet the generation condition.
[0012] Optionally, configuring the grouping attributes of the task to be generated includes: configuring the correspondence between the grouping attribute name of the task to be generated and the grouping field name; the step of grouping the generated tasks according to the configured grouping attributes includes: reading the corresponding grouping field name according to the grouping attribute name of the task to be generated; reading the grouping field value of the generated task corresponding to the grouping field name, and grouping the generated tasks according to the grouping field value.
[0013] According to another aspect of an embodiment of the present invention, a device for generating a grouping task is provided.
[0014] A device for generating grouped tasks, comprising: an attribute configuration module, used to configure relevant attributes of the tasks to be generated, including configuring the grouping attributes and task attributes of the tasks to be generated; a task generation module, used to generate tasks according to the configured task attributes; and a task grouping module, used to group the generated tasks according to the configured grouping attributes to obtain grouped tasks.
[0015] Optionally, the task generation module is further used to: determine whether the task to be generated meets the generation condition according to the attribute value of the configured task attribute; and perform a task generation operation on the task to be generated if the task to be generated meets the generation condition.
[0016] Optionally, the task attributes include variable attributes, and the attribute configuration module includes a first task attribute configuration unit: used to configure the correspondence between the variable attributes and attribute value search information; the task generation module includes a first judgment unit, used to: search for the attribute value set of the corresponding variable attribute through the attribute value search information; judge whether there is an attribute value in the attribute value set that matches the attribute value of the task to be generated, if so, the task to be generated meets the generation condition, otherwise, the task to be generated does not meet the generation condition.
[0017] Optionally, the task attributes include non-variable attributes, and the attribute configuration module includes a second task attribute configuration unit: used to configure the attribute value of the non-variable attribute; the task generation module includes a second judgment unit, used to: judge whether the attribute value of the configured non-variable attribute is equal to the attribute value of the task to be generated, if so, the task to be generated meets the generation condition, otherwise, the task to be generated does not meet the generation condition.
[0018] Optionally, the attribute configuration module includes a grouping attribute configuration unit, which is used to: configure the correspondence between the grouping attribute name and the grouping field name of the task to be generated; the task grouping module is also used to: read the corresponding grouping field name according to the grouping attribute name of the task to be generated; read the grouping field value of the generated task corresponding to the grouping field name, and group the generated tasks according to the grouping field value.
[0019] According to yet another aspect of the embodiments of the present invention, an electronic device is provided.
[0020] An electronic device comprises: one or more processors; a memory for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method for generating grouping tasks provided by the present invention.
[0021] According to yet another aspect of an embodiment of the present invention, a computer readable medium is provided.
[0022] A computer readable medium stores a computer program, which, when executed by a processor, implements the method for generating grouping tasks provided by the present invention.
[0023] An embodiment of the above invention has the following advantages or beneficial effects: configuring the relevant attributes of the task to be generated, including configuring the grouping attributes and task attributes of the task to be generated; generating the task according to the configured task attributes; grouping the generated tasks according to the configured grouping attributes to obtain the grouped tasks. The task attributes and grouping attributes can be configured dynamically. When the task attribute values and grouping attributes change, only the configuration needs to be modified. The grouped tasks can be generated flexibly without modifying the code or re-launching the system. The filtering conditions can be changed dynamically when the task attribute values change, adapting to the changing needs of the business, and reducing the system maintenance and upgrade costs. The scalability is good and the task production efficiency is high.
[0024] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0026] Figure 1 is a schematic diagram of the main steps of the method for generating grouping tasks according to the first embodiment of the present invention;
[0027] Figure 2 A schematic diagram of a task engine interface according to a second embodiment of the present invention;
[0028] Figure 3A schematic diagram of a data filter configuration table according to a third embodiment of the present invention;
[0029] Figure 4 is a schematic diagram of a task grouping configuration table according to a fourth embodiment of the present invention;
[0030] Figure 5 is a schematic diagram of a process for generating a grouping task according to a fifth embodiment of the present invention;
[0031] Figure 6 is a schematic diagram of main modules of a device for generating grouping tasks according to an embodiment of the present invention;
[0032] Figure 7 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0033] Figure 8 It is a schematic diagram of the structure of a computer system suitable for implementing a server of an embodiment of the present invention. DETAILED DESCRIPTION
[0034] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0035] Those skilled in the art will appreciate that the embodiments of the present invention may be implemented as a system, device, apparatus, method or computer program product. Therefore, the present disclosure may be implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.
[0036] Figure 1 4 is a schematic diagram of main steps of a method for generating grouping tasks according to a first embodiment of the present invention.
[0037] like Figure 1 As shown, the method for generating grouping tasks in this embodiment mainly includes the following steps S101 to S103.
[0038] Step S101: configuring relevant attributes of the task to be generated, including configuring the grouping attributes and task attributes of the task to be generated.
[0039] Configuring the grouping attributes of the tasks to be generated specifically includes: configuring the corresponding relationship between the grouping attribute names and the grouping field names of the tasks to be generated. The configured corresponding relationship between the grouping attribute names and the grouping field names can be saved in a task grouping configuration table.
[0040] The task attributes may include variable attributes, and configuring the task attributes of the task to be generated may include: configuring a correspondence between the variable attributes and the attribute value search information.
[0041] The attribute value search information can be an SQL (Structured Query Language) statement, which is used to search for attribute value sets. By configuring the correspondence between variable attributes and attribute value search information, the correspondence between variable attributes and corresponding attribute value sets is determined. When it is necessary to dynamically change conditions according to business needs, by modifying the configuration, specifically, only the SQL statement in the configuration needs to be modified, and the dynamic correspondence between variable attributes and corresponding attribute value sets can be achieved, thereby achieving dynamic change of the filtering conditions for task generation when generating tasks.
[0042] Variable attributes refer to the attributes of tasks whose attribute values can change dynamically. For example, in an e-commerce warehouse system, during non-promotional periods, the source storage location that the sales order generation task needs to pick up is the picking location, so the attribute value set corresponding to the storage location screening attribute (a task attribute) of the sales order generation task is the picking location set. During the big promotion period, the source storage location that the sales order generation task needs to pick up can be the picking location and the storage location, so the attribute value set corresponding to the storage location screening attribute of the above sales order generation task needs to be changed to a set of picking locations and storage locations. The attribute values corresponding to the storage location screening attribute change dynamically according to business needs. This type of attribute is called a variable attribute.
[0043] Among them, storage location refers to the shelf where goods are stored in the warehouse. There are multiple storage locations under a certain storage area; picking location refers to the storage location used by the warehouse to pick goods and store them; storage location refers to the storage location used by the warehouse to store goods.
[0044] The task attributes may further include non-variable attributes, and configuring the task attributes of the task to be generated may further include: configuring the attribute value of the non-variable attribute.
[0045] Non-variable attributes are relative to the concept of variable attributes. They refer to attributes in a task whose attribute values do not need to change dynamically. Taking the e-commerce warehouse system as an example, non-variable attributes include: source document type attribute, whose attribute value is "sales outbound", priority attribute, whose attribute value is "1" (priority refers to the order in which different orders are produced, and sales orders usually have the highest priority), etc.
[0046] Step S102: Generate a task according to the configured task attributes.
[0047] Step S102 may specifically include, judging whether the task to be generated meets the generation condition according to the attribute value of the configured task attribute;
[0048] When the task to be generated meets the generation condition, the operation of generating the task is performed on the task to be generated.
[0049] For variable attributes, the step of judging whether the task to be generated meets the generation condition according to the attribute value of the configured task attribute may specifically include:
[0050] Search information through attribute values to find the attribute value set of the corresponding variable attribute;
[0051] It is determined whether there is an attribute value matching the attribute value of the task to be generated in the found attribute value set. If so, the task to be generated meets the generation condition. Otherwise, the task to be generated does not meet the generation condition.
[0052] For example, if the attribute value of the storage location filter attribute of a sales order generation task is storage location, and the attribute value set found according to the configured storage location filter attribute does not include storage location, then the task is judged as not meeting the generation conditions and will be filtered out and cannot be generated. If the attribute value set found according to the configured storage location filter attribute includes storage location, then the task can be generated normally.
[0053] The embodiment of the present invention enables the task attribute value to change dynamically as the business changes. For example, during the non-promotion period, if the source storage location that the sales order generation task needs to pick up is the picking location, then the attribute value search information corresponding to the storage location screening attribute of the task can be configured as an SQL statement for finding the picking location, and the corresponding attribute value set found is the picking location set; during the big promotion period, if the source storage location that the sales order generation task needs to pick up is the picking location and the storage location, then the attribute value search information corresponding to the storage location screening attribute of the task can be modified to an SQL statement for finding the picking location and the storage location, and the corresponding attribute value set found is the picking location and the storage location set, so that during the non-promotion period, when the attribute value of the sales order generation task is the picking location, the task can be generated normally, and during the non-promotion period, by modifying the SQL statement, when the attribute value of the sales order generation task is the picking location and the storage location, the task can also be generated normally. The embodiment of the present invention only needs to modify the configuration when the task attribute value changes, and can dynamically change the filtering conditions for task generation without modifying the code or re-launching the system. It can better adapt to business change needs, reduce system maintenance and upgrade costs, and has good scalability.
[0054] For non-variable attributes, the step of judging whether the task to be generated meets the generation condition according to the attribute value of the configured task attribute may specifically include:
[0055] Determine whether the attribute value of the configured non-variable attribute is equal to the attribute value of the task to be generated. If so, the task to be generated meets the generation condition. Otherwise, the task to be generated does not meet the generation condition.
[0056] Compared with variable attributes, the attribute values of non-variable attributes are not dynamically changeable. However, the embodiments of the present invention support multiple related attribute configurations (non-variable attributes in different related attributes can be configured with different attribute values). When generating a task, a related attribute configuration required by the business is selected, so that the configuration of non-variable attributes can also better adapt to the needs of business changes, thereby reducing the cost of system maintenance and upgrades.
[0057] The above-mentioned judgment of whether there is an attribute value matching the attribute value of the task to be generated in the found attribute value set can be used as the first filtering condition for whether to allow the task to be generated to be generated. The judgment of whether the attribute value of the configured non-variable attribute is equal to the attribute value of the task to be generated can be used as the second filtering condition for whether to allow the task to be generated to be generated. When configuring the task attributes of the task to be generated, when both the variable attribute and the non-variable attribute are configured, to judge whether the task to be generated meets the generation conditions, it is necessary to refer to the above-mentioned first filtering condition and the second filtering condition for judgment, that is, when it is simultaneously satisfied that: in the found attribute value set, there is an attribute value matching the attribute value of the task to be generated, and the attribute value of the configured non-variable attribute is equal to the attribute value of the task to be generated, it can be determined that the task to be generated meets the generation conditions, otherwise, the task to be generated does not meet the generation conditions.
[0058] Step S103: Group the generated tasks according to the configured grouping attributes to obtain grouped tasks.
[0059] The step of grouping the generated tasks according to the configured grouping attributes may specifically include:
[0060] Read the corresponding group field name according to the group attribute name of the task to be generated. Specifically, the group field name corresponding to the group attribute name of the task to be generated can be obtained from the task group configuration table storing the correspondence between the group attribute name and the group field name;
[0061] Read the grouping field value of the generated tasks corresponding to the grouping field name, and group the generated tasks according to the grouping field value.
[0062] The grouping field names in the task grouping configuration table and the grouping field values of the generated tasks need to be saved in the database. You can dynamically add attributes in the task table based on the Java reflection mechanism, and generate the corresponding fields in the task table based on the grouping field names and insert them into the database. Put all generated tasks into the List <task>(i.e., task table), loop and compare the current task and the next task, assemble two Map data structures respectively, the grouping field name in the Map data structure and the corresponding grouping field value of the generated task are stored in the form of key-value, where key is the grouping field name and value is the corresponding grouping field value. Compare whether the value values corresponding to the keys in the two Maps are consistent, and if they are consistent, merge the two tasks into one taskGroup.
[0063] The grouping attributes and task attributes of the embodiment of the present invention can be configured according to business needs, which overcomes the defect of the prior art that when the filtering conditions need to be changed, the code can only be modified and the system can be put back online.
[0064] The following takes an e-commerce logistics warehousing system as an example to further introduce the method for generating grouping tasks of the present invention.
[0065] In the e-commerce logistics warehousing system, tasks refer to some basic operations performed by the warehouse on goods, such as: the entry of goods into the warehouse, i.e., the putting on shelf task; the exit of goods from the warehouse, i.e., the de-shelf task; the movement of goods, i.e., the movement task; the isolation of goods, i.e., the isolation task, etc. This embodiment takes the sales exit task as an example.
[0066] Figure 2 This is a schematic diagram of the task engine interface of the second embodiment of the present invention. The task engine is used to configure and store the relevant attributes of the task to be generated.
[0067] like Figure 2 As shown, the task to be generated is a sales outbound task. The commodity filter and storage location filter are both task attributes, where the commodity filter represents the commodity filtering attribute, and the storage location filter represents the storage location filtering attribute. This task engine is only configured with the storage location filter, and the commodity filter is configured as empty (indicating that the commodity filtering attribute is not configured). The attribute value of the storage location filtering attribute is "storage location and picking location", which is obtained through the data filter configuration table corresponding to the storage location filter. The data filter configuration table (or data filter table, mst_data_filter table) stores the correspondence between the configured storage location filtering attributes and the attribute value search information. The attribute value search information is used to search for attribute value sets. The corresponding storage location information can be obtained according to the SQL conditions configured in the data filter configuration table. See below for details. Figure 3 Introduction to the data filter configuration table.
[0068] Group name 1, group name 2, group name 3, group name 4, and group name 5 are all group attributes. In this task engine, only the group field names of group name 1, group name 2, and group name 3 are configured: "wave_no", "section_no", and "zone_no". This means that the group attributes of the sales outbound task include group name 1, group name 2, and group name 3. If business requirements change, group names and group field names can be added dynamically.
[0069] Some non-variable attributes are also configured in the task engine according to business needs, including: source document type is "sales outbound", priority is "1" (priority refers to the order in which different orders are prioritized for production, and sales orders usually have the highest priority), whether to resubmit "yes", release method "manual release", task type "on shelf", maximum number of tasks "number of goods in warehouse area", etc., as well as task engine number, task engine description and other information. Some attributes not required for the current sales outbound task (such as the owner, etc.) can be left unconfigured.
[0070] Referring to the above method, according to the specific business, a dynamic and configurable task engine can be used to generate tasks and task groups (grouped tasks) such as picking, shelving, moving, and replenishment, which not only improves the scalability of the system, but also greatly improves warehouse production and picking efficiency.
[0071] Figure 3 Schematic diagram of a data filter configuration table according to the third embodiment of the present invention.
[0072] like Figure 3 As shown, the data filter configuration table of this embodiment includes warehouse code (used to identify the warehouse corresponding to this data filter configuration table), filter code (used to identify this data filter configuration table), filter code description, cargo owner (such as e-commerce platform self-operated merchants or third-party merchants, this embodiment is empty, indicating that it is not configured), source table, complete statement, remarks (not configured in this embodiment) and other configurable items. Among them, the filter code description is "storage position filter", indicating that the data filter configuration table is used to set the corresponding relationship between the task attribute of the storage position filter and the attribute value search information. The source table represents the source database table of the storage attribute value. The complete statement is an SQL statement, that is, the attribute value search information, which is used to search for the attribute value set. The configuration value (SQL statement) of the complete statement of this embodiment is only an example, indicating that the attribute value set of the task attribute of the storage position filter is searched from the mst_location table (database table name) through the SQL statement. Save the configuration values of the above items. When the task generation condition needs to be changed, just modify the SQL statement.
[0073] Those skilled in the art can understand that, according to different actual businesses, multiple different data filter configuration tables can be configured with reference to the above method.
[0074] In the embodiment of the present invention, the corresponding relationship between the group attribute name and the group field name of the task to be generated can be saved through the task group configuration table. Figure 4 It is a schematic diagram of a task grouping configuration table according to the fourth embodiment of the present invention.
[0075] like Figure 4 As shown, the task group configuration table (task_group_attribute table) is configured with group name 1, group name 2, group name 3 and their corresponding group field names "wave_no", "section_no", and "zone_no", where "wave_no" represents the warehouse dispatch order number, "section_no" represents the warehouse number, and "zone_no" represents the storage location number. The dispatch order number is the number of the vehicle assigned to the e-commerce system for order delivery, the warehouse number is the warehouse number, and the storage location number refers to the storage location number where the goods are stored in the warehouse. When grouping tasks, it is also necessary to record the group field name and corresponding group field value of the task (taking task1 to task3 as an example here) in the database. For example, the group field name and the corresponding group field value are as follows:
[0076] task1:wave_no:"wave_2018091601",section_no:"1",zone_no='A',
[0077] task2:wave_no:"wave_2018091601",section_no:"1",zone_no='B',
[0078] task3:wave_no:"wave_2018091601",section_no:"2",zone_no='c',
[0079] When grouping the generated tasks, since the zone_no field values of task1 and task2 are different, and the section_no and zone_no field values of task2 and task13 are different, according to the rule of grouping tasks with the same grouping field values into one group, it can be automatically calculated to be divided into three groups. Assuming that the sales outbound task of this embodiment is one of task1 to task3, the grouping of the sales outbound task can be determined, and all the tasks to be generated are grouped according to the above method, and finally the grouped tasks are generated.
[0080] Figure 5 FIG. 5 is a schematic diagram of a generation process of a grouping task according to a fifth embodiment of the present invention. Figure 5 As shown, the specific process of generating grouped tasks is as follows: first, configure the data filter configuration table and the task grouping configuration table (step S501), then configure the task engine (including configuring the data filter configuration table and other attributes displayed on the task engine interface) (step S502), read the attribute values of each attribute configured in the task engine (step S503), generate tasks according to each attribute value, and group the generated tasks (step S504). Among them, generating tasks and grouping the generated tasks requires reading the contents configured in the data filter configuration table and the task grouping configuration table.
[0081] In this embodiment, if a certain attribute value corresponds to an attribute of a dynamically changing condition (a variable attribute), the SQL corresponding to this attribute can be used as a condition to access the task engine search. The corresponding statement is, for example, in the following form: select * from task_engine t field in (${locationSql}), so as to find the attribute value corresponding to the attribute of the dynamically changing condition through the data filter configuration table. When generating a task, for non-variable attributes, the task can be generated if the condition value is equal (that is, the attribute value of the task to be generated is equal to the configured attribute value).
[0082] The task attributes and group attributes of this embodiment can be flexibly configured and dynamically expanded to adapt to dynamically changing business needs, improve the picking efficiency of the warehouse, and enhance the scalability of the system. The embodiment of the present invention is not only applicable to warehouse e-commerce logistics warehousing systems, but also to other systems with production tasks. Different systems only need to set corresponding task attributes and task group names, and the implementation principle can be universal.
[0083] Figure 6 4 is a schematic diagram of main modules of a device for generating grouping tasks according to an embodiment of the present invention.
[0084] like Figure 6 As shown, the device 600 for generating grouped tasks in this embodiment mainly includes: an attribute configuration module 601 , a task generation module 602 , and a task grouping module 603 .
[0085] The attribute configuration module 601 is used to configure the relevant attributes of the task to be generated, including configuring the grouping attributes and task attributes of the task to be generated.
[0086] The task attributes include variable attributes, and the attribute configuration module 601 may include a first task attribute configuration unit: configured to configure the corresponding relationship between the variable attributes and the attribute value search information.
[0087] The task attributes include non-changeable attributes, and the attribute configuration module 601 may further include a second task attribute configuration unit: used to configure the attribute value of the non-changeable attribute.
[0088] The attribute configuration module 601 may also include a group attribute configuration unit for configuring the corresponding relationship between the group attribute name and the group field name of the task to be generated.
[0089] The task generation module 602 is used to generate tasks according to configured task attributes.
[0090] The task generation module 602 may include a first judgment unit, configured to:
[0091] Search information through attribute values to find the attribute value set of the corresponding variable attribute;
[0092] It is determined whether there is an attribute value in the attribute value set that matches the attribute value of the task to be generated. If so, the task to be generated meets the generation condition; otherwise, the task to be generated does not meet the generation condition.
[0093] The task generation module 602 may further include a second judgment unit, configured to:
[0094] Whether the attribute value of the configured non-mutable attribute is equal to the attribute value of the task to be generated. If so, the task to be generated meets the generation condition; otherwise, the task to be generated does not meet the generation condition.
[0095] The task generation module 602 can be specifically used to: determine whether the task to be generated meets the generation condition according to the attribute value of the configured task attribute; if the task to be generated meets the generation condition, perform the task generation operation on the task to be generated.
[0096] The task grouping module 603 is used to group the generated tasks according to the configured grouping attributes to obtain grouped tasks.
[0097] The task grouping module 603 can be specifically used to: read the corresponding grouping field name according to the grouping attribute name of the task to be generated; read the grouping field value of the generated task corresponding to the grouping field name, and group the generated tasks according to the grouping field value.
[0098] In addition, the specific implementation content of the device for generating grouping tasks in the embodiment of the present invention has been described in detail in the method for generating grouping tasks described above, so the repeated content will not be described again here.
[0099] Figure 7 An exemplary system architecture 700 is shown to which the method for generating a grouped task or the apparatus for generating a grouped task according to the embodiment of the present invention can be applied.
[0100] like Figure 7 As shown, system architecture 700 may include terminal devices 701, 702, 703, network 704 and server 705. Network 704 is used to provide a medium for communication links between terminal devices 701, 702, 703 and server 705. Network 704 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0101] Users can use terminal devices 701, 702, 703 to interact with server 705 through network 704 to receive or send messages, etc. Various communication client applications, such as search applications, etc., can be installed on terminal devices 701, 702, 703 (only as an example).
[0102] The terminal devices 701 , 702 , and 703 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0103] Server 705 may be a server that provides various services, such as a background management server (only an example) that provides support for websites browsed by users using terminal devices 701, 702, and 703. The background management server may analyze and process received query requests and other data, and feed back the processing results to the terminal device.
[0104] It should be noted that the method for generating grouping tasks provided in the embodiment of the present invention is generally executed by the server 705 , and accordingly, the device for generating grouping tasks is generally arranged in the server 705 .
[0105] It should be understood that Figure 7 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0106] Reference below Figure 8 , which shows a schematic diagram of the structure of a computer system 800 suitable for implementing a server of an embodiment of the present application. Figure 8 The server shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0107] like Figure 8 As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the system 800 are also stored. The CPU 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0108] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that a computer program read therefrom is installed into the storage section 808 as needed.
[0109] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit (CPU) 801, the above-mentioned functions defined in the system of the present application are executed.
[0110] It should be noted that the computer-readable medium shown in the present invention can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0111] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0112] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be arranged in a processor, for example, it may be described as: a processor includes a property configuration module, a task generation module, and a task grouping module. The names of these modules do not constitute a limitation on the modules themselves in certain circumstances, for example, the property configuration module may also be described as a "module for configuring the relevant properties of the task to be generated".
[0113] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: configuring the relevant attributes of the task to be generated, including configuring the grouping attributes and task attributes of the task to be generated; generating tasks according to the configured task attributes; and grouping the generated tasks according to the configured grouping attributes to obtain grouped tasks.
[0114] According to the technical solution of the embodiment of the present invention, tasks are generated according to the configured task attributes, and the generated tasks are grouped according to the configured grouping attributes to obtain grouped tasks. Dynamic configuration of task attributes and grouping attributes is achieved. When the task attribute value and grouping attribute change, only the configuration needs to be modified. Grouped tasks can be flexibly generated without modifying the code or re-launching the system. When the task attribute value changes, the filtering conditions can be dynamically changed to adapt to the changing needs of the business, and the system maintenance and upgrade costs are reduced. The system has good scalability and high task production efficiency.
[0115] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.< / task>
Claims
1. A method for generating a grouping task, characterized in that: include: Configuring relevant attributes of the task to be generated, including configuring the grouping attributes and task attributes of the task to be generated, wherein the task attributes include at least one of a variable attribute and a non-variable attribute, and the variable attribute is an attribute whose attribute value of the task changes dynamically according to business needs; Generate tasks according to the configured task attributes; The generated tasks are grouped according to the configured grouping attributes to obtain grouped tasks.
2. The method according to claim 1, characterized in that The steps to generate a task according to the configured task properties include: Determining whether the task to be generated meets the generation condition according to the attribute value of the configured task attribute; In the case that the task to be generated meets the generation condition, an operation of generating a task is performed on the task to be generated.
3. The method according to claim 2, characterized in that When the task attributes include variable attributes, configuring the task attributes of the task to be generated includes: configuring a corresponding relationship between the variable attributes and attribute value search information; The step of judging whether the task to be generated satisfies the generation condition according to the attribute value of the configured task attribute comprises: Searching for a corresponding attribute value set of a variable attribute through the attribute value search information; It is determined whether there is an attribute value in the attribute value set that matches the attribute value of the task to be generated. If so, the task to be generated meets the generation condition; otherwise, the task to be generated does not meet the generation condition.
4. The method according to claim 2, characterized in that When the task attributes include a non-variable attribute, configuring the task attributes of the task to be generated includes: configuring the attribute value of the non-variable attribute; The step of judging whether the task to be generated satisfies the generation condition according to the attribute value of the configured task attribute comprises: It is determined whether the attribute value of the configured non-variable attribute is equal to the attribute value of the task to be generated. If so, the task to be generated satisfies the generation condition; otherwise, the task to be generated does not satisfy the generation condition.
5. The method according to claim 1, characterized in that Configuring the grouping attribute of the task to be generated includes: configuring the corresponding relationship between the grouping attribute name and the grouping field name of the task to be generated; The steps to group the generated tasks according to the configured grouping properties include: Read the corresponding group field name according to the group attribute name of the task to be generated; The grouping field value of the generated task corresponding to the grouping field name is read, and the generated tasks are grouped according to the grouping field value.
6. A device for generating grouping tasks, characterized in that: include: An attribute configuration module, used to configure the relevant attributes of the task to be generated, including configuring the grouping attributes and task attributes of the task to be generated, wherein the task attributes include at least one of a variable attribute and a non-variable attribute, and the variable attribute is an attribute whose attribute value of the task changes dynamically according to business needs; The task generation module is used to generate tasks according to the configured task attributes; The task grouping module is used to group the generated tasks according to the configured grouping attributes to obtain grouped tasks.
7. The device according to claim 6, characterized in that The task generation module is also used for: Determining whether the task to be generated meets the generation condition according to the attribute value of the configured task attribute; In the case that the task to be generated meets the generation condition, an operation of generating a task is performed on the task to be generated.
8. The device according to claim 7, characterized in that When the task attribute includes a variable attribute, the attribute configuration module includes a first task attribute configuration unit: configured to configure a corresponding relationship between the variable attribute and the attribute value search information; The task generation module includes a first judgment unit, which is used to: Searching for a corresponding attribute value set of a variable attribute through the attribute value search information; It is determined whether there is an attribute value in the attribute value set that matches the attribute value of the task to be generated. If so, the task to be generated meets the generation condition; otherwise, the task to be generated does not meet the generation condition.
9. The device according to claim 7, characterized in that When the task attribute includes a non-changeable attribute, the attribute configuration module includes a second task attribute configuration unit: configured to configure an attribute value of the non-changeable attribute; The task generation module includes a second judgment unit, which is used to: It is determined whether the attribute value of the configured non-variable attribute is equal to the attribute value of the task to be generated. If so, the task to be generated satisfies the generation condition. Otherwise, the task to be generated does not satisfy the generation condition.
10. The device according to claim 6, characterized in that The attribute configuration module includes a group attribute configuration unit, which is used to: configure the corresponding relationship between the group attribute name and the group field name of the task to be generated; The task grouping module is also used for: Read the corresponding group field name according to the group attribute name of the task to be generated; The grouping field value of the generated task corresponding to the grouping field name is read, and the generated tasks are grouped according to the grouping field value.
11. An electronic device, characterized in that: include: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the method according to any one of claims 1 to 5.
12. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Method and equipment for processing real-time task
CN101710411A
Method for realizing multi-path parallel picking
CN102063667A
Method and device for grouping collecting and generating business documents
CN103116832A
Transcoding task scheduling method and system
CN103686207A
Medical equipment management device based on RFID technology and operating method thereof
CN103870940A
