CN116737140A - Business component construction method, device, computer equipment and storage medium - Google Patents

Business component construction method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN116737140A
CN116737140A CN202310685981.7A CN202310685981A CN116737140A CN 116737140 A CN116737140 A CN 116737140A CN 202310685981 A CN202310685981 A CN 202310685981A CN 116737140 A CN116737140 A CN 116737140A
Authority
CN
China
Prior art keywords
component
basic
service
code
service requirement
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310685981.7A
Other languages
Chinese (zh)
Inventor
林浪桥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial Bank Co Ltd
CIB Fintech Services Shanghai Co Ltd
Original Assignee
Industrial Bank Co Ltd
CIB Fintech Services Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial Bank Co Ltd, CIB Fintech Services Shanghai Co Ltd filed Critical Industrial Bank Co Ltd
Priority to CN202310685981.7A priority Critical patent/CN116737140A/en
Publication of CN116737140A publication Critical patent/CN116737140A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to a business component construction method, a business component construction device, computer equipment and a storage medium. The method comprises the following steps: acquiring basic components for representing each basic service function; acquiring a first service requirement, and determining a corresponding basic component and attribute information of each basic component according to the first service requirement; and according to the attribute information, associating and combining the basic components to construct a service component for realizing the first service requirement. The method can improve the reusability of the service components and reduce the development difficulty.

Description

Business component construction method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of low code technologies, and in particular, to a service component construction method, apparatus, computer device, and storage medium.
Background
With the development of software development technology, a low code platform appears. The low-code platform mainly performs layout on the low-code view in a dragging mode on basic components (such as an input box, a selection box, a table and the like), and draws the dynamic HTML page.
However, in the related art, a custom development mode is adopted for the components with the business processes, so that the reusability of the business process components is low and the development difficulty is high.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a business component construction method, apparatus, computer device, and storage medium that can improve the reusability of business components and reduce the difficulty of development.
In a first aspect, the present application provides a business component construction method based on a low code platform. The method comprises the following steps:
acquiring basic components for representing each basic service function;
acquiring a first service requirement, and determining a corresponding basic component and attribute information of each basic component according to the first service requirement;
and according to the attribute information, associating and combining the basic components to construct a service component for realizing the first service requirement.
In one embodiment, the attribute information includes component identification information, a relationship code, association identification information, and processor information; the step of constructing a service component for realizing the first service requirement by associating and combining the basic components according to the attribute information comprises the following steps:
Combining the basic components according to the component identification information, the relation code and the association identification information;
and determining the input-output relation among the combined basic components according to the association identification information, the relation code and the processor information, and constructing the business components.
In one embodiment, the relationship code includes a dependency relationship code, a combined relationship code, and an aggregate relationship code;
the combining each basic component according to the component identification information, the relation code and the association identification information comprises the following steps:
according to the dependency code, serially combining the basic components corresponding to the component identification information and the basic components corresponding to the association identification information;
according to the combination relation code, combining the basic components corresponding to the component identification information and the basic components corresponding to the association identification information in parallel;
and according to the aggregation relation code, aggregating the basic components after serial combination and the basic components after parallel combination to obtain the basic components after combination.
In one embodiment, the determining the input-output relationship between the combined basic components according to the association identification information, the relationship code and the processor information, and constructing the service component includes:
When determining that a processor exists in a current base component according to the processor information of the current base component, taking the output of the processor as the output of the current base component;
determining the input of the current basic component according to the association identification information and the relation code of the current basic component;
the steps are circularly executed until the input and the output of each basic component constructing the business component are determined.
In one embodiment, the determining the input-output relationship between the combined basic components according to the association identification information, the relationship code and the processor information, so as to construct the service component, further includes:
and when the processor of the current basic component is determined to be absent according to the processor information of the current basic component, taking the preset output value as the output of the current basic component.
In one embodiment, the determining the input of the current base component according to the association identification information and the relationship code of the current base component includes:
when the current base component is determined to exist in the upstream base component according to the relation code, taking the output of the upstream base component as the input of the current base component; the upstream base component is a base component or a service component at the upper level of the current base component when the service component is constructed;
And when the fact that the upstream base component does not exist in the current base component is determined according to the relation code, taking a preset input value as the input of the current base component.
In one embodiment, the method further comprises:
acquiring a second service requirement;
if the second service requirement comprises the first service requirement, splitting the second service requirement into a first service requirement and a third service requirement, and constructing a service component for realizing the second service requirement according to the service component for realizing the first service requirement and the service component for realizing the third service requirement;
and if the second service requirement does not comprise the first service requirement, determining a corresponding basic component and attribute information of each basic component according to the second service requirement, and constructing a service component for realizing the second service requirement by associating and combining each basic component according to the attribute information.
In a second aspect, the application further provides a business component construction device based on the low-code platform. The device comprises:
the component acquisition module is used for acquiring basic components used for representing each basic service function;
The demand acquisition module is used for acquiring a first service demand and determining corresponding basic components and attribute information of each basic component according to the first service demand;
and the association combination module is used for associating and combining the basic components according to the attribute information to construct a service component for realizing the first service requirement.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the business component construction method based on the low-code platform when executing the computer program.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the business component construction method based on the low code platform described above.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of the business component construction method based on the low-code platform.
According to the business component construction method, the business component construction device, the computer equipment and the storage medium, the corresponding basic components and the attribute information of each basic component are determined according to the first business requirement, and then the basic components are combined in an associated mode according to the attribute information to construct the business component for realizing the first business requirement, so that the code is not required to be redeveloped according to the business requirement, the development difficulty is reduced, the business component is directly obtained by the basic component combined in an associated mode, the reusability of the business component is improved, and the learning cost of code development is reduced.
Drawings
FIG. 1 is an application environment diagram of a business component building method based on a low code platform in one embodiment;
FIG. 2 is a flow diagram of a business component building method based on a low-code platform in one embodiment;
FIG. 3 is a schematic diagram of the basic components in one embodiment;
FIG. 4 is a schematic diagram of a lifecycle of business components in one embodiment;
FIG. 5 is a schematic diagram of the architecture of business components in one embodiment;
FIG. 6 is a schematic diagram of a business component in another embodiment;
FIG. 7 is a schematic diagram of a business component in another embodiment;
FIG. 8 is a flow chart of a business component building method based on a low code platform in another embodiment;
FIG. 9 is a block diagram of an architecture of a business component building apparatus in one embodiment;
fig. 10 is an internal structural view of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The business component construction method based on the low-code platform provided by the embodiment of the application can be applied to an application environment shown in figure 1. Wherein the development end 102 communicates with the server 104 through a network. The data storage system may store data that the server 104 needs to process, such as various basic components that characterize the various basic business functions. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server. The development terminal 102 acquires basic components for representing each basic service function; acquiring a first service requirement, and determining a corresponding basic component and attribute information of each basic component according to the first service requirement; and associating and combining the basic components according to the attribute information to construct the business component for realizing the first business requirement. The development terminal 102 may be, but not limited to, various personal computers, notebook computers, tablet computers, servers for development, and the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In one embodiment, as shown in fig. 2, a business component construction method based on a low-code platform is provided, and the method is applied to the development terminal 102 in fig. 1 for illustration, and includes the following steps:
step 202, obtaining basic components for representing each basic service function.
Wherein, the low code platform can refer to a development tool which can help a developer develop an application program quickly by using a visual interface and a graphical programming method without writing a large amount of code. The low code platform provides pre-built components, modules, and integration that enable developers to create applications through simple drag-and-drop and configuration operations.
Basic service functions may refer to the most basic service functions. Such as a selection function, a switching function, a download function, etc.
The base component may refer to a component pre-built in the low code platform for implementing basic business functions. As can be seen in fig. 3, the base assembly may include: downloads, selectors, radio boxes, input boxes, etc.
Illustratively, the base components for characterizing each basic service function may be obtained from a server through a network. After the base component is acquired, the base component can be added on the low-code view, so that the base component can be dragged on the low-code view directly, and the business components are combined.
Step 204, obtaining a first service requirement, and determining a corresponding base component and attribute information of each base component according to the first service requirement.
The first service requirement may refer to a requirement for implementing a service function or satisfying a service scenario. The first service requirement may be set by the user in real time or may be preset.
Attribute information may refer to information characterizing the nature of the underlying components and the relationships between the underlying components.
The development end obtains a first service requirement, determines a basic component capable of realizing the first service requirement according to the first service requirement, and determines attribute information of each basic component.
For example, when the first service requirement is to upload a picture, at least the corresponding base component includes an upload component, a picture component, and the like, and at this time, the attribute information of the upload component and the attribute information of the picture component need to be determined so as to implement the first service requirement of uploading the picture according to the attribute information of the picture component and the upload component.
And 206, associating and combining the basic components according to the attribute information to construct a service component for realizing the first service requirement.
The association combination may refer to a process of associating and combining the base components to obtain the service components according to attribute information of the base components.
A business component may refer to a component that can directly fulfill the first business requirement without additional processing. The business component can also be combined with other base components to achieve other business needs.
For example, when the first service requirement is an uploading picture, and a service component for implementing the first service requirement is constructed, the service component and a basic component for representing a downloading function may be combined to obtain a new service component: uploading and downloading the pictures.
For example, a combined connection relationship between the base components may be determined according to the attribute information, and then the base components are associated and combined to construct a service component for implementing the first service requirement.
According to the business component construction method based on the low-code platform, the corresponding basic components and the attribute information of each basic component are determined according to the first business requirement, and then the basic components are combined in an associated mode according to the attribute information to construct the business component for realizing the first business requirement, so that code redevelopment according to the business requirement is not needed, development difficulty is reduced, the business component is directly obtained by the basic component combined in an associated mode, reusability of the business component is improved, and learning cost of code development is reduced.
After the business component is built, the API (Application Programming Interface, application program interface) of the business component may be set to implement specific functions for the business component. APIs are classified into default APIs and custom APIs. The default API is mainly a hook function of a service component life cycle, and a method for acquiring or setting a component attribute, such as an init method for initializing default data and a setData method for setting component data; custom APIs customize the method implemented by programming for users, such as filters for certain data. There may be a plurality of APIs as one of the service attributes.
Referring to fig. 4, the lifecycle of the service components includes 4 stages of initialization (init), loading (mount), running (running), destruction (destroy). The initialization stage is used for initializing a service component and loading data; the loading stage is used for rendering and displaying the business components to the page; the operation stage is the operation performed by the user on the business component, such as data input and the like; the destroying stage is destroying operation executed by the browser when the user leaves the current page of the service assembly. There is a default hook function (APIS hook) for each stage, as in the initialization stage, the init method provides a method of loading data in this stage, and the mount method provides a hook method in the rendering stage, facilitating the processing of rendering in this stage, such as setting the width, height, etc. of the component according to the loaded data. In the initialization stage, the data source may be a data set of a database, or a data set acquired by remote calling modes such as http.
In the application, the business components can form a composite component in a manner of dependence, combination, aggregation and the like, when data is loaded in a manner of data source or user input, a setData method of the data is triggered, and the method carries out assignment according to the components and the relationship, and is defined as follows:
setData ([ data ], identification information of the component (the component ID), [ identification information of the associated component (the associated component ID), [ relationship code ] ])
If the foundation component A and the foundation component B exist, the foundation component B depends on the foundation component A, the setData (B) assigns data output by the foundation component A to the foundation component B; if the foundation component C exists, the foundation component A and the foundation component B are in a combination relationship, and setData (C) assigns data output by the foundation component A and the foundation component B to the foundation component C.
Referring to fig. 5, in some embodiments, the attribute information includes component identification information, a relationship code, association identification information, and processor information, and step 206 "the service component for implementing the first service requirement is constructed by associating and combining the basic components according to the attribute information" includes the following steps: combining the basic components according to the component identification information, the relation code and the association identification information; and determining the input-output relationship among the combined basic components according to the association identification information, the relationship code and the processor information, and constructing to obtain the service components.
In some embodiments, the attribute information of the base component may be as shown in table 1.
TABLE 1
Component identification information Relation code Association identification information Preset input value Preset output value Processor information
The component identification information may refer to information for characterizing a unique identity of a current base component.
A relationship code may refer to an encoding used to characterize a relationship between a current base component and other base components. The relationship code may include a dependency code, a combined relationship code, and an aggregate relationship code, the corresponding code including:
0: characterizing that the current base component is irrelevant to other base components;
1: and the dependency code is used for representing that the basic component has a dependency. If the output of the base component A is a necessary condition for other base components B to work normally, the base component B and the base component A are in a dependency relationship. That is, when the base component a depends on the base component B, then the output of the base component B is necessarily the input of the base component a.
2: and the combination relation code is used for representing the combination relation among the basic components. If the latter base component depends on the union of the outputs of the plurality of front base components to work normally, the latter base component and the front base component form a combination relation. That is, when the union of the outputs of the base component A, B, C is the input of the base component D, then the base component D and the base component A, B, C constitute a combination relationship.
3: and the aggregation relation code is used for representing the aggregation relation among the basic components. And a plurality of base components externally form a unified business component through dependence, combination and other relations, so that an aggregation relation is formed among the base components. For example, the downloading component, the picture component and the uploading component externally form a service component for representing image uploading and downloading, and then an aggregation relationship is formed among the downloading component, the picture component and the uploading component.
The association identification information may refer to unique identification information for characterizing a base component having an association relationship with a current base component. There may be multiple associated identification information for each base component. For example, if the base component a has a dependency relationship, and the dependent base component is B, the component identification information of B is B, and the association identification information is a.
The preset input value may refer to a preset input value. When a base component has an associated base component (i.e., when an upstream base component is present), then taking the output value of the base component as the input value; when the base component does not have an associated base component (when there is no upstream base component), then the preset input value is taken as the input value. If the base component A has a dependency relationship, the dependent base component is B, the value bound by the base component B is data, and the input of the base component A is data.
The preset output value may refer to a preset output value. When the basic component has a processor, the output value is the output processed by the processor, and when the basic component does not have the processor, the output value is a preset output value.
Processor information may refer to information that characterizes whether a base component is present for a processor. The processor is provided with programs, typically for executing processing events, hook functions, data processing methods, etc. If the combination relation exists between the base component A and the base components B and between the base component C, the processing event of the base component A is triggered when the output values of the base component B and the base component C are ready.
Input-output relationships may refer to relationships of inputs to outputs between base components.
For example, referring to fig. 5, in fig. 5, attribute information of each base component is presented in the form of table 1. Base component a is dependent on base component B, base component C is the combination of base component a and base component B, and base component E is the aggregation of base component C and base component D. The base component E ultimately forms a business component with a certain business logic.
The service component is constructed by determining the relationship between the base components according to the component identification information, the relationship code and the association identification information of the base components, combining the base components, and determining the input-output relationship between the combined base components according to the association identification information, the relationship code and the processor information.
For example, referring to fig. 6, there is a dependency relationship between the base component "selector" and the base component "input box" (the base component "input box" depends on the base component "selector"), and the base component "text" requires data of the base component "selector" and the base component "input box", and thus, the base component "selector" and the base component "input box" form a combined relationship for the base component "text". The basic component 'selector', the basic component 'input box' and the basic component 'text' form independent business components to provide business services, so that an aggregation relation is formed among the three components, and a corresponding connection diagram is shown in fig. 6.
Referring to fig. 7, the step of combining the basic components according to the component identification information, the relationship code, and the association identification information includes the steps of: according to the dependency code, serially combining the basic components corresponding to the component identification information and the basic components corresponding to the association identification information; according to the combination relation code, the basic components corresponding to the component identification information and the basic components corresponding to the association identification information are combined in parallel; and according to the aggregation relation code, aggregating the basic components after serial combination and the basic components after parallel combination to obtain the basic components after combination.
A serial combination may refer to a combination between a base component a and a base component B when the input of the base component a originates from the output of only one base component B. As can be seen from the definition of the serial combination, when the relation code is a dependency relation code, the connection relation between the corresponding basic components is necessarily the serial combination.
Parallel combining may refer to a combination between a base component a and multiple base components when the input of the base component a originates from the output of multiple base components (e.g., base component B, base component C, etc.). As can be seen from the definition of parallel combination, when the relation code is a combination relation code, the connection relation between the corresponding basic components is parallel combination.
In an exemplary embodiment, the relationship code is selected from all basic components forming the service component as a dependency relationship code and a basic component combining the dependency relationship code, and then the basic component corresponding to the component identification information and the basic component corresponding to the association identification information are combined in series according to the dependency relationship code. And according to the combination relation code, combining the basic components corresponding to the component identification information and the basic components corresponding to the association identification information in parallel. And finally, aggregating the basic components after serial combination and the basic components after parallel combination according to the aggregation relation code to obtain the basic components after combination.
According to the technical scheme, the corresponding base components are combined in series according to the dependency relation code, the corresponding base components are combined according to the combination relation code, the base components after the serial combination and the base components after the parallel combination are aggregated according to the aggregation relation code, and the combined base components are obtained, so that the combination of the service components for realizing the first service requirement is realized, the difficulty of code development is reduced, and the reusability of the service components is improved.
In some embodiments, the step of determining the input-output relationship between the combined base components according to the association identification information, the relationship code and the processor information, and constructing the service component includes the following steps: when the processor of the current base component exists according to the processor information of the current base component, taking the output of the processor as the output of the current base component; when the fact that the current base assembly does not have a processor is determined according to the processor information of the current base assembly, taking the preset output value as the output of the current base assembly; determining the input of the current basic assembly according to the association identification information and the relation code of the current basic assembly; the steps are circularly executed until the input and the output of each basic component for constructing the business component are determined.
Specifically, if the current base component has a processor, the output of the processor after data processing is used as the output of the current base component. And if the current basic component does not have the processor, taking the preset output value as the output of the current basic component. And determining the input of the current basic component according to the association identification information and the relation code of the current basic component. The steps are repeatedly executed until the input and the output of each basic component for constructing the business component are determined.
In some embodiments, the step of "determining an input of the current base component from the association identification information and the relationship code of the current base component" comprises the steps of: when the current base component is determined to exist in the upstream base component according to the relation code, taking the output of the upstream base component as the input of the current base component; the upstream base component is a base component or a business component at the upper level of the current base component when the business component is constructed; and when the current base component is determined to not exist in the upstream base component according to the relation code, taking the preset input value as the input of the current base component.
Specifically, if the relationship code is 0, it may be determined that the current base component does not have an upstream base component, and if the relationship code is not 0, it may be determined that the current base component has an upstream base component. And if the current base component does not exist in the upstream base component, taking the preset input value as the input of the current base component.
In some embodiments, the business component construction method based on the low-code platform further comprises the following steps: acquiring a second service requirement; if the second service requirement comprises the first service requirement, splitting the second service requirement into the first service requirement and the third service requirement, and constructing a service component for realizing the second service requirement according to the service component for realizing the first service requirement and the service component for realizing the third service requirement; if the second service requirement does not include the first service requirement, determining the corresponding basic components and attribute information of each basic component according to the second service requirement, and constructing the service components for realizing the second service requirement by associating and combining each basic component according to the attribute information.
The second service requirement may refer to a requirement for implementing a service function or satisfying a service scenario. The first service requirement may be set by the user in real time or may be preset.
Specifically, when the second service requirement includes the first service requirement, splitting the second service requirement into the first service requirement and the third service requirement, and constructing a service component for implementing the second service requirement according to the service component for implementing the first service requirement and the service component for implementing the third service requirement. The construction process of the service component of the third service requirement is similar to that of the service component of the first service requirement, and will not be described herein. When the second service requirement comprises the first service requirement, the second service requirement is split into the first service requirement and the third service requirement, and then the service component for realizing the second service requirement is directly constructed according to the service component for realizing the first service requirement and the service component for realizing the third service requirement, so that the reusability of the service component can be improved, and the development cost is reduced.
When the second service requirement does not comprise the first service requirement, determining the corresponding basic components and attribute information of each basic component according to the second service requirement, and constructing the service components for realizing the second service requirement by associating and combining each basic component according to the attribute information. That is, when the second service requirement does not include the first service requirement, a construction mode of the service component for implementing the first service requirement is adopted to construct the service component for implementing the second service requirement.
Referring to fig. 8, an embodiment of the present application provides a business component construction method based on a low code platform, which includes the following steps:
step 802, obtain a base component for characterizing each basic service function.
Step 804, obtaining a first service requirement, and determining a corresponding base component and attribute information of each base component according to the first service requirement. The attribute information comprises component identification information, a relation code, association identification information, processor information, a preset input value and a preset output value.
Step 806, according to the dependency code, the base component corresponding to the component identification information and the base component corresponding to the association identification information are combined in series.
And step 808, combining the basic components corresponding to the component identification information and the basic components corresponding to the association identification information in parallel according to the combination relation code.
And step 810, aggregating the base components after serial combination and the base components after parallel combination according to the aggregation relation code to obtain the base components after combination.
Step 812, it is determined whether the current base component has a processor.
If yes, go to step 814, if no, go to step 816.
Step 814, the output of the processor is taken as the output of the current base component.
Step 816, taking the preset output value as the output of the current basic component.
Step 818 determines if the current base component exists in the upstream base component.
If yes, go to step 820, if no, go to step 822.
Step 820 takes the output of the upstream base component as the input of the current base component.
In step 822, the preset input value is used as the input of the current base component.
In step 824, it is determined whether the inputs and outputs of the individual base components that make up the business component are both determined.
If yes, the flow is ended, if not, the flow is switched to another base component, and step 812 is performed.
Specifically, please refer to the previous embodiments from step 802 to step 824, and the description is omitted herein.
According to the technical scheme of the embodiment of the application, the corresponding basic components and the attribute information of each basic component are determined according to the first service requirement, and then each basic component is associated and combined according to the attribute information to construct the service component for realizing the first service requirement, so that the code is not required to be redeveloped according to the service requirement, the development difficulty is reduced, the service component is directly obtained by the association and combination of the basic components, the reusability of the service component is improved, and the learning cost of code development is reduced.
It should be understood that, although the steps in the flowcharts related to the above embodiments are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a business component construction device based on the low-code platform, which is used for realizing the business component construction method based on the low-code platform. The implementation of the solution provided by the apparatus is similar to the implementation described in the method above, so the specific limitations in the embodiments of one or more low code platform based business component building apparatus provided below can be seen from the above description of the low code platform based business component building method.
In one embodiment, as shown in fig. 9, there is provided a business component construction apparatus based on a low code platform, including: a component acquisition module 902, a requirement acquisition module 904, and an association combination module 906, wherein:
component acquisition module 902 is configured to acquire a base component for characterizing each basic service function.
The requirement obtaining module 904 is configured to obtain a first service requirement, and determine a corresponding base component and attribute information of each base component according to the first service requirement.
And the association combination module 906 is configured to associate and combine the base components according to the attribute information, and construct a service component for implementing the first service requirement.
In some embodiments, the association combination module is further to: combining the basic components according to the component identification information, the relation code and the association identification information; and determining the input-output relationship among the combined basic components according to the association identification information, the relationship code and the processor information, and constructing to obtain the service components.
In some embodiments, the association combination module is further to: according to the dependency code, serially combining the basic components corresponding to the component identification information and the basic components corresponding to the association identification information; according to the combination relation code, the basic components corresponding to the component identification information and the basic components corresponding to the association identification information are combined in parallel; and according to the aggregation relation code, aggregating the basic components after serial combination and the basic components after parallel combination to obtain the basic components after combination.
In some embodiments, the association combination module is further to: when the processor of the current base component exists according to the processor information of the current base component, taking the output of the processor as the output of the current base component; determining the input of the current basic assembly according to the association identification information and the relation code of the current basic assembly; the steps are circularly executed until the input and the output of each basic component for constructing the business component are determined.
In some embodiments, the association combination module is further to: and when the processor of the current base component is determined to be absent according to the processor information of the current base component, taking the preset output value as the output of the current base component.
In some embodiments, the association combination module is further to: when the current base component is determined to exist in the upstream base component according to the relation code, taking the output of the upstream base component as the input of the current base component; the upstream base component is a base component or a business component at the upper level of the current base component when the business component is constructed; and when the current base component is determined to not exist in the upstream base component according to the relation code, taking the preset input value as the input of the current base component.
In some embodiments, the requirement acquisition module is further configured to acquire a second service requirement; the association combination module is further configured to split the second service requirement into a first service requirement and a third service requirement if the second service requirement includes the first service requirement, and construct a service component for implementing the second service requirement according to the service component for implementing the first service requirement and the service component for implementing the third service requirement; if the second service requirement does not include the first service requirement, determining the corresponding basic components and attribute information of each basic component according to the second service requirement, and constructing the service components for realizing the second service requirement by associating and combining each basic component according to the attribute information.
The modules in the low-code platform-based business component construction device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and an internal structure diagram thereof may be as shown in fig. 10. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program, when executed by a processor, implements a business component construction method based on a low code platform. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 10 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of: acquiring basic components for representing each basic service function; acquiring a first service requirement, and determining a corresponding basic component and attribute information of each basic component according to the first service requirement; and associating and combining the basic components according to the attribute information to construct the business component for realizing the first business requirement.
In one embodiment, the processor when executing the computer program further performs the steps of: combining the basic components according to the component identification information, the relation code and the association identification information; and determining the input-output relationship among the combined basic components according to the association identification information, the relationship code and the processor information, and constructing to obtain the service components.
In one embodiment, the processor when executing the computer program further performs the steps of: according to the dependency code, serially combining the basic components corresponding to the component identification information and the basic components corresponding to the association identification information; according to the combination relation code, the basic components corresponding to the component identification information and the basic components corresponding to the association identification information are combined in parallel; and according to the aggregation relation code, aggregating the basic components after serial combination and the basic components after parallel combination to obtain the basic components after combination.
In one embodiment, the processor when executing the computer program further performs the steps of: when the processor of the current base component exists according to the processor information of the current base component, taking the output of the processor as the output of the current base component; determining the input of the current basic assembly according to the association identification information and the relation code of the current basic assembly; the steps are circularly executed until the input and the output of each basic component for constructing the business component are determined.
In one embodiment, the processor when executing the computer program further performs the steps of: and when the processor of the current base component is determined to be absent according to the processor information of the current base component, taking the preset output value as the output of the current base component.
In one embodiment, the processor when executing the computer program further performs the steps of: when the current base component is determined to exist in the upstream base component according to the relation code, taking the output of the upstream base component as the input of the current base component; the upstream base component is a base component or a business component at the upper level of the current base component when the business component is constructed; and when the current base component is determined to not exist in the upstream base component according to the relation code, taking the preset input value as the input of the current base component.
In one embodiment, the processor when executing the computer program further performs the steps of: acquiring a second service requirement; if the second service requirement comprises the first service requirement, splitting the second service requirement into the first service requirement and the third service requirement, and constructing a service component for realizing the second service requirement according to the service component for realizing the first service requirement and the service component for realizing the third service requirement; if the second service requirement does not include the first service requirement, determining the corresponding basic components and attribute information of each basic component according to the second service requirement, and constructing the service components for realizing the second service requirement by associating and combining each basic component according to the attribute information.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring basic components for representing each basic service function; acquiring a first service requirement, and determining a corresponding basic component and attribute information of each basic component according to the first service requirement; and associating and combining the basic components according to the attribute information to construct the business component for realizing the first business requirement.
In one embodiment, the computer program when executed by the processor further performs the steps of: combining the basic components according to the component identification information, the relation code and the association identification information; and determining the input-output relationship among the combined basic components according to the association identification information, the relationship code and the processor information, and constructing to obtain the service components.
In one embodiment, the computer program when executed by the processor further performs the steps of: according to the dependency code, serially combining the basic components corresponding to the component identification information and the basic components corresponding to the association identification information; according to the combination relation code, the basic components corresponding to the component identification information and the basic components corresponding to the association identification information are combined in parallel; and according to the aggregation relation code, aggregating the basic components after serial combination and the basic components after parallel combination to obtain the basic components after combination.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the processor of the current base component exists according to the processor information of the current base component, taking the output of the processor as the output of the current base component; determining the input of the current basic assembly according to the association identification information and the relation code of the current basic assembly; the steps are circularly executed until the input and the output of each basic component for constructing the business component are determined.
In one embodiment, the computer program when executed by the processor further performs the steps of: and when the processor of the current base component is determined to be absent according to the processor information of the current base component, taking the preset output value as the output of the current base component.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the current base component is determined to exist in the upstream base component according to the relation code, taking the output of the upstream base component as the input of the current base component; the upstream base component is a base component or a business component at the upper level of the current base component when the business component is constructed; and when the current base component is determined to not exist in the upstream base component according to the relation code, taking the preset input value as the input of the current base component.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a second service requirement; if the second service requirement comprises the first service requirement, splitting the second service requirement into the first service requirement and the third service requirement, and constructing a service component for realizing the second service requirement according to the service component for realizing the first service requirement and the service component for realizing the third service requirement; if the second service requirement does not include the first service requirement, determining the corresponding basic components and attribute information of each basic component according to the second service requirement, and constructing the service components for realizing the second service requirement by associating and combining each basic component according to the attribute information.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of: acquiring basic components for representing each basic service function; acquiring a first service requirement, and determining a corresponding basic component and attribute information of each basic component according to the first service requirement; and associating and combining the basic components according to the attribute information to construct the business component for realizing the first business requirement.
In one embodiment, the computer program when executed by the processor further performs the steps of: combining the basic components according to the component identification information, the relation code and the association identification information; and determining the input-output relationship among the combined basic components according to the association identification information, the relationship code and the processor information, and constructing to obtain the service components.
In one embodiment, the computer program when executed by the processor further performs the steps of: according to the dependency code, serially combining the basic components corresponding to the component identification information and the basic components corresponding to the association identification information; according to the combination relation code, the basic components corresponding to the component identification information and the basic components corresponding to the association identification information are combined in parallel; and according to the aggregation relation code, aggregating the basic components after serial combination and the basic components after parallel combination to obtain the basic components after combination.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the processor of the current base component exists according to the processor information of the current base component, taking the output of the processor as the output of the current base component; determining the input of the current basic assembly according to the association identification information and the relation code of the current basic assembly; the steps are circularly executed until the input and the output of each basic component for constructing the business component are determined.
In one embodiment, the computer program when executed by the processor further performs the steps of: and when the processor of the current base component is determined to be absent according to the processor information of the current base component, taking the preset output value as the output of the current base component.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the current base component is determined to exist in the upstream base component according to the relation code, taking the output of the upstream base component as the input of the current base component; the upstream base component is a base component or a business component at the upper level of the current base component when the business component is constructed; and when the current base component is determined to not exist in the upstream base component according to the relation code, taking the preset input value as the input of the current base component.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a second service requirement; if the second service requirement comprises the first service requirement, splitting the second service requirement into the first service requirement and the third service requirement, and constructing a service component for realizing the second service requirement according to the service component for realizing the first service requirement and the service component for realizing the third service requirement; if the second service requirement does not include the first service requirement, determining the corresponding basic components and attribute information of each basic component according to the second service requirement, and constructing the service components for realizing the second service requirement by associating and combining each basic component according to the attribute information.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. A business component construction method based on a low-code platform, the method comprising:
acquiring basic components for representing each basic service function;
acquiring a first service requirement, and determining a corresponding basic component and attribute information of each basic component according to the first service requirement;
and according to the attribute information, associating and combining the basic components to construct a service component for realizing the first service requirement.
2. The method of claim 1, wherein the attribute information includes component identification information, a relationship code, association identification information, and processor information; the step of constructing a service component for realizing the first service requirement by associating and combining the basic components according to the attribute information comprises the following steps:
combining the basic components according to the component identification information, the relation code and the association identification information;
and determining the input-output relation among the combined basic components according to the association identification information, the relation code and the processor information, and constructing the business components.
3. The method of claim 2, wherein the relationship code comprises a dependency relationship code, a combined relationship code, and an aggregate relationship code;
the combining each basic component according to the component identification information, the relation code and the association identification information comprises the following steps:
according to the dependency code, serially combining the basic components corresponding to the component identification information and the basic components corresponding to the association identification information;
according to the combination relation code, combining the basic components corresponding to the component identification information and the basic components corresponding to the association identification information in parallel;
And according to the aggregation relation code, aggregating the basic components after serial combination and the basic components after parallel combination to obtain the basic components after combination.
4. The method according to claim 2, wherein the determining the input-output relationship between the combined base components according to the association identification information, the relationship code and the processor information, and constructing the business component, includes:
when determining that a processor exists in a current base component according to the processor information of the current base component, taking the output of the processor as the output of the current base component;
determining the input of the current basic component according to the association identification information and the relation code of the current basic component;
the steps are circularly executed until the input and the output of each basic component constructing the business component are determined.
5. The method of claim 4, wherein the determining the input-output relationship between the combined base components according to the association identification information, the relationship code, and the processor information, constructing the business component, further comprises:
and when the processor of the current basic component is determined to be absent according to the processor information of the current basic component, taking the preset output value as the output of the current basic component.
6. The method of claim 4, wherein determining the input of the current base component based on the association-identifying information and the relationship code of the current base component comprises:
when the current base component is determined to exist in the upstream base component according to the relation code, taking the output of the upstream base component as the input of the current base component; the upstream base component is a base component or a service component at the upper level of the current base component when the service component is constructed;
and when the fact that the upstream base component does not exist in the current base component is determined according to the relation code, taking a preset input value as the input of the current base component.
7. The method according to claim 1, wherein the method further comprises:
acquiring a second service requirement;
if the second service requirement comprises the first service requirement, splitting the second service requirement into a first service requirement and a third service requirement, and constructing a service component for realizing the second service requirement according to the service component for realizing the first service requirement and the service component for realizing the third service requirement;
And if the second service requirement does not comprise the first service requirement, determining a corresponding basic component and attribute information of each basic component according to the second service requirement, and constructing a service component for realizing the second service requirement by associating and combining each basic component according to the attribute information.
8. A business component building apparatus based on a low code platform, the apparatus comprising:
the component acquisition module is used for acquiring basic components used for representing each basic service function;
the demand acquisition module is used for acquiring a first service demand and determining corresponding basic components and attribute information of each basic component according to the first service demand;
and the association combination module is used for associating and combining the basic components according to the attribute information to construct a service component for realizing the first service requirement.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202310685981.7A 2023-06-09 2023-06-09 Business component construction method, device, computer equipment and storage medium Pending CN116737140A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310685981.7A CN116737140A (en) 2023-06-09 2023-06-09 Business component construction method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310685981.7A CN116737140A (en) 2023-06-09 2023-06-09 Business component construction method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116737140A true CN116737140A (en) 2023-09-12

Family

ID=87916297

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310685981.7A Pending CN116737140A (en) 2023-06-09 2023-06-09 Business component construction method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116737140A (en)

Similar Documents

Publication Publication Date Title
CN111814089A (en) Page rendering method and device, rendering server and storage medium
CN114115844A (en) Page generation method and device, computer equipment and storage medium
CN114756627B (en) Alliance-chain-based digital asset processing method, system and storage medium
CN116737140A (en) Business component construction method, device, computer equipment and storage medium
CN115221852A (en) Vxe-table based dynamic calculation table implementation method, device and computer equipment
CN114528045B (en) Plug-in operation method, device, computer equipment and storage medium
CN115686706B (en) Terminal view configuration method, device, computer equipment and storage medium
CN117130606A (en) Front-end page configuration method, front-end page configuration device, computer equipment and storage medium
CN117453211A (en) Page generation method, page generation device, computer device, storage medium and program product
CN116737138A (en) Application generation method, device, computer equipment and storage medium
CN116881594A (en) View updating method, device, computer equipment and storage medium
CN116431260A (en) Interface rendering method and device based on data model driving and computer equipment
CN117522296A (en) Auditing flow generation method, auditing flow generation device, computer equipment and storage medium
CN117971785A (en) Terminal log data processing method, device, computer equipment and storage medium
CN117389859A (en) Method, device, computer equipment and storage medium for determining influence range
CN117612192A (en) Electronic drawing information identification method, system, electronic equipment and storage medium
CN117435651A (en) Test data processing method, device, computer equipment and storage medium
CN116400922A (en) Interface guide schematic diagram generation method, device, computer equipment and storage medium
CN115510130A (en) Report generation method and device, computer equipment and storage medium
CN117331625A (en) Page resource loading method and device, computer equipment and storage medium
CN117707582A (en) Method and device for updating assembly of virtual object and computer equipment
CN117919693A (en) Resource management method, device and computer equipment
CN117271656A (en) Data synchronization method, device and computer equipment
CN116740208A (en) Poster generation method and device and computer equipment
CN116339862A (en) Interface configuration method, device, computer equipment and storage medium

Legal Events

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