Work order task execution method, device, storage medium and processor
By analyzing and processing the primary key identification information and message queue information of the work order task, we ensure that the work order task tasks are executed in an orderly manner in the manufacturing execution system, solving the problem of low data accuracy during work order task execution, and achieving more efficient production management.
Patent Information
- Application Number
- CN202111489277.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-07
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2041-12-07
AI Technical Summary
When the work ticket task is executed in the Manufacturing Execution System (MES), the data accuracy is low in the case of concurrent operations, and the prior art has failed to effectively solve this problem.
By receiving the target information of the work order task message during the manufacturing production management process, analyzing and determining the primary key identification information and its corresponding message queue information, the target execution strategy of the task message is executed according to the message queue information to ensure the orderly execution of the task message.
It improves the data accuracy during work order tasks, ensures orderly execution of tasks and data integrity, and improves the efficiency of production management.
Smart Images

Figure CN114168288B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of manufacturing production technology, and in particular, to a method, device, storage medium and processor for executing a work order task. Background Art
[0002] In the production management process of a manufacturing enterprise, the enterprise's sales orders are decomposed through ERP to form a production plan for self-made parts. The self-made plan is sent to the workshop to form an operation plan. In the manufacturing execution system (MES), the workshop operation plan is called a work order task. The work order task contains the planning information and process information of the self-made parts, which is used to describe and record the complete production process of the self-made parts.
[0003] During the execution of work order tasks in the workshop, concurrent operations often occur. For example, the same work order task will be assigned to multiple devices or multiple personnel for production at the same time. At this time, the start-up, reporting, quality inspection and other operations of the work order task are all performed concurrently. In the manufacturing execution system (MES), how to correctly handle this concurrent scenario is the key to ensuring the accuracy of the data on the work order task.
[0004] The current methods for handling concurrent scenarios are mostly used in the Internet consumer field, where multiple consumers are queued concurrently when purchasing store products at the same time. Compared with the concurrency in the consumer field, the concurrency of work order tasks is very different in terms of task primary key identification, queue data storage structure, and related data coupling. The queue mechanism in the consumer field is not suitable for concurrent scenarios of work order tasks.
[0005] Currently, no effective solution has been proposed to address the problem of low accuracy in the execution of work order tasks in related technologies. Summary of the invention
[0006] The main purpose of the present application is to provide a method, device, storage medium and processor for executing a work order task, so as to solve the problem of low accuracy in the execution of work order tasks in the related art.
[0007] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for executing a work order task is provided. The method comprises: in the manufacturing production management process, receiving target information in a task message of a work order, wherein the target information comprises at least one of the following: primary key identification information of the task message, message queue information of the task message; parsing the target information to obtain the target primary key identification information; determining the target message queue information corresponding to the target primary key identification information, wherein the target message queue information comprises a plurality of ordered task messages; and executing the target execution strategy of the task message according to the target message queue information.
[0008] Furthermore, before receiving the target information in the task message of the work order, the method also includes: determining whether the type of the task message is a concurrent type, wherein the type of the task message includes one of the following: concurrent type, non-concurrent type; if the type of the task message is a concurrent type, adding primary key identification information to the message header of the task message; if the type of the task message is a non-concurrent type, not adding primary key identification information to the message header of the task message.
[0009] Furthermore, when parsing the target information, obtaining the target primary key identification information includes: determining whether the primary key identification information in the target information is empty; if the primary key identification information in the target information is not empty, determining that the type of the task message is a concurrent type; and using the primary key identification information of the concurrent type task message as the target primary key identification information.
[0010] Furthermore, after determining whether the primary key identification information in the target information is empty, the method further includes: if the primary key identification information in the target information is empty, determining that the type of the task message is a non-concurrent type; and triggering an execution strategy corresponding to the non-concurrent type task message.
[0011] Furthermore, determining the target message queue information corresponding to the target primary key identification information includes: when the type of the task message is a concurrent type, judging whether the primary key identification information in the message queue information of the task message contains the target primary key identification information; if the primary key identification information in the message queue information contains the target primary key identification information, then using the message queue information as the target message queue information; if the primary key identification information in the message queue information does not contain the target primary key identification information, then adding the target primary key identification information, and creating the target message queue information corresponding to the target primary key identification information.
[0012] Furthermore, after determining the target message queue information corresponding to the target primary key identification information, the method further includes: acquiring the target message queue information; and adding the task message to the target message queue information.
[0013] Furthermore, executing the target execution strategy of the task message according to the target message queue information includes: sorting the task messages in the target message queue information to obtain a sorting result, wherein the sorting result includes the order information of the task messages being executed; and executing the target execution strategy of the task message according to the sorting result.
[0014] Furthermore, after executing the target execution strategy of the task message according to the target message queue information, the method further includes: obtaining the execution result of each task message in the target message queue information; and displaying the execution result on a page.
[0015] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a device for executing a work order task is provided. The device includes: a receiving unit, which is used to receive target information in a task message of a work order during the manufacturing production management process, wherein the target information includes at least one of the following: primary key identification information of the task message, message queue information of the task message; a parsing unit, which is used to parse the target information to obtain the target primary key identification information; a first determination unit, which is used to determine the target message queue information corresponding to the target primary key identification information, wherein the target message queue information includes multiple ordered task messages; and an execution unit, which is used to execute the target execution strategy of the task message according to the target message queue information.
[0016] Furthermore, the device also includes: a judgment unit, used to judge whether the type of the task message is a concurrent type before receiving the target information in the task message of the work order, wherein the type of the task message includes one of the following: concurrent type, non-concurrent type; a first processing unit, used to add primary key identification information to the message header of the task message if the type of the task message is a concurrent type; a second processing unit, used to not add primary key identification information to the message header of the task message if the type of the task message is a non-concurrent type.
[0017] Furthermore, the parsing unit includes: a first judgment module, used to judge whether the primary key identification information in the target information is empty; a first determination module, used to determine that the type of the task message is a concurrent type if the primary key identification information in the target information is not empty; and a second determination module, used to use the primary key identification information of the concurrent type task message as the target primary key identification information.
[0018] Furthermore, the device also includes: a second determination unit, used to determine whether the primary key identification information in the target information is empty, and if the primary key identification information in the target information is empty, determine that the type of the task message is a non-concurrent type; a triggering unit, used to trigger the execution strategy corresponding to the non-concurrent type task message.
[0019] Furthermore, the first determination unit includes: a second judgment module, which is used to determine whether the primary key identification information in the message queue information of the task message contains the target primary key identification information when the type of the task message is a concurrent type; a third determination module, which is used to use the message queue information as the target message queue information if the primary key identification information in the message queue information contains the target primary key identification information; and a new addition module, which is used to add the target primary key identification information if the primary key identification information in the message queue information does not contain the target primary key identification information, and create the target message queue information corresponding to the target primary key identification information.
[0020] Furthermore, the device also includes: an acquisition unit, which is used to acquire the target message queue information after determining the target message queue information corresponding to the target primary key identification information; and an adding unit, which is used to add the task message to the target message queue information.
[0021] Furthermore, the execution unit includes: a sorting module, which is used to sort the task messages in the target message queue information to obtain a sorting result, wherein the sorting result includes the order information in which the task messages are executed; and an execution module, which is used to execute the target execution strategy of the task messages according to the sorting result.
[0022] Furthermore, the device also includes: an acquisition unit, which is used to acquire the execution result of each task message in the target message queue information after executing the target execution strategy of the task message according to the target message queue information; and a display unit, which is used to display the execution result on a page.
[0023] According to another aspect of an embodiment of the present application, a processor is further provided, and the processor is used to run a program, wherein any one of the above methods is executed when the program is run.
[0024] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, any one of the above methods is performed.
[0025] Through this application, the following steps are adopted: in the manufacturing production management process, receiving the target information in the task message of the work order, wherein the target information includes at least one of the following: the primary key identification information of the task message, the message queue information of the task message; parsing the target information to obtain the target primary key identification information; determining the target message queue information corresponding to the target primary key identification information, wherein the target message queue information includes multiple ordered task messages; executing the target execution strategy of the task message according to the target message queue information. The problem of low accuracy during the execution of work order tasks is solved. By parsing the target information, the target primary key identification information is obtained; the target message queue information corresponding to the target primary key identification information is determined, thereby achieving the effect of improving the accuracy during the execution of work order tasks. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0027] Figure 1 It is a flowchart of a method for executing a work order task provided in an embodiment of the present application;
[0028] Figure 2It is a schematic diagram of the message queue data structure of the method for executing a work order task provided in an embodiment of the present application;
[0029] Figure 3 It is a work order task execution flow chart of the work order task execution method provided in an embodiment of the present application;
[0030] Figure 4 It is a schematic diagram of work order task execution according to the work order task execution method provided in an embodiment of the present application;
[0031] Figure 5 It is a schematic diagram of a device for executing a work order task provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0032] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0033] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0035] According to an embodiment of the present application, a method for executing a work order task is provided.
[0036] Figure 1 is a flow chart of a method for executing a work order task according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:
[0037] Step S101, in the manufacturing production management process, receiving target information in a task message of a work order, wherein the target information includes at least one of the following: primary key identification information of the task message, and message queue information of the task message.
[0038] Specifically, Figure 2 is a schematic diagram of a message queue data structure of a method for executing a work order task provided in an embodiment of the present application, such as Figure 2 As shown, the work order number or the work order number-process number is selected as the primary key identification information of the work order task message, and a static global dictionary is defined to store the work order task message queue information to be queued. The key value of the dictionary is the primary key identification information of the task message. Each element in the dictionary represents a primary key identification and its associated work order task message queue. The static global dictionary stores all the queued work order task primary key identifications and their message queue information in the system. The global dictionary is created in pairs of key and value. For example, the primary key identification information can be the work order number or the work order number-process number, and the value is the message queue information of the primary key identification. The global message queue dictionary is empty when initialized, waiting for the task message to be queued. After the task message is queued, the front end sends the message queue information and the primary key identification information to the back end for processing.
[0039] It should be noted that since the process numbers of different work order tasks may be repeated, the work order number-process number is selected as the primary key identifier.
[0040] Optionally, in the method for executing a work order task provided in an embodiment of the present application, before receiving the target information in the task message of the work order, the method also includes: determining whether the type of the task message is a concurrent type, wherein the type of the task message includes one of the following: concurrent type, non-concurrent type; if the type of the task message is a concurrent type, adding primary key identification information to the message header of the task message; if the type of the task message is a non-concurrent type, not adding primary key identification information to the message header of the task message.
[0041] Specifically, before the backend receives the target information, it needs to determine the type of task message. The specific function corresponding to the type of task message of the work order is called service. Services include concurrent services and non-concurrent services. Concurrent services refer to services that require adding primary key identification information for concurrent queuing when multiple message requests are received, such as the number of completed modifications, the number of quality inspection updates, etc. Non-concurrent services are services that do not perform concurrent queuing, so there is no need to add primary key identification information, such as adding work orders, archiving and warehousing, etc.
[0042] Step S102, parse the target information to obtain target primary key identification information.
[0043] Specifically, before the concurrent processing mechanism of the work order is executed in the present application, it is necessary to parse whether the primary key identification information in the target information is empty, so as to identify whether the system is a concurrent processing mechanism or a non-concurrent processing mechanism.
[0044] Optionally, in the execution method of the work order task provided in the embodiment of the present application, when parsing the target information, obtaining the target primary key identification information includes: determining whether the primary key identification information in the target information is empty; if the primary key identification information in the target information is not empty, determining that the type of the task message is a concurrent type; and using the primary key identification information of the concurrent type task message as the target primary key identification information.
[0045] Specifically, Figure 3 As shown, the backend intercepts the message sent by the frontend and parses the primary key identification value information (work order number or work order number-process number) in the message header. If the message header is empty, it means that this message is a non-concurrent message, and the message service is directly called for execution. If the message header has a value, the message concurrent processing mechanism is entered, and the primary key identification information of the concurrent task message is used as the target primary key identification information of the current task message. By identifying the concurrent data queue mechanism of the work order task, the accuracy of the work order task data during the service message call process is guaranteed.
[0046] Optionally, in the work order task execution method provided in the embodiment of the present application, after determining whether the primary key identification information in the target information is empty, the method also includes: if the primary key identification information in the target information is empty, determining that the type of the task message is a non-concurrent type; triggering the execution strategy corresponding to the non-concurrent type task message.
[0047] Specifically, Figure 3 As shown, after determining that the task message is a non-concurrent service of the newly added work order type, there is no need to queue the task message, and the task message can be directly executed, thereby improving the execution efficiency of the work order task.
[0048] Step S103: determining the target message queue information corresponding to the target primary key identification information, wherein the target message queue information includes a plurality of ordered task messages.
[0049] Specifically, after obtaining the target primary key identification information, it is necessary to check in the global dictionary whether the target primary key identification information has been created. If it has been created, there is no need to create it again, thereby further improving the task message execution efficiency of the work order.
[0050] Optionally, in the execution method of the work order task provided in the embodiment of the present application, determining the target message queue information corresponding to the target primary key identification information includes: when the type of the task message is a concurrent type, judging whether the primary key identification information in the message queue information of the task message contains the target primary key identification information; if the primary key identification information in the message queue information contains the target primary key identification information, then using the message queue information as the target message queue information; if the primary key identification information in the message queue information does not contain the target primary key identification information, then adding the target primary key identification information, and creating the target message queue information corresponding to the target primary key identification information.
[0051] Specifically, after determining the target message queue information corresponding to the target primary key identification information, the method further includes: acquiring the target message queue information; and adding the task message to the target message queue information.
[0052] For example, for concurrent task messages, determine whether the primary key identification value in the message header exists in the global message queue dictionary key value. If it exists, the task message intercepted by the backend is merged into the value queue corresponding to the key value (corresponding to the target message queue information in this application). If it does not exist, the message is executed, and at the same time, the key value is added to the message queue dictionary, and the message is placed in the value queue corresponding to the newly added key value. By matching the global message queue dictionary key value with the primary key identification value in the current task message header, the accuracy of the work order task data is guaranteed during the service message call process.
[0053] Step S104: executing the target execution strategy of the task message according to the target message queue information.
[0054] Specifically, the target message queue information itself contains a monitoring trigger mechanism. When the first message in the value queue is executed, the message is automatically dequeued, and the second message in the queue starts to be executed, and the cycle continues.
[0055] Through the above steps S101 to S104, the target information is parsed to obtain the target primary key identification information; the target message queue information corresponding to the target primary key identification information is determined, which solves the problem of low accuracy in the execution of work order tasks and achieves the effect of improving the accuracy in the execution of work order tasks.
[0056] Optionally, in the work order task execution method provided in the embodiment of the present application, the target execution strategy for executing the task message according to the target message queue information includes: sorting the task messages in the target message queue information to obtain a sorting result, wherein the sorting result includes the order information in which the task messages are executed; and executing the target execution strategy for the task message according to the sorting result.
[0057] Specifically, after the task message intercepted by the back-end is placed into the message queue information corresponding to the data dictionary through the key value (primary key identification information), the message queue information enters and exits the task message according to the first-in-first-out rule (corresponding to the target execution strategy in this application), thereby realizing the queuing processing of concurrent tasks of the work order, ensuring the accuracy of concurrent task execution data, ensuring the continuity and data integrity of the enterprise's production process, and effectively improving the enterprise's production management efficiency.
[0058] Optionally, in the work order task execution method provided in the embodiment of the present application, after executing the target execution strategy of the task message according to the target message queue information, the method also includes: obtaining the execution result of each task message in the target message queue information; and displaying the execution result on a page.
[0059] Specifically, Figure 3 As shown, when the elements in the queue start to execute, the message starts to call the service function. The function operates the database to modify the number, tasks, time and other information of the work order. The result of the service function execution is fed back to the front end for page display, so that the enterprise can grasp the execution status of the work order in real time.
[0060] Optionally, Figure 4 is a schematic diagram of a work order task execution method according to an embodiment of the present application, such as Figure 4 As shown in the figure, taking the manufacturing execution system with separated front-end and back-end as an example, the front-end function adds a primary key identifier (work order number or work order number-process number) in the message header sent to the back-end. The back-end platform blocks the concurrent task messages that need to be queued by intercepting and judging the primary key identifier content in the message header, and puts the blocked task messages into the message queue corresponding to the data dictionary through the key value (primary key identifier). The message queue is queued and dequeued according to the first-in-first-out rule, thereby realizing the queuing processing of concurrent tasks of the work order, ensuring the accuracy of concurrent task execution data, ensuring the continuity of the enterprise production process and data integrity, and effectively improving the enterprise production management efficiency.
[0061] In summary, the method for executing a work order task provided in an embodiment of the present application receives target information in a task message of a work order during a manufacturing production management process, wherein the target information includes at least one of the following: primary key identification information of the task message, message queue information of the task message; parses the target information to obtain the target primary key identification information; determines the target message queue information corresponding to the target primary key identification information, wherein the target message queue information includes multiple ordered task messages; and executes the target execution strategy of the task message according to the target message queue information. The problem of low accuracy during the execution of work order tasks is solved. By parsing the target information, the target primary key identification information is obtained; and the target message queue information corresponding to the target primary key identification information is determined, thereby achieving the effect of improving the accuracy during the execution of work order tasks.
[0062] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0063] The embodiment of the present application also provides a work order task execution device. It should be noted that the work order task execution device of the embodiment of the present application can be used to execute the work order task execution method provided in the embodiment of the present application. The work order task execution device provided in the embodiment of the present application is introduced below.
[0064] Figure 5 Schematic diagram of a device for executing a work order task according to an embodiment of the present application. Figure 5 As shown, the device includes: a receiving unit 501, a parsing unit 502, a first determining unit 503, and an executing unit 504.
[0065] Specifically, the receiving unit 501 is used to receive target information in a task message of a work order during a manufacturing production management process, wherein the target information includes at least one of the following: primary key identification information of the task message, and message queue information of the task message;
[0066] The parsing unit 502 is used to parse the target information to obtain the target primary key identification information;
[0067] A first determining unit 503 is used to determine target message queue information corresponding to the target primary key identification information, wherein the target message queue information includes a plurality of ordered task messages;
[0068] The execution unit 504 is used to execute the target execution strategy of the task message according to the target message queue information.
[0069] In summary, the execution device of the work order task provided by the embodiment of the present application receives the target information in the task message of the work order through the receiving unit 501 in the process of manufacturing production management, wherein the target information includes at least one of the following: the primary key identification information of the task message, the message queue information of the task message; the parsing unit 502 parses the target information to obtain the target primary key identification information; the first determination unit 503 determines the target message queue information corresponding to the target primary key identification information, wherein the target message queue information includes multiple ordered task messages; the execution unit 504 executes the target execution strategy of the task message according to the target message queue information, thereby solving the problem of low accuracy when executing the work order task. By parsing the target information, the target primary key identification information is obtained; the target message queue information corresponding to the target primary key identification information is determined, thereby achieving the effect of improving the accuracy of the work order task execution.
[0070] Optionally, in the work order task execution device provided in the embodiment of the present application, the device also includes: a judgment unit, used to judge whether the type of the task message is a concurrent type before receiving the target information in the task message of the work order, wherein the type of the task message includes one of the following: concurrent type, non-concurrent type; a first processing unit, used to add primary key identification information to the message header of the task message if the type of the task message is a concurrent type; a second processing unit, used to not add primary key identification information to the message header of the task message if the type of the task message is a non-concurrent type.
[0071] Optionally, in the execution device of the work order task provided in the embodiment of the present application, the parsing unit 502 includes: a first judgment module, used to judge whether the primary key identification information in the target information is empty; a first determination module, used to determine that the type of the task message is a concurrent type if the primary key identification information in the target information is not empty; and a second determination module, used to use the primary key identification information of the concurrent type task message as the target primary key identification information.
[0072] Optionally, in the execution device of the work order task provided in the embodiment of the present application, the device also includes: a second determination unit, used to determine whether the primary key identification information in the target information is empty, and if the primary key identification information in the target information is empty, determine that the type of the task message is a non-concurrent type; a triggering unit, used to trigger the execution strategy corresponding to the non-concurrent type task message.
[0073] Optionally, in the execution device of the work order task provided in the embodiment of the present application, the first determination unit 503 includes: a second judgment module, which is used to determine whether the primary key identification information in the message queue information of the task message contains the target primary key identification information when the type of the task message is a concurrent type; a third determination module, which is used to use the message queue information as the target message queue information if the primary key identification information in the message queue information contains the target primary key identification information; and a new addition module, which is used to add the target primary key identification information if the primary key identification information in the message queue information does not contain the target primary key identification information, and create the target message queue information corresponding to the target primary key identification information.
[0074] Optionally, in the work order task execution device provided in the embodiment of the present application, the device also includes: an acquisition unit, used to acquire the target message queue information after determining the target message queue information corresponding to the target primary key identification information; and an adding unit, used to add the task message to the target message queue information.
[0075] Optionally, in the work order task execution device provided in the embodiment of the present application, the execution unit 504 includes: a sorting module, used to sort the task messages in the target message queue information to obtain a sorting result, wherein the sorting result includes the order information in which the task messages are executed; and an execution module, used to execute the target execution strategy of the task message according to the sorting result.
[0076] Optionally, in the work order task execution device provided in the embodiment of the present application, the device also includes: an acquisition unit, used to obtain the execution result of each task message in the target message queue information after executing the target execution strategy of the task message according to the target message queue information; a display unit, used to display the execution result on a page.
[0077] The execution device of the work order task includes a processor and a memory. The above-mentioned receiving unit 501, parsing unit 502, first determination unit 503, execution unit 504, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.
[0078] The processor contains a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the work order tasks are executed by adjusting the kernel parameters.
[0079] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0080] An embodiment of the present invention provides a storage medium on which a program is stored. When the program is executed by a processor, a method for executing a work order task is implemented.
[0081] An embodiment of the present invention provides a processor, which is used to run a program, wherein the program executes a method for executing a work order task when the program is running.
[0082] An embodiment of the present invention provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: in a manufacturing production management process, target information in a task message of a work order is received, wherein the target information includes at least one of the following: primary key identification information of the task message, message queue information of the task message; the target information is parsed to obtain the target primary key identification information; the target message queue information corresponding to the target primary key identification information is determined, wherein the target message queue information includes multiple ordered task messages; and the target execution strategy of the task message is executed according to the target message queue information.
[0083] When the processor executes the program, the following steps are also implemented: before receiving the target information in the task message of the work order, determine whether the type of the task message is a concurrent type, wherein the type of the task message includes one of the following: concurrent type, non-concurrent type; if the type of the task message is a concurrent type, add primary key identification information to the message header of the task message; if the type of the task message is a non-concurrent type, do not add primary key identification information to the message header of the task message.
[0084] When the processor executes the program, the following steps are also implemented: determining whether the primary key identification information in the target information is empty; if the primary key identification information in the target information is not empty, determining that the type of the task message is a concurrent type; and using the primary key identification information of the concurrent type task message as the target primary key identification information.
[0085] When the processor executes the program, the following steps are also implemented: after determining whether the primary key identification information in the target information is empty, if the primary key identification information in the target information is empty, determining that the type of the task message is a non-concurrent type; triggering the execution strategy corresponding to the non-concurrent type task message.
[0086] When the processor executes the program, the following steps are also implemented: when the type of the task message is a concurrent type, it is determined whether the primary key identification information in the message queue information of the task message contains the target primary key identification information; if the primary key identification information in the message queue information contains the target primary key identification information, the message queue information is used as the target message queue information; if the primary key identification information in the message queue information does not contain the target primary key identification information, the target primary key identification information is added, and the target message queue information corresponding to the target primary key identification information is created.
[0087] When executing the program, the processor also implements the following steps: after determining the target message queue information corresponding to the target primary key identification information, acquiring the target message queue information; and adding the task message to the target message queue information.
[0088] When executing the program, the processor also implements the following steps: sorting the task messages in the target message queue information to obtain a sorting result, wherein the sorting result includes the order information of the task messages being executed; and executing the target execution strategy of the task messages according to the sorting result.
[0089] When executing the program, the processor also implements the following steps: after executing the target execution strategy of the task message according to the target message queue information, obtaining the execution result of each task message in the target message queue information; and displaying the execution result on a page.
[0090] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0091] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: in a manufacturing production management process, receiving target information in a task message of a work order, wherein the target information includes at least one of the following: primary key identification information of the task message, message queue information of the task message; parsing the target information to obtain the target primary key identification information; determining the target message queue information corresponding to the target primary key identification information, wherein the target message queue information includes a plurality of ordered task messages; and executing the target execution strategy of the task message according to the target message queue information.
[0092] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: before receiving the target information in the task message of the work order, determine whether the type of the task message is a concurrent type, wherein the type of the task message includes one of the following: concurrent type, non-concurrent type; if the type of the task message is a concurrent type, add primary key identification information to the message header of the task message; if the type of the task message is a non-concurrent type, do not add primary key identification information to the message header of the task message.
[0093] When executed on a data processing device, it is also suitable for executing an initialization program with the following method steps: determining whether the primary key identification information in the target information is empty; if the primary key identification information in the target information is not empty, determining that the type of the task message is a concurrent type; and using the primary key identification information of the concurrent type task message as the target primary key identification information.
[0094] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: after determining whether the primary key identification information in the target information is empty, if the primary key identification information in the target information is empty, determining that the type of the task message is a non-concurrent type; triggering the execution strategy corresponding to the non-concurrent type task message.
[0095] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: when the type of the task message is a concurrent type, determine whether the primary key identification information in the message queue information of the task message contains the target primary key identification information; if the primary key identification information in the message queue information contains the target primary key identification information, use the message queue information as the target message queue information; if the primary key identification information in the message queue information does not contain the target primary key identification information, add the target primary key identification information, and create the target message queue information corresponding to the target primary key identification information.
[0096] When executed on a data processing device, it is also suitable for executing a program that initializes the following method steps: after determining the target message queue information corresponding to the target primary key identification information, obtaining the target message queue information; adding the task message to the target message queue information.
[0097] When executed on a data processing device, it is also suitable for executing an initialization program having the following method steps: sorting the task messages in the target message queue information to obtain a sorting result, wherein the sorting result includes the order information in which the task messages are executed; and executing the target execution strategy of the task messages according to the sorting result.
[0098] When executed on a data processing device, it is also suitable for executing a program that is initialized with the following method steps: after executing the target execution strategy of the task message according to the target message queue information, obtaining the execution result of each task message in the target message queue information; and displaying the execution result on a page.
[0099] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0100] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0101] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0102] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0103] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0104] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0105] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0106] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0107] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0108] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for executing a work order task, characterized in that: include: In the manufacturing production management process, receiving target information in a task message of a work order, wherein the target information includes at least one of the following: primary key identification information of the task message, message queue information of the task message; Parsing the target information to obtain target primary key identification information; Determine the target message queue information corresponding to the target primary key identification information, wherein the target message queue information includes a plurality of ordered task messages; Execute the target execution strategy of the task message according to the target message queue information; Wherein, after parsing the target information, the target primary key identification information obtained includes: Determine whether the primary key identification information in the target information is empty; If the primary key identification information in the target information is not empty, determining that the type of the task message is a concurrent type; Using the primary key identification information of the concurrent type of task message as the target primary key identification information; After determining whether the primary key identification information in the target information is empty, the method further includes: If the primary key identification information in the target information is empty, determining that the type of the task message is a non-concurrent type; The execution strategy corresponding to the non-concurrent task message is triggered, and the task message is directly executed without queuing the task message.
2. The method according to claim 1, characterized in that Before receiving the target information in the task message of the work order, the method further includes: Determine whether the type of the task message is a concurrent type, wherein the type of the task message includes one of the following: a concurrent type and a non-concurrent type; If the type of the task message is a concurrent type, adding primary key identification information to the message header of the task message; If the type of the task message is a non-concurrent type, no primary key identification information is added to the message header of the task message.
3. The method according to claim 1, characterized in that Determining the target message queue information corresponding to the target primary key identification information includes: In the case where the type of the task message is a concurrent type, determining whether the primary key identification information in the message queue information of the task message includes the target primary key identification information; If the primary key identification information in the message queue information includes the target primary key identification information, the message queue information is used as the target message queue information; If the primary key identification information in the message queue information does not include the target primary key identification information, the target primary key identification information is added, and the target message queue information corresponding to the target primary key identification information is created.
4. The method according to claim 3, characterized in that After determining the target message queue information corresponding to the target primary key identification information, the method further includes: Acquiring the target message queue information; Add the task message to the target message queue information.
5. The method according to claim 1, characterized in that The target execution strategy for executing the task message according to the target message queue information includes: Sorting the task messages in the target message queue information to obtain a sorting result, wherein the sorting result includes the order information of the execution of the task messages; A target execution strategy for executing the task message is executed according to the sorting result.
6. The method according to claim 1, characterized in that After executing the target execution strategy of the task message according to the target message queue information, the method further includes: Obtaining the execution result of each task message in the target message queue information; The execution result is displayed on a page.
7. A work order task execution device, characterized in that: include: A receiving unit, used to receive target information in a task message of a work order during a manufacturing production management process, wherein the target information includes at least one of the following: primary key identification information of the task message, message queue information of the task message; A parsing unit, used to parse the target information to obtain target primary key identification information; A first determining unit, configured to determine target message queue information corresponding to the target primary key identification information, wherein the target message queue information includes a plurality of ordered task messages; An execution unit, configured to execute a target execution strategy of the task message according to the target message queue information; Wherein, the parsing unit comprises: A first judgment module is used to judge whether the primary key identification information in the target information is empty; A first determination module, configured to determine that the type of the task message is a concurrent type if the primary key identification information in the target information is not empty; A second determination module is used to use the primary key identification information of the concurrent type of task message as the target primary key identification information; The device further includes: a second determining unit, configured to, after determining whether the primary key identification information in the target information is empty, determine that the type of the task message is a non-concurrent type if the primary key identification information in the target information is empty; The trigger unit is used to trigger the execution strategy corresponding to the non-concurrent task message, and directly execute the task message without queuing the task message.
8. A processor, characterized in that: The processor is used to run a program, wherein the program, when running, executes the method for executing a work order task as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The storage medium includes a stored program, wherein the program executes the method for executing a work order task as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Multi-thread and multi-task management method and terminal
CN111475300A