CN111767026B - Method, device, equipment and medium for generating business object template - Google Patents

Method, device, equipment and medium for generating business object template Download PDF

Info

Publication number
CN111767026B
CN111767026B CN202010576341.9A CN202010576341A CN111767026B CN 111767026 B CN111767026 B CN 111767026B CN 202010576341 A CN202010576341 A CN 202010576341A CN 111767026 B CN111767026 B CN 111767026B
Authority
CN
China
Prior art keywords
template
business object
target
component
interface
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
CN202010576341.9A
Other languages
Chinese (zh)
Other versions
CN111767026A (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 CN202010576341.9A priority Critical patent/CN111767026B/en
Publication of CN111767026A publication Critical patent/CN111767026A/en
Application granted granted Critical
Publication of CN111767026B publication Critical patent/CN111767026B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/10Requirements analysis; Specification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Abstract

The application discloses a method, a device, equipment and a medium for generating a business object template, and relates to the fields of artificial intelligence and intelligent office. The realization scheme of the business object template generation method is as follows: responding to a received creation instruction of a target business object template, and displaying a template element interface and a template construction interface; in response to receiving a selection instruction for a target model element in the template element interface, displaying the target model element in the template construction interface, and updating a template code file according to the target model element; updating a template configuration information set of a template code file in response to receiving a template configuration instruction for a target model element in a template construction interface; and generating a target business object template according to the template code file and the template configuration information set in response to receiving the template construction completion instruction. The technical scheme of the embodiment of the application can effectively model various business object templates of intelligent office, thereby realizing various types of business objects.

Description

Method, device, equipment and medium for generating business object template
Technical Field
The embodiment of the application relates to the computer technology, in particular to the field of artificial intelligence and intelligent office, and particularly relates to a method, a device, equipment and a medium for generating a business object template.
Background
In intelligent office systems, various business objects, such as projects, tasks, meetings, etc., need to be created and published in advance. These business objects, depending on the specific application scenario, may evolve into various sub-division areas, such as research and development projects, marketing projects, product design tasks, marketing tasks, and so on. The business object can be mainly obtained by user-defined configuration by using a business object creation template provided by an office system.
In the prior art, when a demand person wants to create a new type of business object, a research and development person is required to write codes to realize a template matched with the new type of business object, development time is required, and certain communication and communication costs are required due to the difference between the developer and the demand person.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a medium for generating a business object template.
In a first aspect, an embodiment of the present application provides a method for generating a service object template, including:
in response to receiving a creation instruction of a target business object template, displaying a template element interface and a template construction interface, wherein the template element interface comprises a plurality of levels of model libraries, and the model libraries comprise a plurality of model elements;
In response to receiving a selection instruction for a target model element in the template element interface, displaying the target model element in the template construction interface, and updating a template code file according to the target model element;
updating a template configuration information set matched with the template code file in response to receiving a template configuration instruction for a target model element in a template construction interface;
and generating a target business object template according to the template code file and the template configuration information set in response to receiving a template construction completion instruction.
In a second aspect, an embodiment of the present application further provides a device for generating a service object template, including:
the interface display module is used for responding to the received creation instruction of the target business object template, displaying a template element interface and a template construction interface, wherein the template element interface comprises a plurality of levels of model libraries, and the model libraries comprise a plurality of model elements;
the template code file updating module is used for displaying the target model element in the template construction interface in response to receiving a selection instruction for the target model element in the template element interface and updating the template code file according to the target model element;
The template configuration information set updating module is used for updating the template configuration information set matched with the template code file in response to receiving a template configuration instruction aiming at a target model element in the template construction interface;
and the target business object template generation module is used for responding to the received template construction completion instruction and generating a target business object template according to the template code file and the template configuration information set.
In a third aspect, an embodiment of the present application further provides an electronic device, including at least one processor, and a memory communicatively connected to the at least one processor, where the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can perform the method for generating a business object template in any embodiment of the present application.
In a fourth aspect, embodiments of the present application further provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method for generating a business object template in any of the embodiments of the present application.
The technical scheme of the embodiment of the application provides a new mode for creating the business object template, which can greatly reduce the development time and the generation difficulty of the business object template.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows.
Drawings
The drawings are included to provide a better understanding of the present application and are not to be construed as limiting the application. Wherein:
FIG. 1 is a flowchart of an implementation of a method for generating a business object template in an embodiment of the present application;
FIG. 2a is a flowchart of an implementation of a method for generating a business object template in an embodiment of the present application;
FIG. 2b is a schematic diagram of a template engine four-level model in an embodiment of the application;
FIG. 3 is a flowchart of an implementation of a method for generating a business object template in an embodiment of the present application;
FIG. 4 is a block diagram of a device for generating a business object template in an embodiment of the present application;
fig. 5 is a block diagram of an electronic device for implementing a method for generating a business object template according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present application are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
For the sake of easy understanding, the application scenario of the present application and related concepts will be briefly described. In the embodiments of the present application, the business object template may be mainly applied to an office system, and is used for generating a business object used in the office system. A business object may refer to an operational business entity in an office system.
In one example, when a user needs to hold a meeting using a meeting room, a meeting object may be published through the office system. The conference object comprises conference time, conference room number, required hardware support, participants and other information. When the conference object is successfully released, the corresponding conference room can be reserved, and meanwhile, each participant can be effectively notified and reminded. The conference object is a business object applied to an office system. The conference application initiator may first initiate a conference object creation request, and the conference system may provide the conference application initiator with a conference object template, where the template has a plurality of pieces of information to be filled, for example, information such as a conference time and a conference room number.
Obviously, when a user wants to issue a certain business object through an office system, the user needs to first acquire the template of the business object, and add the custom information into the template to obtain the business object meeting the actual requirement, that is, instantiate the business object template into the business object. If a user wants to use a business object template that is not present in an office system, a developer of the office system is required to develop separately based on the business object template.
Fig. 1 is a flowchart of a method for generating a service object template according to an embodiment of the present application, where the technical solution of the embodiment of the present application may be applied to a case of custom generating a service object template according to a service object actually required to be published in an intelligent office system. The method may be implemented by a business object template generating means, which may be implemented by software and/or hardware, and is typically integrated in a terminal device (e.g. desktop, notebook or tablet computer, etc.) in which the intelligent office system is installed.
As shown in fig. 1, the technical solution of the embodiment of the present application includes the following steps:
s110, responding to the received creation instruction of the target business object template, and displaying a template element interface and a template construction interface.
As described above, in this embodiment, in order to solve the problems of the prior art, a new way of constructing a business object template according to actual needs by an ordinary user is provided. Optionally, a function module of the custom business object template can be added in the office system, and a user can quickly and conveniently obtain the required business object template through various functions provided by the function module.
Optionally, when the user clicks or selects a creation button or a control of the business object template, a creation instruction for generating the target business object template can be correspondingly triggered, and based on the creation instruction, the office system can correspondingly provide the template element interface and the template construction interface for the user to display.
The template element interface may include a plurality of hierarchical model libraries, each model library includes a plurality of model elements, and the model elements in the high-level model library are instantiations or collections of the model elements in the low-level model library. The model elements in the model library of the lowest level are the smallest component of the business object template, and the user can finally generate the required business object template by combining, nesting or instantiating the model elements of each level.
The model element may be various elements used to form a business object template, such as a text box, a drop-down menu, or a check box, which is not displayed in this embodiment.
It can be understood that a developer can mine the commonality content of each component element included in each existing business object template at present, construct a universal minimum model element, and flexibly meet the construction requirements of custom templates of different users by defining a rich model element combination mode and an instantiation mode.
Alternatively, the business object may be a conference object, a project object, a task object, or the like. Further, each business object may be further subdivided into new business objects, e.g., project objects may include development project objects and marketing project objects, task objects may include development task objects and promotion task objects, conference objects may include development conference objects, promotion conference objects, and the like.
The template construction interface is specifically an interface for generating a business object template, the interface can be initialized to be a blank canvas or to be a blank business object template, and the like, and a user can conveniently generate and obtain the business object template in a visual mode by selecting one or more layers of model elements from the template element interface and adding the model elements to the template construction interface.
And S120, in response to receiving a selection instruction for the target model element in the template element interface, displaying the target model element in the template construction interface, and updating the template code file according to the target model element.
In this embodiment, when a user selects one or more target model elements in one or more levels of the template library of the template element interface, a selection instruction may be correspondingly triggered to generate, and based on the selection instruction, the target model elements may be correspondingly displayed in the template construction interface. Optionally, the user may drag the target model element in the template element interface to a set position in the template construction interface directly in a drag manner, or may first select the target model element in the template element interface, and the system automatically displays the target model element at the set display position in the template construction interface, so that the user may move the target model element to a matched position in the template construction interface in a drag manner.
And S130, updating a template configuration information set matched with the template code file in response to receiving a template configuration instruction aiming at a target model element in a template construction interface.
In this embodiment, in order to implement user-defined setting of the business object template, the user may input (or select) different template configuration information for different model elements, so as to trigger generation of a matched template configuration instruction. For example, for a certain model element, the user may input (or select) information such as a value range of the model element or an operation (for example, single selection or multiple selection) executable on the model element, and based on the information, a template configuration instruction including the template configuration information may be correspondingly triggered and generated.
Optionally, the user may configure different template configuration information for each target model element in the template construction interface, and further after receiving a template configuration instruction and extracting matched template configuration information from the template configuration instruction, may store the template configuration information of each target model element in a template configuration information set, and pre-designate a mapping relationship between each template configuration information and each standard model code in a template code file. Further, the target business object template can be generated together through the template code file and the template configuration information set.
And S140, responding to receiving a template construction completion instruction, and generating a target business object template according to the template code file and the template configuration information set.
Optionally, after the user triggers the template construction completion instruction by clicking a button or a control, a target business object template may be generated based on the current template code file and the template configuration information set.
The template code file may be an executable file, and when the template code file is executed to a certain standard model code, based on a mapping relationship between a standard model code and template configuration information written in advance in the standard model code, each item of template configuration information required by the standard model code during execution can be read from a template configuration information set, and then after the execution of the template code file is completed, the target business object template is generated.
According to the technical scheme, a plurality of model libraries of different levels are preset, so that various model elements provided by a template demand user can be used by the model library according to actual demands, a service object template required by user-defined construction is realized, a professional programmer is not required to write codes to realize the service object template, a new mode for creating the service object template is provided, various service object templates can be effectively modeled, and development time and generation difficulty of the service object template are greatly reduced.
On the basis of the above embodiments, optionally, the business object template is applied to an office system and used for generating business objects used in the office system. The business object can be an operable business entity in the office system, and the arrangement enriches the existing functions of the office system and further improves the universality and universality of the office system.
Correspondingly, the technical scheme of the embodiment of the invention provides a new mode for creating the business object templates in the intelligent office systems, and can effectively model various business object templates used in the intelligent office systems.
As described above, a business object template is finally realized by the template code, and a user can design and construct the visual business object template only through a visual interface without grasping the code writing skill, but the corresponding template code file needs to be automatically generated in response to receiving various operation instructions of the user.
Alternatively, standard model codes corresponding to the model elements may be preset, and when the user selects to construct a target service object template, an initialized template code file may be first generated for the target service object template. Correspondingly, when a user selects to use a certain model element to construct a business object template, a matched standard model code can be added into the template code file, so that the matched template code file is finally obtained according to all target model elements selected for the business object template.
Fig. 2a is a flowchart of a method for generating a business object template according to an embodiment of the present application. The present embodiment further refines the usage mode of the business object template based on the above embodiments.
Correspondingly, as shown in fig. 2a, the technical solution of the embodiment of the present application may include the following steps:
s210, responding to the received creation instruction of the target business object template, and displaying a template element interface and a template construction interface.
The template element interface comprises a plurality of layers of model libraries, and the model libraries comprise a plurality of model elements.
In this embodiment, the model library may include: component library and attribute library, attribute library's level is higher than the component library.
Wherein each component in the component library is in an atomic form; each attribute in the attribute library is an instance of a component in the component library, and the business object template is an ordered set of attributes.
In this embodiment, the component is the minimum atomic state (non-subdividable state) that constitutes the business object template, and after completing each configuration or input to a component, an attribute is generated, where an attribute is an instance of a component, and the attribute itself also has its own various configurations and inputs, and a business object template is composed of multiple attributes, and after completing each configuration or input in a template, a business object is obtained, where a business object is an instance of a template.
Wherein the type of component may include at least one of: text, date, person and options;
the template configuration information matched with the component includes: a set of component properties and a component performing an operation;
the set of component properties includes at least one of: component name, default value, current value, and value range;
performing an operation on the component includes at least one of: date selection, associate personnel, and single multi-choice settings.
Wherein the type of the attribute comprises at least one of the following: system attributes, named attributes, and anonymous attributes;
the information in the system attribute is the system information which is not disclosed to the user, the information in the named attribute is used for being provided for the template to be called, and the information in the anonymous attribute is not provided for the template to be called.
The system attribute means that the information in the attribute is not disclosed to the user and is only provided for the system to use, for example, information such as template identification information or template storage address; the named attribute refers to one or more items of information in the attribute, which need to be provided for processing on the business object template, or the business object template needs to understand the semantic attribute, for example, one named attribute includes time information, and the business object template needs to execute setting data processing logic (for example, executing reminding operation regularly and the like) according to the time information, so that the information in the named attribute needs to be provided for the business object template. Anonymous attributes can only perform the operations of the component itself, and business object templates do not need to understand their semantics, so various extended attributes can be defined by anonymous attributes.
It should be noted that, each type included in the component library and each type included in the attribute library listed above are only examples, in fact, a developer may extend or update the type of the component included in the component library or the type of the attribute included in the attribute library according to the actual business object template requirement, and similarly, may extend or update the component property set and the operations performed on the component according to the actual situation, which is not limited in this embodiment.
A schematic diagram of a template engine four-level model in an embodiment of the application is shown in fig. 2 b. As shown in FIG. 2b, the components are the most atomic parts of the business model, each component having properties of name, default value, current value, and value range, which are modifiable, according to category. Different components represent different sets of properties and operations that are executable on the components, such as selection dates, associated personnel, and radio options.
The attributes are static atomic representations of the template object reflecting static features of the template object, each attribute being an instance of a component. Attributes include system attributes, named attributes, and anonymous attributes. The famous attribute template understands the semantics of the famous attribute template, and new operations and constraints can be added; anonymous properties can only perform the operation of the component itself, for which templates have no more knowledge.
Templates (i.e., business object templates) are ordered sets of attributes, each attribute being unique within a business object template, representing a feature of the template, such as a template name, creator of the project, participant, introduction of the project, etc., with more features being added to the template by anonymous attributes. From the template clone, a business object may be created that satisfies all of the features of the template.
The four-level model is progressive layer by layer, the latter layer is realized based on the former layer and has more service characteristics, each level can be expanded, more components, attributes and templates are introduced, and the service requirements of intelligent office scenes are flexibly met.
For example, a user may need to create a project template (business object template) that provides patent information, and first, a blank business object template may be created. Then, an anonymous attribute of a component to be added is added in the business object template, a text component is added in the anonymous attribute, and after a name of 'patent name' is set for the text component, an attribute is successfully added in the blank business object template.
And S220, in response to receiving a selection instruction for the target model element in the template element interface, displaying the target model element in the template construction interface, and updating the template code file according to the target model element.
And S230, updating a template configuration information set matched with the template code file in response to receiving a template configuration instruction aiming at a target model element in a template construction interface.
S240, responding to the received template construction completion instruction, and generating a target business object template according to the template code file and the template configuration information set.
In this embodiment, on the basis of an alternative implementation manner (S110-S140) described in fig. 1, after S140, the method further includes the operations of applying the created target business object template, generating a matched target business object, and publishing. I.e., S250-S270.
S250, in response to receiving the application instruction aiming at the target business object template, displaying the target business object template in a business object generation interface.
After a user creates a target business object template, the target business object template can be stored in a local client as collection, and can also be uploaded to a server side of an office system for other users to directly use the template.
When a user needs to use the target business object template to generate a corresponding target business object, an application instruction for generating the target business object template can be triggered by clicking a setting button or a control, and the target business object template can be displayed in a business object generation interface.
S260, generating the target business object in response to receiving a user data input instruction for at least one configurable item in the target business object template.
In this embodiment, the target service object template includes a plurality of configurable input items, for example, the conference time and the conference room name described in the previous embodiment, and after the user inputs personalized user data according to the configurable input items, the user data input instruction may be correspondingly triggered to generate, so that the target service object may be generated.
After the target business object template acquires the user data input instruction, user data input by a user can be extracted from the user data input instruction, and then a target business object meeting the actual requirement of the user can be generated according to the user data.
And S270, issuing the target business object in the office system in response to receiving an issuing instruction matched with the target business object.
After the user constructs the target service object, the target service object can be issued in the office system correspondingly, so that related personnel can acquire required user information from the target service object, or the target service object can carry out corresponding user reminding and the like on the related personnel.
Through the release flow of the target business object, the target business object matched with the target business object template can be simply and conveniently generated, and the target business object can be effectively released in an office system, so that the convenience and operability of the office system are further improved.
According to the technical scheme provided by the embodiment of the application, the template engine four-level model is constructed, so that a user can construct the actually required business object in a visual mode according to the components, the attributes, the templates and the business objects, the construction requirements of various business objects of the user can be basically met, various business object templates of intelligent office can be effectively modeled, and the development time and the generation difficulty of the business object templates are greatly reduced.
Fig. 3 is a flowchart of an implementation of a method for generating a business object template according to an embodiment of the present application, where the operation of displaying a target model element in a template building interface in response to receiving a selection instruction for the target model element in the template element interface and updating a template code file according to the target model element is further refined on the basis of the above embodiments.
As shown in fig. 3, the technical solution of the embodiment of the present application may include the following steps:
And S310, responding to the received creation instruction of the target business object template, displaying a template element interface and a template construction interface, and generating an initialization template code file of the target business object.
Wherein, in S310, in S110 in the foregoing embodiment shown in fig. 1: after the operation of responding to the creation instruction of the target business object template is received, the operation of generating the initialization template code file of the target business object is added.
The template element interface comprises a model library with a plurality of layers, and the model library comprises a plurality of model elements.
After acquiring a creation instruction of a target business object template, the office system firstly generates an initialization template code file corresponding to the target business object. The template code file can be updated correspondingly through the selection or setting of the model elements of each level in the template element interface by a user. The initialization template code file is pre-associated with an initialized set of template configuration information. The template configuration information sets and stores basic configuration information corresponding to the template code file in an initialized mode.
S320, in response to receiving an operation instruction for dragging the target model element in the template element interface to the template construction interface, identifying a dragging position in the template construction interface.
S330, acquiring element backups of the target model elements, and displaying the element backups at the dragging positions.
Wherein S320 and S330 are as in S120 in the foregoing embodiment shown in fig. 1: further refinement of the operation of displaying a target model element in a template build interface in response to receiving a selection instruction for the target model element in the template element interface.
In this embodiment, in order to further simplify the construction operation of the business object template of the user, a manner of constructing the target business object template in a drag manner is provided. After the user selects to create the target business object template, the office system firstly displays the template element interface and the template construction interface to the user at the same time, for example, the template element interface and the template construction interface are arranged left and right or are arranged up and down to the user.
When the user selects to use a certain template element in the template element interface to construct the target business object template, the template element can be moved from the template element interface to a set position of the board construction interface in a dragging mode, namely, a dragging position.
Thereafter, elements of the target model element may be backed up for display at the drag location. The element backup specifically refers to a backup model element identical to a target model element, and because each model element in the model library can be repeatedly used in the same business object template, each time a user selects an added model element in the template construction interface, the model element is a backup of the model element in the template element interface.
S340, obtaining a pre-constructed standard model code matched with the target model element, and adding the standard model code into the template code file.
Wherein S340 is as in S120 in the foregoing embodiment shown in fig. 1: further refinement of the operation "update template code file from object model element".
And S350, updating a template configuration information set matched with the template code file in response to receiving a template configuration instruction aiming at a target model element in a template construction interface.
S360, responding to receiving a template construction completion instruction, and generating a target business object template according to the template code file and the template configuration information set.
According to the technical scheme provided by the embodiment of the application, the business object template is constructed in a mode of dragging the template elements, so that the template construction operation of a user is further simplified, and the template construction time is further saved.
Fig. 4 is a schematic structural diagram of a device for generating a business object template according to an embodiment of the present application, where, as shown in fig. 4, the device includes: an interface display module 410, a template code file update module 420, a template configuration information set update module 430, and a target business object template generation module 440.
The interface display module 410 is configured to display a template element interface and a template construction interface in response to receiving a creation instruction of the target business object template, where the template element interface includes a model library with multiple levels, and the model library includes multiple model elements.
The template code file updating module 420 is configured to display the target model element in the template construction interface in response to receiving a selection instruction for the target model element in the template element interface, and update the template code file according to the target model element.
And the template configuration information set updating module 430 is used for updating the template configuration information set matched with the template code file in response to receiving a template configuration instruction aiming at a target model element in the template construction interface.
And the target business object template generating module 440 is configured to generate a target business object template according to the template code file and the template configuration information set in response to receiving a template construction completion instruction.
According to the technical scheme, a plurality of model libraries of different levels are preset, so that various model elements provided by a template demand user can be used by the model library according to actual demands, a service object template required by user-defined construction is realized, professional programmers are not required to write codes to realize the service object template, a novel mode for creating the service object template in an intelligent office system is provided, various service object templates of intelligent office can be effectively modeled, and development time and generation difficulty of the service object template are greatly reduced.
On the basis of the above embodiments, the business object template may be applied to an office system to generate a business object used in the office system.
On the basis of the above embodiments, the method may further include:
the template application triggering module is used for responding to the received application instruction aiming at the target business object template after generating the target business object template according to the template code file and the template configuration information set, and displaying the target business object template in a business object generation interface;
a target business object generation module for generating the target business object in response to receiving a user data input instruction for at least one configurable item in the target business object template;
and the target business object issuing module is used for issuing the target business object in the office system in response to receiving an issuing instruction matched with the target business object.
On the basis of the above embodiments, the method may further include:
an initialization code file creating module, configured to construct an initialization template code file of a target service object after responding to a creation instruction of the target service object template;
The template code file updating module is specifically used for: and obtaining a pre-constructed standard model code matched with the target model element, and adding the standard model code into the template code file.
On the basis of the above embodiments, the template code file updating module may specifically be used for:
identifying a drag position in a template construction interface in response to receiving an operation instruction for dragging a target model element in the template element interface to the template construction interface;
and acquiring the element backup of the target model element, and displaying the element backup at the dragging position.
On the basis of the above embodiments, the model library may include: the system comprises a component library and an attribute library, wherein the hierarchy of the attribute library is higher than that of the component library;
each component in the component library is in an atomic form; each attribute in the attribute library is an instance of a component in the component library; the business object templates are ordered sets of attributes.
On the basis of the above embodiments, the types of the components may include at least one of the following: text, date, person and options;
template configuration information matched to the component may include: a set of component properties and a component performing an operation;
The set of component properties may include at least one of: component name, default value, current value, and value range;
performing an operation on the component may include at least one of: date selection, associate personnel, and single multi-choice settings.
On the basis of the above embodiments, the type of the attribute may include at least one of: system attributes, named attributes, and anonymous attributes;
the information in the system attribute is the system information which is not disclosed to the user, the information in the named attribute is used for being provided for the template to be called, and the information in the anonymous attribute is not provided for the template to be called.
The device for generating the business object template provided by the embodiment of the application can execute the method for generating the business object template provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method.
According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
As shown in fig. 5, a block diagram of an electronic device for implementing a method for generating a business object template according to any of the embodiments of the present application is shown. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the applications described and/or claimed herein.
As shown in fig. 5, the electronic device includes: one or more processors 501, memory 502, and interfaces for connecting components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 501 is illustrated in fig. 5.
Memory 502 is a non-transitory computer readable storage medium provided by the present application. The memory stores instructions executable by at least one processor to cause the at least one processor to execute the method for generating a business object template provided by the embodiment of the application. The non-transitory computer-readable storage medium of the present application stores computer instructions for causing a computer to execute the method for generating a business object template provided by the embodiment of the present application.
The memory 502 is used as a non-transitory computer readable storage medium for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the method for generating a business object template in the embodiment of the present application (e.g., the interface display module 410, the template code file update module 420, the template configuration information set update module 430, and the target business object template generation module 440 shown in fig. 4). The processor 501 executes various functional applications of the server and data processing by running non-transitory software programs, instructions, and modules stored in the memory 502, that is, implements the method for generating a business object template in the above-described method embodiment.
Memory 502 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created by use of an electronic device or the like for implementing the method of generating a business object template of any of the embodiments of the present application. In addition, memory 502 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 502 may optionally include memory remotely located with respect to the processor 501, which may be connected via a network to an electronic device for implementing the method of generating a business object template of any of the embodiments of the present application. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device for implementing the method for generating the business object template according to any embodiment of the present application may further include: an input device 503 and an output device 504. The processor 501, memory 502, input devices 503 and output devices 504 may be connected by a bus or otherwise, for example in fig. 5.
The input device 503 may receive input numeric or character information and generate key signal inputs related to user settings and function controls of an electronic device, such as a touch screen, a keypad, a mouse, a trackpad, a touch pad, a pointer stick, one or more mouse buttons, a trackball, a joystick, etc., used to implement the method of generating a business object template of any of the embodiments of the present application. The output devices 504 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASIC (application specific integrated circuit), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
These computing programs (also referred to as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme, a plurality of model libraries of different levels are preset, so that various model elements provided by a template demand user can be used by the model library according to actual demands, a service object template required by user-defined construction is realized, professional programmers are not required to write codes to realize the service object template, a novel mode for creating the service object template in an intelligent office system is provided, various service object templates of intelligent office can be effectively modeled, and development time and generation difficulty of the service object template are greatly reduced.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the disclosed embodiments are achieved, and are not limited herein.
The above embodiments do not limit the scope of the present application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the scope of the present application.

Claims (14)

1. A method of generating a business object template, comprising:
in response to receiving a creation instruction of a target business object template, displaying a template element interface and a template construction interface, wherein the template element interface comprises a plurality of levels of model libraries, and the model libraries comprise a plurality of model elements;
in response to receiving a selection instruction for a target model element in the template element interface, displaying the target model element in the template construction interface, and updating a template code file according to the target model element;
Updating a template configuration information set matched with the template code file in response to receiving a template configuration instruction for a target model element in a template construction interface;
responding to a received template construction completion instruction, and generating a target business object template according to the template code file and the template configuration information set;
wherein the model library comprises: the system comprises a component library and an attribute library, wherein the hierarchy of the attribute library is higher than that of the component library;
each component in the component library is in an atomic form; each attribute in the attribute library is an instance of a component in the component library; the business object template is an ordered set composed of attributes;
firstly, setting up an attribute of a set type of a component to be added in a blank business object template, and after adding the component of the set type in the attribute of the component to be added, completing the configuration of the component name of the component, namely, successfully adding an attribute in the blank business object template.
2. The method of claim 1, wherein the business object template is applied in an office system for generating business objects used in the office system.
3. The method of claim 2, after generating a target business object template from the template code file and the set of template configuration information, further comprising:
in response to receiving an application instruction for the target business object template, displaying the target business object template in a business object generation interface;
generating the target business object in response to receiving a user data input instruction for at least one configurable item in the target business object template;
and in response to receiving an issuing instruction matched with the target business object, issuing the target business object in the office system.
4. The method of claim 1, further comprising, in response to receiving a create instruction for the target business object template:
generating an initialization template code file of the target business object;
updating the template code file according to the target model element, comprising:
and obtaining a pre-constructed standard model code matched with the target model element, and adding the standard model code into the template code file.
5. The method of claim 1, wherein displaying the target model element in the template building interface in response to receiving a selection instruction for the target model element in the template element interface comprises:
Identifying a drag position in a template construction interface in response to receiving an operation instruction for dragging a target model element in the template element interface to the template construction interface;
and acquiring the element backup of the target model element, and displaying the element backup at the dragging position.
6. The method of claim 1, wherein the type of component comprises at least one of: text, date, person and options;
the template configuration information matched with the component includes: a set of component properties and a component performing an operation;
the set of component properties includes at least one of: component name, default value, current value, and value range;
performing an operation on the component includes at least one of: date selection, associate personnel, and single multi-choice settings.
7. The method of claim 1, wherein the type of attribute comprises at least one of: system attributes, named attributes, and anonymous attributes;
the information in the system attribute is the system information which is not disclosed to the user, the information in the named attribute is used for being provided for the template to be called, and the information in the anonymous attribute is not provided for the template to be called.
8. A business object template generation device, comprising:
the interface display module is used for responding to the received creation instruction of the target business object template, displaying a template element interface and a template construction interface, wherein the template element interface comprises a plurality of levels of model libraries, and the model libraries comprise a plurality of model elements;
the template code file updating module is used for displaying the target model element in the template construction interface in response to receiving a selection instruction for the target model element in the template element interface and updating the template code file according to the target model element;
the template configuration information set updating module is used for updating the template configuration information set matched with the template code file in response to receiving a template configuration instruction aiming at a target model element in the template construction interface;
the target business object template generation module is used for responding to the received template construction completion instruction and generating a target business object template according to the template code file and the template configuration information set;
wherein the model library comprises: the system comprises a component library and an attribute library, wherein the hierarchy of the attribute library is higher than that of the component library;
each component in the component library is in an atomic form; each attribute in the attribute library is an instance of a component in the component library; the business object template is an ordered set composed of attributes;
Firstly, setting up an attribute of a set type of a component to be added in a blank business object template, and after adding the component of the set type in the attribute of the component to be added, completing the configuration of the component name of the component, namely, successfully adding an attribute in the blank business object template.
9. The apparatus of claim 8, the business object template applied in an office system for generating business objects for use in the office system.
10. The apparatus of claim 9, further comprising:
the template application triggering module is used for responding to the received application instruction aiming at the target business object template after generating the target business object template according to the template code file and the template configuration information set, and displaying the target business object template in a business object generation interface;
a target business object generation module for generating the target business object in response to receiving a user data input instruction for at least one configurable item in the target business object template;
and the target business object issuing module is used for issuing the target business object in the office system in response to receiving an issuing instruction matched with the target business object.
11. The apparatus of claim 8, further comprising:
an initialization code file creating module, configured to construct an initialization template code file of a target service object after responding to a creation instruction of the target service object template;
the template code file updating module is specifically used for: and obtaining a pre-constructed standard model code matched with the target model element, and adding the standard model code into the template code file.
12. The apparatus of claim 8, wherein the template code file updating module is specifically configured to:
identifying a drag position in a template construction interface in response to receiving an operation instruction for dragging a target model element in the template element interface to the template construction interface;
and acquiring the element backup of the target model element, and displaying the element backup at the dragging position.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of generating a business object template of any one of claims 1-7.
14. A non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the method of generating a business object template of any one of claims 1-7.
CN202010576341.9A 2020-06-22 2020-06-22 Method, device, equipment and medium for generating business object template Active CN111767026B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010576341.9A CN111767026B (en) 2020-06-22 2020-06-22 Method, device, equipment and medium for generating business object template

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010576341.9A CN111767026B (en) 2020-06-22 2020-06-22 Method, device, equipment and medium for generating business object template

Publications (2)

Publication Number Publication Date
CN111767026A CN111767026A (en) 2020-10-13
CN111767026B true CN111767026B (en) 2023-11-03

Family

ID=72721860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010576341.9A Active CN111767026B (en) 2020-06-22 2020-06-22 Method, device, equipment and medium for generating business object template

Country Status (1)

Country Link
CN (1) CN111767026B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112672180B (en) * 2020-12-22 2023-04-25 广州博冠信息科技有限公司 Live interface element configuration method, device and storage medium
CN112685040A (en) * 2021-01-22 2021-04-20 爱驰汽车有限公司 Method, device, equipment and storage medium for generating interface file in android system
CN113407284A (en) * 2021-06-25 2021-09-17 远光软件股份有限公司 Navigation interface generation method and device, storage medium and electronic equipment
CN113590124A (en) * 2021-08-09 2021-11-02 浙江网商银行股份有限公司 Target object processing method and device
CN114005055A (en) * 2021-10-22 2022-02-01 深圳市商汤科技有限公司 Method, device and equipment for generating algorithm application element and computer readable storage medium
CN114661010B (en) * 2022-03-17 2023-05-09 北京合思信息技术有限公司 Driving detection processing method based on artificial intelligence and cloud platform
CN115857898B (en) * 2023-02-25 2023-05-23 武汉万云网络科技有限公司 Application system construction and operation method and device
CN116701811B (en) * 2023-08-02 2024-02-27 腾讯科技(深圳)有限公司 Webpage processing method, device, equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106992988A (en) * 2017-05-11 2017-07-28 浙江工商大学 A kind of cross-domain anonymous resource sharing platform and its implementation
CN109614095A (en) * 2018-12-07 2019-04-12 北京金山云网络技术有限公司 The method of user's Custom component, the generation method of platform code and device
CN109614097A (en) * 2018-12-07 2019-04-12 北京金山云网络技术有限公司 Generation method, device and the server of platform code
CN110007916A (en) * 2018-12-06 2019-07-12 阿里巴巴集团控股有限公司 Interface rendering method, device and the server of operation system
CN110968309A (en) * 2019-10-15 2020-04-07 京东数字科技控股有限公司 Template generation method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8185512B2 (en) * 2008-12-04 2012-05-22 International Business Machines Corporation Prioritization of search requests using search templates

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106992988A (en) * 2017-05-11 2017-07-28 浙江工商大学 A kind of cross-domain anonymous resource sharing platform and its implementation
CN110007916A (en) * 2018-12-06 2019-07-12 阿里巴巴集团控股有限公司 Interface rendering method, device and the server of operation system
CN109614095A (en) * 2018-12-07 2019-04-12 北京金山云网络技术有限公司 The method of user's Custom component, the generation method of platform code and device
CN109614097A (en) * 2018-12-07 2019-04-12 北京金山云网络技术有限公司 Generation method, device and the server of platform code
CN110968309A (en) * 2019-10-15 2020-04-07 京东数字科技控股有限公司 Template generation method and device, electronic equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Pei Wu ; Xian-Bin Cao ; Yan-Wu Xu ; Hong Qiao.Representative Template Set Generation Method for Pedestrian Detection.IEEE.2008,全文. *
Spring框架在图形用户界面中的应用;李建成;李琦;王菲;;计算机与数字工程(第03期);全文 *
基于业务模型和界面模型的代码生成工具;张晶;黄小锋;;电脑与信息技术(第02期);全文 *

Also Published As

Publication number Publication date
CN111767026A (en) 2020-10-13

Similar Documents

Publication Publication Date Title
CN111767026B (en) Method, device, equipment and medium for generating business object template
US7577909B2 (en) Flexible management user interface from management models
CN108292208B (en) Parallel front-end application and workflow development
KR102451375B1 (en) Automatic layout of visualizations based on contract maps
US20130179208A1 (en) Workflow tasks
US11194050B2 (en) Processing unit, software and method for controlling interactive components
US9703443B2 (en) Method and system for creating a free-form visual user interface element
CN111708520B (en) Application construction method and device, electronic equipment and storage medium
US20200142953A1 (en) Enterprise Form Dependency Visualization and Management
CN108089879B (en) Incremental updating method, equipment and programmable equipment
WO2020004156A1 (en) Display control device, display control method, and display control program
CN114254602A (en) Design system and storage medium for custom forms
US20160231876A1 (en) Graphical interaction in a touch screen user interface
CN111610972B (en) Page generation method, device, equipment and storage medium
CN114036443A (en) Page generation method and device
CN111061743B (en) Data processing method and device and electronic equipment
US7831921B2 (en) Navigation connection points
CN111782181A (en) Code generation method and device, electronic equipment and storage medium
CN114741071A (en) Application construction method and device
CN112035022B (en) Reading page style generation method and device
US11520473B2 (en) Switch control for animations
KR102184162B1 (en) System and method for producing reactive webtoons
CN112464120A (en) Data visualization display method and device, electronic equipment and storage medium
CN113748406B (en) Task management through soft keyboard applications
CN111625379B (en) Information processing method and device, electronic equipment and readable 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