MOM service domain-oriented component construction method and device, equipment and medium
By performing semantic analysis and extracting state changes from the business description data of MOM services, business components are constructed, solving the problem of low component development efficiency in traditional MOM business services and achieving rapid and efficient component construction.
Patent Information
- Application Number
- CN202510886473.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2045-06-30
AI Technical Summary
Traditional MOM business service design suffers from low component development efficiency and struggles to adapt to rapidly changing business needs.
By determining the business description data of the target MOM business, semantic analysis is performed to obtain the main business object, and business components are built based on data extracted from state changes. Parameters are passed in JSON format to improve the efficiency of component building.
It enables accurate identification and extraction of changes in the data format of the main business object, and completes component construction quickly and efficiently, avoiding messy and disordered preliminary analysis and improving component development efficiency.
Smart Images

Figure CN120994167A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular to a component construction method and device for MOM business domain, equipment and medium. BACKGROUND
[0002] With the deepening of enterprise digital transformation, MOM (Message-Oriented Middleware) business domain plays a key role in distributed system integration, asynchronous communication and data exchange. Traditional MOM business service design often has problems such as low component development efficiency, which is difficult to adapt to rapidly changing business needs. SUMMARY
[0003] Therefore, the purpose of the present application is to provide a component construction method and device for MOM business domain, equipment and medium, in order to improve the problem of low component development efficiency in the prior art.
[0004] To achieve the above purpose, the present application adopts the following technical solutions: A component construction method for MOM business domain, comprising: determining the business description data of the target MOM business, and performing semantic analysis on the business description data to obtain the main business object of the target MOM business; based on the business description data, extracting the state change of the main business object to obtain at least one state change extraction data of the main business object, wherein in each state change extraction data, the data form of the main business object changes; based on each state change extraction data, determine at least one to-be-constructed business component corresponding to each state change extraction data, wherein the function of each to-be-constructed business component is to process the main business object to change the data form; respectively, each to-be-constructed business component is processed to form a constructed business component corresponding to each to-be-constructed business component.
[0005] In the preferred selection of the present application, in the above component construction method for MOM business domain, the step of determining the business description data of the target MOM business and performing semantic analysis on the business description data to obtain the main business object of the target MOM business comprises: obtain the business description data of the target MOM business, and extract the business requirement profile data from the business description data; performing semantic analysis on the business requirement profile data to obtain the main business object of the target MOM business.
[0006] In the preferred selection of the present application, in the above-mentioned component construction method for MOM business domain, the step of performing semantic analysis on the business requirement profile data to obtain the main business object of the target MOM business comprises: performing semantic analysis on the business requirement profile data to obtain part-of-speech information of each data unit in the business requirement profile data, wherein the part-of-speech information comprises one of subject, predicate, object, attributive, adverbial and complement; determining the data unit with the part-of-speech information belonging to the object, and determining the data unit as the main business object of the target MOM business.
[0007] In the preferred selection of the present application, in the above-mentioned component construction method for MOM business domain, the step of extracting state changes of the main business object based on the business description data to obtain at least one state change extraction data of the main business object comprises: performing decomposition processing on the business description data based on the main business object to form at least one business link description data corresponding to the business description data; respectively determining state changes of each business link description data, and determining the business link description data with state changes as the state change extraction data of the main business object.
[0008] In the preferred selection of the present application, in the above-mentioned component construction method for MOM business domain, the step of respectively determining at least one to-be-constructed business component corresponding to each state change extraction data based on each state change extraction data comprises: respectively determining whether each state change extraction data can be decomposed; for each state change extraction data that cannot be decomposed, determining a corresponding to-be-constructed business component based on the state change extraction data; for each state change extraction data that can be decomposed, determining a plurality of to-be-constructed business components corresponding to the state change extraction data based on decomposition results of the state change extraction data.
[0009] In the preferred selection of the present application, in the above-mentioned component construction method for MOM business domain, the step of respectively determining a plurality of to-be-constructed business components corresponding to each state change extraction data that can be decomposed based on decomposition results of the state change extraction data comprises: for each state change extraction data that can be decomposed, performing decomposition processing on the state change extraction data based on the main business object to form at least one state change decomposition data corresponding to the state change extraction data; The state change determination is performed on each of the state change decomposition data, and based on each of the state change decomposition data with the state change, a corresponding to-be-constructed business component is determined.
[0010] In the preferred selection of the present application, in the above-mentioned component construction method for the MOM business domain, the step of performing component construction processing on each of the to-be-constructed business components to form a constructed business component corresponding to each of the to-be-constructed business components comprises: The component construction rule is determined, wherein the component construction rule comprises: string constants involved in the business component are extracted into an external configuration file, the name and the directory of the external configuration file are fixed, and the business component can obtain the content in the external configuration file; if the number of input parameters of the business component is greater than or equal to a first value, the input parameters are transmitted in a whole through a json format, and the json format is parsed in the business component to obtain the input parameters; and if the number of output parameters of the business component is greater than or equal to a second value, the output parameters are returned in a whole through the json format. Based on the component construction rule, the component construction processing is performed on each of the to-be-constructed business components to form a constructed business component corresponding to each of the to-be-constructed business components.
[0011] The present application also provides a component construction device for a MOM business domain, comprising: A business object determination module is configured to determine business description data of a target MOM business, and perform semantic analysis on the business description data to obtain a main business object of the target MOM business. A state change extraction module is configured to perform state change extraction on the main business object based on the business description data to obtain at least one state change extraction data of the main business object, wherein in each of the state change extraction data, the data form of the main business object is changed. A business component identification module is configured to determine at least one to-be-constructed business component corresponding to each of the state change extraction data based on each of the state change extraction data, wherein the function of each of the to-be-constructed business component is to process the main business object to change the data form. A business component construction module is configured to perform component construction processing on each of the to-be-constructed business components to form a constructed business component corresponding to each of the to-be-constructed business components.
[0012] On the basis of the above, the present application also provides an electronic device, comprising: A memory is configured to store a computer program. A processor connected with the memory, used to execute the computer program stored in the memory, so as to realize the component construction method for the MOM service domain.
[0013] Based on the above, the present application further provides a computer readable storage medium, which stores a computer program, and the computer program executes the steps of the component construction method for the MOM service domain.
[0014] The component construction method and device for the MOM service domain, the equipment and the medium provided by the present application firstly determine the service description data of the target MOM service, and perform semantic analysis on the service description data to obtain the main service object of the target MOM service; secondly, based on the service description data, the state change extraction of the main service object is performed to obtain at least one state change extraction data of the main service object; then, based on each state change extraction data, at least one to-be-constructed service component corresponding to each state change extraction data is determined; finally, each to-be-constructed service component is processed to form a constructed service component corresponding to each to-be-constructed service component. Based on the above, through semantic analysis and state change extraction, the accurate and reliable identification and extraction of the data existing form change of the main service object can be realized, so that the construction processing of the component can be quickly and efficiently performed based on the identification and extraction results, thereby avoiding the problem that the component can be quickly and efficiently constructed due to the preliminary analysis of the chaotic and disordered component construction, and the problem of low component development efficiency in the prior art can be improved. BRIEF DESCRIPTION OF DRAWINGS
[0015] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the following preferred embodiments are specifically described in detail below, and the accompanying drawings are as follows.
[0016] Figure 1 The structural block diagram of the electronic equipment provided by the embodiment of the present application is shown.
[0017] Figure 2 The flowchart of the component construction method for the MOM service domain provided by the embodiment of the present application is shown.
[0018] Figure 3 The block diagram of the component construction device for the MOM service domain provided by the embodiment of the present application is shown. DETAILED DESCRIPTION
[0019] In order to make the purposes, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application and not all embodiments of the present application. The components of the embodiments of the present application described and shown in the drawings herein can be arranged and designed in various different configurations.
[0020] Therefore, the detailed description of the embodiments of the present application provided below in the drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work are within the scope of protection of the present application.
[0021] As shown in Figure 1 The embodiments of the present application provide an electronic device. The electronic device can include a memory, a processor, and a component construction apparatus for a MOM service domain.
[0022] In detail, the memory and the processor are electrically connected to realize data transmission or interaction. For example, the memory and the processor can be electrically connected through one or more communication buses or signal lines. The component construction apparatus for the MOM service domain includes at least one software function module stored in the memory in the form of software or firmware. The processor is configured to execute the executable computer programs stored in the memory, for example, the software function modules and computer programs included in the component construction apparatus for the MOM service domain, to realize the component construction method for the MOM service domain provided by the embodiments of the present application.
[0023] Optionally, the memory can be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read only memory (PROM), an erasable programmable read only memory (EPROM), an electrically erasable programmable read only memory (EEPROM), and the like.
[0024] Optionally, the processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), a system on chip (SoC), etc. It can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.
[0025] It can be understood that Figure 1 The structure shown is only schematic, and the electronic device can further include more or fewer components than those shown, or have a different configuration of components than those shown, such as a communication unit for information interaction with other devices. Figure 1 Figure 1 The structure shown is only schematic, and the electronic device can further include more or fewer components than those shown, or have a different configuration of components than those shown, such as a communication unit for information interaction with other devices.
[0026] In combination with Figure 2 The embodiments of the present application also provide a component construction method for a MOM service domain of the electronic device. The method steps defined by the flow of the component construction method for the MOM service domain can be implemented by the electronic device. The specific flow shown in Figure 2 will be described in detail below.
[0027] In step S110, the service description data of a target MOM service is determined, and semantic analysis is performed on the service description data to obtain a main service object of the target MOM service.
[0028] In the embodiments of the present application, the electronic device can determine the service description data of a target MOM service, and perform semantic analysis on the service description data to obtain a main service object of the target MOM service. The service description data can be used to describe the development requirements of the entire service of the target MOM service, and the main service object can be an object of service processing, such as process inspection data, etc.
[0029] In step S120, at least one state change extraction data of the main service object is obtained based on the service description data.
[0030] In the embodiments of the present application, after the main service object is determined, the electronic device can perform state change extraction on the main service object based on the service description data to obtain at least one state change extraction data of the main service object. In each of the state change extraction data, the data form of the main service object changes, such as process inspection data entering the memory of a server from a mobile device, etc.
[0031] Step S130, respectively based on each of the state change extraction data, determine at least one to be constructed business component corresponding to each of the state change extraction data.
[0032] In the embodiment of the present application, after obtaining the at least one state change extraction data of the main business object, the electronic device can respectively based on each of the state change extraction data, determine at least one to be constructed business component corresponding to each of the state change extraction data. Wherein, the function of each of the to be constructed business component is to process the main business object, so that the data existing form changes, for example, the server obtains the process inspection data from the mobile device, so that the process inspection data from the mobile device into the memory of the server.
[0033] Step S140, respectively on each of the to be constructed business component component construction processing, forming each of the to be constructed business component corresponding to the constructed business component.
[0034] In the embodiment of the present application, after determining the to be constructed business component, the electronic device can respectively on each of the to be constructed business component component construction processing, that is, complete the corresponding component development, forming each of the to be constructed business component corresponding to the constructed business component.
[0035] Based on the above, through semantic analysis and state change extraction, the accurate and reliable identification and extraction of the data existing form change of the main business object can be realized, therefore, the construction processing of the component can be quickly and efficiently based on the results of identification and extraction, so as to avoid the problem that the component can be quickly and efficiently completed by the preliminary analysis of the chaotic and disordered component construction, therefore, the problem of low efficiency of component development in the prior art can be improved.
[0036] The first aspect, for step S110 need to be explained is that the specific way of determining the main business object of the target MOM business is not limited, can be selected according to actual demand.
[0037] For example, in an alternative embodiment, in order to improve the reliability of determining the main business object, the above step S110 can further include step S111 and step S112, the specific content of each step is described as follows.
[0038] Step S111, obtain the business description data of the target MOM business, and extract the business demand profile data from the business description data.
[0039] In the embodiments of the present application, the service description data of the target MOM service can be acquired, and the service requirement profile data can be extracted from the service description data. For example, the service description data can be acquired in response to an input of a component developer or the like. In addition, the service requirement profile data can be extracted from the service description data in the following manners: by a trained neural network model to extract the summary content of the service description data, or in response to an input or selection of a component developer or the like. For example, in a specific application scenario, the service requirement profile data can be a one-sentence summary of the entire service requirement, and specifically, the service requirement profile data can be "exporting the process inspection data in the process inspection equipment to an Excel table after correction".
[0040] In step S112, the service requirement profile data is subjected to semantic analysis to obtain the main business object of the target MOM service.
[0041] In the embodiments of the present application, after the service requirement profile data is extracted, the service requirement profile data can be subjected to semantic analysis to obtain the main business object of the target MOM service. For example, "process inspection data" can be analyzed from "exporting the process inspection data in the process inspection equipment to an Excel table after correction" as the main business object.
[0042] It can be understood that the specific manner of the semantic analysis in step S112 is not limited. For example, in an alternative embodiment, in order to further improve the reliability of determining the main business object, step S112 can further include step S112a and step S112b, and the specific contents of the steps are as follows.
[0043] In step S112a, the service requirement profile data is subjected to semantic analysis to obtain the part-of-speech information of each data unit in the service requirement profile data.
[0044] In the embodiments of the present application, the service requirement profile data can be subjected to semantic analysis to obtain the part-of-speech information of each data unit in the service requirement profile data. The part-of-speech information includes one of subject, predicate, object, attribute, adverbial and complement. For example, the part-of-speech information of each data unit (word) can be obtained by subjecting the service requirement profile data to semantic analysis based on a text analysis technique, or the part-of-speech information of each data unit can be obtained in response to a part-of-speech tagging operation of a component developer.
[0045] In step S112b, the data unit with the part-of-speech information belonging to the object is determined as the main business object of the target MOM service.
[0046] In the embodiment of the present application, after obtaining the part-of-speech information of each data unit, the data unit to which the part-of-speech information belongs can be determined as an object, and the data unit is determined as the main business object of the target MOM business. For example, in the sentence "after correcting the process inspection data in the process inspection equipment, the process inspection data is exported to an excel table", the object is "process inspection data". Therefore, the "process inspection data" can be determined as the main business object of the target MOM business.
[0047] In the second aspect, the specific manner of extracting the state change of the main business object is not limited, and can be selected according to actual needs.
[0048] For example, in an alternative embodiment, in order to accurately and reliably obtain each state change extraction data, the above-mentioned step S120 can further include steps S121 and S122, and the specific contents of each step are as follows.
[0049] Step S121: based on the main business object, the business description data is decomposed to form at least one business link description data corresponding to the business description data.
[0050] In the embodiment of the present application, the business description data can be decomposed based on the main business object to form at least one business link description data corresponding to the business description data. That is, different decompositions can be implemented according to different processing of the main business object, so as to form at least one link, that is, to obtain at least one business link description data. For example, the following four links are included: 1, obtaining inspection data from the inspection equipment; 2, checking the data; 3, data warehousing; 4, data export to excel. In addition, the specific decomposition method can be implemented in response to the operation of the component developer, or can be implemented by a trained neural network model, which can be selected according to actual needs.
[0051] Step S122: respectively determining the state change of each business link description data, and determining the business link description data with the state change as the state change extraction data of the main business object.
[0052] In the embodiments of the present application, after the business link description data is formed by decomposition, state change determination can be performed on each of the business link description data respectively, and the business link description data with state change is determined as the state change extraction data of the main business object. For example, for the four links mentioned above, the actions (i.e. acquisition, verification, warehousing and export) in each link can change the data existence form.
[0053] In the third aspect, it needs to be explained that the specific manner of determining at least one to-be-constructed business component corresponding to each of the state change extraction data is not limited, and can be selected according to actual needs.
[0054] For example, in an alternative implementation, in order to ensure that the coupling degree of the business component formed by construction is relatively low, reuse can be performed, so as to further improve the efficiency of component development. The step S130 can further include steps S131, S132 and S133, and the specific contents of each step are as follows.
[0055] In step S131, it is determined whether each of the state change extraction data can be decomposed.
[0056] In the embodiments of the present application, it can be determined whether each of the state change extraction data can be decomposed, for example, the operation of the component developer on the judgment result of the state change extraction data can be responded to, so as to determine whether it can be decomposed, such as the component developer determines that it can be decomposed or determines that it cannot be decomposed, wherein the standard of whether it can be decomposed can be whether only one change occurs in the process of the corresponding data existence form changing (from the perspective of the bottom logic of technical implementation), if only one change occurs, it is determined that it cannot be decomposed, if multiple changes need to occur, it is determined that it can be decomposed.
[0057] In step S132, for each state change extraction data that cannot be decomposed, a corresponding to-be-constructed business component is determined based on the state change extraction data.
[0058] In the embodiment of the present application, after the decomposition confirmation, data can be extracted for each state change that cannot be decomposed, and based on the state change extraction data, a corresponding to-be-constructed business component is determined. For example, for the state change extraction data "obtain test data from the test device", the specific data exists in the form of "obtain process test data", that is, there is only one change from the mobile device to the memory of the server, and therefore, further decomposition cannot be performed, and thus, a corresponding to-be-constructed business component can be determined. For the state change extraction data "verify the data", there is only one change, and therefore, further decomposition cannot be performed, and thus, a corresponding to-be-constructed business component can be determined. For the state change extraction data "data warehousing", there is only one change, and therefore, further decomposition cannot be performed, and thus, a corresponding to-be-constructed business component can be determined. For the state change extraction data "data export to excel", there is only one change, and therefore, further decomposition cannot be performed, and thus, a corresponding to-be-constructed business component can be determined.
[0059] In step S133, data is extracted for each state change that can be decomposed, and based on the decomposition result of the state change extraction data, a plurality of to-be-constructed business components corresponding thereto are determined.
[0060] In the embodiment of the present application, after the decomposition confirmation, data is extracted for each state change that can be decomposed, and based on the decomposition result of the state change extraction data, a plurality of to-be-constructed business components corresponding thereto are determined, and thus, the granularity of the business component formed by construction can be smaller, and the coupling degree of the business component is further reduced and the reuse degree of the business component is improved.
[0061] It can be understood that in the above step S133, the specific manner of determining the plurality of to-be-constructed business components is not limited, for example, in an alternative implementation, the above step S133 can further include the following contents: First, data can be extracted for each state change that can be decomposed, and based on the main business object, the state change extraction data is decomposed (as described above) to form at least one state change decomposition data corresponding to the state change extraction data; Second, the state change determination (as described above) can be performed on each state change decomposition data, and based on each state change decomposition data with the state change, a to-be-constructed business component corresponding thereto is determined. That is, in the embodiment of the present application, decomposition is performed iteratively until decomposition cannot be continued, and thus, the business component formed belongs to the minimum business component, that is, a most basic function is implemented, and therefore, the coupling degree can be lower and the reuse degree can be higher.
[0062] In the fourth aspect, it is to be noted that the specific manner of performing the component construction process on each of the to-be-constructed business components is not limited and can be selected according to actual needs.
[0063] For example, in an alternative embodiment, the step S140 can further include the following implementable contents: Firstly, the component construction rule can be determined, wherein the component construction rule includes: extracting the string constant involved in the business component into an external configuration file (in this way, the management and update can be facilitated, and each time the constant value needs to be changed, the configuration file needs to be modified only once instead of repeatedly updating in multiple places. Moreover, the same configuration file can be referenced by multiple business components, avoiding manual copying and maintenance of the same string constant in each business component. In addition, when a constant needs to be added or modified, the configuration file needs to be updated, without worrying about the dependency and maintenance problems of other business components), the name and directory of the external configuration file are fixed, and the business component can obtain the content in the external configuration file; if the number of input parameters of the business component is greater than or equal to a first value (for example, 5), the input parameters are transmitted in a whole through the json format, and the json format is parsed in the business component to obtain the input parameters, in this way, the performance problem and logical confusion caused by too complex input can be avoided, that is, multiple parameters are encapsulated in a structure, repeated processing code is reduced, and the maintainability and readability of the component are improved; if the number of output parameters of the business component is greater than or equal to a second value (for example, 2), the output parameters are returned in a whole through the json format, and multiple output parameters are encapsulated into a structure (JSON structure), which can improve the readability and reusability of the business component. Secondly, based on the component construction rule, the component construction process can be performed on each of the to-be-constructed business components to form a constructed business component corresponding to each of the to-be-constructed business components. For example, corresponding to the four links in the foregoing example, the following four business components can be formed: 1. Obtain process inspection data component: Input parameters: interface address provided by a tool device, data date; Output: unstructured process inspection data; 2. Verify process inspection data component: Input parameters: unstructured process inspection data; Output: structured process inspection data after completion of verification and cleaning; 3. Store process inspection data component: Input parameters: structured process inspection data; Output: message of successful storage; 4. Exporting process inspection data component: Input parameter: structured process inspection data; Output: excel table; Based on this, if other MOM business needs to use process inspection data, then the "acquiring process inspection data component" and the "checking process inspection data component" can be directly reused.
[0064] In addition, in some other embodiments, the above business components can also be defined and operated accordingly, for example, the following contents can be determined: Business name: define the business name according to the function of the business implementation, generally no more than 10 words; Business function: describe the function of the business, where the data comes from, and what product is finally output after the business processing; Classification: classify the business according to the business classification rules of the MOM business domain; Usage scenario: describe the scenarios in which the business is used, such as timed calling; Implementation language: the development language of the business, mainly considering the development efficiency and performance requirements of the business; Business input: define the input data of the business, mainly the source of the data, such as database or file, etc.; Business output: the product of the business.
[0065] In combination Figure 3 , the embodiment of the application further provides a MOM business domain-oriented component construction device applicable to the above electronic device. Wherein, the MOM business domain-oriented component construction device can include a business object determination module, a state change extraction module, a business component identification module and a business component construction module.
[0066] In detail, the business object determination module can be used to determine the business description data of the target MOM business, and perform semantic analysis on the business description data to obtain the main business object of the target MOM business. In the embodiment of the application, the business object determination module can be used to execute Figure 2 The related content of the business object determination module can be referred to the description of step S110 in the foregoing.
[0067] In detail, the state change extraction module can be used to extract the state change of the main business object based on the business description data to obtain at least one state change extraction data of the main business object, wherein the data form of the main business object changes in each state change extraction data. In the embodiment of the application, the state change extraction module can be used to execute Figure 2The step S120 is shown, and the related content of the state change extraction module can refer to the foregoing description of the step S120.
[0068] In detail, the business component identification module can be configured to identify at least one to-be-constructed business component corresponding to each of the state change extraction data based on each of the state change extraction data respectively, wherein a function of each of the to-be-constructed business component is to process the main business object so that the data exists in a changed form. In an embodiment of the present application, the business component identification module can be configured to execute the following steps. Figure 2 The step S130 is shown, and the related content of the business component identification module can refer to the foregoing description of the step S130.
[0069] In detail, the business component construction module can be configured to perform component construction processing on each of the to-be-constructed business component respectively, so as to form a constructed business component corresponding to each of the to-be-constructed business component. In an embodiment of the present application, the business component construction module can be configured to execute the following steps. Figure 2 The step S140 is shown, and the related content of the business component construction module can refer to the foregoing description of the step S140.
[0070] In an embodiment of the present application, corresponding to the above-mentioned component construction method applied to the MOM business domain of the electronic device, a computer readable storage medium is also provided, and the computer readable storage medium stores a computer program. When the computer program runs, each step of the component construction method applied to the MOM business domain is executed.
[0071] Wherein, each step executed by the computer program when running is not described here again, and can refer to the foregoing explanation and description of the component construction method applied to the MOM business domain.
[0072] To sum up, the component construction method and device for MOM service domain, equipment and medium provided by the application firstly determine the service description data of the target MOM service, and perform semantic analysis on the service description data to obtain the main service object of the target MOM service; secondly, based on the service description data, state change extraction is performed on the main service object to obtain at least one state change extraction data of the main service object; then, based on each state change extraction data, at least one to-be-constructed service component corresponding to each state change extraction data is determined; finally, each to-be-constructed service component is subjected to component construction processing to form a constructed service component corresponding to each to-be-constructed service component. Based on the above, through semantic analysis and state change extraction, accurate and reliable identification and extraction of the data existing form change of the main service object can be realized, so that the component construction processing can be quickly and efficiently performed based on the identification and extraction results, thereby avoiding the problem that the component construction cannot be quickly and efficiently completed due to the preliminary analysis of the disordered component construction, and thus the problem of low component development efficiency in the prior art can be improved.
[0073] In several embodiments provided by the embodiments of the present application, it should be understood that the disclosed apparatus and method can also be implemented by other manners. The apparatus and method embodiments described above are only illustrative, for example, the flowcharts and block diagrams in the drawings show the possible implementation architecture, function and operation of the apparatus, method and computer program product according to the embodiments of the present application. In this regard, each block in the flowchart or block diagram can represent a module, program segment or part of code containing one or more executable instructions for implementing the specified logic function. It should also be noted that in some alternative implementation manners, the functions noted in the blocks can also occur in different order from that noted in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and sometimes they can be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for executing the specified function or action, or can be implemented by a combination of special-purpose hardware and computer instructions.
[0074] In addition, the function modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0075] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of a software product in essence or in the form of a part of the prior art or part of the technical solutions of the present application. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, an electronic device, or a network device, etc.) to execute all or part of the steps of the method described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various program code storage media. It should be noted that in this paper, the terms "include", "contain" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0076] The above only describes the preferred embodiments of the present application and is not intended to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A component construction method for MOM business domain, characterized in that, The method comprises the following steps: determining service description data of a target MOM service, and performing semantic analysis on the service description data to obtain a main business object of the target MOM service; based on the service description data, extracting state changes of the main business object to obtain at least one state change extraction data of the main business object, wherein in each state change extraction data, the data form of the main business object changes; based on each state change extraction data, determining at least one to-be-constructed business component corresponding to each state change extraction data, wherein the function of each to-be-constructed business component is to process the main business object to change the data form; respectively performing component construction processing on each to-be-constructed business component to form a constructed business component corresponding to each to-be-constructed business component.
2. The method according to claim 1, wherein, The step of determining service description data of a target MOM service, and performing semantic analysis on the service description data to obtain a main business object of the target MOM service, comprises: obtaining service description data of a target MOM service, and extracting business requirement summary data from the service description data; performing semantic analysis on the business requirement summary data to obtain a main business object of the target MOM service.
3. The MOM service domain oriented component construction method according to claim 2, wherein, The step of performing semantic analysis on the business requirement summary data to obtain a main business object of the target MOM service, comprises: performing semantic analysis on the business requirement summary data to obtain part-of-speech information of each data unit in the business requirement summary data, wherein the part-of-speech information comprises one of subject, predicate, object, attribute, adverbial and complement; determining a data unit with part-of-speech information belonging to object, and determining the data unit as the main business object of the target MOM service.
4. The MOM service domain oriented component construction method according to claim 1, wherein, The step of extracting state changes of the main business object based on the service description data to obtain at least one state change extraction data of the main business object, comprises: based on the main business object, performing decomposition processing on the service description data to form at least one business link description data corresponding to the service description data; respectively determining state changes of each business link description data, and determining business link description data with state changes as state change extraction data of the main business object.
5. The MOM service domain oriented component building method according to claim 1, wherein, The step of determining at least one to-be-constructed business component corresponding to each state change extraction data based on each state change extraction data, comprises: respectively determining whether each state change extraction data can be decomposed; for each state change extraction data that cannot be decomposed, determining one corresponding to-be-constructed business component based on the state change extraction data; for each state change extraction data that can be decomposed, determining a plurality of corresponding to-be-constructed business components based on the decomposition result of the state change extraction data.
6. The MOM service domain oriented component construction method according to claim 5, wherein, The step of extracting data for each state change capable of decomposition, determining a plurality of to-be-constructed business components corresponding to the decomposition result of the state change extraction data based on the state change extraction data, comprises: Extracting data for each state change capable of decomposition, and decomposing the state change extraction data based on the main business object to form at least one state change decomposition data corresponding to the state change extraction data; Respectively determining the state change of each state change decomposition data, and determining the corresponding to-be-constructed business component based on each state change decomposition data with state change.
7. The method according to any one of claims 1-6, wherein, The step of respectively constructing each to-be-constructed business component to form a constructed business component corresponding to each to-be-constructed business component, comprises: Determine the component construction rule, wherein the component construction rule comprises: the string constant involved in the business component is extracted into the external configuration file, the name and the directory of the external configuration file are fixed, and the business component can obtain the content in the external configuration file; if the number of input parameters of the business component is greater than or equal to the first value, the input parameters are transmitted in whole through the json format, and the json format is parsed in the internal of the business component to obtain each input parameter; if the number of output parameters of the business component is greater than or equal to the second value, the output parameters are returned in whole through the json format; Respectively constructing each to-be-constructed business component based on the component construction rule to form a constructed business component corresponding to each to-be-constructed business component.
8. A component building means for MOM business domain, characterized by, Comprise: A business object determination module is configured to determine business description data of a target MOM business, and perform semantic analysis on the business description data to obtain a main business object of the target MOM business; A state change extraction module is configured to perform state change extraction on the main business object based on the business description data to obtain at least one state change extraction data of the main business object, wherein in each state change extraction data, the data form of the main business object changes; A business component identification module is configured to determine at least one to-be-constructed business component corresponding to each state change extraction data based on each state change extraction data, wherein the function of each to-be-constructed business component is to process the main business object to change the data form; A business component construction module is configured to respectively construct each to-be-constructed business component to form a constructed business component corresponding to each to-be-constructed business component.
9. An electronic device, comprising: Comprise: A memory is configured to store a computer program; A processor connected with the memory is configured to execute the computer program stored in the memory to implement the component construction method for the MOM business domain in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program runs to execute the component construction method for the MOM business domain in any one of claims 1-7.
Citation Information
Patent Citations
A manufacturing execution system architecture based on component and service
CN109308582A
Semantic analysis-based business code generation method and device and storage medium
CN114371832A
Business code development method and system and computer readable storage medium
CN114816430A
Development system of MOM system based on metadata
CN116954564A
Code generation method and device based on configuration file and medium
CN117992028A