CN109491646B - Message entry method and device, electronic equipment and readable medium - Google Patents

Message entry method and device, electronic equipment and readable medium Download PDF

Info

Publication number
CN109491646B
CN109491646B CN201811215883.2A CN201811215883A CN109491646B CN 109491646 B CN109491646 B CN 109491646B CN 201811215883 A CN201811215883 A CN 201811215883A CN 109491646 B CN109491646 B CN 109491646B
Authority
CN
China
Prior art keywords
logic
basic
component
target
configuration
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
CN201811215883.2A
Other languages
Chinese (zh)
Other versions
CN109491646A (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 ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201811215883.2A priority Critical patent/CN109491646B/en
Publication of CN109491646A publication Critical patent/CN109491646A/en
Application granted granted Critical
Publication of CN109491646B publication Critical patent/CN109491646B/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/31Programming languages or programming paradigms
    • G06F8/313Logic programming, e.g. PROLOG programming language
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

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

Abstract

The embodiment of the disclosure discloses a message entry method, a message entry device, electronic equipment and a readable medium. The method comprises the following steps: generating form items of the target assembly according to the target assembly selected from the basic assemblies and the configured basic logic and business logic of the target assembly to obtain form configuration comprising the form items; and rendering the target assembly associated with the form item according to the basic logic and the service logic of the form item in the form configuration to obtain the input message. By adopting the technical scheme provided by the disclosure, the message information can be rapidly input, and different service logics of different messages can be realized.

Description

Message entry method and device, electronic equipment and readable medium
Technical Field
The embodiment of the disclosure relates to the technical field of information automation, and in particular relates to a message entry method and device, an electronic device and a readable medium.
Background
For messages with different types of positions, the required information is different, a large number of labels need to be selected, and for each message, the information of the current type and various labels needs to be judged to determine whether to push the message to a user. However, because the number of the edition bits and the number of the labels are continuously increased, the original message entry system is quite huge, and in the process of changing or adding the messages, the historical burden is too heavy, and all functions can not be returned. For example, when a message is newly added, a large number of discrimination conditions need to be modified, and in the step of testing the newly added message, only the current flow can be tested, and it is impossible to test all the flows once.
Since there must be many processes, the process is different for each version. For decoupling, the current method for solving the problem is to use an enumeration mode, where one position is used for one flow, which is equivalent to that each position is used for its own flow. However, such a method has a disadvantage that a large amount of code is copied, and each time one code is added, a set of code is copied and then the content of the code is modified, so that the maintenance cost is high and the method is troublesome.
Disclosure of Invention
The embodiment of the disclosure provides a message entry method, a message entry device, an electronic device and a readable medium, which can realize rapid entry of message information and realize different service logics of different messages.
In a first aspect, an embodiment of the present disclosure provides a message entry method, where the method includes:
generating form items of the target assembly according to the target assembly selected from the basic assemblies and the configured basic logic and business logic of the target assembly to obtain form configuration comprising the form items;
and rendering the target assembly associated with the form item according to the basic logic and the service logic of the form item in the form configuration to obtain the input message.
Further, before the target component is selected from the basic components, the method further includes:
making a base class for the basic component, and determining the basic logic and the business logic of the basic component;
and setting the basic logic and the business logic in a logic panel of an editor for use.
Further, before generating a form entry of the target component according to the target component selected from each basic component and the configured basic logic and business logic of the target component, the method further includes:
selecting target components required by the form through all basic components included in a logic panel of the editor;
and acquiring the basic logic and the business logic of each target assembly through the logic panel.
Further, rendering the target component associated with the form item according to the basic logic and the business logic of the form item in the form configuration includes:
acquiring basic logic of a form item in the form configuration and configuration parameters of service logic, wherein the configuration parameters of the basic logic comprise at least one of component styles, component data and component verification, and the configuration parameters of the service logic comprise component service logic hooks;
and importing the basic logic of the form item and the configuration parameters of the business logic into the target assembly associated with the form item, and rendering the target assembly associated with the form item.
Further, grouping the component service logic hooks according to mounting positions;
rendering the target component associated with the form item, including:
and traversing each component service logic hook in the group of service logic hooks if the current position is the mounting position of any group of service logic hooks in the life cycle of the target component.
In a second aspect, an embodiment of the present disclosure further provides a message entry apparatus, where the apparatus includes:
the form configuration acquisition module is used for generating form items of the target assembly according to the target assembly selected from the basic assemblies and the configured basic logic and business logic of the target assembly to obtain form configuration comprising the form items;
and the message entry module is used for rendering the target component associated with the form item according to the basic logic and the service logic of the form item in the form configuration to obtain an entered message.
Further, the apparatus further comprises:
the basic logic and business logic determining module is used for making a base class for the basic assembly and determining the basic logic and business logic of the basic assembly;
and the editor setting unit is used for setting the basic logic and the business logic in a logic panel of the editor for use.
Further, the apparatus further comprises:
the target component determination module is used for selecting target components required by the form through all basic components included in a logic panel of the editor;
and the logic configuration module is used for acquiring the basic logic and the business logic of each target assembly through the logic panel.
Further, the message entry module includes:
a logic parameter obtaining unit, configured to obtain a basic logic of a form item in the form configuration and a configuration parameter of a service logic, where the configuration parameter of the basic logic includes at least one of a component style, component data, and component verification, and the configuration parameter of the service logic includes a component service logic hook;
and the target component rendering unit is used for importing the basic logic of the form item and the configuration parameters of the business logic into the target component associated with the form item and rendering the target component associated with the form item.
Further, grouping the component service logic hooks according to mounting positions;
the target component rendering unit includes:
and the target component rendering subunit is used for traversing each component service logic hook in the group of service logic hooks if the current position is the mounting position of any group of service logic hooks in the life cycle of the target component.
In a third aspect, the present disclosure provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the message entry method according to the present disclosure when executing the computer program.
In a fourth aspect, the disclosed embodiments provide a computer-readable medium, on which a computer program is stored, which when executed by a processor implements a message entry method as described in the disclosed embodiments.
According to the technical scheme provided by the embodiment of the disclosure, the form item of the target component is generated according to the target component selected from each basic component and the basic logic and the business logic of the configured target component, so that the form configuration comprising each form item is obtained; and rendering the target assembly associated with the form item according to the basic logic and the service logic of the form item in the form configuration to obtain the input message. By adopting the technical scheme provided by the disclosure, the message information can be rapidly input, and different service logics of different messages can be realized.
Drawings
Fig. 1 is a flowchart of a message entry method provided in a first embodiment of the present disclosure;
FIG. 2 is a message entry schematic provided by the present disclosure;
FIG. 3 is a message entry diagram provided by the present disclosure;
fig. 4 is a flowchart of a message entry method provided in an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a message entry apparatus provided in the second embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the disclosure and are not limiting of the disclosure. It should be further noted that, for the convenience of description, only some of the structures relevant to the present disclosure are shown in the drawings, not all of them.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
In the following embodiments, optional features and examples are provided in each embodiment, and various features described in the embodiments may be combined to form a plurality of alternatives, and each numbered embodiment should not be regarded as only one technical solution.
Example one
Fig. 1 is a flowchart of a message entry method provided in an embodiment of the present disclosure, where the present embodiment is applicable to a message entry situation, and the method may be executed by a message entry apparatus provided in the embodiment of the present disclosure, where the apparatus may be implemented by software and/or hardware, and may be integrated in an electronic device such as a client, a terminal, and a server that performs message entry.
As shown in fig. 1, the message entry method includes:
s110, generating form items of the target assembly according to the target assembly selected from the basic assemblies and the configured basic logic and business logic of the target assembly to obtain form configuration comprising the form items.
Wherein the basic components can be input boxes, tag selection, check boxes, cells, pull-down options, time period selection, and the like. During the entering process of a message, one basic component can be involved, and a plurality of basic components can be involved. The target component may be moved to the panel position by detecting a pointing operation by the user or a drag operation by dragging to the panel, or the like. After the target component is determined, the logic of the target component needs to be configured, wherein the logic comprises basic logic and business logic. The basic logic may be logic related to attributes, data, and checks of the target component, and the business logic may be information of logic that implements different functions between the target component and other basic components. For example, when the current target component is executed to a certain position, special setting is needed to execute a certain method.
In one embodiment, all methods involved in the business logic may be packaged in the form of a configuration file, so that when a target component needs to execute a certain method, the corresponding method may be found and executed by traversing all packaged methods in the configuration file. The method has the advantages that when new business logic needs to be added, only corresponding methods need to be added to the original configuration file, and when the target component is configured, hooks are added at proper positions, and the names of the methods executed by the hooks are the same as the names of the newly added methods. All logics of the whole target assembly do not need to be recoded, redundant code copying work is omitted, and the message entry flow is simplified.
Each target component corresponds to one form item, and after all target components are configured, all form items of the target components can be connected to form a form configuration list, namely, form configuration.
In this embodiment, preferably, before the target component selected from the basic components, the method further includes: making a base class for the basic component, and determining the basic logic and the business logic of the basic component; and setting the basic logic and the business logic in a logic panel of an editor for use. After the base class is performed on all the basic components, the basic logics of all the components can be determined, and the basic logics can also be understood as general logics and business logics other than the basic logics, namely the special logics of each basic component. The advantage of this arrangement is that different service requirements can be met. After the base logic and business logic are determined, options for the base logic and business logic can be set in an edit panel of the visual editor for use when a user enters a message.
And S120, rendering the target assembly associated with the form item according to the basic logic and the service logic of the form item in the form configuration to obtain the input message.
And rendering the target assembly corresponding to the form item according to the basic logic and the business logic in the form configuration. The logged message is obtained. The rendering process can be understood as an entry process of the target component, and when the whole form configuration rendering is finished, the entry of the whole message is finished.
In the life cycle of each component, the corresponding service can be executed according to the preset basic component and the service component. If the business logic of one input box is password verification, the password verification is required to be carried out on the information input by the user besides the information input by the user is acquired in the text box, and if the verification fails, other components are combined to display that the password input by the user is wrong, the user cannot log in, and the like.
According to the technical scheme provided by the embodiment of the disclosure, the form item of the target component is generated according to the target component selected from each basic component and the basic logic and the business logic of the configured target component, so that the form configuration comprising each form item is obtained; and rendering the target assembly associated with the form item according to the basic logic and the service logic of the form item in the form configuration to obtain the input message. By adopting the technical scheme provided by the disclosure, the message information can be rapidly input, and different service logics of different messages can be realized.
On the basis of the above technical solution, preferably, before the target component selected from the basic components, the method further includes: making a base class for the basic component, and determining the basic logic and the business logic of the basic component; and setting the basic logic and the business logic in a logic panel of an editor for use. After the base class is performed on all the basic components, the basic logics of all the components can be determined, and the basic logics can also be understood as general logics and business logics other than the basic logics, namely the special logics of each basic component. The advantage of this arrangement is that different service requirements can be met. After the base logic and business logic are determined, options for the base logic and business logic can be set in an edit panel of the visual editor for use when a user enters a message.
On the basis of the foregoing technical solutions, preferably, before generating the form entry of the target component according to the target component selected from the basic components and the configured basic logic and business logic of the target component, the method further includes: selecting target components required by the form through all basic components included in a logic panel of the editor; and acquiring the basic logic and the business logic of each target assembly through the logic panel. The editing panel of the editor can be used for dragging the target assembly, and basic logic and business logic configuration are carried out on the target assembly after dragging. In this embodiment, dragging is only taken as an example, and the determination of the target component from all the basic components may be performed in other manners, such as clicking, specifically, the determination and the modification may be performed according to the development of an editor and the use habit of a user. In the logic panel, the basic logic and the business logic of the determined target component can be configured by clicking and typing, wherein the basic logic can be automatically generated according to the type of the current target component, the business logic can be determined by acquiring the mode selected or typed by a user, specifically, the business logic configuration is realized in the form of hooks, and the configuration parameters of the hooks can comprise the positions of the hooks in the life cycle of the target component and specific methods. For example, a corresponding method is configured at the position of before change, so that the corresponding method is executed before change. The technical scheme has the advantages that the message can be input through the visual editor, the process of inputting the message by a user is simplified, the basic component and the business component can be input, and corresponding form configuration can be formed according to the requirements of the user.
Fig. 2 is a message entry diagram provided by the present disclosure. As shown in fig. 2, in the message entry interface of the visual editor, the basic component may be selected from the left side of the editing panel, and specifically may include, but is not limited to, an input box, a tab selection, a check box, a radio selection, a drop-down selection, a time slot selection, and the like. The base component can be moved to the middle of the panel for detailed design by dragging or clicking, for example, a time period selection component can be selected at the dropping time of the message, and the specific dropping time of the message is determined according to the selection. On the right side of the edit panel, basic logic and business logic of the target component can be configured, wherein the basic logic comprises at least one of attributes, data and checks, and the business component comprises configuration of positions of hooks in the hooks and execution methods. It should be noted that there may be a case where the basic logic of the target component does not need to be configured manually by the user, and this case may be regarded as a case where the basic logic of all components is configured in common, such as the attribute, data, verification, and the like of the components may not need to be configured.
Fig. 3 is a message entry diagram provided by the present disclosure. As shown in fig. 3, if a drop information message is entered, the drop information message may be an operation interface in a drop information entry system, where the drop information entry system may be a system separate from the visual editor, and the message may be entered using the message form configuration obtained by the visual editor and according to the form configuration.
Fig. 4 is a flowchart of a message entry method according to an embodiment of the present disclosure. The technical scheme is embodied on the basis of various optional schemes in the technical scheme. The concrete optimization is as follows: according to the basic logic and the business logic of the form item in the form configuration, the target assembly associated with the form item is rendered, and the method comprises the following steps: acquiring basic logic of a form item in the form configuration and configuration parameters of service logic, wherein the configuration parameters of the basic logic comprise at least one of component styles, component data and component verification, and the configuration parameters of the service logic comprise component service logic hooks; and importing the basic logic of the form item and the configuration parameters of the business logic into the target assembly associated with the form item, and rendering the target assembly associated with the form item.
As shown in fig. 4, the message entry method includes:
s410, generating form items of the target assembly according to the target assembly selected from the basic assemblies and the basic logic and the business logic of the configured target assembly to obtain form configuration comprising the form items.
S420, obtaining basic logic of the form item in the form configuration and configuration parameters of business logic, wherein the configuration parameters of the basic logic comprise at least one of component styles, component data and component verification, and the configuration parameters of the business logic comprise component business logic hooks.
Wherein, in the form of configuration parameters, the basic logic and the business logic are stored. Wherein the base logic includes at least one of component styles, build data, and component checks. The configuration parameters of the business logic include business logic hooks. The service logic hook can include parameters of two aspects of a hook mounting position and an execution method, and if the current input message also needs other parameters, corresponding setting can be carried out on a configuration interface of the hook.
And S430, importing the basic logic of the form item and the configuration parameters of the business logic into the target assembly associated with the form item, and rendering the target assembly associated with the form item.
The target component associated with the form item is the form item generated by the target component, and the target component and the form item are in one-to-one correspondence. In the process of rendering the target assembly, the target assembly is determined firstly, and then the rendering of the target assembly is completed according to the configuration parameters of the basic logic and the business logic of the form item in the form configuration and in combination with the preset configuration file.
The technical scheme has the advantages that the rendering of the target component can be completed according to the basic logic parameters and the business logic parameters of the target component, and the message input is realized.
In the technical solution, preferably, the component service logic hooks are grouped according to mounting positions; rendering the target component associated with the form item, including: and traversing each component service logic hook in the group of service logic hooks if the current position is the mounting position of any group of service logic hooks in the life cycle of the target component. In the lifecycle of the target component, there may be a plurality of mount positions of the service logic hook, and there may also be a plurality of hooks mounted at each mount position. Therefore, the scheme provides a way of partitioning the service logic hooks according to the mounting positions, namely traversing each component service logic hook in any group of service logic hooks if the current position is the mounting position of the service logic hook. The method has the advantages that the traversing speed of the service logic hooks can be increased, and all the hooks do not need to be traversed at the position where each hook is mounted.
Example two
Fig. 5 is a schematic structural diagram of a message entry apparatus provided in the second embodiment of the present disclosure. As shown in fig. 5, the message entry apparatus includes:
a form configuration obtaining module 510, configured to generate a form item of the target component according to the target component selected from the basic components and the basic logic and the business logic of the configured target component, so as to obtain a form configuration including the form items;
and the message entry module 520 is configured to render the target component associated with the form item according to the basic logic and the service logic of the form item in the form configuration, so as to obtain an entered message.
According to the technical scheme provided by the embodiment of the disclosure, the form item of the target component is generated according to the target component selected from each basic component and the basic logic and the business logic of the configured target component, so that the form configuration comprising each form item is obtained; and rendering the target assembly associated with the form item according to the basic logic and the service logic of the form item in the form configuration to obtain the input message. By adopting the technical scheme provided by the disclosure, the message information can be rapidly input, and different service logics of different messages can be realized.
On the basis of the foregoing embodiments, optionally, the apparatus further includes: the basic logic and business logic determining module is used for making a base class for the basic assembly and determining the basic logic and business logic of the basic assembly; and the editor setting unit is used for setting the basic logic and the business logic in a logic panel of the editor for use.
On the basis of the foregoing embodiments, optionally, the apparatus further includes: the target component determination module is used for selecting target components required by the form through all basic components included in a logic panel of the editor; and the logic configuration module is used for acquiring the basic logic and the business logic of each target assembly through the logic panel.
On the basis of the foregoing embodiments, optionally, the message entry module 520 includes: a logic parameter obtaining unit, configured to obtain a basic logic of a form item in the form configuration and a configuration parameter of a service logic, where the configuration parameter of the basic logic includes at least one of a component style, component data, and component verification, and the configuration parameter of the service logic includes a component service logic hook; and the target component rendering unit is used for importing the basic logic of the form item and the configuration parameters of the business logic into the target component associated with the form item and rendering the target component associated with the form item.
On the basis of the foregoing embodiments, optionally, the component service logic hooks are grouped according to mounting positions; the target component rendering unit includes: and the target component rendering subunit is used for traversing each component service logic hook in the group of service logic hooks if the current position is the mounting position of any group of service logic hooks in the life cycle of the target component.
The product can execute the method provided by any embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE III
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. Referring now to FIG. 6, a block diagram of an electronic device 600 suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, electronic devices such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle electronic devices (e.g., in-vehicle navigation electronic devices), and the like, and stationary electronic devices such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, the processes described above with reference to the flow diagrams may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable medium or any combination of the two. A computer readable medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: generating form items of the target assembly according to the target assembly selected from the basic assemblies and the configured basic logic and business logic of the target assembly to obtain form configuration comprising the form items; and rendering the target assembly associated with the form item according to the basic logic and the service logic of the form item in the form configuration to obtain the input message.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: generating form items of the target assembly according to the target assembly selected from the basic assemblies and the configured basic logic and business logic of the target assembly to obtain form configuration comprising the form items; and rendering the target assembly associated with the form item according to the basic logic and the service logic of the form item in the form configuration to obtain the input message.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. The names of the modules and units do not limit the modules and units in some cases.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (10)

1. A message entry method, comprising:
generating form items of the target assembly according to the target assembly selected from the basic assemblies and the configured basic logic and business logic of the target assembly to obtain form configuration comprising the form items;
rendering a target assembly associated with the form item according to the basic logic and the service logic of the form item in the form configuration to obtain an input message;
the basic logic comprises attributes, data and verification of a target component, and the business logic is information of logic for realizing different functions between the target component and other basic components; the target component is a basic component which is moved to a panel position through user operation; the basic logic is automatically generated according to the type of the current target assembly, and the business logic is determined by acquiring the mode selected or typed by the user.
2. The method of claim 1, wherein the target component selected from the base components is preceded by:
making a base class for the basic component, and determining the basic logic and the business logic of the basic component;
and setting the basic logic and the business logic in a logic panel of an editor for use.
3. The method of claim 2, wherein before generating the form entry of the target component according to the target component selected from the basic components and the configured basic logic and business logic of the target component, further comprising:
selecting target components required by the form through all basic components included in a logic panel of the editor;
and acquiring the basic logic and the business logic of each target assembly through the logic panel.
4. The method of claim 1, wherein rendering the target component associated with the form item according to the basic logic and the business logic of the form item in the form configuration comprises:
acquiring basic logic of a form item in the form configuration and configuration parameters of service logic, wherein the configuration parameters of the basic logic comprise at least one of component styles, component data and component verification, and the configuration parameters of the service logic comprise component service logic hooks;
and importing the basic logic of the form item and the configuration parameters of the business logic into the target assembly associated with the form item, and rendering the target assembly associated with the form item.
5. The method of claim 4, wherein the component business logic hooks are grouped according to mount location;
rendering the target component associated with the form item, including:
and traversing each component service logic hook in the group of service logic hooks if the current position is the mounting position of any group of service logic hooks in the life cycle of the target component.
6. A message entry device, comprising:
the form configuration acquisition module is used for generating form items of the target assembly according to the target assembly selected from the basic assemblies and the configured basic logic and business logic of the target assembly to obtain form configuration comprising the form items;
the message input module is used for rendering the target component associated with the form item according to the basic logic and the service logic of the form item in the form configuration to obtain an input message;
the basic logic comprises attributes, data and verification of a target component, and the business logic is information of logic for realizing different functions between the target component and other basic components; the target component is a basic component which is moved to a panel position through user operation; the basic logic is automatically generated according to the type of the current target assembly, and the business logic is determined by acquiring the mode selected or typed by the user.
7. The apparatus of claim 6, further comprising:
the basic logic and business logic determining module is used for making a base class for the basic assembly and determining the basic logic and business logic of the basic assembly;
and the editor setting unit is used for setting the basic logic and the business logic in a logic panel of the editor for use.
8. The apparatus of claim 7, further comprising:
the target component determination module is used for selecting target components required by the form through all basic components included in a logic panel of the editor;
and the logic configuration module is used for acquiring the basic logic and the business logic of each target assembly through the logic panel.
9. A computer-readable medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out a message entry method according to any one of claims 1 to 5.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the message entry method according to any of claims 1-5 when executing the computer program.
CN201811215883.2A 2018-10-18 2018-10-18 Message entry method and device, electronic equipment and readable medium Active CN109491646B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811215883.2A CN109491646B (en) 2018-10-18 2018-10-18 Message entry method and device, electronic equipment and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811215883.2A CN109491646B (en) 2018-10-18 2018-10-18 Message entry method and device, electronic equipment and readable medium

Publications (2)

Publication Number Publication Date
CN109491646A CN109491646A (en) 2019-03-19
CN109491646B true CN109491646B (en) 2022-08-05

Family

ID=65691574

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811215883.2A Active CN109491646B (en) 2018-10-18 2018-10-18 Message entry method and device, electronic equipment and readable medium

Country Status (1)

Country Link
CN (1) CN109491646B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306469A (en) * 2019-08-21 2021-02-02 北京字节跳动网络技术有限公司 Barrier-free component construction method, device, equipment and storage medium
CN113495887A (en) * 2020-03-20 2021-10-12 北京沃东天骏信息技术有限公司 Data form processing method, device and system
CN112764729B (en) * 2021-01-08 2024-02-06 深圳依时货拉拉科技有限公司 Application software development method, device, computer equipment and readable storage medium
CN114003220B (en) * 2021-12-30 2022-05-03 思创数码科技股份有限公司 Workflow model implementation method, system, readable storage medium and computer equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012123675A (en) * 2010-12-09 2012-06-28 Hitachi Ltd Method and system for extracting system component
US8949403B1 (en) * 2003-10-24 2015-02-03 Sap Se Infrastructure for maintaining cognizance of available and unavailable software components
CN104715347A (en) * 2015-04-09 2015-06-17 山东中实易通集团有限公司 Comprehensive data processing system for debugging work of nuclear power station

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040205525A1 (en) * 2001-04-30 2004-10-14 Murren Brian T. Automatic identification of form contents
KR100633478B1 (en) * 2006-01-02 2006-10-16 김길웅 System and its method for developing software based on business operating system
US7584416B2 (en) * 2006-02-21 2009-09-01 Microsoft Corporation Logical representation of a user interface form
CN103365646B (en) * 2012-04-11 2017-02-08 怡丰联合(北京)科技有限责任公司 Form user-defined, logical definition and processing method based on script engine
CN103514159B (en) * 2012-06-14 2018-07-13 阿里巴巴集团控股有限公司 A kind of method, system and the device of processing form templat
US20150248227A1 (en) * 2014-03-03 2015-09-03 Microsoft Technology Licensing, Llc Configurable reusable controls
CN104572131A (en) * 2015-02-04 2015-04-29 浪潮软件股份有限公司 Method and device for configuring business form
CN106033471B (en) * 2015-03-20 2019-11-08 阿里巴巴集团控股有限公司 A kind of method and apparatus handling list
US10643025B2 (en) * 2015-07-31 2020-05-05 Wisetech Global Limited Methods and systems for creating configurable forms, configuring forms and for form flow and form correlation
CN106843901B (en) * 2017-02-10 2020-08-25 广州优视网络科技有限公司 Page rendering and verification method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8949403B1 (en) * 2003-10-24 2015-02-03 Sap Se Infrastructure for maintaining cognizance of available and unavailable software components
JP2012123675A (en) * 2010-12-09 2012-06-28 Hitachi Ltd Method and system for extracting system component
CN104715347A (en) * 2015-04-09 2015-06-17 山东中实易通集团有限公司 Comprehensive data processing system for debugging work of nuclear power station

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"基于Web的课件开发与发布平台的研究与实践";王骁;《中国优秀硕士学位论文全文数据库•信息科技辑》;20061115;第2006年卷(第11期);第I138-69页 *

Also Published As

Publication number Publication date
CN109491646A (en) 2019-03-19

Similar Documents

Publication Publication Date Title
CN109634598B (en) Page display method, device, equipment and storage medium
CN109491646B (en) Message entry method and device, electronic equipment and readable medium
CN112036824A (en) Business approval method, system, storage medium and electronic equipment
CN110674047B (en) Software testing method and device and electronic equipment
CN111045653B (en) System generation method and device, computer readable medium and electronic equipment
US20200050540A1 (en) Interactive automation test
CN113127050B (en) Application resource packaging process monitoring method, device, equipment and medium
CN111625291B (en) Automatic iteration method and device for data processing model and electronic equipment
CN112884376A (en) Work order processing method and device, electronic equipment and computer readable storage medium
CN110443034B (en) Risk program file identification method and device, computing equipment and medium
CN109542743B (en) Log checking method and device, electronic equipment and computer readable storage medium
CN115793911A (en) Data processing method and device, electronic equipment and storage medium
CN111435306A (en) Code management method and device
CN111382058A (en) Service testing method and device, server and storage medium
CN111143464B (en) Data acquisition method and device and electronic equipment
US9785543B2 (en) Dual tagging between test and pods
CN109522459B (en) Method and device for specifying task contact person, computer equipment and storage medium
CN111737784A (en) Board card type selection configuration method and device based on digital three-dimensional ZXMP S385 subframe
US20140244538A1 (en) Business process management, configuration and execution
CN111176718A (en) Script online method and device, storage medium and electronic equipment
CN110609728A (en) Page generation method and device and electronic equipment
JP2008217443A (en) Business process simulator, and business process simulation program
CN111897827B (en) Data updating method and system for data warehouse and electronic equipment
CN111382057A (en) Test case generation method, test method and device, server and storage medium
US20130151964A1 (en) Displaying dynamic and shareable help data for images a distance from a pointed-to location

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