CN110895463B - Label processing method, device, equipment and computer readable storage medium - Google Patents

Label processing method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN110895463B
CN110895463B CN201811066255.2A CN201811066255A CN110895463B CN 110895463 B CN110895463 B CN 110895463B CN 201811066255 A CN201811066255 A CN 201811066255A CN 110895463 B CN110895463 B CN 110895463B
Authority
CN
China
Prior art keywords
template
tag
label
information
entry
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
CN201811066255.2A
Other languages
Chinese (zh)
Other versions
CN110895463A (en
Inventor
王志清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201811066255.2A priority Critical patent/CN110895463B/en
Publication of CN110895463A publication Critical patent/CN110895463A/en
Application granted granted Critical
Publication of CN110895463B publication Critical patent/CN110895463B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

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

Abstract

The embodiment of the invention provides a tag processing method, a tag processing device, tag processing equipment and a computer readable storage medium. According to the method, the labels with the same or similar functions are uniformly classified in advance, parameters which can be filled in by a user or can be selected by the user are extracted, a plurality of characteristic elements are abstracted, and the characteristic elements are arranged according to a set sequence to form a template label; when a template tag request instruction is received, acquiring characteristic meta information of the template tag according to parameter configuration information of the template tag; generating a template label according to the characteristic meta information of the template label, so that the template label can be flexibly configured and is easy to expand; the template labels are displayed in the template display interface, and a user adjusts the entry parameters of the template labels through the template display interface, so that the template labels can be instantiated into different labels, the use is more flexible, and the labels are richer.

Description

Label processing method, device, equipment and computer readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of label engines, in particular to a label processing method, a device, equipment and a computer readable storage medium.
Background
The template engine refers to a template engine for Web development, also called a tag engine or a feature engine, which is generated to separate a user interface from business data, and can generate a document in a specific format, and the template engine for a website generates a standard HTML document.
Most of the existing label engines adopt specific curing labels, namely the labels to be made are completely cured, and users can use the labels by clicking directly. However, the number and variety of cured labels are limited, and labels with the same function require technicians to develop different labels for different application parameters, and the label development cost is high.
Disclosure of Invention
The embodiment of the invention provides a tag processing method, a device, equipment and a computer readable storage medium, which are used for solving the problems that the number and types of tags cured by the existing tag engine are limited, the tags with the same function need technicians to develop different tags according to different application parameters, and the tag development cost is high.
An aspect of an embodiment of the present invention provides a tag processing method, including:
when a template tag request instruction is received, parameter configuration information of a template tag is obtained, wherein the parameter configuration information comprises at least one characteristic element identifier corresponding to the template tag;
acquiring characteristic meta information of the template tag according to the parameter configuration information of the template tag, wherein the characteristic meta information of the template tag corresponds to the entry parameter of the template tag one by one, and the characteristic meta information comprises a characteristic meta identifier, a template tag identifier and an input type of the corresponding entry parameter;
generating the template label according to the characteristic meta information of the template label;
and displaying the template label in a template display interface so that a user can adjust the entry parameters of the template label through the template display interface to instantiate the template label.
Another aspect of an embodiment of the present invention provides a tag processing apparatus, including:
the first information acquisition module is used for acquiring parameter configuration information of the template tag when a template tag request instruction is received, wherein the parameter configuration information comprises at least one characteristic element identifier corresponding to the template tag;
the second information acquisition module is used for acquiring the characteristic meta information of the template tag according to the parameter configuration information of the template tag, wherein the characteristic meta information of the template tag corresponds to the entry parameter of the template tag one by one, and the characteristic meta information comprises a characteristic meta identifier, a template tag identifier and the input type of the corresponding entry parameter;
the label processing module is used for generating the template label according to the characteristic meta information of the template label;
and the display module is used for displaying the template label into a template display interface so that a user can adjust the entry parameters of the template label through the template display interface to instantiate the template label.
Another aspect of an embodiment of the present invention provides a tag processing apparatus including:
a memory, a processor, and a computer program stored on the memory and executable on the processor,
the processor implements the method described above when running the computer program.
It is another aspect of embodiments of the present invention to provide a computer-readable storage medium, storing a computer program,
the computer program, when executed by a processor, implements the method described above.
According to the label processing method, the label processing device, the label processing equipment and the computer readable storage medium, the labels with the same or similar functions are uniformly classified in advance, parameters which can be filled in by a user or can be selected by the user are extracted, a plurality of characteristic elements are abstracted, and the characteristic elements are arranged according to a set sequence to form a template label; when a template tag request instruction is received, acquiring characteristic meta information of the template tag according to parameter configuration information of the template tag; generating a template label according to the characteristic meta information of the template label, so that the template label can be flexibly configured and is easy to expand; the template labels are displayed in the template display interface, and a user adjusts the entry parameters of the template labels through the template display interface, so that the template labels can be instantiated into different labels, the use is more flexible, and the labels are richer.
Drawings
FIG. 1 is a flowchart of a tag processing method according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of a template tag according to a first embodiment of the present invention;
FIG. 3 is a schematic diagram of another template tag according to a first embodiment of the present invention;
fig. 4 is a flowchart of a tag processing method according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of a label processing apparatus according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of a label processing apparatus according to a fourth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a label processing apparatus according to a fifth embodiment of the present invention.
Specific embodiments of the present invention have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive embodiments in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with embodiments of the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of embodiments of the invention as detailed in the accompanying claims.
Firstly, explanation is made on nouns according to embodiments of the present invention:
template engine: a template engine for Web development, also known as a tag engine, or feature engine, is generated to separate the user interface from the business data, which may generate documents in a specific format, and a standard HTML document is generated by the template engine for the Web site.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. In the following description of the embodiments, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Example 1
Fig. 1 is a flowchart of a label processing method according to an embodiment of the present invention, fig. 2 is a schematic diagram of a template label according to an embodiment of the present invention, and fig. 3 is a schematic diagram of another template label according to an embodiment of the present invention. Aiming at the problems that the number and types of tags cured by the existing tag engine are limited, technicians are required to develop different tags according to different application parameters, and the tag development cost is high, the embodiment of the invention provides a tag processing method. The method in the present embodiment is applied to a tag processing apparatus such as a tag engine.
In this embodiment, the template tag is obtained by comprehensively analyzing the tag requirements of the user, and by uniformly classifying tags with the same or similar functions, extracting parameters which can be filled in by the user or can be selected by the user, abstracting a plurality of feature elements, and arranging the plurality of feature elements according to a set sequence to form a template.
For example, for the following three tags:
tag 1: users who have recently checked in the hotel;
tag 2: users who have arrived at internet cafes for the last 10 days;
tag 3: a user traveling for the last month.
Such tags can be abstracted as: users with Y behavior last X days. Wherein "X" represents days, and "Y" represents user behavior, which may be "check-in hotel", "go to internet bar", "travel by passenger", etc.
The information of the template tag includes: template tag identification, parameter configuration information and execution flow information. Wherein the template tag identification is used to uniquely identify one template tag.
The execution flow information is used for describing the flow of data execution corresponding to the template tag, and is a sequence formed by a plurality of calculation operators split into the processing flow of the template tag. For example, the execution flow information may be a directed acyclic graph (Directed Acyclic Graph, abbreviated as DAG graph) for describing the execution flow of the template tag.
The parameter configuration information comprises characteristic element identifiers corresponding to one or more entry parameters of the template tag.
Wherein, some parameters in the template label are abstract interfaces, corresponding entry parameters can be filled in or selected by a user, and different entry parameters can be derived from a plurality of other labels with type functions.
In this embodiment, the information of the template tag and the feature meta information corresponding to the template tag, which are abstracted in advance, may be stored in the database.
As shown in fig. 1, the method specifically comprises the following steps:
step S101, when a template label request instruction is received, parameter configuration information of a template label is obtained, wherein the parameter configuration information comprises at least one characteristic element identifier corresponding to the template label.
In this embodiment, when the user needs to use the template tag, the template display interface for displaying the template tag list may be opened. When a request instruction of a template display interface is detected, determining that the template label request instruction is received, and acquiring parameter configuration information of all the template labels.
In this embodiment, one feature element corresponds to one entry parameter of the template tag, and feature meta information of the template tag corresponds to the entry parameter of the template tag one by one.
The entry parameters of the template label refer to parameters which can be input or selected by a user when the template label is used, and the parameters can be realized by an input frame or a selection frame and the like.
Each feature element can be described by feature meta information, and the feature meta information of the template label corresponds to the entry parameter of the template label one by one. The feature meta information includes a feature meta identification, a template tag identification, and an input type of the corresponding entry parameter.
Optionally, the input types of the corresponding entry parameters include: an input box and a selection box. For example, the selection box may be a drop down box, a tick box, or the like.
Optionally, the feature meta information may also include feature meta names, rules corresponding to the entry parameters, and so on. Wherein the feature element name is used to describe the function of the feature element. The rule corresponding to the entry parameter is used to describe the condition that the entry parameter needs to satisfy, for example, the data type, length, value range, and the like of the entry parameter.
In addition, if the input type of the corresponding entry parameter is a selection box, the feature meta information further includes alternative parameter association information, and the alternative parameter association information is a storage path of the alternative parameter of the corresponding entry parameter. For example, the alternative parameter association information may be an identification of the XNL file for storing the alternative parameter, or the alternative parameter association information may be a storage location of the alternative parameter in a database, etc.
For example, the feature meta information may be as shown in table 1 below:
TABLE 1
Figure BDA0001798376550000051
Wherein "X" and "Y" of the feature elements "last X days", "appearing in Y" represent the entry parameters.
XML shown in Table 1: a represents that the feature element is identified as 2 and the alternative parameters for the feature element named "appear at Y" are stored in an XML file identified as A.
For example, the content of the XML file identified as A may include the following:
Figure BDA0001798376550000061
step S102, according to the parameter configuration information of the template tag, obtaining the characteristic meta information of the template tag, wherein the characteristic meta information of the template tag corresponds to the entry parameter of the template tag one by one, and the characteristic meta information comprises a characteristic meta identifier, a template tag identifier and the input type of the corresponding entry parameter.
In this embodiment, the parameter configuration information includes a feature identifier corresponding to one or more entry parameters of the template tag.
Optionally, the template tag may further include a template name, creator, etc., which is not specifically limited herein.
Based on the feature meta information given in the above table 1, the information of the template tag as shown in fig. 2 and 3 can be as shown in the following table 2:
TABLE 2
Identification mark Template name Parameter configuration information
1 Z occurring in Y in the last X days 1,2,3
2 Z comparison pattern target value occurring at Y in the last X days 1,2,3,4,5
Wherein the template tag identified as 1 in table 2 includes 3 feature elements identified as 1,2 and 3, and the template tag identified as 2 includes 5 feature elements identified as 1,2,3,4 and 5.
In the step, after the parameter configuration information of the template tag is obtained, the feature meta information corresponding to each feature meta identifier is obtained according to at least one feature meta identifier in the parameter configuration information.
Step S103, generating a template label according to the characteristic meta information of the template label.
After the feature meta information of the template tag is obtained, the feature meta information is combined into the template tag according to the arrangement sequence of each feature meta identifier in the parameter configuration information of the template tag.
Step S104, displaying the template label in a template display interface so that a user can adjust the entry parameters of the template label through the template display interface to instantiate the template label.
In this embodiment, as shown in fig. 2 and 3, when the template label is displayed, according to the input type of the entry parameter corresponding to each feature element that forms the template label, the entry parameter of the feature element is displayed as a control corresponding to the input type, and other description information of the two feature elements is displayed in a text manner.
Optionally, the template label is displayed in the template display interface, which can be specifically implemented in the following manner:
the label processing device sends the template label to the user terminal so that the user terminal can display the template label in the template display interface.
The user may enter or adjust the entry parameters of the template tag through the template display interface to instantiate the template tag as a specific tag.
According to the embodiment of the invention, the labels with the same or similar functions are uniformly classified in advance, parameters which can be filled in by a user or can be selected by the user are extracted, a plurality of characteristic elements are abstracted, and the characteristic elements are arranged according to a set sequence to form a template label; when a template tag request instruction is received, acquiring characteristic meta information of the template tag according to parameter configuration information of the template tag; generating a template label according to the characteristic meta information of the template label, so that the template label can be flexibly configured and is easy to expand; the template labels are displayed in the template display interface, and a user adjusts the entry parameters of the template labels through the template display interface, so that the template labels can be instantiated into different labels, the use is more flexible, and the labels are richer.
Example two
Fig. 4 is a flowchart of a tag processing method according to a second embodiment of the present invention. On the basis of the first embodiment, in this embodiment, after the parameter configuration information of the template tag is obtained when the template tag request instruction is received, the tag processing device may further obtain a calculation operator corresponding to the template tag according to the feature element identifier sequence corresponding to the template tag; and generating execution flow information corresponding to the template label according to the calculation operator corresponding to the template label.
The execution flow information is used for describing the flow of data execution corresponding to the template tag, and is a sequence formed by a plurality of calculation operators split into the processing flow of the template tag. For example, the execution flow information may be a directed acyclic graph (Directed Acyclic Graph, abbreviated as DAG graph) for describing the execution flow of the template tag.
In addition, the information of the alternative parameters corresponding to the entry parameters of the template tag is consistent with the execution flow information of the template tag.
For example, taking the content of the XML file identified as a in step S101 as an example, the "is_hol", "is_transport", and "is_netbar" in the XML file identified as a represent three fields in the execution flow information (e.g., DAG graph), which are kept consistent with the XML in the process of generating the execution flow information (e.g., DAG graph) corresponding to the template tag.
Optionally, after generating the execution flow information corresponding to the template tag, the tag processing device may further display the execution flow information corresponding to the template tag and the template tag in the template display interface, so that the user may use the template tag according to the execution flow information of the template tag, where the execution flow information of the template tag meets the requirement of the user, as the target template.
In this embodiment, the execution flow information corresponding to the template tag may be generated in parallel while the template tag is generated; or, after generating the template tag, generating execution flow information corresponding to the template tag; alternatively, the execution flow information corresponding to the template tag may be generated before the template tag is generated, which is not specifically limited herein.
In addition, the tag processing device can also receive a tag submitting instruction to the target template, wherein the target template is any one of the template tags, and the tag submitting instruction comprises the identification of the target template and the entry parameter value; calling an execution program corresponding to the target template according to the identification of the target template and the entry parameter value to obtain an execution result corresponding to the entry parameter value of the target template; and displaying the execution result.
As shown in fig. 4, after the template tag is displayed in the template display interface in the above step S104, the method further includes the steps of:
step S105, receiving a label submitting instruction to a target template, wherein the target template is any one of template labels, and the label submitting instruction comprises identification of the target template and entry parameter values.
In this embodiment, a user may select any one of the template tags as a target template through the user terminal on the template display interface, and after setting the entry parameter of the target tag, may send a tag submitting instruction to the target template to the tag processing device through the submitting template display interface.
After receiving the label submitting instruction to the target template, the label processing device may obtain the target template identifier and the entry parameter from the label submitting instruction.
And S106, calling an execution program corresponding to the target template according to the identification of the target template and the entry parameter value to obtain an execution result corresponding to the entry parameter value of the target template.
In this embodiment, the execution program corresponding to each template tag is generated and stored in advance.
After receiving the label submitting instruction to the target template, the label processing device can call an execution program corresponding to the target template according to the identification and the entry parameter value of the target template, and an execution result corresponding to the entry parameter value of the target template is obtained.
Optionally, the feature meta-information may further comprise rules corresponding to the entry parameters. The rule corresponding to the entry parameter is used to describe the condition that the entry parameter needs to satisfy, for example, the data type, length, value range, and the like of the entry parameter. Before the execution program corresponding to the target template is called, the entry parameter value submitted by the user can be verified.
Specifically, according to the identifier of the target template and the entry parameter value, the execution program corresponding to the target template is called to obtain the execution result corresponding to the entry parameter value of the target template, which can be specifically implemented by adopting the following steps S1061-S1065:
step S1061, obtaining parameter configuration information of the target template according to the identification of the target template.
Step S1062, according to the parameter configuration information of the target template, obtaining the feature meta information of the target template, wherein the feature meta information comprises rule information of the corresponding entry parameter.
The rule information of the entry parameter may include a data type, a length, a value range, whether the entry parameter has to be input, and the like, which is not specifically limited in this embodiment.
Step S1063, verifying the entry parameter value according to the rule information of the entry parameter corresponding to the feature meta information of the target template.
In this embodiment, each entry parameter value is verified according to rule information of an entry parameter corresponding to feature meta information of a target template, and whether each entry parameter value accords with a corresponding rule is verified; if all the entry parameter values meet the corresponding rules, the verification is passed, and step S1064 is executed; if any entry parameter value does not meet the corresponding rule, the verification is not passed, and step S1065 is performed.
Step S1064, if the verification is passed, calling an execution program corresponding to the target template according to the identification of the target template and the entry parameter value to obtain an execution result corresponding to the entry parameter value of the target template.
Step S1065, if the verification is not passed, displaying error prompt information for prompting that the input parameter is wrong.
Optionally, if the verification is not passed, recording the entry parameter value conforming to the corresponding rule.
Optionally, the tag processing device may send error prompt information to the user terminal, where the error prompt information is used to prompt that the entry parameter and the rule information corresponding to the entry parameter are not passed through verification, so that the user modifies the input parameter value according to the rule information of the entry parameter.
Step S107, displaying an execution result.
Alternatively, the tag processing apparatus may transmit the execution result to the user terminal, so that the user terminal displays the execution result.
After parameter configuration information of a template tag is obtained, tag processing equipment obtains a calculation operator corresponding to the template tag according to a feature element identification sequence corresponding to the template tag, and generates execution flow information corresponding to the template tag; and correspondingly displaying the execution flow information corresponding to the template label and the template label in a template display interface so that a user can conveniently take the template label which accords with the own requirement according to the execution flow information of the template label as a target template.
Example III
Fig. 5 is a schematic structural diagram of a label processing apparatus according to a third embodiment of the present invention. The label processing device provided by the embodiment of the invention can execute the processing flow provided by the label processing method embodiment. As shown in fig. 5, the apparatus 50 includes: a first information acquisition module 501, a second information acquisition module 502, a tag processing module 503 and a display module 504.
Specifically, the first information obtaining module 501 is configured to obtain, when receiving a template tag request instruction, parameter configuration information of a template tag, where the parameter configuration information includes at least one feature identifier corresponding to the template tag.
The second information obtaining module 502 is configured to obtain feature meta information of the template tag according to parameter configuration information of the template tag, where the feature meta information of the template tag corresponds to an entry parameter of the template tag one by one, and the feature meta information includes a feature meta identifier, a template tag identifier, and an input type of the corresponding entry parameter.
Optionally, the input types of the entry parameters include: an input box and a selection box.
Optionally, if the input type of the corresponding entry parameter is a selection box, the feature meta information further includes alternative parameter association information, where the alternative parameter association information is a storage path of the alternative parameter corresponding to the entry parameter.
The tag processing module 503 is configured to generate a template tag according to the feature meta information of the template tag.
The display module 504 is configured to display the template tag into a template display interface, so that a user can instantiate the template tag by adjusting the entry parameter of the template tag through the template display interface.
The apparatus provided in the embodiment of the present invention may be specifically used to perform the method embodiment provided in the first embodiment, and specific functions are not described herein.
According to the embodiment of the invention, the labels with the same or similar functions are uniformly classified in advance, parameters which can be filled in by a user or can be selected by the user are extracted, a plurality of characteristic elements are abstracted, and the characteristic elements are arranged according to a set sequence to form a template label; when a template tag request instruction is received, acquiring characteristic meta information of the template tag according to parameter configuration information of the template tag; generating a template label according to the characteristic meta information of the template label, so that the template label can be flexibly configured and is easy to expand; the template labels are displayed in the template display interface, and a user adjusts the entry parameters of the template labels through the template display interface, so that the template labels can be instantiated into different labels, the use is more flexible, and the labels are richer.
Example IV
Fig. 6 is a schematic structural diagram of a label processing apparatus according to a fourth embodiment of the present invention. On the basis of the third embodiment, in this embodiment, the tag processing module is further configured to:
acquiring a calculation operator corresponding to the template label according to the characteristic element identification sequence corresponding to the template label; and generating execution flow information corresponding to the template label according to the calculation operator corresponding to the template label.
Optionally, the display module is further configured to:
and correspondingly displaying the execution flow information corresponding to the template label and the template label in a template display interface.
Optionally, as shown in fig. 6, the tag processing device 50 further includes: the tag execution module 505.
The tag execution module 505 is configured to:
receiving a label submitting instruction for a target template, wherein the target template is any one of template labels, and the label submitting instruction comprises an identifier of the target template and an entry parameter value; calling an execution program corresponding to the target template according to the identification of the target template and the entry parameter value to obtain an execution result corresponding to the entry parameter value of the target template; and displaying the execution result.
Optionally, the tag execution module 505 is further configured to:
acquiring parameter configuration information of the target template according to the identification of the target template; acquiring characteristic meta information of the target template according to the parameter configuration information of the target template, wherein the characteristic meta information comprises rule information of corresponding entry parameters; verifying the entry parameter value according to the rule information of the entry parameter corresponding to the characteristic meta information of the target template; and if the verification is passed, calling an execution program corresponding to the target template according to the identification of the target template and the entry parameter value to obtain an execution result corresponding to the entry parameter value of the target template.
Optionally, the tag execution module 505 is further configured to:
if the verification is not passed, error prompt information for prompting the input parameter error is displayed.
The apparatus provided in the embodiment of the present invention may be specifically used to execute the method embodiment provided in the second embodiment, and specific functions are not described herein.
After parameter configuration information of a template tag is obtained, tag processing equipment obtains a calculation operator corresponding to the template tag according to a feature element identification sequence corresponding to the template tag, and generates execution flow information corresponding to the template tag; and correspondingly displaying the execution flow information corresponding to the template label and the template label in a template display interface so that a user can conveniently take the template label which accords with the own requirement according to the execution flow information of the template label as a target template.
Example five
Fig. 7 is a schematic structural diagram of a label processing apparatus according to a fifth embodiment of the present invention. As shown in fig. 7, the tag processing apparatus 70 includes: a processor 701, a memory 702, and a computer program stored on the memory 702 and executable by the processor 701.
The processor 701 implements the tag processing method provided by any of the method embodiments described above when executing a computer program stored on the memory 702.
According to the embodiment of the invention, the labels with the same or similar functions are uniformly classified in advance, parameters which can be filled in by a user or can be selected by the user are extracted, a plurality of characteristic elements are abstracted, and the characteristic elements are arranged according to a set sequence to form a template label; when a template tag request instruction is received, acquiring characteristic meta information of the template tag according to parameter configuration information of the template tag; generating a template label according to the characteristic meta information of the template label, so that the template label can be flexibly configured and is easy to expand; the template labels are displayed in the template display interface, and a user adjusts the entry parameters of the template labels through the template display interface, so that the template labels can be instantiated into different labels, the use is more flexible, and the labels are richer.
In addition, the embodiment of the invention also provides a computer readable storage medium, which stores a computer program, and the computer program realizes the label processing method provided by any method embodiment when being executed by a processor.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform part of the steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above. The specific working process of the above-described device may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (16)

1. A tag processing method, comprising:
when a template tag request instruction is received, parameter configuration information of a template tag is obtained, wherein the parameter configuration information comprises at least one characteristic element identifier corresponding to the template tag;
acquiring characteristic meta information of the template tag according to the parameter configuration information of the template tag, wherein the characteristic meta information of the template tag corresponds to the entry parameter of the template tag one by one, and the characteristic meta information comprises a characteristic meta identifier, a template tag identifier and an input type of the corresponding entry parameter;
generating the template label according to the characteristic meta information of the template label;
displaying the template label in a template display interface so that a user can adjust the entry parameters of the template label through the template display interface to instantiate the template label;
when receiving a template tag request instruction, acquiring parameter configuration information of a template tag, wherein the parameter configuration information comprises at least one feature element identifier corresponding to the template tag, and further comprises:
acquiring a calculation operator corresponding to the template tag according to the characteristic element identification sequence corresponding to the template tag;
and generating execution flow information corresponding to the template label according to the calculation operator corresponding to the template label.
2. The method according to claim 1, characterized in that:
the input types of the inlet parameters include: an input box and a selection box.
3. The method according to claim 2, characterized in that:
if the input type of the corresponding entry parameter is a selection box, the feature meta-information further comprises alternative parameter association information, and the alternative parameter association information is a storage path of the alternative parameter of the corresponding entry parameter.
4. The method according to claim 1, wherein after generating the execution flow information corresponding to the template tag according to the computation operator corresponding to the template tag, the method further comprises:
and correspondingly displaying the execution flow information corresponding to the template label and the template label in the template display interface.
5. The method of claim 1, wherein after displaying the template tag into a template display interface to enable a user to instantiate the template tag by adjusting an entry parameter of the template tag through the template display interface, further comprising:
receiving a label submitting instruction to a target template, wherein the target template is any one of the template labels, and the label submitting instruction comprises an identifier of the target template and an entry parameter value;
calling an execution program corresponding to the target template according to the identification and the entry parameter value of the target template to obtain an execution result corresponding to the entry parameter value of the target template;
and displaying the execution result.
6. The method according to claim 5, wherein the calling the execution program corresponding to the target template according to the identifier of the target template and the entry parameter value to obtain the execution result corresponding to the entry parameter value of the target template includes:
acquiring parameter configuration information of the target template according to the identification of the target template;
acquiring characteristic meta information of the target template according to the parameter configuration information of the target template, wherein the characteristic meta information comprises rule information of corresponding entry parameters;
verifying the entry parameter value according to rule information of the entry parameter corresponding to the characteristic meta information of the target template;
and if the verification is passed, calling an execution program corresponding to the target template according to the identification of the target template and the entry parameter value to obtain an execution result corresponding to the entry parameter value of the target template.
7. The method according to claim 6, wherein after verifying the entry parameter value according to rule information of the entry parameter corresponding to the feature meta information of the target template, further comprising:
if the verification is not passed, error prompt information for prompting the input parameter error is displayed.
8. A label processing apparatus, comprising:
the first information acquisition module is used for acquiring parameter configuration information of the template tag when a template tag request instruction is received, wherein the parameter configuration information comprises at least one characteristic element identifier corresponding to the template tag;
the second information acquisition module is used for acquiring the characteristic meta information of the template tag according to the parameter configuration information of the template tag, wherein the characteristic meta information of the template tag corresponds to the entry parameter of the template tag one by one, and the characteristic meta information comprises a characteristic meta identifier, a template tag identifier and the input type of the corresponding entry parameter;
the label processing module is used for generating the template label according to the characteristic meta information of the template label;
the display module is used for displaying the template label into a template display interface so that a user can adjust the entry parameter of the template label through the template display interface to instantiate the template label;
the tag processing module is further configured to:
acquiring a calculation operator corresponding to the template tag according to the characteristic element identification sequence corresponding to the template tag;
and generating execution flow information corresponding to the template label according to the calculation operator corresponding to the template label.
9. The apparatus according to claim 8, wherein:
the input types of the inlet parameters include: an input box and a selection box.
10. The apparatus according to claim 9, wherein:
if the input type of the corresponding entry parameter is a selection box, the feature meta-information further comprises alternative parameter association information, and the alternative parameter association information is a storage path of the alternative parameter of the corresponding entry parameter.
11. The apparatus of claim 8, wherein the display module is further configured to:
and correspondingly displaying the execution flow information corresponding to the template label and the template label in the template display interface.
12. The apparatus of claim 8, wherein the apparatus further comprises: the label execution module is used for:
receiving a label submitting instruction to a target template, wherein the target template is any one of the template labels, and the label submitting instruction comprises an identifier of the target template and an entry parameter value;
calling an execution program corresponding to the target template according to the identification and the entry parameter value of the target template to obtain an execution result corresponding to the entry parameter value of the target template;
and displaying the execution result.
13. The apparatus of claim 12, wherein the tag execution module is further to:
acquiring parameter configuration information of the target template according to the identification of the target template;
acquiring characteristic meta information of the target template according to the parameter configuration information of the target template, wherein the characteristic meta information comprises rule information of corresponding entry parameters;
verifying the entry parameter value according to rule information of the entry parameter corresponding to the characteristic meta information of the target template;
and if the verification is passed, calling an execution program corresponding to the target template according to the identification of the target template and the entry parameter value to obtain an execution result corresponding to the entry parameter value of the target template.
14. The apparatus of claim 13, wherein the tag execution module is further to:
if the verification is not passed, error prompt information for prompting the input parameter error is displayed.
15. A label processing apparatus, characterized by comprising:
a memory, a processor, and a computer program stored on the memory and executable on the processor,
the processor, when running the computer program, implements the method according to any of claims 1-7.
16. A computer-readable storage medium, in which a computer program is stored,
the computer program implementing the method according to any of claims 1-7 when executed by a processor.
CN201811066255.2A 2018-09-13 2018-09-13 Label processing method, device, equipment and computer readable storage medium Active CN110895463B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811066255.2A CN110895463B (en) 2018-09-13 2018-09-13 Label processing method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811066255.2A CN110895463B (en) 2018-09-13 2018-09-13 Label processing method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110895463A CN110895463A (en) 2020-03-20
CN110895463B true CN110895463B (en) 2023-06-20

Family

ID=69785031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811066255.2A Active CN110895463B (en) 2018-09-13 2018-09-13 Label processing method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110895463B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111651696B (en) * 2020-05-29 2023-06-02 泰康保险集团股份有限公司 Product label customizing method and device, computer storage medium and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107864192A (en) * 2017-10-25 2018-03-30 广东欧珀移动通信有限公司 Information-pushing method, device, server and readable storage medium storing program for executing

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577536A (en) * 2013-09-04 2014-02-12 广东全通教育股份有限公司 System and method for generating and improving template website
CN105404514B (en) * 2015-12-01 2019-02-15 广州华多网络科技有限公司 JavaScript rendering method and device
CN107146095B (en) * 2016-03-01 2021-03-23 创新先进技术有限公司 Method and device for processing display information of mail and mail system
US10331416B2 (en) * 2016-04-28 2019-06-25 Microsoft Technology Licensing, Llc Application with embedded workflow designer
CN108021598B (en) * 2016-11-04 2022-05-03 阿里巴巴(中国)有限公司 Page extraction template matching method and device and server
CN107797826B (en) * 2017-05-19 2020-03-17 平安科技(深圳)有限公司 Rule configuration method based on rule engine, terminal and equipment
CN107943775A (en) * 2017-11-24 2018-04-20 泰康保险集团股份有限公司 Method, apparatus, storage medium and the electronic equipment of message push
CN108229614B (en) * 2017-12-31 2021-12-14 上海智引信息科技有限公司 Label generation method, computer readable storage medium and system
CN108491408B (en) * 2018-01-24 2021-04-23 北京三快在线科技有限公司 Activity information processing method and device, electronic equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107864192A (en) * 2017-10-25 2018-03-30 广东欧珀移动通信有限公司 Information-pushing method, device, server and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN110895463A (en) 2020-03-20

Similar Documents

Publication Publication Date Title
US11972201B2 (en) Facilitating auto-completion of electronic forms with hierarchical entity data models
US10817662B2 (en) Expert system for automation, data collection, validation and managed storage without programming and without deployment
US20110289420A1 (en) Screen customization supporting system, screen customization supporting method, and computer-readable recording medium
CN109241141A (en) The training data treating method and apparatus of deep learning
CN111143358A (en) Report configuration method and system
WO2010129025A1 (en) Method and system for verifying a citation
CN109583746A (en) The method and device of the routing rule of setting procedure, readable storage medium storing program for executing
US9355269B2 (en) Method and system for managing uniquely identifiable bookmarklets
CN109086433A (en) A kind of file management method and server based on big data analysis
CN110795697A (en) Logic expression obtaining method and device, storage medium and electronic device
CN111414739A (en) Excel data entry component, entry method and device
CN110895463B (en) Label processing method, device, equipment and computer readable storage medium
CN113342921B (en) Resource cataloging method and device
US20080072133A1 (en) Form bundling
CN110225076A (en) File interaction method, apparatus, electronic equipment and storage medium
US20210397745A1 (en) Data providing server device and data providing method
CN112734502B (en) Testing method and device for multimedia information directional delivery and electronic equipment
US20230195792A1 (en) Database management methods and associated apparatus
JP6540286B2 (en) Business analysis program, apparatus and method
US20090271439A1 (en) Systems to implement business processes in computing environment
CN101512593B (en) Job support system and its method
CN111352917A (en) Information input method and device, electronic equipment and storage medium
US11650814B1 (en) Generating customized documentation for applications
CN117008899A (en) Code generation method, device, computer readable storage medium and electronic equipment
WO2015102294A1 (en) Apparatus and method for managing user reviews corresponding to electronic publication

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