CN107451103B - Template display and modification method and device - Google Patents

Template display and modification method and device Download PDF

Info

Publication number
CN107451103B
CN107451103B CN201710198878.4A CN201710198878A CN107451103B CN 107451103 B CN107451103 B CN 107451103B CN 201710198878 A CN201710198878 A CN 201710198878A CN 107451103 B CN107451103 B CN 107451103B
Authority
CN
China
Prior art keywords
template
value
attribute value
form item
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710198878.4A
Other languages
Chinese (zh)
Other versions
CN107451103A (en
Inventor
王悦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Publication of CN107451103A publication Critical patent/CN107451103A/en
Application granted granted Critical
Publication of CN107451103B publication Critical patent/CN107451103B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/84Mapping; Conversion
    • G06F16/88Mark-up to mark-up conversion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0843Configuration by using pre-existing information, e.g. using templates or copying from other elements based on generic templates

Abstract

The invention aims to provide a template display and modification method and equipment, the template is analyzed into a form, the form is displayed, the modification of the displayed form is obtained, the modified form is converted into the template, a layer of analysis layer is added between a user and the template of a resource arrangement service, the template grammar is analyzed into the form, the form is visually displayed, the user only needs to modify the form to complete the template editing, the modified form is converted into the form template after the user modifies the visually displayed form, the user does not need to learn the template grammar and edit a lengthy text file, only needs to simply fill in the form, and finally automatically generates the template file, thereby reducing the learning cost of writing the template by the user, reducing the template writing cost, simplifying the flow of editing the template, and improving the speed of generating and modifying the template, the error rate of the template can also be reduced.

Description

Template display and modification method and device
Technical Field
The application relates to the field of computers, in particular to a template display and modification method and device.
Background
The existing cloud resource arranging service helps a user to model and configure cloud resources. The user needs to create a template that describes the cloud resources, and then the resource orchestration will create and configure these resources according to this template. A template is a set of sentences written according to a set of grammars and constraints, i.e., a text file conforming to certain grammatical rules and formats is the template. When the constraints of the template are too complex, the cost of writing the template by the user is very high. And because the template file is often a simple text file, a stroke error or an error is difficult to avoid in the editing process, which increases the cost of the validity check and verification of the template. In addition, when the contents of the template file are too lengthy, it is difficult to locate a certain node and modify the node, so that the template is difficult to maintain. If the nodes in the template are nested structures and also contain a complex set of grammatical constraints. At this time, the learning cost of the user is exponentially increased.
Writing a template presents two obstacles to the user. First, the user needs to learn the grammar of the resource orchestration template itself, which requires some knowledge reserve. Secondly, the user needs to master the open API (public interface) of the required resource to know the attribute of the cloud resource, so that the user can describe the condition of the required resource. The two points greatly improve the threshold of the user for using the resource arrangement service. Therefore, a solution is needed to address the pain points of the user writing the template.
For example, in an existing service product, a user needs to learn a template grammar before using its service, and then can create a template. The template grammar of the existing service product is more complex, and the user is blocked outdoors by the template tool without really using the service.
Initially, the way a user creates a cloud resource is dotted. That is, what type of resource the user needs, then looks at the API (interface) of the resource and then calls the API while passing values to the corresponding property. In general, if a user wants to create a cluster including tens of instances, as shown in fig. 1, cloud resources such as cloud servers (ECS), RDS (cloud database), LSB (proprietary network), VPC (load balancing service), ESS (flexible computing service), etc. are used, and the dependency and configuration relationship between these resources are well known, which increases the complexity and time cost of using the cloud resources. Thus, resource orchestration services have emerged.
By using the resource arrangement service, a user can easily create and manage cloud resources by creating or modifying an existing resource arrangement template. In operation, as shown in fig. 2, the resource orchestration service manages cloud resources through a resource orchestration TEMPLATE (ROS TEMPLATE), and manages scattered resources in a centralized manner, which undoubtedly saves a great amount of cost for users. A text fragment of a resource orchestration template is shown in fig. 3. However, the template itself also contains constraints and syntax, and writing the template undoubtedly adds a barrier to the user, and the specific problems are as follows:
1. the grammar of the template needs a certain learning cost;
2. template resource (Resources) nodes depend on the grammar of the cloud resource API, and a double learning cost is increased;
3. the template content is long and complex, the structure nesting and the dependency relationship are complicated, and the writing and maintenance cost is extremely high.
Disclosure of Invention
An object of the present application is to provide a template display and modification method and apparatus, which can solve the problems of more complicated template grammar learning and extremely high writing and maintenance costs.
According to an aspect of the present application, there is provided a template display and modification method, the method including:
analyzing the template into a form, and displaying the form;
and acquiring modification of the displayed form, and converting the modified form into a template.
Further, in the above method, parsing the template into a form, and displaying the form includes:
generating a corresponding form item value according to the attribute value of the template;
and generating and displaying a form according to the form item value.
Further, in the above method, acquiring a modification to the displayed form, and converting the modified form into a template includes:
and acquiring the modified form item value, and modifying the corresponding attribute value in the template according to the modified form item value.
Further, in the above method, generating a corresponding form item value according to the attribute value of the template includes:
monitoring the attribute value of the template, and sending out a notification of the change of the attribute value when the change of the attribute value is monitored;
and generating a corresponding form item value according to the notification.
Further, in the above method, the notification is a notification of an assignment manner.
Further, in the above method, modifying the corresponding attribute value in the template according to the modified form entry value includes:
generating a page structure file corresponding to the form item according to the modified form item value;
and modifying the corresponding attribute value in the template according to the page structure file of the form item.
According to another aspect of the present application, there is also provided a template display and modification apparatus including:
the analysis device is used for analyzing the template into a form and displaying the form;
and the conversion device is used for acquiring the modification of the displayed form and converting the modified form into the template.
Further, in the above device, the parsing apparatus is configured to generate a corresponding form item value according to the attribute value of the template, and generate and display a form according to the form item value.
Further, in the above device, the conversion device is configured to obtain the modified form item value, and modify the corresponding attribute value in the template according to the modified form item value.
Further, in the above apparatus, the parsing device includes:
the monitoring module is used for monitoring the attribute value of the template and sending out a notification of the change of the attribute value when the change of the attribute value is monitored;
and the analysis module is used for generating a corresponding form item value according to the notification, and generating and displaying a form according to the form item value.
Further, in the above device, the notification is a notification of an assignment manner.
Further, in the above device, the conversion device is configured to generate a page structure file corresponding to the form item according to the modified form item value, and modify the corresponding attribute value in the template according to the page structure file of the form item.
According to another aspect of the present application, there is also provided a template display and modification apparatus, wherein the apparatus includes:
a processor;
and a memory arranged to store computer executable instructions that, when executed, cause the processor to:
the analysis device is used for analyzing the template into a form and displaying the form;
and the conversion device is used for acquiring the modification of the displayed form and converting the modified form into the template.
Compared with the prior art, the method and the device have the advantages that the template is analyzed into the form, the form is displayed, the modification of the displayed form is obtained, the modified form is converted into the template, a layer of analysis layer is added between the user and the template of the resource arrangement service, the template grammar is analyzed into a form, the form is visually displayed, the user only needs to modify the form, the template editing is finished, after the user modifies the intuitively displayed form, the modified form is converted into the form template, the user does not need to learn the grammar of the template and edit a lengthy text file, only needs to simply fill the form, and finally automatically generates the template file, so that the learning cost of writing the template by the user can be reduced, the template writing cost is reduced, the template editing process is simplified, the template generating and modifying speed is increased, and the error rate of the template can be reduced.
Further, generating a corresponding form item value according to the attribute value of the template, generating and displaying a form according to the form item value, and modifying the template node along with the form item value by adopting a data bidirectional binding mode, namely data linkage and form item data modification; similarly, if the template node is modified subsequently, the display interface of the form item is modified, so that the bidirectional binding of the form item and the template file can be realized, and the mutual conversion is realized quickly.
Further, by obtaining the modified form item value, modifying the corresponding attribute value in the template according to the modified form item value, and adopting a data bidirectional binding mode, namely data linkage, form item data modification and template node modification; similarly, if the template node is modified subsequently, the display interface of the form item is modified, so that the bidirectional binding of the form item and the template file can be realized, and the mutual conversion is realized quickly.
Further, by monitoring the attribute value of the template, when the change of the attribute value is monitored, a notification of the change of the attribute value is sent out, a corresponding form item value is generated according to the notification, when the attribute value of the template is modified, the attribute value of the template can be obtained in real time, the form item corresponding to the attribute value can be modified in time, and the data synchronization of the attribute value and the form item value is ensured at any time.
Further, the notification is a notification of an assignment mode, and the assignment mode can facilitate the resolver to receive the notification timely and quickly.
Furthermore, a page structure file corresponding to the form item is generated according to the modified form item value, and the corresponding attribute value in the template is modified according to the page structure file of the form item, so that the accurate data synchronization of the form interface and the template can be ensured at any time through the page structure file.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 illustrates a schematic diagram of a prior art point-like cloud resource creation;
FIG. 2 illustrates a schematic diagram of an existing resource orchestration service;
FIG. 3 illustrates a text segment diagram of an existing resource orchestration template;
FIG. 4 illustrates a flow diagram of a template display and modification method in accordance with an aspect of the subject application;
FIG. 5 illustrates a schematic diagram of an embodiment of the present application;
FIG. 6 is a flow chart of a preferred embodiment of the present template display and modification method;
FIG. 7 illustrates an interface diagram of a template parsing into forms according to an embodiment of the present application;
FIG. 8 is a flow chart of another preferred embodiment of the present template display and modification method;
FIG. 9 is a flow chart of yet another preferred embodiment of the present application template display and modification method;
FIG. 10 is a flow chart of yet another preferred embodiment of the present application template display and modification method;
FIG. 11 is a schematic diagram of a page structure file according to an embodiment of the present application;
FIG. 12 is a JSON format template diagram according to an embodiment of the present application;
FIG. 13 illustrates a block diagram of a template display and modification apparatus, in accordance with another aspect of the subject application;
FIG. 14 is a block diagram of a preferred embodiment of the template display and modification apparatus of the present application.
The same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present application is described in further detail below with reference to the attached figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
As shown in fig. 4, the present application provides a template display and modification method, wherein the method includes:
step S1, analyzing the template into a form, and displaying the form;
step S2, acquiring the modification to the displayed form, and converting the modified form into a template. As shown in fig. 5, in this embodiment, a layer of analysis layer (Translator UI) is added between a user and a TEMPLATE (ROS TEMPLATE) of a resource orchestration service, the TEMPLATE grammar is analyzed into a Form (Form), the Form is visually displayed, the user only needs to modify the Form, the TEMPLATE is edited, after the user modifies the visually displayed Form, the modified Form is converted into a Form TEMPLATE, the user does not need to learn the TEMPLATE grammar and edit a lengthy text file, only needs to simply fill the Form, and finally automatically generates the TEMPLATE file.
As shown in fig. 6, in a preferred embodiment of the template display and modification method of the present application, in step S1, parsing the template into a form, and displaying the form includes:
step S11, generating corresponding form item value according to the attribute value of the template;
and step S12, generating and displaying a form according to the form item value. Specifically, a Form is generated according to the template. Inquiring a public interface (open API) of a resource, and analyzing attributes (properties) of the template into Form items (Form Filed) one by one, wherein the corresponding relation is as follows:
PropertyType String Number List Boolean
FieldType Text NumberSpinner Select RadioBox
in the above table, Property Type represents a template node definition, i.e., a template attribute definition, String represents a String Type, Number represents a Number Type, List represents an array Type, and Boolean represents a Boolean Type; field Type represents the form definition, Text represents the input box, NumberSpinner represents the numeric input box, Select represents the selection box, and RadioBox represents the radio button set. The interface for parsing the template into the form is shown in fig. 7, where 4 form items, namely ImageId, InstanceType, securitygroupid, instancename, respectively correspond to attribute configurations of the ECS instance, and the types of the form items are string, list, number, and string, respectively, and the interface displays the content of the template for the user more intuitively, so that the user can modify the template conveniently. The method adopts a data bidirectional binding mode, namely data linkage, form data modification and template node modification; similarly, if the template node is modified subsequently, the display interface of the form item is modified, so that the bidirectional binding of the form item and the template file can be realized, and the mutual conversion is realized quickly.
In a preferred embodiment of the template display and modification method of the present application as shown in fig. 8, step S2, acquiring modifications to the displayed form, and converting the modified form into a template includes:
step S21, acquiring the modified form item value;
and step S22, modifying the corresponding attribute value in the template according to the modified form item value. In the method, a data bidirectional binding mode is adopted, namely data linkage, form data modification and template node modification are carried out; similarly, if the template node is modified subsequently, the display interface of the form item is modified, so that the bidirectional binding of the form item and the template file can be realized, and the mutual conversion is realized quickly.
As shown in fig. 9, in a preferred embodiment of the template displaying and modifying method of the present application, step S11, generating a corresponding form item value according to an attribute value of a template includes:
step S111, monitoring the attribute value of the template, and sending out a notification of the change of the attribute value when the change of the attribute value is monitored;
and step S112, generating a corresponding form item value according to the notification. The attribute values of the memory objects (template nodes) can be monitored through a listener, once the change occurs, the listener sends a notification to the listener, and at this time, the parser can re-render the page, and a corresponding form item value is generated according to the notification. In this embodiment, when the attribute value of the template is modified, the attribute value of the template can be obtained in real time, the form item corresponding to the attribute value is modified in time, and data synchronization between the attribute value and the form item value is ensured at any time.
In a preferred embodiment of the template display and modification method of the present application, the notification is a notification of an assignment manner. Specifically, the attribute value of the stored object (template node) is implemented by a set (propertylamme) method, for example, where the set method is required to be used whenever the attribute is assigned, a notification is sent, and the parser processes the attribute value after receiving the message. The assignment (injection) mode can facilitate the resolver to receive the notification timely and quickly.
As shown in fig. 10, in a preferred embodiment of the template displaying and modifying method of the present application, step S22, modifying the corresponding attribute value in the template according to the modified form entry value includes:
step S221, generating a page structure file corresponding to the form item according to the modified form item value;
step S222, modifying the corresponding attribute value in the template according to the page structure file of the form item. Specifically, the user fills in the form item value to generate a page structure file corresponding to the form item, the page structure file corresponding to the form item is generated as shown in fig. 11, resources, parameters, outputs and mapping in fig. 11 respectively represent one form item, when the user edits the form, the page structure file of the form item is automatically converted into a JSON format Template, and the format of the Template (ROS Template) can be shown in fig. 12. As can be seen from fig. 11 and 12, the Form (Form) file in the XML format and the template file in the JSON format are in a one-to-one correspondence relationship. The form single group (FieldGroup) corresponds to a node (e.g., Parameters) of the template, and the form item (Field) corresponds to a template child node. In the method, a data bidirectional binding mode is adopted, namely data linkage, form data modification and template node modification are carried out; similarly, the template node is modified, and the form item is modified accordingly, so that the bidirectional binding of the form item and the template file can be realized. In this case, the accurate data synchronization between the form interface and the template can be ensured at any time through the page structure file.
As shown in fig. 13, there is also provided a template display and modification apparatus according to another aspect of the present application, the apparatus 100 including:
the analysis device 1 is used for analyzing the template into a form and displaying the form;
and the conversion device 2 is used for acquiring the modification of the displayed form and converting the modified form into the template. As shown in fig. 5, in this embodiment, a layer of analysis layer (Translator UI) is added between a user and a TEMPLATE (ROS TEMPLATE) of a resource orchestration service, the TEMPLATE grammar is analyzed into a Form (Form), the Form is visually displayed, the user only needs to modify the Form, the TEMPLATE is edited, after the user modifies the visually displayed Form, the modified Form is converted into a Form TEMPLATE, the user does not need to learn the TEMPLATE grammar and edit a lengthy text file, only needs to simply fill the Form, and finally automatically generates the TEMPLATE file.
In a preferred embodiment of the template display and modification device of the present application, the parsing apparatus 1 is configured to generate a corresponding form item value according to an attribute value of a template, and generate and display a form according to the form item value. Specifically, a Form is generated according to the template. Inquiring a public interface (open API) of a resource, and analyzing attributes (properties) of the template into form items (FormFiled) one by one, wherein the corresponding relation is as follows:
PropertyType String Number List Boolean
FieldType Text NumberSpinner Select RadioBox
in the above table, Property Type represents a template node definition, i.e., a template attribute definition, String represents a String Type, Number represents a Number Type, List represents an array Type, and Boolean represents a Boolean Type; field Type represents the form definition, Text represents the input box, NumberSpinner represents the numeric input box, Select represents the selection box, and RadioBox represents the radio button set. The interface for parsing the template into the form is shown in fig. 7, where 4 form items, namely ImageId, InstanceType, securitygroupid, instancename, respectively correspond to attribute configurations of the ECS instance, and the types of the form items are string, list, number, and string, respectively, and the interface displays the content of the template for the user more intuitively, so that the user can modify the template conveniently. The method adopts a data bidirectional binding mode, namely data linkage, form data modification and template node modification; similarly, if the template node is modified subsequently, the display interface of the form item is modified, so that the bidirectional binding of the form item and the template file can be realized, and the mutual conversion is realized quickly.
In a preferred embodiment of the template display and modification device of the present application, the conversion apparatus 2 is configured to obtain a modified form entry value, and modify a corresponding attribute value in the template according to the modified form entry value. In the method, a data bidirectional binding mode is adopted, namely data linkage, form data modification and template node modification are carried out; similarly, if the template node is modified subsequently, the display interface of the form item is modified, so that the bidirectional binding of the form item and the template file can be realized, and the mutual conversion is realized quickly.
As shown in fig. 14, in a preferred embodiment of the template display and modification apparatus of the present application, the parsing device 1 includes:
the monitoring module 11 is configured to monitor an attribute value of the template, and send a notification of a change in the attribute value when the change in the attribute value is monitored;
and the analysis module 12 is configured to generate a corresponding form item value according to the notification, and generate and display a form according to the form item value. The attribute values of the memory objects (template nodes) can be monitored through a listener, once the change occurs, the listener sends a notification to the listener, and at this time, the parser can re-render the page, and a corresponding form item value is generated according to the notification. In this embodiment, when the attribute value of the template is modified, the attribute value of the template can be obtained in real time, the form item corresponding to the attribute value is modified in time, and data synchronization between the attribute value and the form item value is ensured at any time.
In a preferred embodiment of the template display and modification device of the present application, the notification is a notification of an assignment manner. Specifically, the attribute value of the stored object (template node) is implemented by a set (propertylamme) method, for example, where the set method is required to be used whenever the attribute is assigned, a notification is sent, and the parser processes the attribute value after receiving the message.
In a preferred embodiment of the template display and modification device of the present application, the conversion apparatus 2 is configured to generate a page structure file corresponding to the form item according to the modified form item value, and modify the corresponding attribute value in the template according to the page structure file of the form item. Specifically, the user fills in the form item value to generate a page structure file corresponding to the form item, the page structure file corresponding to the form item is generated as shown in fig. 11, resources, parameters, outputs and mapping in fig. 11 respectively represent one form item, when the user edits the form, the page structure file of the form item is automatically converted into a JSON format Template, and the format of the Template (ROS Template) can be shown in fig. 12. As can be seen from fig. 11 and 12, the Form (Form) file in the XML format and the template file in the JSON format are in a one-to-one correspondence relationship. The form single group (FieldGroup) corresponds to a node (e.g., Parameters) of the template, and the form item (Field) corresponds to a template child node. In the method, a data bidirectional binding mode is adopted, namely data linkage, form data modification and template node modification are carried out; similarly, the template node is modified, and the form item is modified accordingly, so that the bidirectional binding of the form item and the template file can be realized. In this case, the accurate data synchronization between the form interface and the template can be ensured at any time through the page structure file.
In summary, the present application analyzes the template into the form, displays the form, obtains the modification of the displayed form, converts the modified form into the template, a layer of analysis layer is added between the user and the template of the resource arrangement service, the template grammar is analyzed into a form, the form is visually displayed, the user only needs to modify the form, the template editing is finished, after the user modifies the intuitively displayed form, the modified form is converted into the form template, the user does not need to learn the grammar of the template and edit a lengthy text file, only needs to simply fill the form, and finally automatically generates the template file, so that the learning cost of writing the template by the user can be reduced, the template writing cost is reduced, the template editing process is simplified, the template generating and modifying speed is increased, and the error rate of the template can be reduced.
Further, generating a corresponding form item value according to the attribute value of the template, generating and displaying a form according to the form item value, and modifying the template node along with the form item value by adopting a data bidirectional binding mode, namely data linkage and form item data modification; similarly, if the template node is modified subsequently, the display interface of the form item is modified, so that the bidirectional binding of the form item and the template file can be realized, and the mutual conversion is realized quickly.
Further, by obtaining the modified form item value, modifying the corresponding attribute value in the template according to the modified form item value, and adopting a data bidirectional binding mode, namely data linkage, form item data modification and template node modification; similarly, if the template node is modified subsequently, the display interface of the form item is modified, so that the bidirectional binding of the form item and the template file can be realized, and the mutual conversion is realized quickly.
Further, by monitoring the attribute value of the template, when the change of the attribute value is monitored, a notification of the change of the attribute value is sent out, a corresponding form item value is generated according to the notification, when the attribute value of the template is modified, the attribute value of the template can be obtained in real time, the form item corresponding to the attribute value can be modified in time, and the data synchronization of the attribute value and the form item value is ensured at any time.
Further, the notification is a notification of an assignment mode, and the assignment mode can facilitate the resolver to receive the notification timely and quickly.
Furthermore, a page structure file corresponding to the form item is generated according to the modified form item value, and the corresponding attribute value in the template is modified according to the page structure file of the form item, so that the accurate data synchronization of the form interface and the template can be ensured at any time through the page structure file.
In addition, the present application also provides a template display and modification apparatus, wherein the apparatus includes:
a processor;
and a memory arranged to store computer executable instructions that, when executed, cause the processor to:
the analysis device is used for analyzing the template into a form and displaying the form;
and the conversion device is used for acquiring the modification of the displayed form and converting the modified form into the template.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, implemented using Application Specific Integrated Circuits (ASICs), general purpose computers or any other similar hardware devices. In one embodiment, the software programs of the present application may be executed by a processor to implement the steps or functions described above. Likewise, the software programs (including associated data structures) of the present application may be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Additionally, some of the steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
In addition, some of the present application may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or techniques in accordance with the present application through the operation of the computer. Program instructions which invoke the methods of the present application may be stored on a fixed or removable recording medium and/or transmitted via a data stream on a broadcast or other signal-bearing medium and/or stored within a working memory of a computer device operating in accordance with the program instructions. An embodiment according to the present application comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform a method and/or a solution according to the aforementioned embodiments of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.

Claims (11)

1. A template display and modification method, wherein the method comprises:
analyzing the template into a form through an analysis layer between the user and the template of the resource arrangement service, and displaying the form; the method specifically comprises the following steps: generating a corresponding form item value according to the attribute value of the template, and generating and displaying a form according to the form item value;
and acquiring the modification of the displayed form through an analysis layer between the user and the template of the resource arrangement service, and converting the modified form into the template.
2. The method of claim 1, wherein obtaining modifications to the displayed form and converting the modified form into a template comprises:
and acquiring the modified form item value, and modifying the corresponding attribute value in the template according to the modified form item value.
3. The method of claim 1, wherein generating corresponding form entry values from attribute values of a template comprises:
monitoring the attribute value of the template, and sending out a notification of the change of the attribute value when the change of the attribute value is monitored;
and generating a corresponding form item value according to the notification.
4. The method of claim 3, wherein the notification is an assignment-based notification.
5. The method of claim 2, wherein modifying the corresponding attribute value in the template according to the modified form entry value comprises:
generating a page structure file corresponding to the form item according to the modified form item value;
and modifying the corresponding attribute value in the template according to the page structure file of the form item.
6. A template display and modification apparatus, wherein the apparatus comprises:
the analysis device is used for analyzing the template into a form through an analysis layer between the user and the template of the resource arrangement service and displaying the form; the method specifically comprises the following steps: generating a corresponding form item value according to the attribute value of the template, and generating and displaying a form according to the form item value;
and the conversion device is used for acquiring the modification of the displayed form through an analysis layer between the user and the template of the resource arrangement service and converting the modified form into the template.
7. The apparatus according to claim 6, wherein the conversion device is configured to obtain a modified form entry value, and modify a corresponding attribute value in the template according to the modified form entry value.
8. The apparatus of claim 6, wherein the parsing means comprises:
the monitoring module is used for monitoring the attribute value of the template and sending out a notification of the change of the attribute value when the change of the attribute value is monitored;
and the analysis module is used for generating a corresponding form item value according to the notification, and generating and displaying a form according to the form item value.
9. The apparatus of claim 8, wherein the notification is an assigned mode notification.
10. The apparatus according to claim 7, wherein the converting means is configured to generate a page structure file corresponding to the form item according to the modified form item value, and modify the corresponding attribute value in the template according to the page structure file of the form item.
11. A template display and modification apparatus, wherein the apparatus comprises:
a processor;
and a memory arranged to store computer executable instructions that, when executed, cause the processor to:
the analysis device is used for analyzing the template into a form through an analysis layer between the user and the template of the resource arrangement service and displaying the form; the method specifically comprises the following steps: generating a corresponding form item value according to the attribute value of the template, and generating and displaying a form according to the form item value;
and the conversion device is used for acquiring the modification of the displayed form through an analysis layer between the user and the template of the resource arrangement service and converting the modified form into the template.
CN201710198878.4A 2016-03-31 2017-03-29 Template display and modification method and device Active CN107451103B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610200938 2016-03-31
CN2016102009387 2016-03-31

Publications (2)

Publication Number Publication Date
CN107451103A CN107451103A (en) 2017-12-08
CN107451103B true CN107451103B (en) 2022-04-22

Family

ID=60486353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710198878.4A Active CN107451103B (en) 2016-03-31 2017-03-29 Template display and modification method and device

Country Status (1)

Country Link
CN (1) CN107451103B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943515A (en) * 2017-12-14 2018-04-20 郑州云海信息技术有限公司 A kind of method and apparatus of cloud management platform management service orchestration template
CN110008449B (en) * 2018-01-04 2023-07-07 北大医疗信息技术有限公司 Form control linkage method, form control linkage device, computer equipment and readable storage medium
CN109408180A (en) * 2018-10-15 2019-03-01 四川长虹电器股份有限公司 The method that terminal applies dynamic imports customizing form
CN110619096B (en) * 2019-06-12 2022-08-23 北京无限光场科技有限公司 Method and apparatus for synchronizing data
CN111382314A (en) * 2020-03-20 2020-07-07 山东浪潮通软信息科技有限公司 Method for realizing flexible configuration of heterogeneous system service integration

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1755624A (en) * 2004-09-30 2006-04-05 微软公司 Web-based data form
CN1983257A (en) * 2006-05-11 2007-06-20 华为技术有限公司 Method and system for demonstrating data by tree-mode structure
CN101359290A (en) * 2008-09-11 2009-02-04 中兴通讯股份有限公司 Method for customizing service document based on metadata and apparatus
CN101676910A (en) * 2008-09-19 2010-03-24 北京大学 A page generation method facing to Web application system
CN102360274A (en) * 2011-09-30 2012-02-22 上海慧谋网络科技有限公司 Variable-data printing template realization device and application method for same
CN102495729A (en) * 2011-12-02 2012-06-13 曙光信息产业(北京)有限公司 Application-based web page job submission display method
CN104112002A (en) * 2014-07-14 2014-10-22 福建星网锐捷网络有限公司 Form adaption method, device and system
CN105488052A (en) * 2014-09-17 2016-04-13 方正国际软件(北京)有限公司 Method and system for converting structural data into layout form file

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7379943B2 (en) * 2005-01-28 2008-05-27 Microsoft Corporation Method and system for bidirectionally data binding a control of a template
US20110023022A1 (en) * 2009-07-24 2011-01-27 Ensequence, Inc. Method for application authoring employing an application template stored in a database

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1755624A (en) * 2004-09-30 2006-04-05 微软公司 Web-based data form
CN1983257A (en) * 2006-05-11 2007-06-20 华为技术有限公司 Method and system for demonstrating data by tree-mode structure
CN100433013C (en) * 2006-05-11 2008-11-12 华为技术有限公司 Method and system for demonstrating data by tree-mode structure
CN101359290A (en) * 2008-09-11 2009-02-04 中兴通讯股份有限公司 Method for customizing service document based on metadata and apparatus
CN101676910A (en) * 2008-09-19 2010-03-24 北京大学 A page generation method facing to Web application system
CN102360274A (en) * 2011-09-30 2012-02-22 上海慧谋网络科技有限公司 Variable-data printing template realization device and application method for same
CN102495729A (en) * 2011-12-02 2012-06-13 曙光信息产业(北京)有限公司 Application-based web page job submission display method
CN104112002A (en) * 2014-07-14 2014-10-22 福建星网锐捷网络有限公司 Form adaption method, device and system
CN105488052A (en) * 2014-09-17 2016-04-13 方正国际软件(北京)有限公司 Method and system for converting structural data into layout form file

Also Published As

Publication number Publication date
CN107451103A (en) 2017-12-08

Similar Documents

Publication Publication Date Title
CN107451103B (en) Template display and modification method and device
AU2021212135B2 (en) Building and managing data-processing attributes for modelled data sources
EP3404542A1 (en) Data pipeline architecture for analytics processing stack
US9110686B2 (en) Web client command infrastructure integration into a rich client application
US8180795B2 (en) Apparatus and method for distribution of a report with dynamic write-back to a data source
CN106897251B (en) Rich text display method and device
CN103077185A (en) Object-based user-defined information-expanding method
US20130117346A1 (en) Multi-client generic persistence for extension nodes
US10192330B2 (en) Rendering data visualizations in different analytical applications
US10313421B2 (en) Providing Odata service based on service operation execution flow
US9305032B2 (en) Framework for generating programs to process beacons
US10776351B2 (en) Automatic core data service view generator
CN110692042A (en) Platform selection to perform requested actions in an audio-based computing environment
CN106776779B (en) Method for generating entity file by JSON data based on Mac platform
CN111143310B (en) Log recording method and device and readable storage medium
CN112582073A (en) Medical information acquisition method, device, electronic equipment and medium
US20140143278A1 (en) Application programming interface layers for analytical applications
US20120174195A1 (en) Function module dispatcher
CN114499759B (en) Message generation method and device, electronic equipment and storage medium
CN111581173B (en) Method, device, server and storage medium for distributed storage of log system
CN117473136A (en) Data report generation method and device, storage medium and electronic equipment
US8838715B2 (en) Providing client system support
CN115455013A (en) Method, system, computer equipment and medium for automatically updating dynamic form
WO2023164294A1 (en) Query splitter for an inverted index datastore
CN117785832A (en) Log processing method, device, computer equipment and storage medium

Legal Events

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