CN116166234A - Method for realizing complex logic arrangement of form-driven low-code system - Google Patents

Method for realizing complex logic arrangement of form-driven low-code system Download PDF

Info

Publication number
CN116166234A
CN116166234A CN202310159198.7A CN202310159198A CN116166234A CN 116166234 A CN116166234 A CN 116166234A CN 202310159198 A CN202310159198 A CN 202310159198A CN 116166234 A CN116166234 A CN 116166234A
Authority
CN
China
Prior art keywords
context
code system
data
logic
logic arrangement
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
CN202310159198.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.)
Xiamen Best Material Digital Technology Co ltd
Original Assignee
Xiamen Best Material Digital 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 Xiamen Best Material Digital Technology Co ltd filed Critical Xiamen Best Material Digital Technology Co ltd
Priority to CN202310159198.7A priority Critical patent/CN116166234A/en
Publication of CN116166234A publication Critical patent/CN116166234A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/313Logic programming, e.g. PROLOG programming language
    • 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/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/443Optimisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the technical field of software development, in particular to a method for realizing complex logic arrangement of a form-driven low-code system, which comprises triggering events, an incoming context, logic arrangement processes and result returns, wherein the events are triggered by various links of form submission, custom buttons, data selection, process starting approval and ending and system condition event triggering, the context comprises trigger event types, form data corresponding to triggering and system current information, the logic arrangement process is a visual component simulation program language writing process, a single or multiple database addition and deletion change, variable assignment and calculation, circulation, branching, external calling and other logic arrangement component combination are configured according to service scenes, and the process is arranged according to service sequences. The form type low-code system utilizes the characteristic that the form type low-code system is driven by a form, has great logic processing flexibility based on a formulated SQL component, and can process abundant and complex logic operations.

Description

Method for realizing complex logic arrangement of form-driven low-code system
Technical Field
The invention relates to the technical field of software development, in particular to a method for realizing complex logic arrangement of a form driving type low-code system.
Background
Low code is a development platform that can quickly generate applications without encoding (0 code) or with a small amount of code. By means of visualization, developers with different experience levels can create web pages and mobile applications through a graphical user interface using drag components and model driven logic.
The current form type low code platform processes logic through existing components, by means of logic processing component programming, scripting language (Javascript, python, or self-developed scripting language) or development language (java. C#, etc.).
The low code configuration or small number of encodings creates an information management system, whether the data or information is stored in a relational database system, and whether the data is subject to various processing, manipulation, and external presentation.
Defects:
(1) The existing components (logic components) with logic processing capability can only be suitable for the existing narrow business logic and have no abundant variability;
(2) The arrangement of different logic components results in a richer expansion of logic processing power, but is still limited to combinations of existing power
(3) The universal script language can process complex business logic, but has the disadvantages of high writing difficulty, complexity, difficulty in learning and low integration level.
Therefore, a method for implementing complex logic arrangement for a form-driven low-code system is proposed for the above-described problems.
Disclosure of Invention
The present invention is directed to a method for implementing complex logic arrangement in a form-driven low-code system, so as to solve the above-mentioned problems in the prior art.
In order to achieve the above purpose, the present invention provides the following technical solutions:
a method for implementing complex logic orchestration in a form-driven low-code system, comprising the steps of:
s1, triggering events, wherein the events are triggered by form submission, custom buttons, links of data selection, process start approval and end and system condition events;
s2, inputting a context, wherein the context comprises a trigger event type, form data corresponding to triggering and current system information;
s3, a logic arrangement process, namely simulating a programming language writing process by a visual component, configuring single or multiple databases according to service scenes to add and delete changes, variable assignment and calculation, circulation, branching, external calling, calling other logic arrangement component combinations and arranging the processes according to service sequences;
s4, returning the result and returning the operation result.
In the logic arrangement process, the intermediate form is used as a calculation intermediate, and the SQL formulated by the collection is used for carrying out relational database operation, and the specific steps are as follows:
s11, inputting context form data, and inputting related form data related to the context;
s12, preprocessing the context form data and storing the context form data in one or more intermediate forms;
s13, performing one-step or multi-step relational database operation on the intermediate form and the context form or other forms;
s14, temporarily storing the operation result of the relational database in the intermediate form;
s15, deleting the middle form data;
s16, returning the processing result to the calling party.
Preferably, in step S12, the data is processed as necessary or the data for selecting the appropriate row or column is stored in one or more intermediate forms created in advance.
Preferably, in step S13, the formulated SQL component is used to write SQL, and performs database aggregation operation, relational operation and function operation with the context form or other service forms, and the operations are performed in one step or multiple steps; the set operation comprises the operations of a cone, an intersection, a difference and a Cartesian product; the relation operation comprises selection, projection and connection operation; the function operation comprises case and ifnull concrete relation database enriching function library.
Preferably, in step S15, the data temporarily stored in the intermediate form is synchronized to the related form, and the database adding, deleting and modifying operation is performed.
Compared with the prior art, the invention has the beneficial effects that:
1. the form type low-code system utilizes the characteristic that the form type low-code system is driven by a form, has great logic processing flexibility based on a formulated SQL component, and can process abundant and complex logic operation;
2. the formulated SQL component possesses good security boundaries.
Drawings
FIG. 1 is a schematic diagram of a trigger run logic orchestration process according to the present invention;
FIG. 2 is a schematic diagram of the complex logic process of formulating SQL in conjunction with intermediate forms in the present invention.
Detailed Description
The present invention will be further described in detail below with reference to the drawings and examples in order to make the objects, technical solutions and advantages of the present invention 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 invention.
In order to better understand the above technical solutions, the following detailed description will be given with reference to the accompanying drawings and the specific embodiments.
Examples:
referring to fig. 1, the present embodiment provides a technical solution:
a method for implementing complex logic orchestration in a form-driven low-code system, comprising the steps of:
s1, triggering events, wherein the events are triggered by form submission, custom buttons, links of data selection, process start approval and end and system condition events;
s2, inputting a context, wherein the context comprises a trigger event type, form data corresponding to triggering and current system information;
s3, a logic arrangement process, namely simulating a programming language writing process by a visual component, configuring single or multiple databases according to service scenes to add and delete changes, variable assignment and calculation, circulation, branching, external calling, calling other logic arrangement component combinations and arranging the processes according to service sequences;
s4, returning the result and returning the operation result.
In the logic arrangement process, the intermediate form is used as a calculation intermediate, and the SQL formulated by the collection is used for carrying out relational database operation, and the specific steps are as follows:
s11, inputting context form data, and inputting related form data related to the context;
s12, preprocessing the context form data and storing the context form data in one or more intermediate forms, and carrying out necessary processing on the data or selecting proper row or column data to store the data in one or more pre-created intermediate forms;
s13, performing one-step or multi-step relational database operation on the intermediate form and the context form or other forms, writing SQL by using a formulated SQL component, and performing database set operation, relational operation and function operation on the intermediate form and the context form or other service forms, wherein the one-step or multi-step operation is performed; the set operation comprises the operations of a cone, an intersection, a difference and a Cartesian product; the relation operation comprises selection, projection and connection operation; the function operation comprises case, ifnull concrete relation database enriching function library;
s14, temporarily storing the operation result of the relational database in the intermediate form;
s15, deleting the data of the intermediate form, synchronizing the data temporarily stored in the intermediate form into the related form, and performing database adding, deleting and modifying operation;
s16, returning the processing result to the calling party.
Embodiments of the present invention will be described in further detail below with reference to the attached drawings:
referring to fig. 1, the present invention creates a method based on custom SQL statements, formulas and intermediate forms to implement complex logic and control invasiveness of custom SQL in a form type low code system, in which the present invention is based on custom SQL, formulas execute and intermediate forms, and in a form type low code system, events are triggered by manual operations or systems to trigger execution of event driven (logic arrangement), events are triggered by form submission, custom buttons, data selection, process start approval end links, system condition events, etc., as shown in the following table:
Figure BDA0004093539840000051
in the logic arrangement process, because limited components and single functions are adopted, complex operation, particularly set operation and relation operation, cannot be flexibly processed according to a program language, and the block is a strong item of a relation database;
in the form driving type low-code system, an intermediate form can be used as a calculation intermediate, and the formulated SQL (or self-written SQL) is assembled to perform relational database operation, and the specific steps are as follows:
Figure BDA0004093539840000052
Figure BDA0004093539840000061
although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (5)

1. A method for implementing complex logic orchestration in a form-driven low-code system, comprising: the method comprises the following steps:
s1, triggering events, wherein the events are triggered by form submission, custom buttons, links of data selection, process start approval and end and system condition events;
s2, inputting a context, wherein the context comprises a trigger event type, form data corresponding to triggering and current system information;
s3, a logic arrangement process, namely simulating a programming language writing process by a visual component, configuring single or multiple databases according to service scenes to add and delete changes, variable assignment and calculation, circulation, branching, external calling, calling other logic arrangement component combinations and arranging the processes according to service sequences;
s4, returning the result and returning the operation result.
2. The method for implementing complex logic orchestration in a form-driven low-code system according to claim 1, wherein: in the logic arrangement process, the intermediate form is used as a calculation intermediate, and the SQL formulated by the collection is used for carrying out relational database operation, and the specific steps are as follows:
s11, inputting context form data, and inputting related form data related to the context;
s12, preprocessing the context form data and storing the context form data in one or more intermediate forms;
s13, performing one-step or multi-step relational database operation on the intermediate form and the context form or other forms;
s14, temporarily storing the operation result of the relational database in the intermediate form;
s15, deleting the middle form data;
s16, returning the processing result to the calling party.
3. The method for implementing complex logic orchestration in a form-driven low-code system according to claim 2, wherein: in step S12, the data is processed as necessary or the appropriate row or column is selected and stored in one or more intermediate forms created in advance.
4. The method for implementing complex logic orchestration in a form-driven low-code system according to claim 2, wherein: in step S13, writing SQL by using a formulated SQL component, and carrying out database collection operation, relation operation and function operation with a context form or other service forms, wherein the operations are carried out in one step or multiple steps; the set operation comprises the operations of a cone, an intersection, a difference and a Cartesian product; the relation operation comprises selection, projection and connection operation; the function operation comprises case and ifnull concrete relation database enriching function library.
5. The method for implementing complex logic orchestration in a form-driven low-code system according to claim 1, wherein: in step S15, the data temporarily stored in the intermediate form is synchronized to the related form, and the database adding, deleting and modifying operation is performed.
CN202310159198.7A 2023-02-24 2023-02-24 Method for realizing complex logic arrangement of form-driven low-code system Pending CN116166234A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310159198.7A CN116166234A (en) 2023-02-24 2023-02-24 Method for realizing complex logic arrangement of form-driven low-code system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310159198.7A CN116166234A (en) 2023-02-24 2023-02-24 Method for realizing complex logic arrangement of form-driven low-code system

Publications (1)

Publication Number Publication Date
CN116166234A true CN116166234A (en) 2023-05-26

Family

ID=86419667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310159198.7A Pending CN116166234A (en) 2023-02-24 2023-02-24 Method for realizing complex logic arrangement of form-driven low-code system

Country Status (1)

Country Link
CN (1) CN116166234A (en)

Similar Documents

Publication Publication Date Title
CN108021363B (en) Visual game logic editing method and system
US11651149B1 (en) Event selection via graphical user interface control
US10394946B2 (en) Refining extraction rules based on selected text within events
US10783318B2 (en) Facilitating modification of an extracted field
US10692030B2 (en) Process visualization platform
JP3123025B2 (en) Cut and paste filter in data processing system
CN100461158C (en) Method for processing data using application program
US20200320100A1 (en) Sytems and methods for combining data analyses
US7827478B2 (en) Dynamic generation of form pages for accessing a database
US20050256852A1 (en) System for viewing databases
US8881127B2 (en) Systems and methods to automatically generate classes from API source code
CN103440285B (en) Large-scale mobile phone games system and database update method thereof
WO2008091282A2 (en) Apparatuses, systems, and methods to automate procedural tasks
US20060020608A1 (en) Cube update tool
US20200342029A1 (en) Systems and methods for querying databases using interactive search paths
CN112667612A (en) Data quality checking method and device, electronic equipment and storage medium
US11921624B2 (en) Dynamic templated data test generation and execution
US11036478B2 (en) Automated determination of transformation objects
CN116166234A (en) Method for realizing complex logic arrangement of form-driven low-code system
CN112287021B (en) Method and device for generating and synchronizing real-time data synchronization parameters, storage medium and terminal
CN114756224A (en) Activity execution method and device
CN114936152A (en) Application testing method and device
GB2231420A (en) Insurance rating
CN109117124A (en) A kind of function programming method of more return values
CN117850764B (en) Design modeling method and device based on integrated model driving architecture

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