Form generation method, device, medium, and program product

CN123013883APending Publication Date: 2026-10-30BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611248067.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-17
Publication Date
2026-10-30

AI Technical Summary

Benefits of technology

[0009]一种情形下提供的技术方案,通过表单描述信息提供第一模板文本和占位区域描述信息,为生成第一语义表单提供基础。通过表单描述信息生成第一语义表单,在第一语义表单中通过语义提示词和占位区域形成用于描述业务的业务语句,便于配置人员理解整体业务语义,降低对占位区域处表单配置内容的理解难度,减小表单配置过程的理解成本。进一步的,通过对第一语义表单的复用,降低表单配置成本。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123013883A_ABST
    Figure CN123013883A_ABST
Patent Text Reader

Abstract

A form generation method, device, medium and program product are provided. The method includes: obtaining form description information, the form description information including a first template text and placeholder area description information; the first template text is used to describe a business statement; the first template text includes a semantic prompt word and a placeholder identifier; displaying an editable first semantic form, the first semantic form including the semantic prompt word and the placeholder area, the placeholder area corresponding to the placeholder identifier, the placeholder area being constructed based on the placeholder area description information, the placeholder area being an editable area; and the semantic prompt word and the placeholder area being combined in the order of the statements of the first template text. The first semantic form is generated based on the form description information, which facilitates a configuration personnel to understand the overall business semantics, reduces the difficulty of understanding the form configuration content at the placeholder area, and reduces the understanding cost of the form configuration process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This relates to the field of computer processing technology, and in particular to a form generation method, device, medium, and program product. Background Technology

[0002] With the rapid development of electronic devices such as robots, in order to meet the intelligent functions of electronic devices, a form library for electronic devices is pre-configured. The form library includes a large number of pre-configured forms to support the intelligent response of electronic devices. Summary of the Invention

[0003] This document provides a form generation method, device, medium, and program product that reduces the cost of understanding and the difficulty of form configuration by displaying editable semantic forms in the form of business statements.

[0004] In one scenario, this paper provides a form generation method, including: Obtain form description information, which includes a first template text and placeholder area description information; the first template text is used to describe business statements; the first template text includes semantic prompts and placeholder identifiers; Display an editable first semantic form, which includes the semantic prompt words and the placeholder area. The placeholder area corresponds to the placeholder identifier and is constructed based on the placeholder area description information. The placeholder area is an editable area. The semantic prompt words and the placeholder area are combined in the sentence order of the first template text.

[0005] In one instance, this document also provides a form generation apparatus, comprising: The form description information acquisition module is used to acquire form description information, which includes a first template text and placeholder area description information; the first template text is used to describe business statements; the first template text includes semantic prompts and placeholder identifiers; The semantic form display module is used to display an editable first semantic form. The first semantic form includes the semantic prompt words and the placeholder area. The placeholder area corresponds to the placeholder identifier. The placeholder area is constructed based on the placeholder area description information. The placeholder area is an editable area. The semantic prompt words and the placeholder area are combined according to the sentence order of the first template text.

[0006] In one instance, this document also provides an electronic device comprising: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement a form generation method as described herein.

[0007] In one instance, this document also provides a storage medium containing computer-executable instructions that, when executed by a computer processor, are used to perform a form generation method as described herein.

[0008] In another scenario, this document also provides a computer program product, including a computer program that, when executed by a processor, implements a form generation method as described in any of the present documents.

[0009] One proposed technical solution provides a first template text and placeholder area description information through form description information, laying the foundation for generating a first semantic form. The first semantic form is generated from the form description information. Within this first semantic form, semantic prompts and placeholder areas form business statements describing the business logic, facilitating understanding of the overall business semantics by configuration personnel, reducing the difficulty of understanding the form configuration content in the placeholder areas, and lowering the understanding cost of the form configuration process. Furthermore, by reusing the first semantic form, the form configuration cost is further reduced. Attached Figure Description

[0010] The above and other features, advantages, and aspects of the embodiments described herein will become more apparent when taken in conjunction with the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.

[0011] Figure 1 This is a diagram illustrating an application scenario involving form generation using a form generation method. Figure 2 This is a diagram illustrating a tiled form provided in one scenario. Figure 3 This is a flowchart illustrating a form generation method for one scenario. Figure 4 This is a schematic diagram of the first template in one scenario; Figure 5 This is a schematic diagram of the first template in one scenario; Figure 6 This is a schematic diagram of the first template provided in one scenario; Figure 7 This is a schematic diagram illustrating the addition of a second template in one scenario; Figure 8 This is a flowchart illustrating a form generation method for one scenario. Figure 9This is a schematic diagram showing the optional content of the placeholder area in one scenario; Figure 10 This is a schematic diagram showing the first page corresponding to the placeholder area in one scenario; Figure 11 This is a schematic diagram of a form generation device in one scenario. Figure 12 This is a schematic diagram of the structure of an electronic device used in one scenario. Detailed Implementation

[0012] The embodiments will now be described in more detail with reference to the accompanying drawings. While some embodiments are shown in the drawings, it should be understood that the technical solutions can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the technical solutions herein. It should be understood that the illustrated drawings and embodiments are for illustrative purposes only and are not intended to limit the scope of protection of the technical solutions.

[0013] It should be understood that the steps described in the method implementation may be performed in different orders and / or in parallel. Furthermore, the method implementation may include additional steps and / or omit the steps shown. The scope of this document is not limited in this respect.

[0014] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one situation" means "at least one situation"; the term "another situation" means "at least one additional situation"; the term "some situations" means "at least some situations". Definitions of other terms will be given in the following description.

[0015] It should be noted that the concepts of "first" and "second" mentioned are only used to distinguish different devices, modules or units, and are not used to limit the order of the functions performed by these devices, modules or units or their interdependencies.

[0016] It should be noted that the terms "one" and "more" used in this document are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0017] The names of messages or information exchanged between multiple devices in this document are for illustrative purposes only and are not intended to limit the scope of these messages or information.

[0018] It is understood that before using the technical solutions disclosed in the various embodiments of this document, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this document in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0019] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as electronic devices, applications, servers, or storage media, that perform the operations described herein, based on the prompt message.

[0020] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0021] It is understood that the above notification and user authorization process is merely illustrative and does not limit the implementation method described in this article. Other methods that comply with relevant laws and regulations may also be applied to the implementation method described in this article.

[0022] It is understood that the data involved in the technical solutions in this article (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.

[0023] In some cases, Figure 1 This diagram illustrates an application scenario involving form generation via a form generation method. The application scenario may include a client 101 and a server 102. The client 101 may include, but is not limited to, browsers, applications (Apps), HyperText Markup Language (HTML) applications, lightweight applications (also known as mini-programs), or cloud applications. The client 101 may be deployed on an electronic device, relying on the device's operation or certain applications within the device to implement its functions. The electronic device may be, for example, a device with a display screen that supports information browsing, such as a smartphone, tablet, personal computer, or other client terminal. For ease of understanding, Figure 1The client is primarily represented in the form of a device. Other types of applications can also be configured on the electronic device, such as media content publishing applications, session applications, etc. Server 102 can be one or more servers providing various services. That is, it can be implemented as a distributed server cluster composed of multiple servers, or as a single server; furthermore, it can be a server for a distributed system, a server integrating blockchain technology, a cloud server, or an intelligent cloud computing server or intelligent cloud host deployed with machine learning models, etc.

[0024] The form generation method described in this paper allows interaction between client 101 and server 102, such as receiving or sending messages. For example, in this paper, client 101 is used to display the first template and receive editing operations of the configuration personnel on the placeholder area, while server 102 generates a business form based on the first content corresponding to the placeholder area.

[0025] It should be noted that the form generation method can be executed by client 101, or by both client 101 and server 102. Different functional parts of the form generation device are deployed on client 101 and server 102 respectively. Specifically, the semantic form display module is deployed on client 101, and the form description information acquisition module is deployed on server 102. Client 101 and server 102 achieve data interaction and functional collaboration through network communication. It should be understood that... Figure 1 The number of clients and servers shown is for illustrative purposes only. Any number of clients and servers can be configured to meet specific implementation requirements.

[0026] In one scenario, a business form can be understood as a form upon which the first device relies to perform business operations. This business form may include at least some of the following: triggering conditions, status values, execution actions, notification recipients, and notification content. The aforementioned first device may include, but is not limited to, robots and smart home devices. Smart home devices may include, for example, air conditioners, refrigerators, and speakers. There can be multiple business forms. Multiple business forms can be generated using the form generation method provided in this document, and these business forms can be stored in a form library for the first device to access.

[0027] In automated configuration scenarios for business forms, the actual expression of the configuration personnel is represented by a near-complete business statement, such as "When a certain condition occurs, perform a certain action" or "When the task status changes to a certain state, send a certain notification message to a certain object." Currently, this is semantically broken down into multiple independent form items, such as trigger condition, status value, action to be performed, notification object, and notification content, and displayed in a flat list of fields. For example... Figure 2This is a diagram illustrating a tiled form in one scenario. The content displayed on the configuration interface is inconsistent with natural language expression, requiring administrators to establish semantic relationships between multiple form items, making the configuration process unintuitive.

[0028] To address the aforementioned technical issues, this paper provides a form generation method. Figure 3 This is a flowchart illustrating a form generation method for one scenario. This method is suitable for visually displaying the form to be configured through editable business descriptions, facilitating quick understanding of the configuration process by configuration personnel and simplifying the form configuration process. This form generation method can be executed by a form generation device, which can be implemented in software and / or hardware, optionally through an electronic device such as a mobile terminal, personal computer, or server. Mobile terminals may include, but are not limited to, mobile phones and tablets. Figure 3 As shown, the form generation method may specifically include: S210. Obtain form description information, which includes a first template text and placeholder area description information; the first template text is used to describe business statements; the first template text includes semantic prompts and placeholder identifiers.

[0029] S220. Display an editable first semantic form, the first semantic form including the semantic prompt words and the placeholder area, the placeholder area corresponding to the placeholder identifier, the placeholder area being constructed based on the placeholder area description information, and the placeholder area being an editable area; the semantic prompt words and the placeholder area are combined according to the sentence order of the first template text.

[0030] Form description information can be understood as the configuration information for semantic forms. A form description can be used to generate a semantic form. This form description information can be stored in the form of a configuration file or a data set; there is no limitation here. In one scenario, the form description information can be DSL (Domain Specific Language) structure information.

[0031] Multiple form descriptions are pre-set, and different descriptions can be used to generate different semantic forms for configuration personnel to choose from. A semantic form can be understood as a business statement including placeholder areas to be filled, used to convey business semantic information to configuration personnel and guide them in editing the first content of the placeholder areas. The first content of the placeholder areas can then be used to form the business form. Different first contents of the placeholder areas within the same semantic form can create different business forms; conversely, the first contents of the placeholder areas in different semantic forms can be used to generate different business forms.

[0032] In one scenario, in response to a triggering event, form description information is retrieved. This triggering event can be understood as an event used to trigger the display of the semantic form. Optionally, the triggering event includes at least one of the following: a selection event for the form description information; a pre-set gesture operation; a completion event of the previous form, etc.

[0033] The form description information can be configured with a form identifier, which may include a form number or a first template text. The form description information includes the first template text, which describes a business statement; different first template texts describe different business statements. There can be a one-to-one correspondence between the form description information and the first template text.

[0034] In response to a trigger operation of the set control, display the form identifier on the second page, or display the first template text from the form description information on the second page. In response to a selection operation on the form identifier or the first template text, obtain the form description information corresponding to the form identifier, or the form description information including the first template text.

[0035] Optionally, a gesture operation corresponding to each form description can be pre-set. When a gesture operation input by the configuration personnel is detected, the gesture operation input by the configuration personnel is matched. When the gesture operation input by the configuration personnel matches the gesture operation of the form description information, the form description information is obtained.

[0036] Optionally, the gesture operation may include a selection gesture and a toggle gesture for form description information. In response to the toggle gesture, the form description information is switched, and the current form description information is obtained. The current form description information may be displayed on a second page, or the first template text within the current form description information may be displayed for user selection. The current form description information is obtained in response to the selection gesture.

[0037] Optionally, in scenarios where multiple business forms are configured using form description information, the form description information is retrieved again after the previous business form is completed to generate the next business form. It is understandable that for a semantic form constructed using the first form description information, different business forms can be generated depending on the form configuration content.

[0038] The first template text can be in text form, including semantic prompts and placeholders. The placeholders are used to represent a placeholder area. For example, the first template text can be: When [object placeholder 1] satisfies [condition placeholder 2], execute [action placeholder 3], where "when", "satisfies", and "execute" are semantic prompts, and object placeholder 1, condition placeholder 2, and action placeholder 3 are placeholders.

[0039] Semantic prompts can be understood as text fragments that carry fixed business semantics, express business logic and contextual meaning. They belong to the fixed main body of the first template and are used to indicate the business intent, context, and sentence structure of a statement. Each placeholder identifier corresponds to a placeholder area, which is used to hold form configuration content. This placeholder area can be editable and can be used to retrieve form configuration content. In the unedited state, the placeholder area is blank.

[0040] Placeholder area description information can be understood as a set of metadata independent of the first template text within the form description information. It corresponds one-to-one with placeholder identifiers in the first template text and stores all configuration parameters used to generate the placeholder area. Interactive placeholder areas can be constructed based on this description information, transforming placeholder identifiers in the first template text into user-editable interactive units on a semantic form. Each placeholder identifier points to a piece of placeholder area description information, which is used to generate the corresponding placeholder area.

[0041] Optionally, the placeholder area description information includes the control type corresponding to the placeholder area. Different placeholder areas can correspond to different control types, such as, but not limited to, dropdown selection controls, text input controls, date pickers, and formula configuration controls. For a placeholder identifier, the control type corresponding to the placeholder area is obtained through the placeholder area description information pointed to by the placeholder identifier.

[0042] The placeholder area is bound to a renderer, which is associated with the control type corresponding to the placeholder area. The renderer is used to create the placeholder area. Different renderers are used to render placeholder areas of different control types. A renderer is bound to the control type corresponding to the placeholder area, and the placeholder area is rendered by the bound renderer.

[0043] Optionally, the placeholder area description information also includes the first position of the placeholder area in the first template text. This first position indicates the display position of the placeholder area in the first semantic form. For example, the first position can be represented by the positional relationship between the placeholder area and the semantic prompt words. For instance, the first position of the placeholder area corresponding to object placeholder identifier 1 is located between the prompt words "when" and "satisfy," and the placeholder area corresponding to action placeholder identifier 3 is located after the prompt words "at, execute."

[0044] In one scenario, obtaining the first semantic form includes: treating the semantic prompts as natural language fragments; generating a placeholder area corresponding to the placeholder marker based on the description information of the placeholder area pointed to by the placeholder marker; and combining the semantic prompts and the placeholder areas according to the sentence order of the first template text to form the first semantic form. The sentence order of the first template text can be obtained through the order of the natural language fragments and the first position of the placeholder area in the first template text.

[0045] Figure 4 This is a schematic diagram of the first semantic form in one scenario. Figure 4 The first semantic form includes semantic prompts 10, such as "when" or "execute", and the first semantic form also includes two placeholder areas 20. Figure 4 The first semantic form shown, based on the business statement composed of semantic prompts and placeholder areas, namely, when XX, execute XX, it can be seen that the first placeholder area is used to fill in the condition content, and the second placeholder area is used to fill in the action content.

[0046] In one scenario, different placeholder areas can correspond to different display width strategies. The width of the placeholder area can be set through the display width strategy. This strategy can include at least one of a fixed width display strategy, a content width display strategy, and a fill-remaining display strategy. A fixed width display strategy can be understood as a strategy where the placeholder area renders with a pre-configured fixed pixel / relative width, unaffected by the input content or remaining line space. Text exceeding the width is generally truncated or scrolled internally. A fixed width display strategy is suitable for configurations of uniformly formatted fields, such as date, number, and amount fields. A content width display strategy can be understood as a strategy where the placeholder area renders with a dynamic change in width following the internal input content. The control is narrower when the content is short and automatically widens when the content becomes longer; a maximum width limit prevents infinite stretching. A content width display strategy is suitable for configurations of short fields such as short sentences and numbers. A fill-remaining display strategy can be understood as a strategy where the placeholder area automatically occupies all remaining available width within the current text line, suitable for long text input, notes, and descriptive fields.

[0047] Optionally, the width display strategy corresponding to the placeholder area can be obtained based on the placeholder identifier, and the correspondence between the placeholder identifier and the width display strategy can be pre-set. Optionally, the width display strategy can be included in the description information of the placeholder area.

[0048] In one scenario, the placeholder area description information further includes placeholder description information used to guide the input content of the placeholder area. Optionally, the placeholder description information is displayed in the placeholder area.

[0049] Placeholder descriptions differ from semantic cues in their display attributes. For example, display attributes may include font color, font type, and font size. See also Figure 5 , Figure 5 This is a schematic diagram of the first template in one scenario. Figure 5 The first placeholder area 21 displays the placeholder description information "selection conditions", and the second placeholder area 22 displays the placeholder description information "input execution action".

[0050] Based on the editable business description statements formed by semantic prompts and placeholder areas, placeholder description information is displayed in the placeholder areas, and precise prompts are given for the input content of each placeholder area. Combined with semantic prompts, the understanding cost of the first template for configuration personnel is further reduced.

[0051] In one scenario, the placeholder area description information may further include validation rule information, which provides a validation method for the input content in the placeholder area. In response to obtaining the first content of the placeholder area, the first content is validated using the validation rule information. If validation passes, the first content is displayed in the placeholder area; if validation fails, a validation failure message is displayed to guide the updating of the abnormal first content.

[0052] In one scenario, content source information is used to indicate the source of the input content for the placeholder area. Optional content for the placeholder area is obtained through this content source information and selected by the configuration personnel.

[0053] One proposed technical solution provides a first template text and placeholder area description information through form description information, laying the foundation for generating a first semantic form. The first semantic form is generated from the form description information. Within this first semantic form, semantic prompts and placeholder areas form business statements describing the business logic, facilitating understanding of the overall business semantics by configuration personnel, reducing the difficulty of understanding the form configuration content in the placeholder areas, and lowering the understanding cost of the form configuration process. Furthermore, by reusing the first semantic form, the form configuration cost is further reduced.

[0054] In one scenario, the form description information further includes condition description information, which is used to indicate the display conditions of the branch forms in the first semantic form. The display conditions include the condition content of the condition placeholder area.

[0055] It is understood that the first semantic form may include at least one placeholder area, which may include a conditional placeholder area. This conditional placeholder area is used to configure conditional content. In response to an edit operation in the conditional placeholder area, the conditional content of the conditional placeholder area is retrieved and displayed in the conditional placeholder area. There may be multiple optional contents for the conditional placeholder area, and the conditional content is one of the aforementioned optional contents.

[0056] The condition description information includes at least two branch template texts from the first template text, and the display conditions corresponding to the branch template texts. These display conditions can be conditional content. The branch template texts correspond to branch forms in the first semantic form. In other words, the condition description information describes whether a branch form is displayed and the display conditions. For example, the display condition for the first branch template text is condition 1, and the display condition for the second branch template text is condition 2. When the condition content in the condition placeholder area is condition 1, the first branch form corresponding to the first branch template text is displayed; when the condition content in the condition placeholder area is condition 2, the second branch form corresponding to the second branch template text is displayed.

[0057] When displaying a first semantic form, the first semantic form may include a first branch form, which may be a random item among multiple branch forms, or the first branch form may be the default item among multiple branch forms, or the first branch form may be the branch form with the highest usage frequency among multiple branch forms.

[0058] In one scenario, in response to the first condition content of the condition placeholder area, the branch forms of the first semantic form are updated, wherein at least one of the semantic prompts and placeholder areas differs in different branch forms, and the updated branch forms are related to the first condition content.

[0059] It is understandable that if the content of the first condition is related to the first branch template, there is no need to update the branch template. If the content of the first condition is not related to the first branch template, the branch form is updated, and the updated branch template is related to the first content.

[0060] See Figure 6 , Figure 6 This is a schematic diagram of the first template provided in one scenario. Figure 6 The document includes a first semantic form 51 and a second semantic form 52, wherein the first semantic form 51 and the second semantic form 52 include different branch forms and different condition content in the condition placeholder area. Specifically, the content of the condition placeholder area in the first semantic form 51 is "not repeated", corresponding to branch form 55, and the content of the condition placeholder area in the second semantic form 52 is "repeated", corresponding to branch form 56.

[0061] By configuring branch forms corresponding to different conditions in the condition placeholder area of ​​the first semantic form, it is possible to quickly switch between different branch expressions.

[0062] In one scenario, the form description information further includes repeatable description information, which is used to indicate at least a partial form that can be repeatedly displayed; the at least partial form that can be repeatedly displayed can be understood as at least a partial form that can be repeatedly added to the first semantic form, which can be the entire form of the first semantic form, or a partial form of the first semantic form.

[0063] Optionally, in response to a repeated display operation, the first semantic form is updated, and the updated first semantic form includes a newly added second semantic form, which is at least a partial form of the first semantic form.

[0064] The repeat display operation can be understood as an operation used to trigger the repeated display of the second semantic form. Optionally, the first semantic form includes a first control, which is used to copy the second semantic form; the repeat display operation includes a triggering operation on the first control. The updated first semantic form includes the original first semantic form and the newly added second semantic form.

[0065] The first control can be placed at the end of the second semantic form to indicate that the second semantic form can be added repeatedly. Triggering the first control can include clicking it. One triggering operation on the first control can be used to add one second semantic form. The first control can be triggered repeatedly; correspondingly, the number of newly added second semantic forms is the same as the number of times the first control is triggered.

[0066] See Figure 7 . Figure 7 This is a schematic diagram of the first semantic form in one scenario. Figure 7 The first semantic form 60 includes a first control, represented by a "+". This is only one example; in other cases, the first control can be represented in other ways. In response to the first control being triggered, the second semantic form 70 is added. Figure 7 This only indicates that a second semantic form is added by triggering the first control once. In other cases, multiple second semantic forms can be added by triggering the first control multiple times.

[0067] In one scenario, the second semantic form is the entirety of the first semantic form, or the second semantic form is a part of the first semantic form. The second semantic form includes semantic prompts and at least one placeholder area.

[0068] By reusing the second semantic form using the first control, the need for reusing the second semantic form at different times can be met, which can reduce the amount of form description information and reduce the maintenance and development costs of the form description information.

[0069] In one scenario, the language type of the first semantic form is the first language type.

[0070] The method further includes: in response to a language type switch, displaying a second semantic form, wherein the language type of the second semantic form is a second language type. The second language type is different from the first language type. For example, the first language type is Chinese, and the second language type is English.

[0071] Language type switching can be achieved by triggering the language type switching control, or by setting a gesture operation.

[0072] The second semantic form includes semantic prompts and placeholder areas for the second language type; the distribution of semantic prompts and placeholder areas in the second semantic form satisfies the sentence order of the second language type. The distribution of semantic prompts and placeholder areas in the first semantic form may differ from the distribution of semantic prompts and placeholder areas in the second semantic form, and the distribution of semantic prompts and placeholder areas in semantic forms of different language types respectively satisfies the sentence order corresponding to the language type.

[0073] Optionally, the second semantic form can be obtained by translating and converting the first semantic form. The semantic prompts of the first language type are translated into semantic prompts of the second language type. Based on the sentence order corresponding to the second language type, the positions of the semantic prompts and placeholder areas of the second language type are adjusted to obtain the second semantic form.

[0074] Optionally, in the form description information, the first template text and placeholder area description information corresponding to different language types are set, and the language type identifiers of the different first template text and placeholder area description information are set. The first template text and placeholder area description information of different language types can be called through the language type identifiers to generate semantic forms of different language types.

[0075] One technical solution provided in one scenario is to switch the first semantic form to a second semantic form in response to a language type switch. The second semantic form is the semantic form of the language type after the switch, which meets the needs of different languages ​​and can be used by configuration personnel with different language requirements.

[0076] Figure 8 This is a flowchart illustrating a form generation method under one specific scenario. The technical solution in this scenario can be combined with implementation methods in other scenarios. For identical or related parts, descriptions of other scenarios can be used, and will not be repeated here. Figure 8 As shown, the method in this case may specifically include: S310. Obtain form description information, which includes a first template text and placeholder area description information; the first template text is used to describe business statements; the first template text includes semantic prompts and placeholder identifiers.

[0077] S320. Display an editable first semantic form, the first semantic form including the semantic prompt words and the placeholder area, the placeholder area corresponding to the placeholder identifier, the placeholder area being constructed based on the placeholder area description information, the placeholder area being an editable area; the semantic prompt words and the placeholder area being combined according to the sentence order of the first template text.

[0078] S330. In response to the editing operation of the placeholder area, display the first content in the placeholder area and generate a business form based on the first content corresponding to the placeholder area.

[0079] In one scenario, editing the placeholder area can be understood as editing the first content within the placeholder area to obtain that first content. The first content can differ between different placeholder areas; for example, when the placeholder area is a conditional placeholder area, the first content is the first conditional content. This editing operation can include, for example, selecting or inputting the first content. It is understood that the editing operation method is related to the control type of the placeholder area. For example, if the control type of the placeholder area is an input control, the editing operation can be an input operation of the first content; if the control type of the placeholder area is a dropdown selection control, the editing operation can be a selection operation of the first content.

[0080] In one scenario, displaying first content in the placeholder area in response to an editing operation on the placeholder area includes: displaying optional content of the placeholder area in response to a triggering operation on the placeholder area, and displaying the first content in the placeholder area in response to a selection operation on the first content.

[0081] Triggering actions for a placeholder area can include clicking the placeholder to display its selectable content. Triggering actions can also include displaying the cursor within the placeholder area; for example, moving the cursor to the placeholder to display its selectable content. Different placeholder areas can have different selectable content. Here, the control corresponding to the placeholder area is a selection control.

[0082] Optionally, based on the content source information in the placeholder area description information, a content request is made based on the content source information to obtain the optional content of the placeholder area, and the optional content of the placeholder area is displayed.

[0083] See Figure 9 , Figure 9 This is a schematic diagram showing the optional content of the placeholder area in one scenario. Figure 9 The placeholder area that is triggered is a conditional placeholder area, and the optional content displayed is subject to multiple conditions. Figure 9 The menu 30 displays multiple optional items. When condition 1 is selected, condition 1 is displayed as the first item in the placeholder area.

[0084] In one scenario, optional content can be displayed via a menu, which can be shown below or above the placeholder area. Figure 9 The middle menu is displayed below the placeholder area. In one scenario, optional content can be displayed via a floating page, with no limitation on the display position of the floating page. For example, it can be displayed in the center of the electronic device's display interface, or in a location other than the first semantic form, avoiding obscuring the first semantic form.

[0085] Optionally, if the number of optional content exceeds the display limit of the menu / floating page, the menu / floating page includes a slider, and the optional content is displayed by sliding the slider.

[0086] In one scenario, in response to a content input operation in the placeholder area, the first content is displayed in the placeholder area. Here, the control corresponding to the placeholder area is an input control.

[0087] In one scenario, in response to a trigger operation on the placeholder area, a first page is displayed, the first page including at least one form item; the configuration content of the form item is obtained to form the first content of the placeholder area, and the first content is displayed in the placeholder area.

[0088] The triggering operation for the placeholder area includes at least one of a click operation on the placeholder area and a cursor display operation at the placeholder area. The control corresponding to the placeholder area is a page triggering control. The first page is a configuration page for at least one form item, including at least one data collection control corresponding to each form item. This data collection control may include, but is not limited to, input controls and selection controls. Optionally, at least one form item on the first page may be displayed in a tiled manner.

[0089] The first content of the placeholder area can be determined by the first page or multiple configuration contents in the first page. Optionally, the first content can be the name of the first page, or the first content can be the identifier of the first page, which can be represented by the hash value of multiple configuration contents in the first page.

[0090] See Figure 10 , Figure 10This is a schematic diagram showing the first page corresponding to a placeholder area in one scenario. In response to the placeholder area being triggered, the first page 40 is displayed, which includes multiple form items 41. The types of form items on the first page are not limited here; they can differ depending on the business scenario.

[0091] In one scenario, when placeholder descriptions are displayed within a placeholder area, the first content replaces the placeholder descriptions.

[0092] When first content is added to a placeholder area in the first semantic form, the first content in the placeholder area is converted into structured content. The structured content corresponding to multiple placeholder areas forms a structured business form. The structured business form is then stored in the form library of the first device.

[0093] In one scenario, generating a business form based on the first content corresponding to the placeholder area includes: obtaining form item description information corresponding to the placeholder area, wherein the form item description information is used to describe the form item to which the first content belongs; and generating a structured business form based on the description information and the first content.

[0094] The description information corresponding to the placeholder area can be understood as keywords used to describe the form item corresponding to the placeholder area. For example, the form item description information for the amount placeholder area is "amount", and the form item description information for the condition placeholder area is "trigger condition".

[0095] Optionally, the form item description information corresponding to the placeholder area is obtained based on the placeholder area identifier, and the mapping relationship between the placeholder area identifier and the form item description information is pre-set. Optionally, the form item description information corresponding to the placeholder area is obtained based on the renderer bound to the placeholder area, and the mapping relationship between the renderer and the form item description information is pre-set. Optionally, the placeholder area description information includes the form item description information corresponding to the placeholder area.

[0096] The form field description information corresponding to the placeholder area and the first content of the placeholder area are combined to form a structured content, and multiple structured content items form a structured business form.

[0097] One proposed technical solution involves displaying a first semantic form. This first semantic form displays editable business statements composed of semantic prompts and placeholder areas. In response to editing operations on the placeholder areas, the system retrieves and displays the first content within those placeholder areas. The first content of the placeholder areas in the first template forms a structured business form. This first semantic form facilitates understanding of the overall business semantics by configuration personnel, reducing the difficulty of understanding the form configuration content in the placeholder areas and lowering the understanding cost of the form configuration process. By converting the semantic form with configured content into a structured business form, it facilitates the reading and understanding of the business form by the first device.

[0098] Figure 11 This is a schematic diagram of the structure of a form generation device in one scenario, such as... Figure 11 As shown, the device includes: a form description information acquisition module 410 and a semantic form display module 420.

[0099] The form description information acquisition module 410 is used to acquire form description information, which includes a first template text and placeholder area description information; the first template text is used to describe business statements; the first template text includes semantic prompts and placeholder identifiers. The semantic form display module 420 is used to display an editable first semantic form. The first semantic form includes the semantic prompt words and the placeholder area. The placeholder area corresponds to the placeholder identifier. The placeholder area is constructed based on the placeholder area description information. The placeholder area is an editable area. The semantic prompt words and the placeholder area are combined according to the sentence order of the first template text.

[0100] The aforementioned device provides a first template text and placeholder area description information through form description information, laying the foundation for generating a first semantic form. The first semantic form is generated using the form description information. Within the first semantic form, semantic prompts and placeholder areas form business statements describing the business logic, facilitating understanding of the overall business semantics by configuration personnel, reducing the difficulty of understanding the form configuration content in the placeholder areas, and lowering the understanding cost of the form configuration process. Furthermore, by reusing the first semantic form, the form configuration cost is reduced.

[0101] In one scenario, the placeholder area description information includes the first position of the placeholder area in the first template text and the control type corresponding to the placeholder area, wherein the first position is used to indicate the display position of the placeholder area in the first semantic form; The placeholder area is bound to a renderer, which is related to the control type corresponding to the placeholder area. The renderer is used to create the placeholder area.

[0102] In one case, the occupancy area description information further includes at least one of the following: Placeholder description information, which is used to guide the input content of the placeholder area; Verification rule information, which is used to provide a verification method for the input content of the placeholder area; Content source information, which is used to indicate the source of the input content in the placeholder area.

[0103] In one scenario, the form description information further includes condition description information, which is used to indicate the display conditions of the branch forms in the first semantic form. The display conditions include the condition content of the condition placeholder area.

[0104] The semantic form display module 420 is further configured to: update the branch forms of the first semantic form in response to the first condition content of the condition placeholder area, wherein at least one of the semantic prompt words and the placeholder area is different in different branch forms, and the updated branch forms are related to the first condition content.

[0105] In one scenario, the form description information may also include repeating description information, which is used to indicate at least a portion of the form that can be displayed repeatedly. The semantic form display module 420 is further configured to: update the first semantic form in response to a repeated display operation, wherein the updated first semantic form includes a newly added second semantic form, and the second semantic form is at least a partial form of the first semantic form.

[0106] In one scenario, the first semantic form includes a first control for copying the second semantic form; the repeated display operation includes a triggering operation on the first control.

[0107] In one scenario, the language type of the first semantic form is the first language type; The semantic form display module 420 is also used to: display a second semantic form in response to language type switching, wherein the language type of the second semantic form is the second language type.

[0108] The second semantic form includes semantic prompts and placeholder areas for the second language type; the distribution of semantic prompts and placeholder areas in the second semantic form satisfies the statement order of the second language type.

[0109] In one scenario, the device further includes: a business form generation module, configured to display first content in the placeholder area in response to an editing operation on the placeholder area; and generate a structured business form based on the first content; In one scenario, the business form generation module is also used to perform at least one of the following: In response to a trigger operation on the placeholder area, optional content of the placeholder area is displayed; in response to a selection operation on the first content, the first content is displayed in the placeholder area. In response to a content input operation in the placeholder area, the first content is displayed in the placeholder area; In response to a trigger operation on the placeholder area, a first page is displayed, the first page including at least one form item; the configuration content of the form item is obtained to form the first content of the placeholder area, and the first content is displayed in the placeholder area.

[0110] In one scenario, the business form generation module is further configured to obtain form item description information corresponding to the placeholder area, wherein the form item description information describes the form item to which the first content belongs; and generate a structured business form based on the form item description information and the first content.

[0111] The above-described form generation device can execute the form generation method provided in any of the embodiments described herein, and has the corresponding functional modules and beneficial effects for executing the form generation method.

[0112] It is worth noting that the various units and modules included in the above form generation device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments described herein.

[0113] The following is for reference. Figure 12 This document illustrates a schematic diagram of an electronic device (e.g., a terminal device or server) 700 suitable for implementing the above-described methods. The terminal device described herein may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, personal digital assistants (PDAs), tablet computers (PADs), portable multimedia players (PMPs), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital televisions and desktop computers. Figure 12 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments described herein.

[0114] like Figure 12As shown, the electronic device 700 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. The RAM 703 also stores various programs and data required for the operation of the electronic device 700. The processing unit 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0115] Typically, the following devices can be connected to I / O interface 705: input devices 706 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 707 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 708 including, for example, magnetic tapes, hard disks, etc.; and communication devices 709. Communication device 709 allows electronic device 700 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 12 An electronic device 700 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0116] In particular, according to embodiments of this document, the processes described in the above-referenced flowcharts can be implemented as computer software programs. For example, the technical solutions of this document include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 709, or installed from storage device 708, or installed from ROM 702. When the computer program is executed by processing device 701, it performs the functions defined in the methods of the embodiments of this document.

[0117] The names of messages or information exchanged between multiple devices in this document are for illustrative purposes only and are not intended to limit the scope of these messages or information.

[0118] The electronic device provided in this embodiment and the form generation method provided in the above technical solutions belong to the same inventive concept. Technical details not described in detail in this document can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.

[0119] This article provides a computer storage medium on which a computer program is stored, which, when executed by a processor, implements the form generation method provided in the above embodiments.

[0120] It should be noted that the computer-readable medium mentioned above can be a computer-readable signal medium, a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory (EPROM, also known as flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this document, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such transmitted data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, radio frequency, etc., or any suitable combination thereof.

[0121] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol, such as HTTP (Hypertext Transfer Protocol), and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include Local Area Networks (LANs), Wide Area Networks (WANs), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.

[0122] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0123] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: acquire form description information, the form description information including first template text and placeholder area description information; the first template text is used to describe business statements; the first template text includes semantic prompts and placeholder identifiers; display an editable first semantic form, the first semantic form including the semantic prompts and the placeholder areas, the placeholder areas corresponding to the placeholder identifiers, the placeholder areas being constructed based on the placeholder area description information, and the placeholder areas being editable areas; the semantic prompts and the placeholder areas being combined according to the statement order of the first template text.

[0124] Computer program code for performing the operations described herein can be written in one or more programming languages ​​or a combination thereof, including but not limited to object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" programming language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including local area networks (LANs) or wide area networks (WANs), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0125] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this document. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0126] The modules or units described herein can be implemented in software or hardware. The names of modules or units do not necessarily constitute a limitation on the module or unit itself.

[0127] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that can be used include at least one of the following: Field-Programmable Gate Array (FPGA), Application-Specific Integrated Circuit (ASIC), Application-Specific Standard Product (ASSP), System on Chip (SOC), Complex Programmable Logic Device (CPLD), etc.

[0128] In the context of this document, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory, read-only memory, erasable programmable read-only memory (flash memory), optical fibers, portable compact disk read-only memory, optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0129] The above description is merely a preferred embodiment and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure herein is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed herein that have similar functions.

[0130] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of this document. Certain features described in the context of individual implementations may also be implemented in combination in a single implementation. Conversely, various features described in the context of a single implementation may also be implemented individually or in any suitable sub-combination in multiple implementations.

[0131] Although the subject matter has been described using a programming language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative forms of implementing the claims.

Claims

1. A form generation method, comprising: Obtain form description information, which includes first template text and placeholder area description information; The first template text is used to describe business statements; the first template text includes semantic prompts and placeholders. Display an editable first semantic form, which includes the semantic prompt words and the placeholder area. The placeholder area corresponds to the placeholder identifier and is constructed based on the placeholder area description information. The placeholder area is an editable area. The semantic prompt words and the placeholder area are combined in the sentence order of the first template text.

2. The method according to claim 1, wherein the placeholder area description information includes a first position of the placeholder area in the first template text and the control type corresponding to the placeholder area, and the first position is used to indicate the display position of the placeholder area in the first semantic form; The placeholder area is bound to a renderer, which is related to the control type corresponding to the placeholder area. The renderer is used to create the placeholder area.

3. The method according to claim 2, wherein the occupancy area description information further includes at least one of the following: Placeholder description information, which is used to guide the input content of the placeholder area; Verification rule information, which is used to provide a verification method for the input content of the placeholder area; Content source information, which is used to indicate the source of the input content in the placeholder area.

4. The method according to claim 1, wherein the form description information further includes condition description information, the condition description information being used to indicate the display conditions of the branch forms in the first semantic form, the display conditions including the condition content of the condition placeholder area.

5. The method according to claim 4, further comprising: In response to the first condition content of the condition placeholder area, the branch forms of the first semantic form are updated. At least one of the semantic prompt words and the placeholder area is different in different branch forms, and the updated branch forms are related to the first condition content.

6. The method according to claim 1, wherein the form description information further includes repeating description information, the repeating description information being used to indicate at least a portion of the form that can be repeatedly displayed; The method further includes: In response to a repeated display operation, the first semantic form is updated. The updated first semantic form includes a newly added second semantic form, which is at least a partial form of the first semantic form.

7. The method according to claim 6, wherein the first semantic form includes a first control, the first control being used to copy the second semantic form; The repeated display operation includes triggering the first control.

8. The method according to claim 1, wherein the language type of the first semantic form is a first language type; The method further includes: In response to the language type switch, a second semantic form is displayed, and the language type of the second semantic form is the second language type.

9. The method according to claim 8, wherein the second semantic form includes semantic prompts and placeholder areas of the second language type; the distribution of semantic prompts and placeholder areas in the second semantic form satisfies the statement order of the second language type.

10. The method according to claim 1, further comprising: In response to an editing operation on the placeholder area, first content is displayed in the placeholder area; Generate a structured business form based on the first content; Wherein, in response to an editing operation on the placeholder area, displaying first content in the placeholder area includes at least one of the following: In response to a trigger operation on the placeholder area, optional content of the placeholder area is displayed; in response to a selection operation on the first content, the first content is displayed in the placeholder area. In response to a content input operation in the placeholder area, the first content is displayed in the placeholder area; In response to a trigger operation on the placeholder area, a first page is displayed, the first page including at least one form item; the configuration content of the form item is obtained to form the first content of the placeholder area, and the first content is displayed in the placeholder area.

11. The method according to claim 10, wherein generating a structured business form based on the first content includes: Obtain the form item description information corresponding to the placeholder area, wherein the form item description information is used to describe the form item to which the first content belongs; A structured business form is generated based on the form item description information and the first content.

12. An electronic device, the electronic device comprising: One or more processors; Storage device, used to store program instructions When the processor reads and executes the program instructions, it implements the form generation method as described in any one of claims 1-11.

13. A non-transitory computer-readable storage medium, wherein computer program instructions are stored internally in the storage medium; When the processor executes the computer program instructions, it performs the form generation method as described in any one of claims 1-11.

14. A computer program product comprising a computer program that, when loaded and run by a processor of an electronic device, controls the processor to implement the form generation method as described in any one of claims 1-11.