CN117591092A - Application configuration method, processing method and related equipment of low-code platform - Google Patents

Application configuration method, processing method and related equipment of low-code platform Download PDF

Info

Publication number
CN117591092A
CN117591092A CN202311297002.7A CN202311297002A CN117591092A CN 117591092 A CN117591092 A CN 117591092A CN 202311297002 A CN202311297002 A CN 202311297002A CN 117591092 A CN117591092 A CN 117591092A
Authority
CN
China
Prior art keywords
scene
configuration
event
interaction
application
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
CN202311297002.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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202311297002.7A priority Critical patent/CN117591092A/en
Publication of CN117591092A publication Critical patent/CN117591092A/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/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented
    • 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/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

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

Abstract

The application discloses an application configuration method, a processing method and related equipment of a low-code platform. The method comprises the following steps: the method comprises the steps that a low-code platform obtains at least one target event of an interaction object, wherein the interaction object is at least one of a component and a non-component; configuring corresponding scenes for the target events respectively, and configuring corresponding actions for each scene respectively; and generating application program codes based on the configuration information of the configured interaction object, namely the target event, scene and action, wherein the application program codes are used for realizing the target business application. By the scheme, the configuration efficiency of application configuration can be improved.

Description

Application configuration method, processing method and related equipment of low-code platform
Technical Field
The present invention relates to the field of low-code technology, and in particular, to an application configuration method of a low-code platform, an application configuration processing method, a computer device, and a computer readable storage medium.
Background
The low-code platform is used as a visual application program development platform, and can quickly generate the application without coding or with a small amount of coding, so that the application development mode is simplified, the labor input cost is reduced, and the development efficiency of application software is greatly improved.
At present, a low-code platform can only select built-in partial actions to execute, the complex interaction configuration requirement cannot be met due to single form, complex application scenes are difficult to realize, and when relatively complex application scenes are realized, large manpower and time cost are generally required to be consumed, and the efficiency is low.
Disclosure of Invention
The application configuration method, the application configuration processing method and the related equipment for the low-code platform are mainly used for solving the technical problem of improving the configuration efficiency of application configuration.
In order to solve the above problem, a first aspect of the present application provides an application configuration method of a low code platform, where the method includes: the method comprises the steps that a low-code platform obtains at least one target event of an interaction object, wherein the interaction object is at least one of a component and a non-component; configuring corresponding scenes for the target events respectively, and configuring corresponding actions for each scene respectively; and generating application program codes based on the configuration information of the configured interaction object, namely the target event, scene and action, wherein the application program codes are used for realizing the target business application.
In order to solve the above problem, a second aspect of the present application provides a method for processing application configuration, where the method includes: responding to an operation instruction of a user; and processing the operation instruction by using the application program code obtained by the application configuration method of the low-code platform so as to realize the target business application of the operation instruction.
In order to solve the above-mentioned problem, a third aspect of the present application provides a computer device, where the computer device includes a memory and a processor, where the memory stores program data, and the processor is configured to execute the program data to implement any step of any one of an application configuration method and an application configuration processing method of the low-code platform.
In order to solve the above-described problems, a fourth aspect of the present application provides a computer-readable storage medium storing program data executable by a processor for implementing any one of the above-described application configuration method of the low-code platform and the processing method of the application configuration.
The scheme is different from the prior art, the low-code platform acquires at least one target event of the interaction object, configures corresponding scenes for the target event respectively, and configures corresponding actions for each scene respectively; generating application program codes based on configuration information of target events, scenes and actions of the configured interaction objects, wherein the application program codes are used for realizing target business applications; because the interactive object is at least one of a component and a non-component, the method expands the richness of interactive configuration through the visual low-code interactive application configuration mode of the non-component object, ensures that events and actions are not bound with the component, can better support the interactive configuration requirement, can configure the business requirement of complex interaction, and can improve the configuration efficiency of application configuration.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
For a clearer description of the technical solutions in the present application, the drawings required in the description of the embodiments will be briefly described below, it being obvious that the drawings described below are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. Wherein:
FIG. 1 is a flow chart of one embodiment of an application configuration method for a low code platform of the present application;
FIG. 2 is a flowchart illustrating an embodiment of step S11 in FIG. 1 of the present application;
FIG. 3 is an example schematic diagram of an embodiment of several candidate events of the button assembly of the present application;
FIG. 4 is a flowchart illustrating an embodiment of step S12 in FIG. 1 of the present application;
FIG. 5 is an example schematic diagram of an embodiment of a scenario configuration of the present application;
FIG. 6 is an example schematic diagram of one embodiment of the present application scenario and action configuration;
FIG. 7 is a flowchart illustrating an embodiment of step S13 in FIG. 1 of the present application;
FIG. 8 is an example schematic diagram of an embodiment of a configuration interaction tree of the present application;
FIG. 9 is a flow chart of an embodiment of a processing method of the application configuration of the present application;
FIG. 10 is a flow chart illustrating another embodiment of a processing method for application configuration of the present application
FIG. 11 is a schematic diagram illustrating the architecture of one embodiment of a low code platform of the present application;
FIG. 12 is a schematic diagram of an embodiment of a processing device configured for use in the present application;
FIG. 13 is a schematic diagram of an embodiment of a computer device of the present application;
fig. 14 is a schematic structural view of an embodiment of a computer-readable storage medium of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The terms "first," "second," and the like in this application are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship. Further, "a plurality" herein means two or more than two. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
The present application provides the following examples, each of which is specifically described below.
The Low code platform (LCDP, low-Code Development Platform) may also be referred to as a Low code development platform, which is a development platform that can quickly generate an application program without encoding (0 code) or with a small amount of code.
The low code platform enables developers with different experience levels to create web pages and mobile applications through a graphical user interface using drag components and model driven logic by means of visualization (see visual programming language). The method has the advantages that the method allows the end user to develop own application programs by using easily understood visualization tools instead of the traditional code writing mode, so that the development cost can be reduced, and the development efficiency of the application program development can be improved.
Through long-term researches of the inventor of the application, the inventor discovers that most of low-code platforms at present can only carry out simple logic function configuration on each component on an application page under a specific scene, and cannot flexibly configure complex functions of multiple logic actions on the components on the page according to the application scene and realize interaction configuration among multiple components. Meanwhile, a developer on the low-code platform can only develop on the components provided by the platform, and cannot modify the existing components or add the components by himself.
In view of the above, the following application configuration method for a low-code platform is provided, which can solve the technical problems in the prior art.
Referring to fig. 1, fig. 1 is a flowchart illustrating an embodiment of an application configuration method of a low code platform of the present application. The method may comprise the steps of:
s11: the low code platform obtains at least one target event of an interactive object, wherein the interactive object is at least one of a component and a non-component.
In some embodiments, the application configuration method of the low-code platform of the present application may be applied to a low-code platform, a computer device, and the like, and the present embodiment is described by taking the application to the low-code platform as an example, which is not limited to this application.
The low code platform can interact with a user, and the user can configure an application to be developed on the low code platform to obtain corresponding application program codes. The interaction definition and the behavior mode of designing the artificial system mainly refer to page interaction in the application, such as the behavior that a user clicks a button to jump to another page, namely, interaction.
In some implementations, the user may operate the low-code platform or input at the low-code platform at least one target event of the interactive object such that the low-code platform obtains the at least one target event of the interactive object.
In some embodiments, a user may operate the low code platform to configure the interactive object and the plurality of events of the interactive object, thereby obtaining at least one target event of the interactive object from the plurality of configured events of the interactive object.
The event in the application refers to a JavaScript event, which is essentially understood to be a communication mode, is a message, and is communicated when multiple objects and multiple modules are present. Triggered by some action by the user or browser, such as a mouse click, a keyboard press, etc., and requires binding a function to execute the event triggered subsequent business logic.
Wherein the interactive object is at least one of a component and a non-component. The component may be a component provided for a visualization interface of the low code platform, e.g., the component is a front end low code framework (Amis) component. Such as a button component, a dialog component, a form component, an icon component, a form component, etc. Non-components are components other than those provided by the low code platform, such as connector methods, timers, variables, etc.
In some embodiments, referring to fig. 2, step S11 of the above embodiments may be further extended. The low code platform obtains at least one target event of the interactive object, and the embodiment can comprise the following steps:
S111: the low code platform obtains a number of candidate events for the interactive object.
In some embodiments, a user may configure an interactive object at a low code platform, and at least one interactive object may be acquired in response to a user operation.
In the case where the interactive object contains a component, the application editor of the low code platform provides an interactive mode for the user to select the corresponding interactive object. The object editing interface of the low code platform is provided with a plurality of components, and a user can select the components and drag the components into the canvas for editing. The low-code platform can respond to a selection instruction of the component provided by a user on an object editing interface of the low-code platform, drag the component into a canvas to be edited, and obtain an interactive object.
In the case that the interactive object contains a non-component, related information of the non-component can be obtained to obtain the interactive object, wherein the related information of the non-component element contains at least one of a method interface, a registration plug-in, a preset code package and the like. The interactive objects, such as interfaces of connector methods, timers, variables, etc., are acquired by the method interfaces. The connector method, i.e. API (Application Programming Interface ), is provided in the form of HTTP protocol, defining services for the input and output function description. Alternatively, a plug-in may be registered with the low code platform, and the interactive object may be obtained in the form of a registered plug-in. Alternatively, the preset code package of the component may be uploaded to obtain the interactive object. The present application is not limited in this regard. The method supports the interactive configuration of non-components such as a connector method, a timer, a variable and the like, expands the richness of the interactive configuration, and can better support the business requirement of complex interaction.
In some embodiments, for each interactive object, at least one candidate event corresponding to each interactive object may be configured separately, so as to obtain a plurality of candidate events of each interactive object. Wherein configuring the corresponding at least one candidate event includes at least one of: at least one candidate event is determined in response to a selection instruction of the user on the event selection item in the event editing interface, and at least one candidate event is determined in response to event customization information input by the user on the event editing interface.
The selectable event list of the event selection items is different in different interaction objects in the event editing interface, and corresponding candidate events can be selected for each interaction object. For example: mouse events (single click, double click, right click, etc.), keyboard events (press, release, etc.), status events (display, hide, enable, disable, etc.), lifecycle events (load, destroy, etc.), unique events (connector method success, failure, timer execution, pager page changes, etc.), custom events (user custom events), etc. The non-customized candidate event can be built in a low-code platform and registered to different interaction objects in a plug-in mode.
The user can customize the candidate event of each interactive object, input event customization information (such as related parameters of the event, a method for inputting code to define the event, and the like) in the event editing interface, and determine at least one candidate event by receiving the event customization information. The custom event can be defined by a user according to candidate event expansion specifications provided by the low-code platform and is obtained by integrating in the form of configuration information.
As an example, referring to fig. 3, an interactive object is exemplified by a button component, where the button component may correspondingly include a plurality of candidate events, such as a single click, a double click, a right click, a loading, a displaying, a hiding, a selecting, a canceling, and a changing waiting for a selection event.
When the interactive object is a non-component, the interactive object is used as a connector method, and the name, the parameter entering name, the data type, the parameter entering value and the like of the connector method can be configured or selected to obtain the configured connector method.
S112: and responding to a selection instruction of a user on the candidate event in an event editing interface of the low-code platform, and obtaining at least one target event of the interaction object.
After generating the candidate events of the selected interactive object, the user can select the candidate event required for interaction from the candidate events of the interactive object as a target event, and the user can select one or more candidate events and can not repeatedly select the same candidate event. Thus, at least one target event of the interaction object is obtained in response to a selection instruction of the user on the candidate event, i.e. the selected target event, at the event editing interface of the low code platform.
The event information of the selected target event is recorded in the configuration information of the interaction object, is used for displaying when editing is applied again later, and can be effective in a mode of monitoring (Add Event Listener) the event newly added in JavaScript when the page is generated.
S12: and configuring corresponding scenes for the target events respectively, and configuring corresponding actions for each scene respectively.
For each selected target event, a corresponding scene may be configured, each target event may be configured with one or more scenes, and in the case of multiple scenes, the multiple scenes may be represented by a total logic expression, and the scenes may represent application scenes included in the target event.
Thereafter, at least one corresponding action may be configured for each scene, which may represent an action performed under the scene. Thus, one interactive object may configure multiple target events, one target event may configure multiple scenes, and one scene may configure multiple actions. The actions of this embodiment may refer to that the page interaction completes dynamic effects through actions, such as popup information, coming links, and so on, typically a piece of JavaScript code.
In some embodiments, referring to fig. 4, step S12 of the above embodiments may be further extended. Configuring corresponding scenes for the target event respectively, and configuring corresponding actions for each scene respectively, the embodiment may include the following steps:
S121: for each target event, at least one context rule for the target event is obtained.
When configuring a scene for each target event, the scenes can be expressed as logical expressions of scene rules, and the rules are connected through logical operators to form a scene.
The scene rules can be zero (corresponding to true) or more, each scene rule is a relational expression, the condition judgment can be carried out on the variable, constant, attribute of a component (such as interactive object and attribute exposed to the outside of the target event) and the like of the target event through a low-code platform, and under some application scenes, complex conditions or non-native attribute can be realized through the form of code segments input by a receiving user.
In some embodiments, the user may input the attribute of the scene rule in the scene editing interface, and edit the logical expression of the attribute, such as the expression of the condition judgment, to combine to obtain a scene rule. The attribute of the input scene rule may be an attribute selected from selectable items, or may be implemented in the form of a code segment in which the attribute is input in a custom manner. The manner in which the context rules are obtained is not limited.
Referring to fig. 5, a user may configure the scene of a target event in a scene editing interface. For the "editing scene when the target event of the interactive object" button "is clicked", for example, when the scene of the "form check pass" is configured, for example, the scene rule of the "name input box" may be included, the scene rule of the "age input box", the scene rule of the "gender drop-down selection" and the scene rule of the "identification card number input box" may be obtained. And each scene rule is used for carrying out condition judgment on the attributes such as the variable, the component attribute, the constant value and the like, and combining to obtain one scene rule.
Alternatively, the scene rule may be added to the scene in response to an operation instruction of the user's "add" click on the scene rule in the scene editing interface.
Optionally, for the scene rule configured with the custom attribute, attribute information input by the user in the scene rule area of the scene rule editing interface or an operation instruction of clicking by the user in the "FX" of the scene rule area may be responded, and the attribute is implemented by inputting the code segment of the attribute in a custom manner, so as to obtain a condition judgment relationship between the attributes, and obtain a scene rule.
S122: connecting at least one scene rule through a logic relationship to obtain a scene configured by the target event; under the condition that a plurality of scenes are configured for the target event, the scenes corresponding to the target event are connected through a logic relationship, so that the scenes configured for the target event are obtained.
In some embodiments, where multiple context rules are included, at least one context rule may be connected by a logical relationship (e.g., and, no, or, etc.), and a context of the target event configuration may be obtained. The concept of a scene can be understood as that for a logical expression of a scene rule, a logical operator is used to connect the relational expression or logical quantity of the scene rule, and finally a logical value, namely "true" or "false" is returned. The scene rules are connected through logic operators to finally form a complete scene, and the complete scene can be used for defining service logic to be executed in a specific scene.
In some embodiments, when multiple scenes are configured for the target event, the multiple scenes corresponding to the target event may be connected through a logical relationship (such as a conditional statement), so as to obtain multiple scenes configured for the target event, and may also be used as a total scene of the target event.
When a plurality of scenes are set, the relation between the scenes is as the connection of conditional sentences in the encoding. For example if (scenario 1) { } else if (scenario 2) { }. For example, scenario 1 is a form check pass, scenario 2 is a form check fail. Scene 1 and scene 2 may be connected by a conditional statement.
In some embodiments, the configuration information of the scene stores the co-events together in the configuration information of the interaction Object, where the configuration information is script language Object profile (JSON, javaScript Object notification) configuration information, and may be converted into a conditional statement of JavaScript and validated when the page is generated. Wherein the object profile is a lightweight data exchange format that can store and represent data in a text format that is completely independent of the programming language.
By the method, the configuration of the event scene can be realized in a visual (i.e. graphical) mode, so that complex interaction of pages and the like are realized, the realization mode is simple, the processing efficiency is improved, and the labor and time cost and the like are saved.
In some embodiments, after configuring the corresponding scenes for the target events, corresponding actions may also be configured for each scene.
S123: for each scene, at least one action corresponding to the scene is obtained in response to at least one of a selection instruction of a user on an action selection item, input action registration information and input action custom information in an action editing interface.
Actions required for interaction under each scene can be set, and the actions can be understood as a method for exposing the interaction object to the outside, namely, actions executed by interaction under the scene.
For each scene, the low-code platform can respond to at least one of a selection instruction of a user on the action selection item, input action registration information and input action custom information in the action editing interface to obtain at least one action corresponding to the scene.
The configuration of the actions can obtain the actions by selecting the action selection items provided by the action editing interface, namely, at least one action corresponding to the scene can be obtained in response to a selection instruction of the user on the action selection items by the action editing interface.
The action can be obtained through a plug-in registration form in response to the action registration information input by the user on the action editing interface, and the action is registered to different interaction objects or scenes. The method can obtain at least one action corresponding to the scene through a plug-in registration form.
At least one action corresponding to the scene can be obtained in response to action custom information input by a user on an action editing interface, such as information of types, methods, parameters and the like of the actions, or custom code fragments of the actions or relevant information of the uploaded actions and the like. The method can input action custom information by a user, and obtain actions in a custom mode.
In some embodiments, for the configuration of multiple actions in a scene, the generation of the actions is similar to the generation of several candidate events, and the configuration of the actions may refer to the above process of generating the candidate events, which is not described herein.
In some embodiments, unlike target events that are limited to a different type of selected interactive object, but where the selection item to which the action corresponds is not affected by the currently selected interactive object, any event may select the full action list of the current application editor as the action configured in the scene. The configuration items of each type of action are different and can be controlled by JSON Schema when the action is defined, and the JSON configuration information is initialized after the user selects the action. Among them, JSON Schema is a tool for describing and validating JSON data formats.
In some implementations, the action configuration item for a scene can include: at least one of a target interaction object and an action input. And configuring target interaction objects, action entries and the like in the scene to obtain at least one action corresponding to the scene. In some application scenarios, configured actions may enable interactions with other interaction objects or events, etc.
Wherein the target interaction object may comprise at least one of: low code platform components, connector methods (backend interfaces), timers, variables, etc. In some application scenarios, selection of a target interaction object for an action configuration may be limited by the action type, and the target interaction object may only select the interaction object registered with the current action.
Wherein the type of action entry may include at least one of: the interface of calling the connector method action is entered, the prompt information and type of opening the prompt box action, the link of opening the link action and the like, and can be determined according to the configuration items (JSON Schema) required by each type of action execution.
Referring to FIG. 6, as an example, for a target event "on click" configuration, for example, scenario 1 is "form check pass" and scenario 2 is form check fail. Scene 1 and scene 2 may be connected by a conditional statement if (scene 1) { } else if (scene 2) { }. Wherein, scenario 1 is to execute the action "call connector method" to submit form contents when none of the form entries is empty. In the act configuration, the name, entry name, data type, entry value, etc. of the act "call connector method" may be configured or selected to obtain the configured connector method act. Scene 2 is to perform an action "open a prompt box" when there is a null value for a form entry.
In some implementations, the configuration of actions may continue. Actions such as when the connector method is successful, when it fails, etc. may also be configured after the action "invoke the connector method". If the action of opening the prompt box, the actions of opening the correct prompt box, opening the error prompt box and the like can be configured. The configuration of actions under a scene is not limited thereto.
In some embodiments, when at least one of the interactive object, the target event, the scene, the action is configured in the above process, when the specific parameters and the like are not configured on the interactive object, the target event, the scene, the action, etc., the low-code platform may trigger corresponding default configuration information according to conventional interaction logic, such as event triggering when the button component includes a single click or event triggering when the button component includes a double click, etc., in response to at least one of the interactive object, the target event, the scene, the action, etc.
S13: and generating application program codes based on the configuration information of the configured interaction object, namely the target event, scene and action, wherein the application program codes are used for realizing the target business application.
Based on the configuration information of the target Event, scene and action of the configured interactive Object, the configuration information can be script language Object numbered Notation (JSON, javaScript Object notification) configuration information, and the configuration information is stored in an Event Options attribute item of the interactive Object in a JSON form and can be converted into JavaScript code when a page is generated, namely, an application program code is generated, and the application program code can be used for realizing the configured target business application when being executed, namely, realizing the target business application of the configured target Event, scene and action of the interactive Object.
In this embodiment, the low-code platform acquires at least one target event of the interaction object, configures corresponding scenes for the target event, and configures corresponding actions for each scene respectively; generating application program codes based on configuration information of target events, scenes and actions of the configured interaction objects, wherein the application program codes are used for realizing target business applications; because the interactive object is at least one of a component and a non-component, the method expands the richness of interactive configuration through the visual low-code interactive application configuration mode of the non-component object, ensures that events and actions are not bound with the component, can better support the interactive configuration requirement, can configure the business requirement of complex interaction, and can improve the configuration efficiency of application configuration.
In some embodiments, referring to fig. 7, step S13 of the above embodiments may be further extended. Based on the configuration information of the target event, scene and action of the configured interaction object, generating application program codes, the embodiment can comprise the following steps:
s131: and constructing a configuration interaction tree based on the configuration information of the target event, the scene and the action of the configured interaction object.
In some implementations, one interactive object can configure multiple events, one event can configure multiple scenes, and one scene can configure multiple actions. An interactive object can be organized into an interactive tree consisting of three elements of target event, scene and action through visual configuration. That is, the configuration interaction tree can be organized through the configuration information of the target events, scenes and actions of the configured interaction objects, and the configuration interaction tree can perform logical structure expression on the configured target events, scenes, actions and the like, such as hierarchical relations, association relations and the like among the target events, scenes and actions.
S132: converting the configuration interaction tree into application program codes; or, adjusting the configuration interaction tree to obtain a modified configuration interaction tree, and converting the modified configuration interaction tree into application program codes.
In some embodiments, the configuration interaction tree may be rendered to generate a corresponding page, and the configuration information may be stored in JSON form in Event Options attribute items of the interaction object, and may be converted into JavaScript code when the page is generated, that is, an application code is generated.
In some embodiments, modification, adjustment, etc. may also be performed on the configuration interaction tree. For example, the position sequence of each node of the interaction tree can be adjusted, the nodes can be deleted, and the nodes can be added. If complex interaction logic needs to be organized, interaction trees of a plurality of interaction objects can be set, and linkage relations among the interaction trees can be set so as to link actions and events among different interaction objects. The modified configuration interaction tree comprises at least one of a target event, a scene, an association relation between actions of the interaction object and a linkage relation with other interaction objects.
In some embodiments, preset adjustment can be performed on nodes configuring an interaction tree, where each node of the interaction tree is composed of an interaction object, a target event, a scene, and an action. The node is at least one of a target event, a scene and an action, and the preset adjustment is at least one of adding the node, deleting the node, modifying the position of the node and modifying the configuration information of the node.
Adding nodes: the nodes may be added in response to a user adding instruction corresponding to adding at least one of an interactive object, a target event, a scene, an action at a specified node location. Specific embodiments of adding interactive objects, target events, scenes and actions can refer to the corresponding configuration modes, and are not repeated here.
Deleting the node: the node may be deleted in response to a deletion instruction by a user of at least one of an interactive object, a target event, a scene, an action corresponding to the specified node location.
Modifying the node position: such as modifying hierarchical relationships between nodes, sequential locations, etc., the modification of node locations may be accomplished in a form responsive to a user dragging the nodes to a specified location.
Modifying configuration information of the node: configuration information of the node may be correspondingly modified in response to a configuration modification instruction of a user clicking on at least one of the corresponding interactive object, the target event, the scene, the action. Specific embodiments for modifying the configuration corresponding to the node may refer to the above corresponding configuration modes, which are not described herein.
It will be appreciated that the user may also make other modifications and adjustments to the interaction tree according to the specific application configuration requirements, which is not limited in this application.
In some embodiments, in the case of including a plurality of interactive objects, a linkage relationship between actions of the interactive objects and events of other interactive objects may be acquired, and the configuration interactive tree is adjusted based on the linkage relationship. After the interaction tree of each interaction object is displayed, the user can configure the linkage relation between the action of the interaction object and the events, actions and the like of other interaction objects, for example, after the interaction object A corresponds to the action A under the scene A of the event A, the action B under the scene B of the event B under the hierarchy of the interaction object B can be executed, so that a new configuration interaction tree is generated according to the modified configuration information. The mode can realize linkage of actions, events and the like among different interaction objects.
Referring to fig. 8, as an example, a trigger event when a button component is clicked is added in the interaction tree 1, an action of calling a connector method is executed in a form verification success scene, and a target interaction object associated with the action is a connector method a. Invoking the connector method triggers a success/failure event for connector method a and executes subsequent configuration logic. In some application scenarios, whether an action triggers an event may not require manual configuration by a user who builds the application. The built-in action of the low code platform triggers corresponding default events according to the conventional interaction logic, such as events when the connector method A is invoked and the connector method in the configuration interaction tree 2 is successful/failed, events when the setting component selects the action and triggers the component to select, and the like.
In some embodiments, after the application program code of the application configuration is obtained, the application program code may be run to preview, or in response to modification, writing, and other adjustment of the application program code by a user, a new application program code is generated and is already used as the application program code corresponding to the application configuration. Alternatively, the application code may be sent to another platform to enable the user to re-edit, modify, run, etc. the application code, which is not limited thereto.
In this embodiment, through visual scene configuration, and the visual configuration interaction tree formed by the scene, event and action of the interaction object, condition judgment in the interaction logic can be more perfected, subsequent modification and adjustment can be performed, the requirement of interaction configuration is further met, and interaction configuration of different actions of the same event according to different scenes is supported. And the consistency of user operation can be maintained, a complex interaction page can be built, and the usability of the low-code platform can be improved.
In addition, complex interaction functions can be organized on a low-code platform rapidly and efficiently, the use threshold is reduced, and the efficiency is improved.
Referring to fig. 9, fig. 9 is a flowchart illustrating an embodiment of a processing method of the application configuration of the present application. The method may comprise the steps of:
S21: and responding to the operation instruction of the user.
In some embodiments, the processing method of the application configuration of the present application may be applied to a low-code platform, a computer device, and the like, and the present embodiment is described by taking application to the computer device as an example, which is not limited to this application.
The user may perform an operation on the computer device, such as a mouse click, a keyboard enter, etc., such that the computer device triggers the running of the application code in response to the user's operating instructions.
S22: and processing the operation instruction by using the application program code obtained by the application configuration method of the low-code platform so as to realize the target business application of the operation instruction.
And responding to the operation instruction of the user, and processing the operation instruction by using the application program code obtained by the application configuration method of the low-code platform. For example, in the process of running the application program code, corresponding events of triggering DOM (Document Object Model ) element binding by user operation can be utilized, and corresponding actions are executed by the events according to different scenes, so as to realize target business application of operation instructions. Where DOM is an API used to render and interact with any HTML or XML document. The DOM is a document model loaded into the browser, representing the document in the form of a tree of nodes, each node representing a constituent part of the document (e.g., a page element, a string or annotation, etc.).
Referring to fig. 10, after a user operation, a corresponding event may be acquired in response to the user operation, so as to traverse a scene under the configured event, and then traverse and execute an action under the scene. If it is determined that the operation belongs to the scene, if it is scene 1, then the corresponding at least one action (e.g. action 1, action 2, …) is continuously executed. If not, go on traversing to determine whether to belong to scene 2 (including action 3, actions 4, …) or scene … (including action 5, actions 6, …) to correspondingly execute corresponding actions under each scene until the end.
For the implementation of this embodiment, reference may be made to the implementation process of the foregoing embodiment, which is not described herein.
For the above embodiments, the present application provides a low code platform for implementing the application configuration method of the low code platform.
Referring to fig. 11, fig. 11 is a schematic structural diagram of an embodiment of a low code platform of the present application. The low code platform 30 includes an event acquisition module 31, a scene action module 32, and a code generation module 33. Wherein the event acquisition module 31, the scene action module 32 and the code generation module 33 are connected to each other.
The event acquisition module 31 is configured to acquire at least one target event of an interaction object, where the interaction object is at least one of a component and a non-component.
The scene action module 32 is configured to configure corresponding scenes for the target events respectively, and configure corresponding actions for each scene respectively.
The code generating module 33 is configured to generate application program code based on configuration information of a target event, a scene and an action of the configured interaction object, where the application program code is used to implement a target service application.
For the implementation of this embodiment, reference may be made to the implementation process of the foregoing embodiment, which is not described herein.
For the above embodiments, the present application provides an application configuration processing apparatus, configured to implement the above application configuration processing method.
Referring to fig. 12, fig. 12 is a schematic structural diagram of an embodiment of a processing device configured in accordance with the application of the present invention. The processing device 40 of the application configuration comprises a response module 41 and an execution module 42, wherein the response module 41 and the execution module 42 are connected.
The response module 41 is configured to respond to an operation instruction of a user.
The execution module 42 is configured to process the operation instruction by using the application program code obtained by the application configuration method of the low-code platform, so as to implement the target service application of the operation instruction.
For the implementation of this embodiment, reference may be made to the implementation process of the foregoing embodiment, which is not described herein.
For the foregoing embodiments, the present application provides a computer device, please refer to fig. 13, fig. 13 is a schematic structural diagram of an embodiment of the computer device of the present application. The computer device 50 comprises a memory 51 and a processor 52, wherein the memory 51 and the processor 52 are coupled to each other, and the memory 51 stores program data, and the processor 52 is configured to execute the program data to implement the steps in any embodiment of any one of the application configuration method and the application configuration processing method of the low-code platform.
In the present embodiment, the processor 52 may also be referred to as a CPU (Central Processing Unit ). The processor 52 may be an integrated circuit chip having signal processing capabilities. Processor 52 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The general purpose processor may be a microprocessor or the processor 52 may be any conventional processor or the like.
For the method of the above embodiment, which may be implemented in the form of a computer program, the present application proposes a computer readable storage medium, please refer to fig. 14, fig. 14 is a schematic structural diagram of an embodiment of the computer readable storage medium of the present application. The computer-readable storage medium 60 stores therein program data 61 that can be executed by a processor, and the program data 61 can be executed by the processor to implement the steps of any embodiment of any one of the application configuration method and the application configuration processing method of the low-code platform.
The computer readable storage medium 60 of the present embodiment may be a medium such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, which may store the program data 61, or may be a server storing the program data 61, which may send the stored program data 61 to another device for operation, or may also run the stored program data 61 by itself.
In the several embodiments provided in the present application, it should be understood that the disclosed methods and apparatus may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical, or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer-readable storage medium, which is a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all or part of the technical solution contributing to the prior art or in the form of a software product stored in a storage medium, including several instructions to cause an electronic device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application.
It will be apparent to those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be centralized on a single computing device, or distributed over a network of computing devices, or they may alternatively be implemented in program code executable by computing devices, such that they may be stored in a computer readable storage medium for execution by computing devices, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing description is only exemplary embodiments of the present application and is not intended to limit the scope of the present application, and all equivalent structures or equivalent processes using the descriptions and the drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the present application.

Claims (10)

1. An application configuration method of a low-code platform, comprising:
the method comprises the steps that a low-code platform obtains at least one target event of an interaction object, wherein the interaction object is at least one of a component and a non-component;
Configuring corresponding scenes for the target events respectively, and configuring corresponding actions for each scene respectively;
and generating application program codes based on the configured configuration information of the target event, scene and action of the interaction object, wherein the application program codes are used for realizing target business application.
2. The method of claim 1, wherein the low code platform obtaining at least one target event of an interactive object comprises:
the low-code platform acquires a plurality of candidate events of the interactive object;
and responding to a selection instruction of a user on the candidate event in an event editing interface of the low-code platform, and obtaining at least one target event of the interaction object.
3. The method of claim 2, wherein the low code platform obtaining a number of candidate events for the interactive object comprises:
responding to a selection instruction of a component provided by a user on an object editing interface of the low-code platform, and obtaining an interactive object; or acquiring related information of a non-component to obtain an interactive object, wherein the related information of the non-component element comprises at least one of a method interface, a registration plug-in and a preset code package;
Configuring at least one corresponding candidate event for each interactive object respectively to obtain a plurality of candidate events of each interactive object; wherein the at least one candidate event corresponding to the configuration comprises at least one of: at least one candidate event is determined in response to a selection instruction of the user on the event selection item in the event editing interface, and at least one candidate event is determined in response to event customization information input by the user on the event editing interface.
4. The method according to claim 1, wherein configuring the corresponding scenes for the target events, respectively, includes:
for each target event, acquiring at least one scene rule of the target event;
connecting the at least one scene rule through a logical relation to obtain a scene of the target event configuration;
and when the target event is configured with a plurality of scenes, connecting the scenes corresponding to the target event through a logic relationship to obtain the scenes configured for the target event.
5. The method according to claim 1, wherein configuring the corresponding actions for each scene respectively includes:
for each scene, at least one action corresponding to the scene is obtained in response to at least one of a selection instruction of a user on an action selection item at an action editing interface, input action registration information and input action custom information.
6. The method of claim 1, wherein the generating application code based on the configured configuration information of the target event, scene, action of the interactive object comprises:
constructing a configuration interaction tree based on the configured configuration information of the target event, scene and action of the interaction object;
converting the configuration interaction tree into application program codes; or, the configuration interaction tree is adjusted to obtain a modified configuration interaction tree, and the modified configuration interaction tree is converted into application program codes; the modified configuration interaction tree comprises at least one of a target event, a scene, an association relation between actions of the interaction object and a linkage relation with other interaction objects.
7. The method of claim 6, wherein said adjusting the configuration interaction tree in the case of containing a plurality of interaction objects comprises:
acquiring linkage relations between actions of the interaction objects and events of other interaction objects, and adjusting the configuration interaction tree based on the linkage relations; or,
and carrying out preset adjustment on the nodes of the configuration interaction tree, wherein the nodes are at least one of target events, scenes and actions, and the preset adjustment is at least one of adding nodes, deleting nodes, modifying node positions and modifying configuration information of the nodes.
8. A method for processing application configuration, comprising:
responding to an operation instruction of a user;
application program code obtained by the method according to any one of claims 1 to 7, for processing said operation instructions to achieve a targeted business application of said operation instructions.
9. A computer device comprising a memory and a processor coupled to each other, the memory having stored therein program data, the processor for executing the program data to implement the method of any of claims 1 to 8.
10. A computer readable storage medium, characterized in that program data executable by a processor are stored, said program data being for implementing the method of any one of claims 1 to 8.
CN202311297002.7A 2023-10-08 2023-10-08 Application configuration method, processing method and related equipment of low-code platform Pending CN117591092A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311297002.7A CN117591092A (en) 2023-10-08 2023-10-08 Application configuration method, processing method and related equipment of low-code platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311297002.7A CN117591092A (en) 2023-10-08 2023-10-08 Application configuration method, processing method and related equipment of low-code platform

Publications (1)

Publication Number Publication Date
CN117591092A true CN117591092A (en) 2024-02-23

Family

ID=89915588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311297002.7A Pending CN117591092A (en) 2023-10-08 2023-10-08 Application configuration method, processing method and related equipment of low-code platform

Country Status (1)

Country Link
CN (1) CN117591092A (en)

Similar Documents

Publication Publication Date Title
CN109324791B (en) Financial self-service terminal business process development method and device and terminal equipment
US8924845B2 (en) Web application code decoupling and user interaction performance
CN110806863A (en) Interface document generation method and device, electronic equipment and storage medium
US8930824B2 (en) Facilitating propagation of user interface patterns or themes
CN111104635B (en) Method and device for generating form webpage
US8839192B2 (en) System and method for presentation of cross organizational applications
JP2016026348A (en) Widget framework, real time service integration and real time resource compaction
US11582170B2 (en) Conversation-enabled document system and method
US10572278B2 (en) Smart controls for user interface design and implementation
CN112860260B (en) Web-based cross-platform application construction tool and method in college scene
CN110944048A (en) Service logic configuration method and device
CN112214210A (en) Logistics business rule engine and configuration method, device, equipment and storage medium thereof
US7168062B1 (en) Object-oriented software system allowing live modification of an application
CN112559222A (en) Message display method and device, computer equipment and storage medium
CN114816375A (en) Service arranging method, device, equipment and storage medium
CN114564199A (en) Method, device and equipment for generating use page and readable storage medium
US9529573B2 (en) Graphical user interface generation through use of a binary file
CN112861059A (en) Visual component generation method and device, computer equipment and readable storage medium
JP7011752B2 (en) Navigation schema analysis and generation system and method
CN101303663A (en) Simulation test method for digital set-top box software development
US20190250896A1 (en) System and method for developing software applications of wearable devices
CN117591092A (en) Application configuration method, processing method and related equipment of low-code platform
CN111124386B (en) Animation event processing method, device, equipment and storage medium based on Unity
CN114281335A (en) View generation method and related equipment
CN112988136B (en) User interface editing method and device

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