Disclosure of Invention
In view of the above, embodiments of the present invention provide a low code development method and apparatus, so as to achieve the purposes of saving development cost, reducing defect rate, and forming standardization.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
the first aspect of the embodiment of the invention discloses a low-code development method, which comprises the following steps:
analyzing a service field, and constructing a service field model based on acquired program data required for executing a service function in the service field;
identifying first program data with common logic in the program data, constructing dynamic assembly logic based on the first program data, and constructing unique logic based on other second program data without common logic;
establishing a service field language corresponding to the service field model, and writing the service field language into configuration information consisting of a dictionary and a filter;
and executing the dynamic assembly logic and the unique logic based on the configuration information to complete low-cost development of the business field.
Optionally, the analyzing the service domain and constructing a service domain model based on the acquired program data required for executing the service function in the service domain includes:
abstracting and refining a business field to obtain program data required for executing business functions in the business field, wherein the program data at least comprises business data required by business processing and flow data of business processing steps;
and constructing a business field model corresponding to the business field based on the business data and the process data, and determining business links in the business field model.
Optionally, the establishing a service domain language corresponding to the service domain model, and writing the service domain language into configuration information composed of the dictionary and the filter include:
establishing a business field language corresponding to the business field model;
establishing a mapping relation between keywords in the service field language and application program data to obtain a dictionary corresponding to the service field language;
and establishing a filter for the application program data in the dictionary to obtain configuration information formed by the dictionary and the filter, wherein the filter is used for transforming and processing the application program data in the dictionary.
Optionally, the executing the dynamic assembly logic and the unique logic based on the configuration information completes low-cost development of the business domain, including:
analyzing first configuration information of a corresponding dictionary in the configuration information based on the dynamic assembly logic and the unique logic, and mapping a dictionary without a mapping relation to the first configuration information according to the mapping relation between the dictionary and application program data in the service field language;
analyzing a second configuration message corresponding to the filter in the configuration information based on the dynamic assembly logic and the unique logic, and sequentially connecting one or more filters in series according to the second configuration information to form a filter link;
recombining the dictionary and the filter link according to the first configuration information and the second configuration information to obtain processing logics corresponding to each dynamic assembly logic and the unique logic;
and executing the processing logic, and sequentially applying each filter on the filter link to the application program data to complete the low-cost development of the service field.
Optionally, the method further includes:
if the service field has a new service function, updating configuration information formed by a dictionary and a filter based on program data required by the new service function to obtain new configuration information;
performing the dynamic assembly logic and the unique logic based on the new configuration information.
The second aspect of the embodiments of the present invention discloses a low code development apparatus, including:
the system comprises a first construction module, a second construction module and a third construction module, wherein the first construction module is used for analyzing a business field and constructing a business field model based on acquired program data required for executing business functions in the business field;
the second construction module is used for identifying first program data with common logic in the program data, constructing dynamic assembly logic based on the first program data, and constructing unique logic based on other second program data without common logic;
the compiling module is used for establishing a service field language corresponding to the service field model and compiling the service field language into configuration information consisting of a dictionary and a filter;
and the first execution module is used for executing the dynamic assembly logic and the unique logic based on the configuration information to complete low-cost development of the business field.
Optionally, the first building module includes:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for abstracting and refining a business field and acquiring program data required by executing business functions in the business field, and the program data at least comprises business data required by business processing and flow data of business processing steps;
and the construction and determination unit is used for constructing a business field model corresponding to the business field based on the business data and the process data and determining business links in the business field model.
Optionally, the writing module includes:
the first establishing unit is used for establishing a service domain language corresponding to the service domain model;
the second establishing unit is used for establishing a mapping relation between keywords in the service field language and application program data to obtain a dictionary corresponding to the service field language;
and the third establishing unit is used for establishing a filter for the application program data in the dictionary to obtain configuration information formed by the dictionary and the filter, and the filter is used for transforming and processing the application program data in the dictionary.
Optionally, the first execution module includes:
the first analysis processing unit is used for analyzing first configuration information of a corresponding dictionary in the configuration information based on the dynamic assembly logic and the unique logic, and mapping the dictionary without the mapping relation to the first configuration information according to the mapping relation between the dictionary and application program data in the service field language;
a second parsing processing unit, configured to parse a second configuration message corresponding to the filter in the configuration information based on the dynamic assembly logic and the unique logic, and sequentially concatenate one or more filters according to the second configuration information to form a filter link;
a combining unit, configured to recombine the dictionary and the filter link according to the first configuration information and the second configuration information to obtain a processing logic corresponding to each of the dynamic assembly logics and the unique logic;
and the application unit is used for executing the processing logic and sequentially applying each filter on the filter link to the application program data to complete the low-cost development of the business field.
Optionally, the method further includes: the updating module and the second execution module;
the updating module is used for updating the configuration information formed by the dictionary and the filter based on the program data required by the new service function to obtain new configuration information if the new service function exists in the service field;
the second executing module is configured to execute the dynamic assembly logic and the unique logic based on the new configuration information.
Based on the method and the device for developing the low code provided by the embodiment of the invention, the method comprises the following steps: analyzing a service field, and constructing a service field model based on acquired program data required for executing a service function in the service field; identifying first program data with common logic in the program data, constructing dynamic assembly logic based on the first program data, and constructing unique logic based on other second program data without common logic; establishing a service field language corresponding to the service field model, and writing the service field language into configuration information consisting of a dictionary and a filter; and executing the dynamic assembly logic and the unique logic based on the configuration information to complete low-cost development of the business field. In the scheme, the writing of repeated codes is avoided by constructing the service field model, the dynamic assembly logic and the unique logic, the established service field language corresponding to the service field model is written into the configuration information formed by using the dictionary and the filter, and the dynamic assembly logic and the unique logic are executed according to the configuration information, so that the low-cost development of the service field is completed, and the aims of saving the development cost, reducing the defect rate and forming standardization are fulfilled.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
As can be seen from the background art, in the prior art, when a service domain changes or expands, a service domain model inevitably changes, so that a low-code development scheme formed based on an original service domain model cannot adapt to new changes; the method is characterized in that field model design is developed aiming at a specific service field, for different fields, a field language needs to be independently designed to describe a field model, and an analysis method is designed for the field language by combining a certain specific programming language, so that the service field model and the analysis method thereof cannot form standard and universal capability.
Therefore, in the scheme, the writing of repeated codes is avoided by constructing the service field model, the dynamic assembly logic and the unique logic, the established service field language corresponding to the service field model is written into the configuration information formed by using the dictionary and the filter, and the dynamic assembly logic and the unique logic are executed according to the configuration information, so that the low-cost development of the service field is completed, and the aims of saving the development cost, reducing the defect rate and forming the standardization are fulfilled.
As shown in fig. 1, a flow diagram of a low code development method provided in an embodiment of the present invention is mainly illustrated, and the method mainly includes the following steps:
step S101: and analyzing the business field, and constructing a business field model based on the acquired program data required for executing the business function in the business field.
In step S101, the program data required for executing the business function in the business domain at least includes business data required for business processing and flow data of the business processing step.
Performing the business function may also be understood as performing business processing.
From the point of view of code and configuration, a business domain is a series of programming languages composed of nouns and verbs with special business meanings. The set of programming languages is applied to a specific business field, and can clearly express the business process, the components and the relation of the business field.
A business domain model is an object model that describes the implementation of business use cases, that is, a business domain model is an abstract object model of how business roles and business entities should be linked and collaborated to execute a business.
The business process can be divided into a plurality of minimized business operations with sequence relation according to the business field model, each minimized business operation is a special operation with single function, and any business logic in the business field can be realized through the minimized business operation.
In the process of specifically implementing step S101, the business field is analyzed to obtain program data required for executing the business function in the business field, and a business field model is constructed according to the program data.
Step S102: the method includes the steps of identifying first program data with common logic in the program data, building dynamic assembly logic based on the first program data, and building unique logic based on other second program data without common logic.
In step S102, the common logic mainly refers to common flow logic at a higher level in programming.
Each common logic may include a plurality of differentiated processes according to specific services, such as a data formatting manner (monetary unit, whether a dial indicator is provided, etc.), an output file format (txt file, csv file, etc.), and the like.
The dynamic assembly logic can dynamically combine different processing flows and execution logic according to different configuration information.
In the process of implementing step S102 specifically, the first program data with common logic in the program data is identified, the first program data with common logic in the program data is extracted from the business link, the modular business logic code based on the configuration information is compiled for the first program data with common logic, and the hard coding logic corresponding to the content in the configuration information is modified into the dynamic assembly logic. And abstracting other second program data which cannot be extracted from the business link and do not have the common logic to form a method capable of performing flow control processing and flow modification processing through configuration information, thereby forming unique logic.
For example, taking account book generation as an example, the commonality logic in account book generation includes reading data from a database, formatting the data, and outputting to a file.
Step S103: and establishing a business field language corresponding to the business field model, and writing the business field language into configuration information formed by using a dictionary and a filter.
In step S103, the configuration information includes, but is not limited to, a business data structure, a data object represented by a dictionary, and a data processing manner represented by a filter.
In the process of implementing step S103 specifically, a service domain language corresponding to the service domain model is established, a dictionary and a filter corresponding to the service domain language are designed for the service domain language according to the actual service scenario, and encoding of the dictionary and the filter is completed, so that the service domain language is written as configuration information composed of the dictionary and the filter.
Step S104: and executing dynamic assembly logic and unique logic based on the configuration information to complete low-cost development of the business field.
In the process of implementing step S104 specifically, the configuration information is applied to the dynamic assembly logic and the unique logic according to the configuration information composed of the dictionary and the filter, that is, the dynamic assembly logic and the unique logic are used in the configuration information to process the business data or the business process, to form a configured logic assembly, and the dynamic assembly logic and the unique logic are executed, thereby completing low-cost development of the business field.
The low-code development method provided by the embodiment of the invention comprises the steps of constructing a business field model by analyzing a business field and based on acquired program data required for executing business functions in the business field; identifying first program data with common logic in the program data, constructing dynamic assembly logic based on the first program data, and constructing unique logic based on other second program data without common logic; establishing a service field language corresponding to the service field model, and writing the service field language into configuration information consisting of a dictionary and a filter; and executing dynamic assembly logic and unique logic based on the configuration information to complete low-cost development of the business field. In the scheme, the writing of repeated codes is avoided by constructing the service field model, the dynamic assembly logic and the unique logic, the established service field language corresponding to the service field model is written into the configuration information formed by using the dictionary and the filter, and the dynamic assembly logic and the unique logic are executed according to the configuration information, so that the low-cost development of the service field is completed, and the aims of saving the development cost, reducing the defect rate and forming standardization are fulfilled.
Based on the low-code development method provided by the embodiment of the invention, the step S101 is executed to analyze the service field, and the process of constructing the service field model is established based on the acquired program data required by executing the service function in the service field. As shown in fig. 2, a schematic flow chart for constructing a business domain model according to an embodiment of the present invention mainly includes the following steps:
step S201: and abstracting and refining the business field to obtain program data required for executing business functions in the business field.
In step S201, the program data includes at least business data required for business processing and flow data of business processing steps.
In the process of implementing step S201 specifically, the business field is analyzed, the business process and the business data in the business field are abstracted and refined, and the business data required for executing the business process in the business field and the process data of the business process step are acquired.
Step S202: and constructing a business field model corresponding to the business field based on the business data and the process data, and determining business links in the business field model.
In step S202, each business link performs different business processes.
In the process of specifically implementing step S202, according to the acquired business data required for business processing and the flow data of the business processing step, the business data required for business processing and the flow data of the business processing step are used as a basis for constructing a business field model corresponding to a business field to construct a business field model, and a business link in the business field model is determined.
According to the low-code development method provided by the embodiment of the invention, the business field is abstracted and refined, the business field model corresponding to the business field is constructed according to the acquired program data required for executing the business function in the business field, and the business link in the business field model is determined, so that the constructed business field model can be used for low-code development, and the purposes of improving development efficiency, saving development cost, reducing defect rate and forming standardization are achieved.
Based on the low-code development method provided by the embodiment of the invention, step S103 is executed to establish the service domain language corresponding to the service domain model, and the service domain language is written as a process of using configuration information composed of a dictionary and a filter. As shown in fig. 3, a schematic flowchart of a process for writing a business domain language into configuration information composed of a dictionary and a filter according to an embodiment of the present invention mainly includes the following steps:
step S301: and establishing a business field language corresponding to the business field model.
In step S301, the business domain language is a symbolic language for describing the business domain model, and includes two objects, which are a keyword and a filter.
In the process of implementing step S301 specifically, a service domain language corresponding to the service domain model is established for the service domain model, and an object is designed for the service domain language.
Step S302: and establishing a mapping relation between the keywords in the service field language and the application program data to obtain a dictionary corresponding to the service field language.
In step S302, the dictionary is an object for establishing a mapping relationship between the keywords in the business domain language and the application data, and is used for establishing a corresponding relationship between the keywords in the business domain language and the objects and attributes in the application data, and indicating a comparison relationship between the configuration information and the objects in the application data.
In the process of implementing step S302 specifically, a mapping relationship is established between the keywords in the service domain language and the application program data, and a dictionary corresponding to the service domain language is obtained according to the mapping relationship between the keywords in the service domain language and the application program data.
Step S303: and establishing a filter for the application program data in the dictionary, and obtaining configuration information consisting of the dictionary and the filter.
In step S303, the filter is an object describing transformation and processing performed on the application data corresponding to the dictionary, and is used for transforming and processing the application data in the dictionary, that is, parsing the modification of the keyword in the business domain language into the object and the attribute in the application data, and indicating a comparison relationship between the modification of the configuration information and a transformation method of the object or the attribute in the application data.
In the process of implementing step S303, a filter is established for the application data in the dictionary, that is, the filter is established to perform supplementary explanation on the modification processing of the application data in the dictionary, so as to obtain the configuration information composed of the dictionary and the filter.
According to the low-code development method provided by the embodiment of the invention, the dictionary and the filter are established, so that the service field language is compiled into the configuration information consisting of the dictionary and the filter, the configuration information can be operated to carry out low-code development, and the aims of improving the development efficiency, saving the development cost, reducing the defect rate and forming standardization are fulfilled.
Based on the low-code development method provided by the embodiment of the invention, the step S104 is executed to execute the dynamic assembly logic and the unique logic based on the configuration information, and the process of low-cost development of the business field is completed. As shown in fig. 4, a schematic flowchart for executing dynamic assembly logic and unique logic provided in an embodiment of the present invention mainly includes the following steps:
step S401: and analyzing first configuration information of a corresponding dictionary in the configuration information based on the dynamic assembly logic and the unique logic, and mapping the dictionary without the mapping relation established into the first configuration information according to the mapping relation between the dictionary and the application program data in the service field language.
In step S401, the configuration information is composed of a dictionary and a filter.
One or more of the first configuration information and the second configuration message may be included in the configuration information.
The first configuration information is first configuration information of a corresponding dictionary.
The second configuration message is a second configuration message of the corresponding filter.
In the specific implementation process of step S401, according to the dynamic assembly logic and the unique logic that are constructed in advance, the first configuration information of one or more corresponding dictionaries in the configuration information is analyzed to obtain the mapping relationship between the keywords in one or more business domain languages and the application data, that is, the mapping relationship between the one or more dictionaries and the application data in the business domain languages is obtained, and the dictionaries that have not been established with the mapping relationship are mapped to be the first configuration information according to the mapping relationship between the dictionaries and the application data in the business domain languages.
Step S402: and resolving a second configuration message of the corresponding filter in the configuration information based on the dynamic assembly logic and the unique logic, and sequentially connecting one or more filters in series according to the second configuration information to form a filter link.
In step S402, the filter chain is a set of objects for transforming and processing the application data in the dictionary, and is formed by connecting a plurality of filters in series in a certain order.
In the process of implementing step S402, according to the dynamic assembly logic and the unique logic constructed in advance, the second configuration information of one or more corresponding filters in the configuration information is analyzed to obtain one or more filters for transforming and processing the application data in the dictionary, and the one or more filters are sequentially connected in series according to the second configuration information to form a filter link.
Optionally, one or more filters may be connected in series in a left-to-right order according to the second configuration information.
Optionally, one or more filters may be connected in series in order from right to left according to the second configuration information.
It should be noted that the order of the series connection of the filters is not limited to the left-to-right order or the right-to-left order disclosed above, and can be set by the technician based on the technical requirement.
Step S403: and recombining the dictionary and the filter link according to the first configuration information and the second configuration information to obtain the processing logic corresponding to each dynamic assembly logic and the unique logic.
In the process of implementing step S403 specifically, the dictionary and the filter link are recombined according to the first configuration information and the second configuration information according to one or more of the first configuration information and the second configuration information in the configuration information, so as to obtain the processing logic corresponding to each dynamic assembly logic and the unique logic.
Step S404: and executing the processing logic, and sequentially applying each filter on the filter link to the application program data to complete the low-cost development of the service field.
In the process of implementing step S404, the processing logic corresponding to each dynamic assembly logic and unique logic is executed, and each filter on the filter link is sequentially applied to the application data, thereby completing low-cost development of the business field.
According to the low-code development method provided by the embodiment of the invention, the first configuration information corresponding to the dictionary and the second configuration information corresponding to the filter in the configuration information are analyzed, the dictionary and the filter link formed by sequentially connecting one or more filters in series are recombined, the obtained processing logic corresponding to each dynamic assembly logic and unique logic is executed, and each filter on the filter link is applied, so that the low-cost development of the service field is completed, and the purposes of saving the development cost, reducing the defect rate and forming standardization are realized.
Based on the low-code development method shown in the above embodiment of the present invention, as shown in fig. 5, a flow diagram of another low-code development method provided in the embodiment of the present invention is shown, where the low-code development method mainly includes the following steps:
step S501: analyzing the business field, and constructing a business field model based on the acquired program data required for executing the business function in the business field.
Step S502: the method includes the steps of identifying first program data with common logic in the program data, building dynamic assembly logic based on the first program data, and building unique logic based on other second program data without common logic.
Step S503: and establishing a business field language corresponding to the business field model, and writing the business field language into configuration information formed by using a dictionary and a filter.
Step S504: and executing dynamic assembly logic and unique logic based on the configuration information to complete low-cost development of the business field.
The execution principle and process of the above steps S501 to S504 are the same as the execution principle and process of the steps S101 to S104 disclosed in fig. 1, and reference may be made to these steps, which are not described herein again.
Step S505: and judging whether the new service function exists in the service field, if so, executing step S506, and if not, executing step S508.
In the process of specifically implementing step S505, it is determined whether a new service function exists in the service domain in the already-constructed service domain model, if a new service function exists, it indicates that step S501 to step S504 do not need to be executed again, only program data required by the new service function needs to be used to update the already-written configuration information, then step S506 is executed, and if a new service function does not exist, it indicates that low-code development of the service domain has been completed, then step S508 is executed.
Step S506: and updating the configuration information formed by the dictionary and the filter based on the program data required by the new service function to obtain new configuration information.
In step S506, the new configuration information is composed using a dictionary and a filter.
In the process of specifically implementing step S506, program data required by the new service function is acquired, and the configuration information composed of the usage dictionary and the filter is updated by using the acquired program data required by the new service function, so as to obtain new configuration information.
Step S507: the dynamic assembly logic and the unique logic are performed based on the new configuration information.
In the process of implementing step S507 specifically, according to the new configuration information composed of the dictionary and the filter, the new configuration information is applied to the dynamic assembly logic and the unique logic, that is, the dynamic assembly logic and the unique logic are used in the new configuration information to process the business data or the business process, and the dynamic assembly logic and the unique logic are executed, thereby completing low-cost development of the business field.
Step S508: ending the low code development for the business domain.
In the process of implementing step S508 specifically, the service domain does not have a new service function, which indicates that low-cost development of the service domain has been completed, and then low-code development of the service domain is ended.
According to the low-code development method provided by the embodiment of the invention, the writing of repeated codes is avoided by constructing the service field model, the dynamic assembly logic and the unique logic, the low-cost development of the service field is completed by writing the established service field language corresponding to the service field model into the configuration information formed by using the dictionary and the filter and executing the dynamic assembly logic and the unique logic according to the configuration information, and when a new service function exists in the service field, the configuration information is updated by using the program data required by the new service function, and the dynamic assembly logic and the unique logic are executed again, so that the aims of saving the development cost, reducing the defect rate and forming standardization are fulfilled.
In order to better understand the low code development method provided by the above embodiments of the present invention, the following examples are given.
First, data information included in the configuration information will be described.
For example, taking account-checking file generation as an example, as shown in fig. 6, configuration information of a service is generated for the account-checking file.
Wherein, the No. 1 behavior configuration item is numbered and has no service significance; line 2 and its subsequent contents are data information related to the service; and in the 2 nd line, the 'bussdescr' is taken as the name of the configuration item, and the 'service description' information in the specific service is represented. In lines 4 to 6, "fileHeadParams" is used as a configuration item name to represent "file header parameter" information in a specific service, and the configuration value is a set of ordered descriptions of service data composed of dictionaries and filters, such as PowerCompany, AccDate, TotalCount, TotalAmt, SuccessCount, successalt as dictionaries, and fenToYuan and augmenter as filters.
As such, configuration information includes, but is not limited to, business data structures, data objects represented by dictionaries, and data processing manners represented by filters.
With reference to fig. 6, table 1 shows the relationship between configuration information (part of) of the reconciliation document creation service and the application data object and the concrete comparison relationship.
Table 1:
wherein, the content shown by the sequence number 2 is a dictionary processing result; the specific processing flow of performing analysis processing on the dictionary and the filter is shown in fig. 7, where the content shown in sequence number 3 is a processing result used by configuring the filter and the dictionary, TotalAmt is the dictionary, fenToYuan is the filter; the content shown in sequence number 4 is the processing result of modifying the dictionary by using the filter chain, the Name is the dictionary, the decrypt and desensitize are respectively the filters for decryption and desensitisation, and the two constitute the filter chain for decryption and desensitisation, which is applied to the application data corresponding to the Name.
In fig. 7, a filter (fenToYuan) is established for application program data in a dictionary (TotalAmt), a processing result used for configuring the filter and the dictionary is obtained, that is, configuration information fenToYuan (TotalAmt) composed of the dictionary and the filter is obtained, the configuration information fenToYuan (TotalAmt) composed of the dictionary and the filter is transmitted to a distributed system, a dictionary keyword is queried for the configuration information fenToYuan (TotalAmt), that is, a first configuration information of the dictionary corresponding to the configuration information fenToYuan (TotalAmt) is analyzed according to dynamic assembly logic and unique logic, so that a dictionary keyword is obtained as 111222, and at this time, the configuration information fenToYuan (TotalAmt) is converted into configuration information fenToYuan (111222).
And querying a filter for the configuration information fenToYuan (111222), namely analyzing second configuration information of the filter corresponding to the configuration information fenToYuan (111222) according to dynamic assembly logic and unique logic, sequentially applying each filter on a filter link to the application data to obtain that the filter on the filter link applied to the application data corresponding to the configuration information fenToYuan (111222) is a sub-converter filter, and converting the money amount 111222 by applying the sub-converter filter to obtain a final processing result of 1112.22.
Wherein each filter at least comprises: a fill filter, a conditional branching filter, a string intercept filter, a string concatenation filter, a repeat filter, and a branch filter.
Next, configuration information, dynamic assembly logic, unique logic, and the relationship therebetween will be described.
Assuming that a certain type of service needs to execute three processes, there are 2 types of processing logics in the current service, under a traditional hard coding scheme, there should be two logical links for writing codes, and each processing flow can implement different processing logics, as shown in fig. 8, where a logical link and a processing logic are formed by process 1, process 2, and process 3, respectively.
After the low-code development method provided by the embodiment of the invention is adopted, by identifying the first program data with the common logic in the program data, and constructing the dynamic assembly logic based on the first program data, each processing flow can realize different dynamic assembly logics, the dynamic assembly logic is as shown as an internal white square in fig. 9, wherein a logic link is formed by the flow 1, the flow 2 and the flow 3, and each flow can realize one dynamic assembly logic.
Unique logic is constructed based on other second program data having no common logic, such as the inner diagonal portions in fig. 9.
And after the dynamic assembly logic and the unique logic are constructed, establishing a service field language corresponding to the service field model, and writing the service field language into configuration information formed by using a dictionary and a filter.
The configuration information is applied to and executed by the dynamic assembly logic and the unique logic, and a specific process is shown in fig. 10.
In fig. 10, row 1 is "configuration information", row 2 is referred to as "dynamic assembly logic", rows 1 and 2 are combined to form row 3, and row 3 represents the application of configuration information to the dynamic assembly logic and the unique logic, referred to as a configured logic assembly.
According to the low-code development method provided by the embodiment of the invention, the writing of repeated codes is avoided by constructing the service field model, the dynamic assembly logic and the unique logic, the established service field language corresponding to the service field model is written into the configuration information formed by using the dictionary and the filter, and the dynamic assembly logic and the unique logic are executed according to the configuration information, so that the low-cost development of the service field is completed, and the purposes of saving the development cost, reducing the defect rate and forming standardization are realized.
Corresponding to the low code development method shown in the above embodiment of the present invention, an embodiment of the present invention further provides a low code development apparatus, as shown in fig. 11, where the low code development apparatus includes: a first building module 111, a second building module 112, a authoring module 113, and a first execution module 114.
The first building module 111 is configured to analyze a business domain and build a business domain model based on acquired program data required for executing a business function in the business domain.
A second construction module 112, configured to identify first program data having common logic in the program data, construct dynamic assembly logic based on the first program data, and construct unique logic based on other second program data not having common logic.
And the writing module 113 is configured to establish a service domain language corresponding to the service domain model, and write the service domain language into configuration information composed of a dictionary and a filter.
And the first execution module 114 is used for executing the dynamic assembly logic and the unique logic based on the configuration information, and completing low-cost development of the business field.
It should be noted that, the specific principle and the execution process of each module in the low-code development apparatus disclosed in the above embodiment of the present invention are the same as those of the method for implementing the low-code development of the present invention, and reference may be made to corresponding parts in the low-code development method disclosed in the above embodiment of the present invention, which are not described herein again.
The low-code development device provided by the embodiment of the invention constructs a business field model by analyzing the business field and based on the acquired program data required by executing the business function in the business field; identifying first program data with common logic in the program data, constructing dynamic assembly logic based on the first program data, and constructing unique logic based on other second program data without common logic; establishing a service field language corresponding to the service field model, and writing the service field language into configuration information consisting of a dictionary and a filter; and executing dynamic assembly logic and unique logic based on the configuration information to complete low-cost development of the business field. In the scheme, the writing of repeated codes is avoided by constructing the service field model, the dynamic assembly logic and the unique logic, the established service field language corresponding to the service field model is written into the configuration information formed by using the dictionary and the filter, and the dynamic assembly logic and the unique logic are executed according to the configuration information, so that the low-cost development of the service field is completed, and the aims of saving the development cost, reducing the defect rate and forming standardization are fulfilled.
Optionally, based on the first building block 111 shown in fig. 11, the first building block 111 further includes: an acquisition unit and a construction and determination unit.
And the acquisition unit is used for abstracting and refining the business field and acquiring program data required for executing business functions in the business field, wherein the program data at least comprises business data required by business processing and flow data of business processing steps.
And the construction and determination unit is used for constructing a business field model corresponding to the business field based on the business data and the process data and determining business links in the business field model.
According to the low-code development device provided by the embodiment of the invention, the business field is abstracted and refined, the business field model corresponding to the business field is constructed according to the acquired program data required for executing the business function in the business field, and the business link in the business field model is determined, so that the constructed business field model can be used for low-code development, and the purposes of improving development efficiency, saving development cost, reducing defect rate and forming standardization are achieved.
Optionally, based on the writing module 113 shown in fig. 11, the writing module 113 further includes: the device comprises a first establishing unit, a second establishing unit and a third establishing unit.
The first establishing unit is used for establishing a business field language corresponding to the business field model.
And the second establishing unit is used for establishing a mapping relation between the keywords in the service field language and the application program data to obtain a dictionary corresponding to the service field language.
And the third establishing unit is used for establishing a filter for the application program data in the dictionary to obtain configuration information consisting of the dictionary and the filter, and the filter is used for transforming and processing the application program data in the dictionary.
According to the low-code development device provided by the embodiment of the invention, the dictionary and the filter are established, so that the service field language is compiled into the configuration information consisting of the dictionary and the filter, the configuration information can be operated to carry out low-code development, and the purposes of improving development efficiency, saving development cost, reducing defect rate and forming standardization are achieved.
Optionally, based on the first execution module 114 shown in fig. 11, the first execution module 114 further includes: the device comprises a first analysis processing unit, a second analysis processing unit, a combination unit and an application unit.
And the first analysis processing unit is used for analyzing the first configuration information of the corresponding dictionary in the configuration information based on the dynamic assembly logic and the unique logic, and mapping the dictionary without the mapping relation established into the first configuration information according to the mapping relation between the dictionary and the application program data in the service field language.
And the second analysis processing unit is used for analyzing a second configuration message of the corresponding filter in the configuration information based on the dynamic assembly logic and the unique logic, and sequentially connecting one or more filters in series according to the second configuration information to form a filter link.
And the combining unit is used for recombining the dictionary and the filter link according to the first configuration information and the second configuration information to obtain the processing logic corresponding to each dynamic assembly logic and the unique logic.
And the application unit is used for executing the processing logic and sequentially applying each filter on the filter link to the application program data to complete the low-cost development of the service field.
According to the low-code development device provided by the embodiment of the invention, the first configuration information corresponding to the dictionary and the second configuration information corresponding to the filter in the configuration information are analyzed, the dictionary and the filter link formed by sequentially connecting one or more filters in series are recombined, the obtained processing logic corresponding to each dynamic assembly logic and unique logic is executed, and each filter on the filter link is applied, so that the low-cost development of the service field is completed, and the purposes of saving the development cost, reducing the defect rate and forming standardization are realized.
Based on the low-code development apparatus shown in fig. 11, in conjunction with fig. 11, as shown in fig. 12, the low-code development apparatus is further provided with an update module 115 and a second execution module 116.
And the updating module is used for updating the configuration information formed by the dictionary and the filter based on the program data required by the new service function to obtain new configuration information if the new service function exists in the service field.
A second execution module to execute the dynamic assembly logic and the unique logic based on the new configuration information.
The low-code development device provided by the embodiment of the invention avoids writing repeated codes by constructing the service field model, the dynamic assembly logic and the unique logic, completes low-cost development of the service field by writing the established service field language corresponding to the service field model into the configuration information formed by using the dictionary and the filter and executing the dynamic assembly logic and the unique logic according to the configuration information, and realizes the purposes of saving development cost, reducing defect rate and forming standardization by updating the configuration information by utilizing program data required by a new service function and executing the dynamic assembly logic and the unique logic again when the new service function exists in the service field.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.