CN115840778B - Visual configuration connector based on model and connection method thereof - Google Patents

Visual configuration connector based on model and connection method thereof Download PDF

Info

Publication number
CN115840778B
CN115840778B CN202310135545.2A CN202310135545A CN115840778B CN 115840778 B CN115840778 B CN 115840778B CN 202310135545 A CN202310135545 A CN 202310135545A CN 115840778 B CN115840778 B CN 115840778B
Authority
CN
China
Prior art keywords
model
type
external system
configuration
configuration information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310135545.2A
Other languages
Chinese (zh)
Other versions
CN115840778A (en
Inventor
王雪晴
姬峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Better Cloud Technology Co ltd
Original Assignee
Beijing Better Cloud Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Better Cloud Technology Co ltd filed Critical Beijing Better Cloud Technology Co ltd
Priority to CN202310135545.2A priority Critical patent/CN115840778B/en
Publication of CN115840778A publication Critical patent/CN115840778A/en
Application granted granted Critical
Publication of CN115840778B publication Critical patent/CN115840778B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a visual configuration connector based on a model and a connection method thereof, wherein the connector comprises a design state and an operation state, and the design state comprises the following components: the system comprises a configuration model definition module for freely defining configuration information of the connector, a parameter model definition module for defining parameter information of connector operation to match a service model data type of a low-code platform, and a data mapping definition module for mapping the parameter information defined by the parameter model definition module with parameters of an external system; the running state comprises a running state database, a model analysis engine, a connection engine and a data conversion engine, wherein the model analysis engine is used for analyzing configuration information and parameter information, the connection engine is used for connecting to a corresponding external system according to the analyzed configuration information, and the data conversion engine is used for data conversion. The invention reduces the workload of code development, and can rapidly use the data of the external system by only using the internal release mechanism of the low-code platform.

Description

Visual configuration connector based on model and connection method thereof
Technical Field
The invention relates to a visual configuration connector based on a model and a connection method thereof.
Background
The low-code platform is a SaaS cloud platform which is shared by multiple tenants and is completely isolated in data, and a designer rapidly performs business logic design in a cloud end through dragging mode and then issues design results to a user end for user application. In practical software applications, a situation that an external system needs to be docked is often encountered, and in this case, code development is generally performed to achieve an effect. The reason is that the docking of different systems has great variability, such as different docking interfaces; the configuration information model is inconsistent; different parameter definitions, different parameter formats and different use modes; when interfacing with its own software platform, data conversion is difficult. These problems increase the difficulty and repeatability of the docking, and after the new connection capability is developed, a function release process is required, which affects the stability of the system.
Disclosure of Invention
The invention provides a visual configuration connector based on a model and a connection method thereof, which reduce the workload of code development, can rapidly use the data of an external system and keep the stable operation of a low code platform by only utilizing an internal release mechanism of the low code platform.
The invention is realized by the following technical scheme:
a model-based visual configuration connector for connecting a low-code platform to an external system, comprising a design state and an operational state, the design state comprising: the system comprises a configuration model definition module for freely defining configuration information of the connector, a parameter model definition module for defining parameter information of the connector operation to match a service model data type of the low-code platform, a data mapping definition module for mapping the parameter information defined by the parameter model definition module with parameters of an external system, and a design state database for storing the configuration information and the parameter information; the running state comprises a running state database, a model analysis engine, a connection engine and a data conversion engine, after the design state design is completed, the configuration information and the parameter information are released to the running state database from the design state database, the model analysis engine is used for analyzing the configuration information and the parameter information, the connection engine is used for connecting to a corresponding external system according to the analyzed configuration information, and the data conversion engine is used for converting the parameter information into parameters which can be identified by the external system or converting the data returned by the external system into data which can be identified by the low-code platform.
Further, the design state further includes a configuration model engine, configured to store the configuration information as a JSON string, and when in the running state, the model parsing engine parses the JSON string to check correctness of the configuration information, and transmit the configuration information with correct check to an external system interface.
Further, the configuration information defined by the configuration model definition module may be a string type, a numerical type and/or whether ciphertext is displayed, both the string type and the numerical type may be displayed as text input boxes and/or drop-down single choices, and the array type may be displayed as multiple choice boxes.
Further, the type of the parameter information is a data type supported in the low-code platform, including a date type, a short text type, a numerical value type, an automatic coding type and/or a long text type.
Further, the model analysis engine judges whether the defined configuration information is accurate or not and whether the length and the type of the configuration information are correct or not according to the configuration model definition module.
Further, the data conversion engine captures an exception before conversion, and if no exception exists, the data conversion is performed by adopting JAVA guiding type conversion.
Further, the connection engine determines an API interface URL according to the parsed configuration information, calls the URL and transmits the configuration information to an external system as an interface parameter.
The invention is also realized by the following technical scheme:
a method of connecting connectors based on a model-based visualization configuration as described in any of the above, comprising the steps of:
step S1, selecting a connector at a service model interface of a low-code platform, defining configuration information through a configuration model definition module, defining parameter information of connector operation through a parameter model definition module, and determining a mapping relation between the parameter information and parameters of an external system through a data mapping definition module so as to determine a service model;
step S2, the determined business model is issued to an operation state;
and S3, entering an operation environment, analyzing the configuration information and the parameter information by a model analysis engine of the connector, connecting the corresponding external system by a connection engine according to the analyzed configuration information, converting the parameter information into parameters which can be identified by the external system by a data conversion engine, and converting the returned data into data which can be identified by a low-code platform after the data is returned by the external system.
The invention has the following beneficial effects:
the invention is based on the low code platform, realizes the interface connection capability configuration in a mode of configuration model, can support service developers to quickly integrate external systems through the low code platform, reduces the workload of code development, and can be deployed without the need of stable operation of the low code platform, so that a user side can quickly use the data of an external system by utilizing an internal release mechanism of the low code platform; the problems of configuration variability and parameter variability are solved through the model analysis engine, the interface connection problem is solved through the connection engine, the difficulty of data conversion is solved through the data conversion engine, and the risk that other functions of a user are affected due to frequent edition is solved based on the low-code platform.
Drawings
The invention is described in further detail below with reference to the accompanying drawings.
Fig. 1 is a functional block diagram of the present invention.
FIG. 2 is a timing diagram of the present invention in use.
FIG. 3 is a diagram illustrating an exemplary model definition of the present invention.
Fig. 4 is a flow chart of the operation of the present invention.
FIG. 5 is a schematic diagram of a configuration model definition module according to the present invention.
FIG. 6 is a schematic diagram of a parametric model definition module according to the present invention.
FIG. 7 is a diagram illustrating a data map definition module according to the present invention.
Detailed Description
As shown in fig. 1-7, the model-based visualization configuration connector is used to connect the low-code platform and the external system. The connector includes a design state and an operational state, the design state including: the system comprises a configuration model definition module, a parameter model definition module, a data mapping definition module, a design state database and a configuration model engine, wherein the configuration model definition module is used for freely defining configuration information of a connector, the parameter model definition module is used for defining parameter information of connector operation to match a service model data type of a low-code platform, the data mapping definition module is used for mapping the parameter information defined by the parameter model definition module with parameters of an external system, the design state database is used for storing the configuration information and the parameter information, and the configuration model engine is used for storing the configuration information as a JSON character string for transmission; the running state comprises a running state database, a model analysis engine, a connection engine and a data conversion engine, after the design state design is completed, the configuration information and the parameter information are released to the running state database from the design state database, the model analysis engine is used for analyzing the configuration information and the parameter information, the connection engine is used for connecting to a corresponding external system according to the analyzed configuration information, and the data conversion engine is used for converting the parameter information into parameters which can be identified by the external system or converting the data returned by the external system into data which can be identified by the low-code platform.
The configuration information defined by the configuration model definition module can be character string type, numerical value type and/or ciphertext display, the character string type and the numerical value type can be displayed as text input boxes and/or drop-down single choices, and the array type can be displayed as multiple choice boxes. Connector configuration information such as type, whether ciphertext, and the like can be freely defined herein. The configuration information is stored as JSON strings for delivery. After the JSON character string is analyzed by the model analysis engine, whether the defined configuration information is accurate or not and whether the length and the type of the configuration information are correct or not are judged according to the configuration model definition module, and the configuration information with correct verification is transmitted to an external system interface. The configuration information of the general connector is mainly authentication information, the external system interface firstly authenticates based on the information, and the next operation can be performed after the authentication is passed. The parsing process of the JSON character string is the prior art.
The type of the parameter information is a data type supported in the low-code platform, and the data type comprises a date type, a short text type, a numerical value type, an automatic coding type and/or a long text type. Each connector corresponds to a plurality of connector operations, and after an external system is connected, various operations can be performed. Each connector operates inside the low code platform and operates on the data of the low code platform, so that the data types supported by the low code platform can be defined for delivery as parameters.
And mapping the defined parameter information with the parameter type of the external system, so as to facilitate mutual conversion when the external system is called, for example, defining the enterprise WeChat as a connector, and mapping the local data to the operation of the enterprise WeChat when the external system is called to perform data conversion. The parameter model definition module can know which parameters are operated, and then the parameters are mapped with an external system, so that the problem of inconsistent data types is solved, and after mapping, type conversion can be carried out in the external system. The mapping rule in this embodiment includes: short text inside the low code platform, mapping text type, numeric type field and/or boolean type field of the external system; the number type field inside the platform maps the number type, floating point type and/or boolean type fields of the external system.
After the design state is designed, the designed content is released into the running state database through the release button, so that the low-code platform is an operation mechanism, the design state and the running state are separated, the tasks of the low-code platform can be effectively guaranteed, concurrency capacity can be pertinently improved, and performance and stability are improved. The running state is an entrance of a terminal user using a platform, and the user calls a designed service model in the running state.
The data conversion engine captures the exception before conversion, and if the exception is not generated, the data conversion is performed by adopting JAVA guide type conversion. The connection engine determines an API interface URL according to the analyzed configuration information, calls the URL and transmits the configuration information to an external system as an interface parameter.
The connection method of the visual configuration connector based on the model comprises the following steps:
step S1, a low-code platform service developer (current tenant) selects a connector on a service model interface of a low-code platform, and defines configuration information through a configuration model definition module, parameter information of connector operation through a parameter model definition module, and a mapping relation between the parameter information and parameters of an external system through a data mapping definition module so as to determine a service model;
step S2, releasing the determined business model to an operation state, and selecting the operation environment of the current tenant when releasing the business model;
and S3, entering an operation environment, analyzing the configuration information and the parameter information by a model analysis engine of the connector, connecting the corresponding external system by a connection engine according to the analyzed configuration information, converting the parameter information into parameters which can be identified by the external system by a data conversion engine, and converting the returned data into data which can be identified by a low-code platform after the data is returned by the external system.
The foregoing description is only illustrative of the preferred embodiments of the present invention and is not to be construed as limiting the scope of the invention, i.e., the invention is not to be limited to the details of the claims and the description, but rather is to cover all modifications which are within the scope of the invention.

Claims (6)

1. A model-based visual configuration connector for connecting a low-code platform to an external system, characterized by: including design state and running state, the design state includes: the system comprises a configuration model definition module for freely defining configuration information of a connector, a parameter model definition module for defining parameter information of connector operation to match a service model data type of a low-code platform, a data mapping definition module for mapping the parameter information defined by the parameter model definition module with parameters of an external system and a design state database for storing the configuration information and the parameter information, wherein the data mapping definition module maps a short text inside the low-code platform to a text type, a digital type field and/or a Boolean type field of the external system, maps a digital type field inside the platform to a digital type, a floating point type and/or a Boolean type field of the external system; the running state comprises a running state database, a model analysis engine, a connection engine and a data conversion engine, after the design state is designed, configuration information and parameter information are released to the running state database from the design state database, the model analysis engine is used for analyzing the configuration information and the parameter information, the connection engine is used for connecting to a corresponding external system according to the analyzed configuration information, and the data conversion engine is used for converting the parameter information into parameters which can be identified by the external system or converting data returned by the external system into data which can be identified by a low-code platform; the design state also comprises a configuration model engine, which is used for storing the configuration information into a JSON character string, and the model analysis engine analyzes the JSON character string to check the correctness of the configuration information and transmits the configuration information with the correct check to an external system interface when in the running state; and the connection engine determines an API interface URL according to the analyzed configuration information, calls the URL and transmits the configuration information to an external system as an interface parameter.
2. A model-based visual configuration connector as in claim 1, wherein: the configuration information defined by the configuration model definition module is character string type, numerical value type and/or ciphertext display, the character string type and the numerical value type can be displayed as text input boxes and/or drop-down single choices, and the array type can be displayed as multiple choice boxes.
3. A model-based visual configuration connector as claimed in claim 1 or 2, wherein: the type of the parameter information is a data type supported in the low-code platform and comprises a date type, a short text type, a numerical value type, an automatic coding type and/or a long text type.
4. A model-based visual configuration connector as claimed in claim 1 or 2, wherein: the model analysis engine judges whether the defined configuration information is accurate or not and whether the length and the type of the configuration information are correct or not according to the configuration model definition module.
5. A model-based visual configuration connector as claimed in claim 1 or 2, wherein: the data conversion engine captures the abnormality before conversion, and if the abnormality does not exist, the data conversion is carried out by adopting JAVA guiding type conversion.
6. A method of connection based on a model-based visual configuration connector according to any one of claims 1 to 5, characterized in that: the method comprises the following steps:
step S1, selecting a connector at a service model interface of a low-code platform, defining configuration information through a configuration model definition module, defining parameter information of connector operation through a parameter model definition module, and determining a mapping relation between the parameter information and parameters of an external system through a data mapping definition module so as to determine a service model;
step S2, the determined business model is issued to an operation state;
and S3, entering an operation environment, analyzing configuration information and parameter information by a model analysis engine of the connector, determining an API interface URL by a connection engine according to the analyzed configuration information, calling the URL, transmitting the configuration information as an interface parameter to an external system so as to connect the corresponding external system, converting the parameter information into parameters identifiable by the external system by a data conversion engine, and converting the returned data into data identifiable by a low-code platform after the external system returns the data.
CN202310135545.2A 2023-02-20 2023-02-20 Visual configuration connector based on model and connection method thereof Active CN115840778B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310135545.2A CN115840778B (en) 2023-02-20 2023-02-20 Visual configuration connector based on model and connection method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310135545.2A CN115840778B (en) 2023-02-20 2023-02-20 Visual configuration connector based on model and connection method thereof

Publications (2)

Publication Number Publication Date
CN115840778A CN115840778A (en) 2023-03-24
CN115840778B true CN115840778B (en) 2023-05-16

Family

ID=85579932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310135545.2A Active CN115840778B (en) 2023-02-20 2023-02-20 Visual configuration connector based on model and connection method thereof

Country Status (1)

Country Link
CN (1) CN115840778B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114610280A (en) * 2022-02-22 2022-06-10 科大国创云网科技有限公司 Visual form design method and system realized in low-code mode

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8533661B2 (en) * 2007-04-27 2013-09-10 Dell Products, Lp System and method for automated on-demand creation of a customized software application
CN103399942B (en) * 2013-08-14 2016-06-29 山大地纬软件股份有限公司 A kind of data engine system supporting the many tenants of SaaS and method of work thereof
CN107995184B (en) * 2017-11-28 2020-10-30 航信德利信息系统(上海)有限公司 Connector and communication method using same
CN109697062B (en) * 2019-01-14 2022-04-01 深圳孟德尔软件工程有限公司 Multi-source data exchange system and fusion method
CN110825362B (en) * 2019-11-04 2023-04-14 广东道一信息技术股份有限公司 Low-code application software development system and method
US11917026B2 (en) * 2021-01-28 2024-02-27 Mutara, Inc. Dynamic mapping and integration via a meta-model definitional platform
CN114675821B (en) * 2022-05-26 2022-09-06 浩鲸云计算科技股份有限公司 Service standardization system and method based on low codes
CN115617325A (en) * 2022-10-11 2023-01-17 杭州半云科技有限公司 Component type low-code application configuration platform

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114610280A (en) * 2022-02-22 2022-06-10 科大国创云网科技有限公司 Visual form design method and system realized in low-code mode

Also Published As

Publication number Publication date
CN115840778A (en) 2023-03-24

Similar Documents

Publication Publication Date Title
US20230367559A1 (en) Development environment for real-time dataflow programming language
CN108108162B (en) Application programming interface generation method and device
CN109325009B (en) Log analysis method and device
US8745580B2 (en) Transparent type matching in a programming environment
US20080209405A1 (en) Distributed debugging for a visual programming language
CN109032923A (en) Method for testing software, device based on call chain, terminal
US9026580B2 (en) Validation pipeline
CN113900958A (en) Test case script generation method, system, medium and electronic device
CN112187558B (en) Data verification method and device and electronic equipment
CN108694120B (en) Method and device for testing service component
CN114185791A (en) Method, device and equipment for testing data mapping file and storage medium
CN115840778B (en) Visual configuration connector based on model and connection method thereof
CN108009092B (en) Design method of vehicle-mounted network management general test case protocol
CN113836014A (en) Interface testing method and device, electronic equipment and storage medium
CN111158777A (en) Component calling method and device and computer readable storage medium
CN111177089A (en) Method and device for generating log processing code, computer system and storage medium
CN115730309A (en) Multi-type scanning tool source code index statistical method, storage medium and terminal
CN114676198A (en) Benchmark evaluation system for multimode database and construction method thereof
CN115544950A (en) Constraint file importing method, device, equipment and storage medium
CN114374745A (en) Protocol format processing method and system
CN113138767A (en) Code language conversion method, device, electronic equipment and storage medium
CN111752840A (en) Cross-system financial self-service equipment SP automatic test method, equipment and medium
CN115687162B (en) Software testing device and method and electronic device
CN112965993B (en) Data processing system, method, device and storage medium
CN109376023B (en) Method and equipment for generating calling information and issuing return code group

Legal Events

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