Component construction method and device for MOM service domain, equipment and medium

By performing semantic analysis and extracting state changes from MOM business processes, a highly efficient business component solution was built, which solved the problem of low component development efficiency in traditional MOM business services and enabled rapid and efficient component construction.

CN120994167BActive Publication Date: 2026-05-19CHENGDU SUNSHEEN TECH
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHENGDU SUNSHEEN TECH
Filing Date
2025-06-30
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

Traditional MOM business service design suffers from low component development efficiency and struggles to adapt to rapidly changing business needs.

Method used

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 constructed based on data extracted from state changes. Component construction rules, such as JSON format for transmitting parameters, are adopted to improve efficiency.

Benefits of technology

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.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120994167B_ABST
    Figure CN120994167B_ABST
Patent Text Reader

Abstract

The application provides a component construction method and device for a MOM service domain, equipment and a medium, and relates to the technical field of computers.In the application, first, 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;second, 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, the problem of low component development efficiency in the prior art can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and more specifically, to a method, apparatus, device, and medium for building components for the MOM business domain. Background Technology

[0002] As enterprises deepen their digital transformation, the MOM (Message-Oriented Middleware) business domain plays a crucial role in distributed system integration, asynchronous communication, and data exchange. Traditional MOM business service designs often suffer from low component development efficiency and struggle to adapt to rapidly changing business needs. Summary of the Invention

[0003] In view of this, the purpose of this application is to provide a component construction method, apparatus, device and medium for MOM business domain, so as to improve the problem of low component development efficiency in the prior art.

[0004] To achieve the above objectives, this application adopts the following technical solution:

[0005] A component construction method for MOM business domain, comprising:

[0006] Determine the business description data of the target MOM service, and perform semantic analysis on the business description data to obtain the main business object of the target MOM service;

[0007] Based on the business description data, state change extraction is performed on the main business object to obtain at least one state change extraction data of the main business object, wherein the data existence form of the main business object changes in each of the state change extraction data.

[0008] Based on each state change, extract data and determine at least one business component to be built corresponding to each state change data. The function of each business component to be built is to process the main business object so that the data exists in a different form.

[0009] Each of the business components to be built is processed to form a built business component corresponding to each of the business components to be built.

[0010] In a preferred embodiment of this application, in the above-described component construction method for the 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 includes:

[0011] Obtain the business description data of the target MOM business, and extract the business requirement overview data from the business description data;

[0012] Semantic analysis is performed on the business requirement summary data to obtain the main business object of the target MOM business.

[0013] In a preferred embodiment of this application, in the aforementioned component construction method for the MOM business domain, the step of performing semantic analysis on the business requirement summary data to obtain the main business object of the target MOM business includes:

[0014] Semantic analysis is performed on the business requirement overview data to obtain the part-of-speech information of each data unit in the business requirement overview data, wherein the part-of-speech information includes one of the following: subject, predicate, object, attributive, adverbial and complement.

[0015] The data unit whose part-of-speech information belongs to the object is identified, and this data unit is identified as the main business object of the target MOM service.

[0016] In a preferred embodiment of this application, in the above-described component construction method for the 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 includes:

[0017] Based on the main business object, the business description data is decomposed to form at least one business process description data corresponding to the business description data.

[0018] For each of the business process description data, the state change is determined, and the business process description data with state changes is determined as the state change extraction data of the main business object.

[0019] In a preferred embodiment of this application, in the above-described component construction method for the MOM business domain, the step of determining at least one business component to be constructed corresponding to each state change extraction data based on each of the state change extraction data includes:

[0020] Determine whether the extracted data for each of the aforementioned state changes can be decomposed;

[0021] For each state change that cannot be decomposed, extract data and determine a corresponding business component to be built based on the extracted data.

[0022] For each state change that can be decomposed, extract data, and based on the decomposition results of the extracted data, determine the corresponding multiple business components to be built.

[0023] In a preferred embodiment of this application, in the aforementioned component construction method for the MOM business domain, the step of extracting data for each decomposable state change and determining the corresponding multiple business components to be constructed based on the decomposition results of the extracted state change data includes:

[0024] For each state change data that can be decomposed, based on the main business object, the state change data is decomposed to form at least one state change decomposed data corresponding to the state change data.

[0025] For each of the aforementioned state change decomposition data, state changes are determined, and based on each state change decomposition data with state changes, the corresponding business component to be built is determined.

[0026] In a preferred embodiment of this application, in the above-described component construction method for the MOM business domain, the step of performing component construction processing on each of the business components to be constructed to form a constructed business component corresponding to each of the business components to be constructed includes:

[0027] The component construction rules are determined, including: extracting string constants involved in the business component into an external configuration file, fixing the name and directory of the external configuration file, and ensuring that the business component can access the content of the external configuration file; if the number of input parameters of the business component is greater than or equal to a first value, then all input parameters are passed in as a whole in JSON format, and the JSON format is parsed inside the business component to obtain each input parameter; if the number of output parameters of the business component is greater than or equal to a second value, then the whole output parameter is returned in JSON format.

[0028] Based on the component construction rules, each of the business components to be built is processed to form a built business component corresponding to each business component to be built.

[0029] This application also provides a component building apparatus for the MOM business domain, including:

[0030] The business object determination module is 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.

[0031] The state change extraction module is used to extract state changes of the main business object based on the business description data, and obtain at least one state change extraction data of the main business object, wherein the data existence form of the main business object changes in each of the state change extraction data.

[0032] The business component identification module is used to extract data based on each of the state changes and determine at least one business component to be built corresponding to each of the extracted data of the state change. The function of each business component to be built is to process the main business object so that the data exists in a different form.

[0033] The business component construction module is used to perform component construction processing on each of the business components to be constructed, so as to form a constructed business component corresponding to each of the business components to be constructed.

[0034] Based on the above, this application also provides an electronic device, including:

[0035] Memory, used to store computer programs;

[0036] A processor connected to the memory is used to execute the computer program stored in the memory to implement the above-described component construction method for the MOM business domain.

[0037] Based on the above, this application also provides a computer-readable storage medium storing a computer program that, when executed, performs the various steps of the above-described component construction method for MOM business domains.

[0038] The component construction method, apparatus, device, and medium for MOM business domains provided in this application first 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. Second, based on the business description data, extract the state changes of the main business object to obtain at least one state change extraction data of the main business object. Then, based on each state change extraction data, determine at least one business component to be constructed corresponding to each state change extraction data. Finally, perform component construction processing on each business component to be constructed to form the constructed business component corresponding to each business component to be constructed. Based on the above, through semantic analysis and state change extraction, accurate and reliable identification and extraction of the form changes in the main business object's data can be achieved. Therefore, component construction processing can be performed quickly and efficiently based on the identification and extraction results, thus avoiding the problem of messy and disordered preliminary analysis of component construction leading to the inability to complete component construction quickly and efficiently. Therefore, it can improve the problem of low component development efficiency in the prior art. Attached Figure Description

[0039] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings.

[0040] Figure 1 A structural block diagram of an electronic device provided in an embodiment of this application.

[0041] Figure 2 This is a flowchart illustrating the component construction method for the MOM business domain provided in this application embodiment.

[0042] Figure 3 A block diagram of a component building apparatus for MOM business domain provided in an embodiment of this application. Detailed Implementation

[0043] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.

[0044] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0045] like Figure 1 As shown in the figure, this application provides an electronic device. The electronic device may include a memory, a processor, and a component building apparatus for the MOM (Multi-Operator) business domain.

[0046] Specifically, the memory and the processor are electrically connected to enable data transmission or interaction. For example, the memory and the processor can be electrically connected via one or more communication buses or signal lines. The component building apparatus for the MOM business domain includes at least one software functional module stored in the memory in the form of software or firmware. The processor is used to execute executable computer programs stored in the memory, such as the software functional modules and computer programs included in the component building apparatus for the MOM business domain, to implement the component building method for the MOM business domain provided in this application embodiment.

[0047] Optionally, the memory may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc.

[0048] Optionally, the processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), a system on chip (SoC), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0049] Understandable. Figure 1 The structure shown is for illustrative purposes only; the electronic device may also include components that are more advanced than those shown. Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown may include, for example, a communication unit for exchanging information with other devices.

[0050] Combination Figure 2 This application also provides a component construction method for the MOM (Multi-Manager) business domain that can be applied to the aforementioned electronic device. The method steps defined in the process of the component construction method for the MOM business domain can be implemented by the electronic device. The following will describe... Figure 2 The specific process shown will be explained in detail.

[0051] Step S110: Determine the business description data of the target MOM service, and perform semantic analysis on the business description data to obtain the main business object of the target MOM service.

[0052] In this embodiment, the electronic device can determine the business description data of the target MOM service and perform semantic analysis on the business description data to obtain the main business object of the target MOM service. The business description data can be used to describe the development requirements of the entire business of the target MOM service, and the main business object can refer to the object of business processing, such as process inspection data.

[0053] Step S120: Based on the business description data, extract the state changes of the main business object to obtain at least one state change extraction data of the main business object.

[0054] In this embodiment, after determining the main business object, the electronic device can extract 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. In each of these state change extraction data, the data format of the main business object changes, such as process inspection data being transferred from the mobile device to the server's memory.

[0055] Step S130: Extract data based on each state change and determine at least one business component to be built corresponding to each extracted state change data.

[0056] In this embodiment, after obtaining at least one state change extraction data of the main business object, the electronic device can determine at least one business component to be built corresponding to each state change extraction data based on each of the state change extraction data. The function of each business component to be built is to process the main business object, causing a change in the form of the data. For example, the server obtains process inspection data from the mobile device, causing the process inspection data to enter the server's memory from the mobile device.

[0057] Step S140: Perform component construction processing on each of the business components to be built to form a built business component corresponding to each of the business components to be built.

[0058] In this embodiment of the application, after determining the business component to be built, the electronic device can perform component building processing on each of the business components to be built, that is, complete the corresponding component development and form the built business component corresponding to each of the business components to be built.

[0059] Based on the above, semantic analysis and state change extraction can accurately and reliably identify and extract the data of the main business object in terms of form changes. Therefore, the component construction process can be carried out quickly and efficiently based on the identification and extraction results, thereby avoiding the problem that the component construction can be completed quickly and efficiently due to the initial analysis of messy and disordered component construction. Thus, it can improve the problem of low component development efficiency in the existing technology.

[0060] Firstly, regarding step S110, it should be noted that the specific method for determining the main business object of the target MOM business is not limited and can be selected according to actual needs.

[0061] For example, in an alternative implementation, in order to improve the reliability of determining the main business object, the above step S110 may further include steps S111 and S112, the specific contents of each step being as follows.

[0062] Step S111: Obtain the business description data of the target MOM business, and extract the business requirement overview data from the business description data.

[0063] In this embodiment, business description data of the target MOM business can be obtained, and business requirement overview data can be extracted from the business description data. Exemplarily, the business description data can be obtained in response to input or other operations by component developers. Furthermore, the method for extracting business requirement overview data from the business description data can be either by using a trained neural network model to extract summary content from the business description data, or by responding to input or selection operations by component developers. For example, in a specific application scenario, extracting the business requirement overview data could mean summarizing the entire business requirement in one sentence; specifically, the business requirement overview data could be "exporting the corrected process inspection data from the process inspection equipment to an Excel spreadsheet."

[0064] Step S112: Perform semantic analysis on the business requirement summary data to obtain the main business object of the target MOM business.

[0065] In this embodiment of the application, after extracting the business requirement overview data, semantic analysis can be performed on the business requirement overview data to obtain the main business object of the target MOM business. For example, "process inspection data" can be analyzed from "exporting the process inspection data in the process inspection equipment after correction to an Excel spreadsheet" as the main business object.

[0066] It is understood that the specific method of semantic analysis performed in step S112 is not limited. For example, in an alternative implementation, in order to further improve the reliability of determining the main business object, step S112 may further include steps S112a and S112b, the specific contents of each step of which are described below.

[0067] Step S112a: Perform semantic analysis on the business requirement overview data to obtain part-of-speech information for each data unit in the business requirement overview data.

[0068] In this embodiment, semantic analysis can be performed on the business requirement overview data to obtain the part-of-speech information of each data unit in the business requirement overview data. The part-of-speech information includes one of the following: subject, predicate, object, attributive, adverbial, and complement. Exemplarily, semantic analysis of the business requirement overview data can be performed based on text analysis technology to obtain the part-of-speech information of each data unit (word), or the part-of-speech information of each data unit can be obtained in response to part-of-speech tagging operations performed by component developers.

[0069] Step S112b: Determine the data unit whose part-of-speech information belongs to the object, and identify the data unit as the main business object of the target MOM service.

[0070] In this embodiment, after obtaining the part-of-speech information of each data unit, the data units whose part-of-speech information belongs to the object can be further identified, and these data units can be identified 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, export it to an Excel spreadsheet", the object is "process inspection data". Therefore, "process inspection data" can be identified as the main business object of the target MOM business.

[0071] Secondly, it should be noted that the specific method for extracting the state changes of the main business object in step S120 is not limited and can be selected according to actual needs.

[0072] For example, in an alternative implementation, in order to obtain the extracted data for each state change accurately and reliably, the above step S120 may further include steps S121 and S122, the specific contents of each step of which are described below.

[0073] Step S121: Based on the main business object, decompose the business description data to form at least one business process description data corresponding to the business description data.

[0074] In this embodiment, the business description data can be decomposed based on the main business object to form at least one business step description data corresponding to the business description data. That is, different decompositions can be performed on the main business object to form at least one corresponding step, thus obtaining at least one corresponding business step description data. For example, it may include the following four steps: 1. Obtaining inspection data from the inspection equipment; 2. Verifying the data; 3. Data storage; 4. Exporting the data to Excel. Furthermore, the specific decomposition method can be implemented either in response to the operations of component developers or through a trained neural network model, which can be selected according to actual needs.

[0075] Step S122: Determine the state change for each of the business process description data, and determine the business process description data with state changes as the state change extraction data of the main business object.

[0076] In this embodiment, after the business process description data is decomposed and formed, the state change of each business process description data can be determined, and the business process description data with state changes can be identified as the state change extraction data of the main business object. For example, for the above four processes, the actions in each process (i.e., acquisition, verification, storage, and export) can cause the data to change its form.

[0077] Thirdly, regarding step S130, it should be noted that the specific method for determining at least one business component to be built corresponding to each state change extraction data is not limited and can be selected according to actual needs.

[0078] For example, in an alternative implementation, in order to ensure that the coupling of the constructed business components is relatively low and that they can be reused, thereby further improving the efficiency of component development, the above step S130 may further include steps S131, S132 and S133, the specific contents of each step are as follows.

[0079] Step S131: Determine whether the extracted data for each state change can be decomposed.

[0080] In this embodiment of the application, it can be determined whether each of the extracted state change data can be decomposed. For example, it can be determined whether it can be decomposed in response to the operation performed by the component developer on the judgment result of the extracted state change data. If the component developer determines that it can be decomposed or that it cannot be decomposed, the criterion for whether it can be decomposed can be whether only one change occurs during the process of the corresponding data existence form change (analyzed from the perspective of the underlying logic of the technical implementation). If only one change occurs, it is determined that it cannot be decomposed. If multiple changes are required, it is determined that it can be decomposed.

[0081] Step S132: Extract data for each state change that cannot be decomposed, and determine a corresponding business component to be built based on the extracted data of the state change.

[0082] In this embodiment, after decomposition and confirmation, data can be extracted for each state change that cannot be further decomposed. Based on this extracted data, a corresponding business component to be built can be determined. For example, for the state change extracted data "obtaining inspection data from inspection equipment," the specific data form is "obtaining process inspection data," which is a single change from the mobile device to the server's memory. Therefore, it cannot be further decomposed, and thus, a corresponding business component to be built can be determined. For the state change extracted data "validating data," there is only one change, so it cannot be further decomposed, and thus, a corresponding business component to be built can be determined. For the state change extracted data "data entering the database," there is only one change, so it cannot be further decomposed, and thus, a corresponding business component to be built can be determined. For the state change extracted data "exporting data to Excel," there is only one change, so it cannot be further decomposed, and thus, a corresponding business component to be built can be determined.

[0083] Step S133: Extract data for each state change that can be decomposed, and determine the corresponding multiple business components to be built based on the decomposition results of the extracted state change data.

[0084] In this embodiment of the application, after decomposition confirmation, data is extracted for each state change that can be decomposed. Based on the decomposition results of the extracted state change data, multiple corresponding business components to be built are determined. In this way, the granularity of the constructed business components can be smaller, further reducing the coupling degree of business components and improving the reusability of business components.

[0085] It is understood that the specific method for determining the corresponding multiple business components to be built in step S133 above is not limited. For example, in an alternative implementation, step S133 above may further include the following:

[0086] First, data can be extracted for each state change that can be decomposed. Based on the main business object, the extracted state change data is decomposed (as described above) to form at least one state change decomposed data corresponding to the extracted state change data.

[0087] Secondly, state changes can be determined for each of the aforementioned state change decomposition data (as described above), and based on each state change decomposition data with state changes, the corresponding business component to be built can be determined. In other words, in this embodiment, by iterating the decomposition until it cannot be further decomposed, the resulting business component is the smallest business component, implementing the most basic function. Therefore, it can have low coupling and high reusability.

[0088] Fourthly, regarding step S140, it should be noted that the specific method for performing component construction processing on each of the business components to be built is not limited and can be selected according to actual needs.

[0089] For example, in an alternative implementation, step S140 described above may further include the following implementable elements:

[0090] First, the component construction rules can be determined, which include: extracting string constants involved in business components into an external configuration file (this facilitates management and updates; whenever a constant value needs to be changed, only the configuration file needs to be modified once, instead of updating repeatedly in multiple places. Furthermore, the same configuration file can be referenced by multiple business components, avoiding the manual copying and maintenance of the same string constants in various business components. Also, when a constant needs to be added or modified, only the configuration file needs to be updated, without worrying about dependencies and maintenance issues in other business components). The name and directory of the external configuration file are fixed, and business components can access the external configuration file. The content is as follows: If the number of input parameters of the business component is greater than or equal to the first value (e.g., 5), then all input parameters are passed in as a whole in JSON format, and the JSON format is parsed inside the business component to obtain each input parameter. In this way, performance issues and logical confusion caused by overly complex inputs can be avoided. That is, multiple parameters are encapsulated in a structure, reducing repetitive processing code and improving the maintainability and readability of the component. If the number of output parameters of the business component is greater than or equal to the second value (e.g., 2), then the entire output parameter is returned in JSON format. Encapsulating multiple output parameters into a structure (JSON structure) can improve the readability and reusability of the business component.

[0091] Secondly, based on the component construction rules, each of the business components to be built can be processed to form a built business component corresponding to each of the business components to be built. For example, corresponding to the four stages in the previous example, the following four business components can be formed:

[0092] 1. Acquire process inspection data component:

[0093] Input parameters: Interface address and data date provided by the tool / device;

[0094] Output: Unstructured process inspection data;

[0095] 2. Verification process inspection data components:

[0096] Input parameters: Unstructured process inspection data;

[0097] Output: Structured process inspection data for completed verification and cleaning;

[0098] 3. Storage process inspection data component:

[0099] Input parameters: Structured process inspection data;

[0100] Output: A message indicating successful data insertion;

[0101] 4. Export process inspection data component:

[0102] Input parameters: Structured process inspection data;

[0103] Output: Excel spreadsheet;

[0104] Therefore, if other MOM business needs to use process inspection data, the "Get Process Inspection Data Component" and the "Verify Process Inspection Data Component" can be reused directly.

[0105] In addition, in some other implementations, the above-mentioned business components can also be defined accordingly. For example, the following can be determined:

[0106] Business Name: Define a business name based on the functions implemented by the business, generally not exceeding 10 characters;

[0107] Business function: Describe the business function, where the data comes from, and what the final output is after business processing;

[0108] Classification: Classify the business according to the business classification rules of the MOM business domain;

[0109] Use cases: Describe the scenarios in which the business logic is used, such as scheduled calls;

[0110] Implementation language: The development language for the business logic, mainly considering the development efficiency and performance requirements of the business logic;

[0111] Business Input: Defines the input data for the business, mainly the source of the data, such as database or file, etc.

[0112] Business output: The products of business operations.

[0113] Combination Figure 3 This application also provides a component construction apparatus for the MOM (Multi-Manager) business domain that can be applied to the aforementioned electronic devices. The MOM-oriented component construction apparatus may include a business object determination module, a state change extraction module, a business component identification module, and a business component construction module.

[0114] Specifically, 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 this embodiment, the business object determination module can be used to execute... Figure 2 The relevant content regarding the business object determination module in step S110 shown can be found in the previous description of step S110.

[0115] Specifically, the state change extraction module can be used to extract state changes of the main business object based on the business description data, obtaining at least one state change extraction data of the main business object, wherein in each of the state change extraction data, the data existence form of the main business object changes. In this embodiment of the application, the state change extraction module can be used to execute... Figure 2 The relevant content regarding the state change extraction module in step S120 shown can be found in the previous description of step S120.

[0116] Specifically, the business component identification module can be used to extract data based on each state change, and determine at least one business component to be built corresponding to each extracted state change data. The function of each business component to be built is to process the main business object, causing a change in the form of the data. In this embodiment, the business component identification module can be used to execute... Figure 2 The relevant content regarding the business component identification module in step S130 shown can be found in the previous description of step S130.

[0117] Specifically, the business component construction module can be used to perform component construction processing on each of the business components to be built, forming a built business component corresponding to each of the business components to be built. In this embodiment, the business component construction module can be used to execute... Figure 2 The relevant content regarding the business component construction module shown in step S140 can be found in the previous description of step S140.

[0118] In this embodiment of the application, corresponding to the above-described component construction method for the MOM business domain applied to the electronic device, a computer-readable storage medium is also provided, which stores a computer program that executes the various steps of the component construction method for the MOM business domain when the computer program is run.

[0119] The steps executed by the aforementioned computer program during runtime will not be described in detail here, but can be found in the explanation of the component construction method for the MOM business domain described above.

[0120] In summary, the component construction method, apparatus, device, and medium for MOM business domains provided in this application firstly 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; secondly, based on the business description data, extract the state changes of the main business object to obtain at least one state change extraction data of the main business object; then, based on each state change extraction data, determine at least one business component to be built corresponding to each state change extraction data; finally, perform component construction processing on each business component to be built to form the built business component corresponding to each business component to be built. Based on the above, through semantic analysis and state change extraction, accurate and reliable identification and extraction of the form changes of the main business object's data can be achieved. Therefore, component construction processing can be performed quickly and efficiently based on the identification and extraction results, thereby avoiding the problem of messy and disordered preliminary analysis of component construction that prevents components from being built quickly and efficiently. Therefore, it can improve the problem of low component development efficiency in the prior art.

[0121] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus and method embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0122] In addition, the functional modules in the various embodiments of this 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.

[0123] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, electronic device, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks. It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. In the absence of further restrictions, an element defined by the phrase "comprising a..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0124] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A component construction method for MOM business domain, characterized in that, include: Determine the business description data of the target MOM service, and perform semantic analysis on the business description data to obtain the main business object of the target MOM service; Based on the business description data, state change extraction is performed on the main business object to obtain at least one state change extraction data of the main business object, wherein the data existence form of the main business object changes in each of the state change extraction data. Based on each state change, data is extracted, and at least one business component to be built is determined corresponding to each state change data. The function of each business component to be built is to process the main business object so that the data exists in a different form. Each of the business components to be built is processed to form a built business component corresponding to each of the business components to be built. The step of determining at least one business component to be built corresponding to each state change data extraction based on each state change data extraction includes: Determine whether the extracted data for each of the aforementioned state changes can be decomposed; For each state change that cannot be decomposed, extract data and determine a corresponding business component to be built based on the extracted data. For each state change that can be decomposed, extract data, and based on the decomposition results of the extracted data, determine the corresponding multiple business components to be built.

2. The component construction method for MOM business domain according to claim 1, characterized in that, The step of determining the business description data of the target MOM service and performing semantic analysis on the business description data to obtain the main business object of the target MOM service includes: Obtain the business description data of the target MOM business, and extract the business requirement overview data from the business description data; Semantic analysis is performed on the business requirement summary data to obtain the main business object of the target MOM business.

3. The component construction method for MOM business domain according to claim 2, characterized in that, The step of performing semantic analysis on the business requirement summary data to obtain the main business object of the target MOM business includes: Semantic analysis is performed on the business requirement overview data to obtain the part-of-speech information of each data unit in the business requirement overview data, wherein the part-of-speech information includes one of the following: subject, predicate, object, attributive, adverbial and complement. The data unit whose part-of-speech information belongs to the object is identified, and this data unit is identified as the main business object of the target MOM service.

4. The component construction method for MOM business domain according to claim 1, characterized in that, 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 includes: Based on the main business object, the business description data is decomposed to form at least one business process description data corresponding to the business description data. For each of the business process description data, the state change is determined, and the business process description data with state changes is determined as the state change extraction data of the main business object.

5. The component construction method for MOM business domain according to claim 1, characterized in that, The step of extracting data for each decomposable state change and determining multiple corresponding business components to be built based on the decomposition results of the extracted state change data includes: For each state change data that can be decomposed, based on the main business object, the state change data is decomposed to form at least one state change decomposed data corresponding to the state change data. For each of the aforementioned state change decomposition data, state changes are determined, and based on each state change decomposition data with state changes, the corresponding business component to be built is determined.

6. The component construction method for MOM business domain according to any one of claims 1-5, characterized in that, The step of performing component construction processing on each of the business components to be built to form the built business component corresponding to each of the business components to be built includes: The component construction rules are determined, including: extracting string constants involved in the business component into an external configuration file, fixing the name and directory of the external configuration file, and ensuring that the business component can access the content of the external configuration file; if the number of input parameters of the business component is greater than or equal to a first value, then all input parameters are passed in as a whole in JSON format, and the JSON format is parsed inside the business component to obtain each input parameter; if the number of output parameters of the business component is greater than or equal to a second value, then the whole output parameter is returned in JSON format. Based on the component construction rules, each of the business components to be built is processed to form a built business component corresponding to each business component to be built.

7. A component construction device for MOM business domain, characterized in that, include: The business object determination module is 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. The state change extraction module is used to extract state changes of the main business object based on the business description data, and obtain at least one state change extraction data of the main business object, wherein the data existence form of the main business object changes in each of the state change extraction data. The business component identification module is used to extract data based on each of the state changes and determine at least one business component to be built corresponding to each of the extracted data of the state change. The function of each business component to be built is to process the main business object so that the data exists in a different form. The business component construction module is used to perform component construction processing on each of the business components to be constructed, so as to form a constructed business component corresponding to each of the business components to be constructed. The step of determining at least one business component to be built corresponding to each state change data extraction based on each state change data extraction includes: Determine whether the extracted data for each of the aforementioned state changes can be decomposed; For each state change that cannot be decomposed, extract data and determine a corresponding business component to be built based on the extracted data. For each state change that can be decomposed, extract data, and based on the decomposition results of the extracted data, determine the corresponding multiple business components to be built.

8. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor connected to the memory is used to execute the computer program stored in the memory to implement the component construction method for MOM business domain as described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, performs the component construction method for the MOM business domain as described in any one of claims 1-6.