CN116167590B - Order task processing method, device, medium and equipment in MES system - Google Patents

Order task processing method, device, medium and equipment in MES system Download PDF

Info

Publication number
CN116167590B
CN116167590B CN202310409453.9A CN202310409453A CN116167590B CN 116167590 B CN116167590 B CN 116167590B CN 202310409453 A CN202310409453 A CN 202310409453A CN 116167590 B CN116167590 B CN 116167590B
Authority
CN
China
Prior art keywords
interface
task
subtask
result
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310409453.9A
Other languages
Chinese (zh)
Other versions
CN116167590A (en
Inventor
章倍祥
葛军
高晨
李明亮
张启亮
赵峰
刘军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xcmg Hanyun Technology Co ltd
XCMG Hanyun Technologies Co Ltd
Original Assignee
Beijing Xcmg Hanyun Technology Co ltd
XCMG Hanyun Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xcmg Hanyun Technology Co ltd, XCMG Hanyun Technologies Co Ltd filed Critical Beijing Xcmg Hanyun Technology Co ltd
Priority to CN202310409453.9A priority Critical patent/CN116167590B/en
Publication of CN116167590A publication Critical patent/CN116167590A/en
Application granted granted Critical
Publication of CN116167590B publication Critical patent/CN116167590B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06316Sequencing of tasks or work
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/04Manufacturing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Theoretical Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Physics & Mathematics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Educational Administration (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Manufacturing & Machinery (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a method, a device, a medium and equipment for processing order tasks in an MES system, and belongs to the technical field of computers. The method comprises the following steps: calling a corresponding arrangement interface to respond to the order task to be processed; calling an initial interface corresponding to the subtask from the programming interface to respond to the corresponding subtask; for an order task, when material supplement processing is carried out on a material preparation task according to an arrangement link with an initial interface, calling a material interface matched with each material to respond, and judging whether the material preparation is successful according to a material result fed back through each material interface; when the material preparation task is unsuccessful, ending the processing of the material preparation task; summarizing the processing result of each subtask processing, and feeding back the processing result to the receiving end through the arrangement interface. The method and the device can reduce the consumption of system resources.

Description

Order task processing method, device, medium and equipment in MES system
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a medium, and a device for processing an order task in an MES system.
Background
The MES system (manufacturing execution system, production execution system) is a set of production informatization management systems facing the workshop execution layer of a manufacturing enterprise. An order task in a MES system refers to a task issued to meet customer needs or company internal plans, and generally includes production manufacturing, material purchasing, inventory management, and the like. These tasks have high complexity and real-time performance, and require the system to perform comprehensive coordination and management to ensure that the tasks can be completed on time and achieve the desired effect.
The traditional order task processing method is to split and process specific tasks in an order, and distribute the specific tasks to each module for processing.
Disclosure of Invention
The invention aims to provide order task processing method, device, medium and equipment in an MES system so as to reduce consumption of system resources.
To achieve the above object, according to a first aspect of the present application, there is provided a method for processing an order task in an MES system, the method comprising:
calling a corresponding arrangement interface to respond to an order task to be processed, wherein the order task comprises a plurality of subtasks, and at least one subtask comprises a material preparation task;
Calling an initial interface corresponding to the subtask from the arrangement interface to respond to the corresponding subtask;
for the order task, when material supplement processing is carried out on the material preparation task according to an arrangement link with the initial interface, calling a material interface matched with each material to respond, and judging whether the material preparation is successful according to a material result fed back through each material interface;
ending the processing of the material preparation task when the material preparation task is unsuccessful;
summarizing the processing result of each subtask processing, and feeding back the processing result to a receiving end through the arrangement interface.
In one embodiment, the material interfaces are multiple, and the arrangement logic between each material interface is parallel arrangement; and judging whether the material is prepared successfully according to the feedback result of each material interface, wherein the method comprises the following steps:
counting the material-requiring results output by each material-requiring interface according to the result voter, and judging whether the material is prepared successfully according to the counting results;
the method further comprises the steps of: and calling a next-stage interface in the arranging link where the material interface in the arranging link is positioned to continuously process the subtask corresponding to the material preparation task.
In one embodiment, the determining whether the material is ready to be successfully based on the statistics includes: and when the proportion of the result which indicates that the supplement is successful in the statistical result reaches a first preset proportion, judging that the material preparation is successful.
In one embodiment, the determining whether the material is ready to be successfully based on the statistics includes: and when the proportion of the results showing that the supplement is successful is smaller than a first preset proportion, detecting whether the material-required results showing the necessary materials in the statistical results are all supplement success or not, if so, judging that the materials are ready to be successful when the proportion of the second results showing that the supplement is successful exceeds a second preset proportion after detecting the material-required results showing that the necessary materials are removed.
In one embodiment, the method further comprises: and when the reason is smaller than the second preset proportion, extracting an unsuccessful reason returned by the material interface, and when the reason represents that the interface call fails, restarting to respond by the material interface, and updating the second result according to the result of the re-response.
In one embodiment, the material preparation task includes material quantity information; the calling the material interface matched with each material to respond comprises the following steps:
Determining the calling times of the matched material interface according to the material quantity information;
performing cyclic call on the matched material interface according to the call times;
the step of counting the material-required results output by each material-required interface according to the result voter comprises the following steps:
and when the material-requiring results which are output through the material-requiring interface each time and are aimed at the same material are all indicative of successful material-requiring, judging that the same material is successfully supplemented.
In one embodiment, the calling the initial interface corresponding to the subtask from the orchestration interface to respond to the corresponding subtask includes:
acquiring a center identifier of a registration center associated with the arrangement interface;
acquiring an interface identifier of an effective interface in the micro service in an effective state according to the center identifier;
extracting interface calling information in the zone bit of each subtask from the order task;
and determining an initial interface matched with each subtask from the interface identifiers based on the interface calling information.
In a second aspect of the present application, there is provided an order task processing device in an MES system, the device comprising:
The scheduling interface calling module is used for calling a corresponding scheduling interface to respond to an order task to be processed, the order task comprises a plurality of subtasks, and at least one subtask comprises a material preparation task;
the subtask processing module is used for calling an initial interface corresponding to the subtask from the arrangement interface to respond to the corresponding subtask; for the order task, when material supplement processing is carried out on the material preparation task according to an arrangement link with the initial interface, calling a material interface matched with each material to respond, and judging whether the material preparation is successful according to a material result fed back through each material interface; ending the processing of the material preparation task when the material preparation task is unsuccessful;
and the task result processing module is used for summarizing the processing result of each subtask processing and feeding back the processing result to the receiving end through the arrangement interface.
In a third aspect of the present application, there is provided an electronic device, including:
one or more processors;
and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the methods described in any of the embodiments of the present application.
In a third aspect of the present application, there is provided a computer readable medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method described in any of the embodiments of the present application.
According to the order task processing method, the device, the medium and the equipment in the MES system, the order tasks in the MES system are processed by setting the arrangement interface, so that all the subtasks in the order tasks can be processed by using the initial interfaces in the arrangement interface according to the arrangement links respectively, and finally, the arrangement interface gathers the processing results of all the subtasks to finally obtain the processing results of the order tasks, and the processing results are fed back to the request end. The order task in the application is finally exposed to the same scheduling interface of the request end, the request end does not need to search and call a plurality of interfaces for processing, and the consumption of system resources is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate certain embodiments of the present application and therefore should not be considered as limiting the scope of the present application.
FIG. 1 is a flow diagram of a method of order task processing in an MES system in one embodiment;
FIG. 2 is a schematic diagram of an orchestration interface according to one embodiment;
FIG. 3 is a block diagram of an order task processing device in the MES system in one embodiment;
FIG. 4 is a block diagram of an interface of an electronic device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
The terms "first," "second," and the like, as used herein, may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element.
Also as used herein, the terms "comprises," "comprising," and/or the like, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
In one embodiment, as shown in FIG. 1, there is provided a method of order task processing in an MES system, the method comprising:
and 102, calling a corresponding arrangement interface to respond to the order task to be processed.
In this embodiment, the arrangement interface refers to that different interfaces are combined in a certain manner to form a higher-level interface in the system integration process, so as to achieve coordination and integration between multiple interfaces. Orchestration interfaces are typically used to solve complexity and heterogeneous problems in system integration, and enable interaction and transfer of data, messages, services, etc. between multiple systems or modules to achieve a more flexible and efficient business process.
The arrangement interface can unify interfaces of a plurality of systems or modules into one interface, which is convenient for other systems or modules to access and call, and is convenient for managing and maintaining the interfaces; the data with different formats can be converted and mapped to adapt to the data exchange requirements among different systems or modules; meanwhile, a plurality of interfaces can be combined according to the specific sequence and mode according to the service flow requirements, so that the arrangement and management of the complex service flow are realized.
The electronic device is provided with one or more arrangement interfaces in advance, and each arrangement interface is used for providing one or more types of order tasks for calling. According to the corresponding relation between the interface identification of the pre-established scheduling interface and the task type of the order task, the scheduling interface required to be called by each type of order task can be determined. The interface identifier is used for uniquely identifying the corresponding interface, and may be composed of one or more of preset numbers, letters, special characters, etc., for example, it may be the number of the interface.
The order task in the MES system refers to a task which is generated in the MES system and needs to be processed, and the task is presented in the form of an order, and can comprise various types of tasks related to the order, such as a production task, a material purchasing task, an inventory management task and the like. The production task means that a production workshop makes a production plan and a production task according to customer demands and company internal plans, and monitors and manages the production process so as to ensure that the on-time delivery and quality of the product meet the requirements; the material purchasing task is to make a material purchasing plan and purchasing task according to the production task and the stock condition, and monitor and manage the purchasing process to ensure that the material is in place in time and meet the production requirement; the inventory management task is to monitor and manage inventory conditions, including material warehouse entry, warehouse exit, warehouse moving and other operations, so as to ensure that the quantity and quality of the inventory meet the requirements, and avoid waste and loss caused by excessive or insufficient inventory.
An order task in an MES system typically includes one or more sub-tasks that require different unit management systems to execute, which can be understood as a composite task. Subtasks need to go through a series of processes to complete. Such as subtasks included in an order task including part machining tasks and equipment downtime tasks, order production tasks, and the like. With the subtask as an order production task, it may undergo a series of operations such as process inspection, material supply, order generation, order distribution, order completion/incompletion reporting, etc.
Different order tasks may have one or more identical subtasks. For example, if an order task a of a certain type has 3 types of subtasks, namely subtask 1, subtask 2, and subtask 3, respectively, and another order task B of another type has 5 types of subtasks, namely subtask 2, subtask 4, subtask 5, subtask 6, and subtask 8, respectively, then the order task a further includes the same subtask 2.
At least one of the subtasks includes a material preparation task. The material preparation task represents a task that requires material to be prepared prior to order production. The material preparation task can be a subtask itself, or can be a task of one or more links in the subtask, i.e. can also be a part of the subtask.
In one embodiment, prior to step 102, further comprising: and acquiring an order task to be processed from the order processing queue, and determining a corresponding arrangement interface according to the task type of the acquired order task.
Optionally, the order tasks issued in the MES system may be more sometimes, the corresponding interface is called up busy, or the equipment such as a machine tool cannot complete the processing of all the order tasks in time, so that the order tasks may be stored in the order queue to form a ranking, and the scheduling system is utilized to extract the order tasks to be processed according to the ranking. The scheduling system is an intermediate processing mechanism for temporarily storing order task requests, and specifically, the scheduling system can sort according to the execution time of preset order tasks.
When an order task with an earlier preset execution time needs to be processed preferentially, the MES system can stop the order task being executed, and store the interrupted order task into the scheduling system to execute the order task with the earlier preset execution time preferentially. When detecting that the corresponding interfaces and/or corresponding equipment such as a machine tool are idle, pulling up an order task to be processed through a scheduling system for processing.
Step 104, calling an initial interface corresponding to the subtask from the programming interface to respond to the corresponding subtask.
In this embodiment, a plurality of interfaces are arranged in the arranging interface, and the calling logic combination between the interfaces forms an arranging link. The orchestration logic relationships between interfaces may include one or more of parallel orchestration, serial orchestration, conditional orchestration, and so on. The first called interface in the orchestration interface is the initial interface. The number of initial interfaces may be plural, each initial interface being the first interface invoked when the corresponding subtask is processed.
For example, as shown in fig. 2, a plurality of interfaces such as interface a, interface B, interface C, interface D, interface E, interface F, interface G, etc. are aggregated in orchestration interface 200. The interfaces a, B and C are the first-level interfaces in the orchestration interface 200, and the orchestration logic between them is parallel orchestration, which can be executed concurrently. The interface that is called first in the orchestration interface is the initial interface, for example, 3 subtasks of a certain order task are first corresponding to the interface a, the interface B and the interface C respectively, and then the three are the initial interfaces. The interface C, the interface F and the interface D are arranged in series, the latter is the next-level interface of the former, the former is called and executed to execute the call to the latter, the call execution output result of the former can be used as the input parameter of the latter, for example, the output result after the call interface D is executed can be designed into the input parameter of the call interface F. Similarly, there is also a serial orchestration relationship between interface B and interface E. The interface A, the interface D and the interface E belong to the conditional arrangement, the interface D can be called only when the output information after the interface A is called meets the triggering condition A, and the interface E can be called only when the output information meets the triggering condition B. For example, the result of calling the interface a is insufficient material, which corresponds to the trigger condition a, and then the interface D can be continuously called according to the layout logic; the result output by the calling interface A is that the materials are sufficient and the materials correspond to the triggering condition B, and then the calling interface E can be continuously called according to the arrangement logic.
The arrangement interface 200 is an externally exposed interface, and by calling the arrangement interface 200, the calling of the interfaces required by the interfaces, such as the arranged interfaces A-G, can be realized according to the arrangement link, the corresponding data processing is realized, and finally the feedback data of the processing result is still provided to the request terminal through the arrangement interface 200.
In one embodiment, the corresponding initial interface may be automatically determined according to the subtask, or the call may be made from the corresponding interface found in the orchestration interface according to the interface information contained in the subtask. For example, if a subtask a includes an interface a to be called, it can be determined that the initial interface to be called is the interface a.
In one embodiment, similar to the orchestration interface, the initial interface may also correspond to one or more types of subtasks, based on which the initial interface that each subtask needs to invoke may be determined.
When a plurality of subtasks need to call the same initial interface, the same initial interface is called according to the execution sequence of the subtasks. For example, two subtasks are respectively a production task for an order a and a production task for an order B, and the initial interfaces called by the two subtasks are the same interface, so that the initial interface can be called first to respond to the quality detection task of the part a in the order a, and then the interface is called to respond to the quality detection task of the part B in the order B.
Step 106, for the order task, when the material supplement processing is carried out on the material preparation task according to the arrangement link with the initial interface, calling the material interface matched with each material to respond, and judging whether the material preparation is successful according to the material result fed back through each material interface; and when the material preparation task is unsuccessful, ending the processing of the material preparation task.
In this embodiment, the material preparation task automatically determines the corresponding interface through the corresponding relationship between the material preparation task and the order task set in the MES system, or may determine the corresponding interface from the orchestrated interfaces according to the interface information included in the material preparation task.
In one embodiment, the material preparation tasks include one or more material preparation tasks that, after the MES system executes the material preparation tasks, automatically invoke the material preparation interface corresponding to the material preparation tasks and execute the material preparation tasks. The material preparation task comprises material identification and material quantity of materials to be prepared. The material identifier is used for uniquely identifying the corresponding material, and can be the number or the name of the material.
Optionally, the material preparation task may first call a corresponding interface to access whether sufficient material is available on the order line. If the obtained response result is negative, the corresponding material interface can be called to carry out material supplement processing according to the arrangement logic in the arrangement link. For example, when the material on the production line is insufficient as a result returned by the arrangement logic through a certain interface a, the material-requiring interface is called according to the output result of the interface, and the material-requiring interface is communicated with the material conveying equipment or the material warehouse equipment. It will be appreciated that the orchestration logic between interface a and the material interface is conditional orchestration. Similarly to the arrangement interface, the types of material to be replenished corresponding to the material interface may also have one or more.
In one embodiment, the subtasks may be a single material preparation task, or different material preparation tasks corresponding to different material interfaces respectively, or different material preparation tasks corresponding to the same material interfaces. For example, the subtask may be a single preparation task for material a, corresponding to material interface a; the preparation tasks of the material A, the material B and the material C respectively corresponding to the material interface A, the material interface B and the material interface C can also be adopted; the preparation tasks of the materials A and B corresponding to the material interface A and the preparation tasks of the materials C corresponding to the material interface B can also be adopted; or the material interface A corresponds to the preparation tasks of a plurality of materials such as the material A, the material B, the material C and the like, and the corresponding relation between the material interface and the material preparation tasks can be preset in the MES system.
In one embodiment, the subtasks are individual material preparation tasks or different material preparation tasks corresponding to different material interfaces. After the material preparation task is executed, material preparation result feedback data corresponding to the material preparation interface is obtained, and the material preparation result is fed back to the receiving end through the arrangement interface. When the subtask is a different material preparation task corresponding to a different material interface, the material preparation result feedback data of all the material interfaces are successful in material preparation, and the material preparation result fed back to the receiving end is successful in material preparation.
In one embodiment, the subtasks are different material preparation tasks corresponding to the same material preparation interface, and when all the material preparation subtasks are completed, the material preparation interface feeds back a material preparation result through the arrangement interface. Otherwise, continuing to execute the unfinished material preparation task until the material preparation task is finished, and when the feedback data of the material preparation results of all the material interfaces are successful, feeding back the material preparation results to the receiving end to be successful material preparation.
For example, the material preparation tasks include preparation tasks of multiple materials such as a material A, a material B and a material C, which correspond to different material preparation interfaces respectively, the MES system initiates requests to multiple different material preparation devices, and can call the material preparation interfaces corresponding to the different material preparation devices at the same time, and execute the different material preparation tasks at the same time, so that the material preparation efficiency is effectively improved.
When the number of the material interfaces is small and different material preparation tasks can correspond to the same material interface, for example, the material a, the material B, or the material B, the material C preparation tasks can correspond to the same material interface, or the material a, the material B, the material C preparation tasks can correspond to the same material interface. Wherein different material interfaces correspond to different material preparation devices, and when the preparation tasks of multiple materials correspond to one material interface, the material interface also corresponds to one material preparation device. For example, the preparation tasks of the materials a and B correspond to the material interface a, and the material interface a corresponds to the material preparation device a; or the preparation tasks of a plurality of materials such as the material A, the material B, the material C and the like can correspond to the same material interface A, and the material interface also corresponds to one material preparation device. When the material preparation tasks are executed, sorting can be performed according to the execution time of the material preparation tasks, and a scheduling system orderly executes different material preparation tasks of the same interface according to the execution time; the priority of the material preparation tasks can also be preset in the MES system, and the scheduling system executes different material preparation tasks of the same interface according to the preset priority. The single material-requiring interface corresponds to the preparation tasks of various materials, so that the utilization rate of the material-requiring interface can be improved.
When the response obtained through the material-requiring interface is successful in supplementing the material, the corresponding interface is continuously called for processing according to the processing logic of the corresponding subtask. If the resulting response is unsuccessful in preparing, indicating that the material preparation task failed to process, the process of the material preparation task may be ended. When the material preparation is unsuccessful, the subtask processing result including the material preparation task is unsuccessful, and the processing of the subtask can be ended.
And step 108, summarizing the processing result of each subtask processing, and feeding back the processing result to the receiving end through the arrangement interface.
In this embodiment, each subtask processes the subtask according to its corresponding initial interface and the orchestration link, and after obtaining the processing result of the response, the subtasks can be summarized through the orchestration interface. Wherein, the processing result can be the result of successful or unsuccessful processing of the corresponding subtask. And finally, the summarized processing result of each subtask is fed back to the receiving end by calling the programming interface. The interface end is a device end such as a server or a client end for receiving order tasks.
According to the order task processing method in the MES system, complex orders in the MES system can be processed by utilizing the arrangement interface and the arrangement link in the arrangement interface.
In one embodiment, the material interfaces have a plurality of material interfaces, and the arrangement logic between each material interface is parallel arrangement; judging whether the material preparation is successful according to the feedback result of each material interface, comprising: and counting the material-requiring results output by each material-requiring interface according to the result voter, and judging whether the material is successfully prepared according to the counting results. The method further comprises the steps of: and calling a next-stage interface in the arranging link where the material interface in the arranging link is positioned to continuously process the subtask corresponding to the material preparation task.
In this embodiment, the interfaces to be processed are in parallel arrangement logic, and the call between each arrangement interface can be processed in parallel without being affected by each other. For example, when the material is replenished, the material interface A, the material interface B and the material interface C need to be called for corresponding material replenishment, and the arrangement logic among the three material interfaces is parallel arrangement. And outputting corresponding material requiring results through each material requiring interface. The results output by the material interface can be processed by a result voter.
In the MES system, the result voter can be used for making voting decisions of the whole order task or a certain link in the order task, and finally feeding back the completion result of the order task or a certain link thereof. Corresponding rules can be preset in the result voter, and whether corresponding processing is successful or not can be determined according to the rules. The feedback results of the result voter comprise two results, namely successful execution and failure of the order task, aiming at the material preparation process. The voting rule of the voter pre-examination is preset, for example, when the number of votes of a certain received result exceeds a certain threshold, the result is judged to be valid, and the next operation is triggered according to the result. The result voter can set different voting rules according to different task types.
If the number of tickets for receiving the result of the supplement success exceeds a certain number, the result is valid, and the material preparation success is judged. For another example, when a subtask in the execution order task includes a product quality detection task, the result voter may be invoked for processing as well. For example, the product quality detection tasks comprise a plurality of product quality detection tasks such as detection item A, detection item B, detection item C, detection item D and the like, and when all product quality detection feedback successful results are preset in the result voter, the result is judged to be valid, and the product detection is successful; the success of product detection can also be judged when 80% of product quality detection items are fed back to be successful results; the detection item A can also be set as a necessary detection item, the success of product detection can be judged only when the result of the detection item A indicates success and the number of votes for the success of detection of other detection items exceeds 80%, otherwise, even if the results of the other detection items are all successful, and the result fed back by the detection item A is failure, the result voter finally judges that the result voting fails, namely the quality of the corresponding product is unqualified. The necessary detection item may be one item or a plurality of items.
In one embodiment, the multiple material preparation interfaces are logic arranged in parallel, i.e., multiple material preparation devices perform material preparation tasks simultaneously. Alternatively, a certain material preparation interface may correspond to a plurality of material preparation tasks, and the MES system executes the plurality of material preparation tasks according to execution time of the material preparation tasks or a preset material preparation task execution sequence.
In one embodiment, the result voter may be preset to determine that the result is valid when all of the material interfaces feedback is successful, indicating that the material preparation is successful. The necessary material items can be one or more items, for example, the material A or the material A and the material B can be set as necessary materials, when the material interfaces corresponding to the necessary material preparation tasks are fed back successfully, the result voter judges that the result is valid, the material preparation is successful, or else the material preparation is failed. Wherein the necessary materials are indispensable materials in the production of products. The material preparation success indicates that the material required by the order task reaches the condition that the subsequent task can be continuously executed, and the subsequent work of the order task can be continuously executed, such as the production of the order can be carried out.
In one embodiment, the material preparation result feedback is a failure when the material preparation is insufficient, wherein the material preparation result feedback is successful when a material consists of several sub-materials, and is otherwise a failure.
After the material preparation is successful, a corresponding next interface can be selected for processing a subsequent task in the subtask based on the arrangement link where the material interface is located. For example, the next-stage interface corresponding to the successful material preparation is an order production processing task, and the corresponding interface is called to inform relevant processing equipment to develop the order production processing task.
According to the method, the result voter is introduced, so that the results executed by the plurality of material interfaces can be summarized and judged, and the reliability of the system is improved. And the result voter can execute a plurality of material interfaces in parallel, thereby improving the processing performance and throughput of the system.
In one embodiment, the material or materials to be supplemented consist of several sub-materials, namely material A, wherein the sub-materials comprise material A1, sub-material A2, sub-material A3 and the like. When the preparation task for the material A is executed, the MES system calls a material interface A corresponding to the preparation task of the material A, and according to the corresponding relation between the preparation task of the material A and the preparation tasks of several sub-materials, the material sub-interfaces A1, A2 and A3 corresponding to the material interface A are automatically called.
The preparation tasks of the sub-materials A1, A2 and A3 may correspond to different material sub-interfaces, or may correspond to the same material sub-interface. For example, the preparation tasks of the sub-materials A1, A2 or A2 and A3 correspond to the sub-material interface A1, when the sub-material preparation tasks are executed, the sub-material preparation tasks can be ordered according to the execution time of the sub-material preparation tasks, and the scheduling system orderly executes different sub-material preparation tasks of the same interface according to the execution time; the priority of the sub-material preparation tasks can also be preset in the MES system, and the scheduling system executes different sub-material preparation tasks of the same interface according to the preset priority. When all the sub-materials are prepared successfully, the material A is output through the material interface A to be prepared successfully, and the result voter can count the material A to be prepared successfully according to the feedback result of the interface A. And finally judging whether the materials needed by the order are prepared successfully or not by combining the preparation results of other materials.
In one embodiment, determining whether the material is ready to succeed based on the statistics includes: and when the proportion of the result which indicates that the supplement is successful in the statistical result reaches a first preset proportion, judging that the material preparation is successful.
Specifically, the first preset proportion may be preset in the MES system, and the first preset proportion may be a proper proportion value set between 0% and 100% by itself. For example, may be 100%. When the result is set to be 100%, the result which indicates that the feedback of each material interface received by the required result voter is the result which indicates that the material preparation is successful is judged to be effective, and the material preparation is successful.
For example, if some orders exist and 10 necessary materials are needed, the first preset proportion can be set to be 100%, and only when the successful supplement results fed back by all material interfaces reach 100%, the voting result of the result voter is judged to be effective, and the material preparation is judged to be successful. Similarly, there are special orders, and if some materials are available or not, a corresponding first preset proportion can be set, and when the result voter counts that the corresponding result of the supplement success reaches the first preset proportion, the result can be directly judged to be valid, and the materials are prepared to be successful.
In this embodiment, the voting rules are configured and adjusted in a self-defined manner according to the actual service requirements by the result voter, so that the requirements under different service scenarios can be realized, different requirements and demands of users can be met, and the flexibility and adaptability of the system are improved.
In one embodiment, determining whether the material is ready to succeed based on the statistics includes: and when the proportion of the results showing that the supplement is successful is smaller than the first preset proportion in the statistical results, detecting whether the material-required results showing the necessary materials in the statistical results are all supplement success or not, if so, judging that the material preparation is successful when the proportion of the second results showing that the supplement is successful exceeds the second preset proportion after detecting the material-required results showing that the necessary materials are removed.
In this embodiment, the second preset ratio, like the first preset ratio, may also be any ratio value between 0% and 100% set in the MES system, for example, any suitable value such as 70%, 80%, or 90%.
Optionally, an identification bit can be set in the information fed back by the material interface to determine whether the material is necessary. When the identification bit is 1, the corresponding material is identified as the necessary material, and when the identification bit is 0, the material is the unnecessary material. After the result voter receives the supplement results of all the material interfaces, the result voter can detect whether the result with the identification bit of 1 is the supplement success or not, if so, the statistics of the material requiring results of unnecessary materials is continued, and when the result voter reaches the second preset proportion, the voting result is judged to be effective, and the material preparation is judged to be successful. If the proportion is smaller than the second preset proportion, or if the supplement failure result exists in the supplement results with the identification bit of 1, the voting result is judged to be invalid, and at the moment, the material preparation is judged to be unsuccessful, or the relevant material interface is returned again.
In one embodiment, when the ratio is smaller than a second preset ratio, the unsuccessful reason returned by the interface to be charged is extracted, when the reason indicates that the interface call fails, the response by the interface to be charged is restarted, and the second result is updated according to the result of the re-response.
The information fed back by the material interface can also contain unsuccessful reason information. Specifically, the reasons for unsuccessful return through the material-to-be-interfaces include a variety of reasons including equipment failure, material preparation deficiency, interface call failure, and the like. When the unsuccessful cause is detected as the interface call failure, the response through the material-requiring interface can be restarted, wherein the reasons for the interface call failure comprise various reasons such as downtime of a server, busy interfaces, network delay and the like.
In this embodiment, in the process of re-responding, the material-feeding result fed back by the same material-feeding interface is replaced by the material-feeding result fed back in the previous time, and the successful second result is updated and supplemented based on the material-feeding result.
Further, a threshold value of the calling times for calling the material interface again can be set, a waiting time range for calling the material interface again can also be set, when the material interface is called again to exceed the threshold value or the waiting time range, the material preparation is judged to be unsuccessful, and the execution of the material preparation task is terminated. Or searching whether other callable standby interfaces exist to replace the interface for response, and if the standby interfaces also call failure, judging that the material preparation is unsuccessful. After the unsuccessful material preparation result is obtained, feeding back the material preparation task execution interrupt to the staff through the interface, temporarily storing the interrupted material preparation task and the corresponding sub-material preparation task to the scheduling system until the MES system issues the material preparation task again, and re-pulling up the interrupted material preparation task by the scheduling system. The success rate of material preparation tasks can be effectively ensured by re-calling the material interface, the flow suspension caused by the problem of occasional network or downtime is reduced to the greatest extent, and the robustness of the MES system is improved to a certain extent.
In this embodiment, when the interrupted material preparation task is pulled up again, the above-mentioned detection is repeated to indicate the first preset proportion and the second preset proportion of the successful material replenishment result and the identification bit of the material requiring result of the necessary material, and the numerical values of the first preset proportion and the second preset proportion and the state of the identification bit are updated to determine whether the material preparation is successful.
In this embodiment, the use result voter sets appropriate parameters such as a threshold and retry times, so as to avoid the situation that the whole system crashes due to the failure of executing a single sub-interface to the greatest extent on the premise of ensuring the stability of the system.
In one embodiment, the material preparation task includes material quantity information; invoking a material interface matched with each material to respond, including: determining the calling times of the matched material interfaces according to the material quantity information; and circularly calling the matched material interface according to the calling times. Counting the material-requiring results output by each material-requiring interface according to the result voter, comprising: and when the material-requiring results which are output through the material-requiring interface each time and are aimed at the same material are all indicative of successful material-requiring, judging that the supplementation of the same material is successful.
Under the condition that the required quantity of a certain material is large, the material conveying equipment cannot finish the conveying of the material at one time by calling the material interface to indicate the material preparation equipment (such as the material conveying equipment) to convey, so that the material conveying equipment is required to be repeatedly called to indicate the material conveying equipment to convey for a plurality of times to finish the conveying of the required quantity of the material.
In this embodiment, the MES system automatically calculates the number of calls to the matched material-requiring interface according to the material quantity information and the material quantity that the corresponding material-preparing apparatus can prepare at a time. For example, the required quantity of the material a is 100KG, the material preparation device a corresponding to the material interface a prepares 10KG at a time, the number of times of calling the material interface a corresponding to the material a is 10, the material interface a can feed back the result of whether the material preparation device a is successfully complemented each time, and when the result voter receives the result that the material interface a feeds back each time is successfully complemented, the final voting result of the material a is successfully complemented.
In one embodiment, a call number identification bit may be further set to detect the number of repeated calls of the interfaces to be tested, and each interface to be tested is set with the call number identification bit. The MES system gives the calling times identification bit with the automatically calculated repeated calling times as an initial value, and then the numerical value of the second detection identification bit is reduced by 1 every time a secondary material interface is called until the numerical value of the second detection identification bit is 0, and statistics is carried out on the material-requiring results output by the material-requiring interface.
And when the calling times of the material interface A corresponding to the material A are 10 times and the voting rule is that the material is fed back successfully by the 10 times of material results, judging that the material A is successfully fed back. Otherwise, judging that the material A is not successfully fed.
In one embodiment, if the number of calls of a certain material interface is small, that is, when the material preparation task corresponding to the material interface is completed earlier than the other material preparation tasks, the scheduling system pulls the next task corresponding to the material interface from the order queue to execute according to the task execution time or the preset priority, so that the calling efficiency of the interface can be maximized.
In one embodiment, step 104 further comprises: acquiring a center identifier of a registration center associated with the arrangement interface; acquiring an interface identifier of an effective interface in the micro service in an effective state according to the center identifier; extracting interface calling information in the zone bit of each subtask from the order task; an initial interface is determined from the interface identification that matches each subtask based on the interface call information.
In particular, registries, which may be referred to as service discovery systems, are used to register different external services, each registry may contain multiple interfaces. The registry is a storage warehouse of service instance information, is also a bridge for interaction between service providers and service consumers, and mainly provides two core functions of service registration and service discovery, and ensures the mutual calling between micro services on the premise of realizing decoupling of the service providers and the service consumers. The registry may include nacos, zk, consul, etcd, etc.
The registry can be connected with a plurality of micro services, and the micro services connected with the registry exist as equal clients and can be communicated and perceived with each other. By associating the orchestration interface with the registry, the association of the orchestration interface with interfaces under the respective micro-services to which the registry is connected may be achieved. Assuming j registries registered by the orchestration interface, the micro-service corresponding to the ith registry i has m i The number of interfaces corresponding to the ith micro-service is n i If yes, the interface corresponding to the registry i is m i *n i The aggregate interface of the orchestration interfaces is the sum of all interfaces of j registries, i.e. sigma (m) i *n i ) And i=1, 2,3 … … j. Therefore, aggregation of a plurality of interfaces can be realized by taking the registry as a unit, the aggregation capability of the arrangement interface to the interfaces can be further improved, and the processing efficiency of the arrangement interface to the complex service request is improved.
In this embodiment, one arrangement interface may register a plurality of registries, and the MES system may pre-establish a correspondence between each arrangement interface and the center identifier of the registered registry, and acquire the corresponding center identifier based on the correspondence. The center identifier is used for uniquely identifying the corresponding registration center. The center identifier may be a number, letter, character, or the like, identifying the registration center.
In one embodiment, when a micro service is down or down, and when all micro services and interface identifiers associated with a registry are programmed, the down or down micro service and the interface identifiers associated with the micro service are automatically removed, and only the interface identifiers of available interfaces are obtained. Thus, the usability of the interface can be improved, and the interference caused by useless interfaces is prevented.
In one embodiment, the MES system issues an order task A that includes information for a plurality of sub-tasks, one of which includes or is a material preparation task A. The MES system determines the arrangement interface to be called according to the order task A. And determining the initial interface which needs to be called according to the information of each subtask. The information of the subtasks comprises interface calling information, an initial interface to be called can be determined from the interface calling information, and the interface calling information can be extracted from the zone bit of the corresponding subtask.
Specifically, after the arrangement interface is determined, the center identifier of the associated registration center can be read according to the arrangement interface, and then the micro-service identifier in a valid state can be obtained according to the center identifier, so that all the interface identifiers under the micro-service identifier can be obtained. After the interface call information is obtained from the flag bit, the corresponding interface matched with the subtask can be obtained from all the interface identifiers to be used as the initial interface.
In the method, the interface arrangement is carried out by utilizing the registration center, so that the processing efficiency of the interface arrangement processing complex order tasks is greatly improved.
In one embodiment, in the process of searching for the standby interface, searching for the standby interface may be performed from the active interfaces in the micro service in the active state. Specifically, whether the device connected to each effective interface is the same as the device corresponding to the interface with which the call fails or not may be compared, and when the interface corresponding to the same device is found therein, the interface is used as a standby interface.
Specifically, when the result of re-initiating the response through the material interface is still that the interface call fails, extracting the equipment identifier of the equipment connected corresponding to the interface with the call failure, and matching the equipment identifier of the equipment connected to the effective interface in the micro-service with all the effective states, when the matching is successful, acquiring the interface corresponding to the successfully matched interface as a standby interface, wherein the interface is not the interface with the call failure. The electronic device may respond by calling the alternate interface in place of the failed call and update the second result by taking the response result of the alternate interface as the response result of the failed call interface.
In this embodiment, the registration center is utilized to perform interface arrangement, so that the capability of interface arrangement is greatly improved, and when interface call failure occurs, a proper standby interface can be found in more interfaces, so that the success rate of order task processing is further improved.
In one embodiment, as shown in FIG. 3, an order task processing device in an MES system is provided, the device comprising:
the orchestration interface calling module 302 is configured to call a corresponding orchestration interface to respond to an order task to be processed, where the order task includes a plurality of subtasks, and at least one subtask includes a material preparation task.
The subtask processing module 304 is configured to invoke an initial interface corresponding to the subtask from the orchestration interface to respond to the corresponding subtask; for an order task, when material supplement processing is carried out on a material preparation task according to an arrangement link with an initial interface, calling a material interface matched with each material to respond, and judging whether the material preparation is successful according to a material result fed back through each material interface; and when the material preparation task is unsuccessful, ending the processing of the material preparation task.
The task result processing module 306 is configured to aggregate the processing results of each subtask processing, and feed back the processing results to the receiving end through the arrangement interface.
In one embodiment, the material interfaces have a plurality of material interfaces, and the arrangement logic between each material interface is parallel arrangement; the subtask processing module 304 is further configured to count a material-requiring result output by each material-requiring interface according to the result voter, and determine whether the material is ready to be successful according to the counted result; and calling a next-stage interface in the arranging link where the material interface in the arranging link is positioned to continuously process the subtask corresponding to the material preparation task.
In one embodiment, the subtask processing module 304 is further configured to determine that the material preparation is successful when the proportion of the results indicating that the replenishment is successful in the statistical result reaches a first predetermined proportion.
In one embodiment, the subtask processing module 304 is further configured to detect whether the material-required results of the statistical results, which indicate the necessary materials, are all successful in replenishment when the proportion of the results, which indicate the successful replenishment, in the statistical results is smaller than the first preset proportion, and if so, determine that the material preparation is successful when the proportion of the second results, which indicate the successful replenishment, exceeds the second preset proportion after detecting the material-required results, which indicate the successful replenishment, in the statistical results.
In one embodiment, the subtask processing module 304 is further configured to extract a reason for unsuccessful return through the material interface when the reason is smaller than a second preset ratio, and reinitiate response through the material interface when the reason indicates that the interface call fails, and update the second result according to the result of the reinitiation response.
In one embodiment, the material preparation task includes material quantity information; the subtask processing module 304 is further configured to determine the number of times of calling the matched material interface according to the material quantity information; circularly calling the matched material interface according to the calling times; and when the material-requiring results which are output through the material-requiring interface each time and are aimed at the same material are all indicative of successful material-requiring, judging that the supplementation of the same material is successful.
In one embodiment, the subtask processing module 304 is further configured to obtain a center identifier of a registry associated with the orchestration interface; acquiring an interface identifier of an effective interface in the micro service in an effective state according to the center identifier; extracting interface calling information in the zone bit of each subtask from the order task; an initial interface is determined from the interface identification that matches each subtask based on the interface call information.
In one embodiment, a computer-readable storage medium is provided having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the steps of the method embodiments described above.
In one embodiment, there is also provided an electronic device comprising one or more processors; and a memory, wherein the memory stores one or more programs, and the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the steps in the method embodiments described above.
In one embodiment, as shown in fig. 4, a schematic structural diagram of an electronic device for implementing embodiments of the present application is shown. The electronic device 400 includes a Central Processing Unit (CPU) 401, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage section 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the electronic device 400 are also stored. The CPU 401, ROM 402, and RAM 403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
The following components are connected to the I/O interface 405: an input section 406 including a keyboard, a mouse, and the like; an output portion 407 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage section 408 including a hard disk or the like; and a communication section 409 including a network interface card such as a LAN card, a modem, or the like. The communication section 409 performs communication processing via a network such as the internet. The drive 410 is also connected to the I/O interface 405 as needed. A removable medium 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed.
In particular, according to embodiments of the present application, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer-readable medium carrying instructions that, in such embodiments, may be downloaded and installed from a network via communications portion 409 and/or installed from removable medium 411. When executed by a Central Processing Unit (CPU) 401, performs the various method steps described in this application.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the present application and form different embodiments. For example, in the claims below, any of the claimed embodiments may be used in any combination. The information disclosed in this background section is only for enhancement of understanding of the general background of the application and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art already known to a person skilled in the art.

Claims (8)

1. A method for processing an order task in an MES system, the method comprising:
calling a corresponding arrangement interface to respond to an order task to be processed, wherein the order task comprises a plurality of subtasks, and at least one subtask comprises a material preparation task;
calling an initial interface corresponding to the subtask from the arrangement interface to respond to the corresponding subtask;
for the order task, when material supplement processing is carried out on the material preparation task according to an arrangement link with the initial interface, calling a material-to-be-processed interface matched with each material to respond, and judging whether the material preparation is successful or not according to a material-to-be-processed result fed back through each material-to-be-processed interface;
ending the processing of the material preparation task when the material preparation task is unsuccessful;
summarizing the processing result of each subtask processing, and feeding back the processing result to a receiving end through the arrangement interface;
and judging whether the material is prepared successfully according to the material-requiring results fed back through each material-requiring interface, wherein the method comprises the following steps: and counting the material requiring results output by each material requiring interface according to a result voter, judging that the material preparation is successful when the proportion of the results showing the supplement success in the counting results reaches a first preset proportion, detecting whether the material requiring results showing the necessary materials in the counting results are all the supplement success or not when the proportion of the results showing the supplement success in the counting results is smaller than the first preset proportion, and judging that the material preparation is successful when the proportion of the second results showing the supplement success exceeds a second preset proportion after detecting the material requiring results showing the supplement success after the removal of the necessary materials if the material requiring results are all the supplement success.
2. The method of claim 1, wherein the plurality of material interfaces, each of the arrangement logic between the material interfaces is arranged in parallel;
the method further comprises the steps of: and when the material preparation is judged to be successful, calling a next interface in the arranging link where the material interface is positioned in the arranging link to continuously process the subtask corresponding to the material preparation task.
3. The method according to claim 1, wherein the method further comprises:
and when the reason is smaller than the second preset proportion, extracting an unsuccessful reason returned by the material interface, and when the reason represents that the interface call fails, restarting to respond by the material interface, and updating the second result according to the result of the re-response.
4. The method of claim 1, wherein the material preparation task includes material quantity information; the calling the material interface matched with each material to respond comprises the following steps:
determining the calling times of the matched material interface according to the material quantity information;
performing cyclic call on the matched material interface according to the call times;
The step of counting the material-required results output by each material-required interface according to the result voter comprises the following steps:
and when the material-requiring results which are output through the material-requiring interface each time and are aimed at the same material are all indicative of successful material-requiring, judging that the same material is successfully supplemented.
5. The method of any one of claims 1 to 4, wherein invoking an initial interface corresponding to the subtask from the orchestration interface is responsive to the corresponding subtask, comprising:
acquiring a center identifier of a registration center associated with the arrangement interface;
acquiring an interface identifier of an effective interface in the micro service in an effective state according to the center identifier;
extracting interface calling information in the zone bit of each subtask from the order task;
and determining an initial interface matched with each subtask from the interface identifiers based on the interface calling information.
6. An order task processing device in an MES system, the device comprising:
the scheduling interface calling module is used for calling a corresponding scheduling interface to respond to an order task to be processed, the order task comprises a plurality of subtasks, and at least one subtask comprises a material preparation task;
The subtask processing module is used for calling an initial interface corresponding to the subtask from the arrangement interface to respond to the corresponding subtask; for the order task, when material supplement processing is carried out on the material preparation task according to an arrangement link with the initial interface, calling a material-to-be-processed interface matched with each material to respond, and judging whether the material preparation is successful or not according to a material-to-be-processed result fed back through each material-to-be-processed interface; ending the processing of the material preparation task when the material preparation task is unsuccessful;
the task result processing module is used for summarizing the processing result of each subtask processing and feeding back the processing result to the receiving end through the arrangement interface;
the subtask processing module is further used for counting the material requiring results output by each material requiring interface according to the result voter, judging that the material preparation is successful when the proportion of the results showing the supplement success in the counting results reaches a first preset proportion, detecting whether the material requiring results showing the necessary materials in the counting results are all the supplement success or not when the proportion of the results showing the supplement success in the counting results is smaller than the first preset proportion, and judging that the material preparation is successful when the proportion of the second results showing the supplement success exceeds the second preset proportion after the material requiring results showing the supplement success are detected after the material requiring results showing the necessary materials are removed.
7. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-5.
8. A computer readable medium having stored thereon executable instructions which when executed by a processor cause the processor to perform the method of any of claims 1 to 5.
CN202310409453.9A 2023-04-18 2023-04-18 Order task processing method, device, medium and equipment in MES system Active CN116167590B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310409453.9A CN116167590B (en) 2023-04-18 2023-04-18 Order task processing method, device, medium and equipment in MES system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310409453.9A CN116167590B (en) 2023-04-18 2023-04-18 Order task processing method, device, medium and equipment in MES system

Publications (2)

Publication Number Publication Date
CN116167590A CN116167590A (en) 2023-05-26
CN116167590B true CN116167590B (en) 2023-07-28

Family

ID=86422217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310409453.9A Active CN116167590B (en) 2023-04-18 2023-04-18 Order task processing method, device, medium and equipment in MES system

Country Status (1)

Country Link
CN (1) CN116167590B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109359903A (en) * 2018-08-28 2019-02-19 广东申菱环境系统股份有限公司 A kind of material allocation method and system of the air-conditioned workshop based on MES system
CN113742908A (en) * 2021-08-24 2021-12-03 吉利汽车集团有限公司 Material alignment judgment method based on discrete simulation
CN114254870A (en) * 2021-11-19 2022-03-29 苏州浪潮智能科技有限公司 Automatic production scheduling method and device for production orders, electronic equipment and storage medium
CN115471092A (en) * 2022-09-22 2022-12-13 青岛奥利普奇智智能工业技术有限公司 Food production work reporting method and device, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7443282B2 (en) * 2005-05-05 2008-10-28 Industrial Technology Research Institute System and a method, including software and hardware, for providing real-time and synchronization views of supply chain information
DE102014100473A1 (en) * 2014-01-16 2015-07-16 Soflex Fertigungssteuerungs-Gmbh Process for organizing the workflow of production machines
EP3764178A1 (en) * 2019-07-08 2021-01-13 Siemens Aktiengesellschaft Method for integrating a machine or a module, interface for integration, computer program, and computer-readable medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109359903A (en) * 2018-08-28 2019-02-19 广东申菱环境系统股份有限公司 A kind of material allocation method and system of the air-conditioned workshop based on MES system
CN113742908A (en) * 2021-08-24 2021-12-03 吉利汽车集团有限公司 Material alignment judgment method based on discrete simulation
CN114254870A (en) * 2021-11-19 2022-03-29 苏州浪潮智能科技有限公司 Automatic production scheduling method and device for production orders, electronic equipment and storage medium
CN115471092A (en) * 2022-09-22 2022-12-13 青岛奥利普奇智智能工业技术有限公司 Food production work reporting method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN116167590A (en) 2023-05-26

Similar Documents

Publication Publication Date Title
CN107729139B (en) Method and device for concurrently acquiring resources
CN110928655A (en) Task processing method and device
US20100088104A1 (en) Systems and methods for providing real-time data notification and related services
CN109656782A (en) Visual scheduling monitoring method, device and server
CN105892996A (en) Assembly line work method and apparatus for batch data processing
CN111400011B (en) Real-time task scheduling method, system, equipment and readable storage medium
WO2019100612A1 (en) Electronic insurance policy generation method and apparatus, computer device and storage medium
CN110825535A (en) Job scheduling method and system
CN100410885C (en) Method for controlling upper limit of multiplicity of server, management server,
CN111274052A (en) Data distribution method, server, and computer-readable storage medium
CN110611707A (en) Task scheduling method and device
CN114782130A (en) Planning system and operation method for production enterprise integration
CN108762932A (en) A kind of cluster task scheduling system and processing method
CN114240207A (en) Intelligent work order distribution method, system and medium
CN116167590B (en) Order task processing method, device, medium and equipment in MES system
CN115544044A (en) Data consistency keeping method, device, equipment and storage medium
CN113821322A (en) Loosely-coupled distributed workflow coordination system and method
US8978049B2 (en) System and method for realtime detection of process disruptions in event-driven architectures
CN111612375A (en) IT equipment allocation management and control system and allocation method thereof
CN116719623A (en) Job scheduling method, job result processing method and device
CN111431733A (en) Service alarm coverage information evaluation method and device
CN115712572A (en) Task testing method and device, storage medium and electronic device
CN111913784A (en) Task scheduling method and device, network element and storage medium
CN115964151A (en) Flow calculation task scheduling system and method for big data processing
CN115426287A (en) System monitoring and optimizing method, device, electronic equipment and medium

Legal Events

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