CN113326035A - Data processing method and device, electronic equipment and computer storage medium - Google Patents

Data processing method and device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN113326035A
CN113326035A CN202010606128.8A CN202010606128A CN113326035A CN 113326035 A CN113326035 A CN 113326035A CN 202010606128 A CN202010606128 A CN 202010606128A CN 113326035 A CN113326035 A CN 113326035A
Authority
CN
China
Prior art keywords
component
request information
calling
information
data processing
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.)
Pending
Application number
CN202010606128.8A
Other languages
Chinese (zh)
Inventor
韦楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202010606128.8A priority Critical patent/CN113326035A/en
Publication of CN113326035A publication Critical patent/CN113326035A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/10Requirements analysis; Specification techniques

Abstract

The embodiment of the invention provides a data processing method, a data processing device, electronic equipment and a computer storage medium, wherein the data processing method comprises the following steps: acquiring first request information; acquiring component information and a calling sequence of at least one component corresponding to the first request information in a preset database according to the first request information; instantiating the at least one component according to the component information of the at least one component; and generating a component form corresponding to the first request information according to the instantiated at least one component and the calling sequence. Because the component information and the calling sequence can be directly acquired in the preset database according to the first request information, the components can be linked, the instantiated components are spliced to form the component form, the development and upgrade of the components are decoupled from the generation of the component form, developers do not need to write program codes, the workload of the developers is reduced, the efficiency is higher, and the use is more flexible.

Description

Data processing method and device, electronic equipment and computer storage medium
Technical Field
The embodiment of the invention relates to the technical field of electronic information, in particular to a data processing method and device, electronic equipment and a computer storage medium.
Background
The operation of white screen operation refers to an implementation mode relative to black screen operation, wherein the black screen operation refers to manual operation on a machine, and the white screen operation refers to fixing the behavior of the black screen operation directly on the machine on a front-end form, so that manual operation is reduced, and misoperation is avoided. For example, in an operation and maintenance scene, operation and maintenance staff need to maintain equipment, the operation and maintenance requirements are frequent and variable, different programs need to be developed for different requirements, and if the requirements change, program codes also need to be modified, which increases the workload of many developers.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a data processing method, an apparatus, an electronic device, and a computer storage medium to solve some or all of the above problems.
According to a first aspect of the embodiments of the present invention, there is provided a data processing method, including: acquiring first request information; acquiring component information and a calling sequence of at least one component corresponding to the first request information in a preset database according to the first request information; instantiating the at least one component according to the component information of the at least one component; and generating a component form corresponding to the first request information according to the instantiated at least one component and the calling sequence.
According to a second aspect of the embodiments of the present invention, there is provided a data processing method, including: acquiring second request information; acquiring a corresponding component form according to the second request information, wherein the component form comprises at least one component which needs to be called for executing the operation corresponding to the second request information and a calling sequence of the at least one component, and the component form is generated according to the method of the first aspect; and calling at least one component to execute the operation corresponding to the second request information according to the calling sequence indicated by the component form, and obtaining a processing result.
According to a third aspect of embodiments of the present invention, there is provided a data processing apparatus including: the request module is used for acquiring first request information; the component information module is used for acquiring component information of at least one component corresponding to the first request information in a preset database according to the first request information; the instantiation module is used for instantiating at least one component according to the component information of the at least one component; and the form module is used for generating a component form corresponding to the first request information according to the instantiated at least one component and the calling sequence.
According to a fourth aspect of the embodiments of the present invention, there is provided a data processing apparatus including: the request module is used for acquiring second request information; a form module, configured to obtain a corresponding component form according to the second request information, where the component form includes at least one component that needs to be called to execute an operation corresponding to the second request information and a calling order of the at least one component, and the component form is generated according to the method of the first aspect of the claims; and the processing module is used for calling at least one component to execute the operation corresponding to the second request information according to the calling sequence indicated by the component form and obtaining a processing result.
According to a fifth aspect of embodiments of the present invention, there is provided an electronic apparatus, including: the processor, the memory and the communication interface complete mutual communication through the communication bus; the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the corresponding operation of the data processing method of the first aspect or the second aspect.
According to a sixth aspect of embodiments of the present invention, there is provided a computer storage medium having stored thereon a computer program which, when executed by a processor, implements a data processing method as in the first or second aspect.
The data processing method, the data processing device, the electronic equipment and the computer storage medium provided by the embodiment of the invention are used for acquiring first request information; acquiring component information and a calling sequence of at least one component corresponding to the first request information in a preset database according to the first request information; instantiating the at least one component according to the component information of the at least one component; and generating a component form corresponding to the first request information according to the instantiated at least one component and the calling sequence. Because the component information and the calling sequence can be directly acquired in the preset database according to the first request information, linkage can be realized among the components, the instantiated components are spliced to form a component form, development and upgrade of the components are decoupled from generation of the component form, program codes do not need to be written by developers, workload of developers is reduced, and because the component form is spliced, if user requirements change, the components in the component form and the calling sequence are adjusted, workload of the developers is further reduced, efficiency is higher, and use is more flexible.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present invention, and it is also possible for a person skilled in the art to obtain other drawings based on the drawings.
Fig. 1 is a schematic view of a data processing method according to an embodiment of the present application;
fig. 2 is a flowchart of a data processing method according to an embodiment of the present application;
fig. 2A is a flowchart of a data processing method according to an embodiment of the present application;
FIG. 2B is a diagram illustrating a component form according to an embodiment of the present application;
fig. 3 is a schematic view of a scenario of a data processing method according to a second embodiment of the present application;
fig. 4 is a flowchart of a data processing method according to a second embodiment of the present application;
fig. 5 is a block diagram of a data processing apparatus according to a third embodiment of the present application;
fig. 6 is a block diagram of a data processing apparatus according to a fourth embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments of the present invention shall fall within the scope of the protection of the embodiments of the present invention.
The following further describes specific implementation of the embodiments of the present invention with reference to the drawings.
Example one
For convenience of understanding, an application scenario of the data processing method provided in the first embodiment of the present application is described, and referring to fig. 1, fig. 1 is a scenario diagram of the data processing method provided in the first embodiment of the present application. The scenario shown in fig. 1 includes an electronic device 101 and a user 102; the electronic device 101 may be a device that executes the data processing method provided in the first embodiment of the present application.
The electronic device 101 may be an electronic device with a human-computer interaction function, such as a desktop computer, a tablet computer, a notebook computer, an intelligent terminal, and the like. The electronic device 101 may include a display screen through which the electronic device 101 displays images, text, or video to a user.
It should be noted that the electronic device 101 may also access a Network, and in this application, the Network includes a Local Area Network (LAN), a Wide Area Network (WAN), and a mobile communication Network; such as the World Wide Web (WWW), Long Term Evolution (LTE) networks, 2G networks (2 th Generation Mobile Network), 3G networks (3 th Generation Mobile Network), 5G networks (5 th Generation Mobile Network), etc. Of course, this is merely an example and does not represent a limitation of the present application.
The user 102 can inform the electronic device 101 of the user requirement through human-computer interaction with the electronic device 101, and the electronic device 101 generates a corresponding component form according to the user requirement.
Referring to the scenario shown in fig. 1, a detailed description is given of a data processing method provided in a first embodiment of the present application, where the method may be applied to a data processing apparatus, where the data processing apparatus may be the electronic color device 101 shown in fig. 1, it should be noted that fig. 1 is only an application scenario of the data processing method provided in the first embodiment of the present application, and does not represent that the data processing method is necessarily applied to the scenario shown in fig. 1, and fig. 2 is a flowchart of the data processing method provided in the first embodiment of the present application, and the method includes the following steps:
step 201, obtaining first request information.
It should be noted that the first request information may include a parameter name of at least one component, where the at least one component is a component that needs to be called to execute an operation corresponding to the first request information. For example, the first request message may be a hypertext Transfer Protocol (HTTP) request, which is only exemplary and not intended to limit the present application.
Optionally, in an implementation manner, the obtaining the first request information includes: receiving interactive operation, and determining the parameter name of at least one corresponding component according to the interactive operation; the first request information is generated according to the parameter name of at least one component. It should be noted that the interactive operation may be a key operation, a touch operation, a voice interactive operation, or the like. For example, the key operation may include a keyboard input operation, a mouse input operation, or the like; the touch operation may include a single-point touch operation, a multi-point touch operation, and the like on the touch screen; the voice interaction operation may include a user inputting a voice signal through a microphone. Of course, the above is merely exemplary and does not represent that the present application is limited thereto. And receiving the interactive operation to generate first request information, so that the user can directly interact with the data processing device, and the operation is more convenient.
Optionally, in another implementation manner, the obtaining of the first request information includes receiving the first request information sent by another device. The data processing device receives the first request information sent by other equipment, and does not directly interact with the user, so that interaction components are reduced, and the load of the data processing device is reduced.
Step 202, obtaining component information and a calling sequence of at least one component corresponding to the first request information in a preset database according to the first request information.
The preset database may include at least one pre-stored form, one form including component information of at least one component. The component information for a component may include an identification of the component, a parameter name for a downstream component, configuration information for the component, and so forth. A form may include a form name of the form, component information of at least one component, and a presentation order of at least one component. Illustratively, the fields in the form are described in detail.
The field of the form name can be represented by 'form _ name', and components under the same form _ name form a form;
the fields of the display sequence of the components in the form can be represented by 'order', and the display sequence represents the sequence of at least one component in the form to be displayed outwards;
for component information, the following is further exemplified:
the identification field of the component can be represented by 'component _ name', the identification of the component corresponds to the instance of the component, and the identification of the component is used for positioning the instance of the component;
the parameter name field of the component can be represented by 'param _ name', one parameter name represents one component, and the parameter name corresponds to the backend interface for the convenience of identifying the backend interface;
the parameter name field of the downstream component may be represented by "downlinks", and the parameter name of the downstream component is used to indicate a component that the component can call, for example, for component a, if the component indicated by the parameter name of the downstream component of component a is component B, it indicates that component a can call component B, that is, the calling sequence of the component is to call component a first and then call component B;
the configuration information of the component may include at least one configuration parameter, and here, three examples are illustrated, where the three configuration parameters are an initialization parameter, a cascading style parameter, and an extended attribute parameter, respectively;
the initialization parameter field may be denoted by "initial", and the initialization parameter may indicate an initialization value of the component, and exemplary initialization parameters may include the following: 1) initial Value, which represents the direct definition of the initialization Value; 2) initial ByField: indicating that the self-initialization value is changed according to another parameter value; 3) initial ToLower: whether the initialization value is converted into lower case and then initialized or not is shown when the initial ByField is selected; of course, this is merely an exemplary illustration, and the initialization parameter may have other definitions, which is not limited in this application;
the stacking Style parameter field may be represented by "layout", and the stacking Style parameter may indicate a stacking Style sheet (CSS) attribute of the component;
the extended attribute parameter field may be represented by "attribute", and the extended attribute parameter may indicate an extended attribute object of the component, indicating that when the component is implemented, a logical judgment or extension may be made based on a fixed attribute.
Of course, the above is merely an example illustrating the fields contained in the form and does not represent that the application is limited thereto. In step 202, the first request information includes a parameter name of at least one component, the preset database includes the parameter name of the component and an identifier of the component, the identifier of the at least one component can be determined according to the parameter name of the at least one component included in the first request information, the preset database also includes parameter names of downstream components, the calling relationship between the components can be determined according to the parameter names of the downstream components, that is, the calling sequence is determined, the preset database also includes configuration information of the components, and the components can be instantiated according to the configuration information of the components. Through presetting the database, it is more convenient, also more nimble to acquire the subassembly information, has improved the efficiency that generates the subassembly form.
Step 203, instantiating the at least one component according to the component information of the at least one component.
The component can be used after the component is instantiated, and here, the instantiation process of the component is described in detail in an exemplary way:
optionally, the component information includes identification and configuration information of the component; instantiating the at least one component according to the component information of the at least one component, including:
acquiring the class of at least one component in a component registry according to the identifier contained in the component information of the at least one component, wherein the component registry is used for indicating the corresponding relation between the component and the class of the component; and instantiating the class of the at least one component according to the configuration information contained in the component information of the at least one component to obtain the instantiated at least one component.
It should be noted that the component registry includes at least one component that is already registered, and in an application scenario, the calling order of the components is determined by the calling relationship between the components, so that the components registered in the component registry need to support the calling function, and here, the exemplary procedure of registering the components is described as follows:
optionally, the method further comprises: determining a component to be registered meeting the registration condition in at least one candidate component; and acquiring the identifier of the component to be registered and the class of the component to be registered, and adding the component to be registered in the component registry according to the identifier of the component to be registered and the class of the component to be registered.
Further optionally, determining, in the at least one component, a component to be registered that meets the registration condition includes: and determining a component with a calling function and an upstream processing function as a component to be registered in the at least one candidate component, wherein the calling function is used for calling the next component, and the upstream processing function is used for returning the previous component.
It should be noted that the component registry is used to indicate the corresponding relationship between the identifier of the component and the class of the component, and the class of the component can be determined according to the identifier of the component by using the component registry, so as to implement instantiation.
Of course, this is merely an exemplary illustration, and the registration condition may also include other conditions, and in an alternative implementation, the registration condition may include: 1) the component can store control values, e.g., the component has a value property; 2) a component is able to commit a control value, i.e., the component has a calling function, e.g., the component supports the onChange () method; 3) the component has an upstream processing function, i.e., the component can return to the upstream component, e.g., the component supports the handleByUpstream () method; 4) component references can be returned, e.g., a component supports the getInstance () method; 5) when the component is used for generating the component form, any attribute is transmitted to the component in a supporting way; components that satisfy these 5 conditions can all be registered in the component registry. Of course, this is merely an example and does not represent a limitation of the present application.
And 204, generating a component form corresponding to the first request information according to the instantiated at least one component according to the calling sequence.
Because the component information is acquired, the calling sequence is determined, the components are instantiated according to the component information, and then the instantiated components are used for generating the component form, the operations do not need user participation, the workload of developers is reduced, the error rate is also reduced, and the development efficiency is improved.
Optionally, in combination with the description of the parameter name of the downstream component in step 202, according to at least one instantiated component, generating a component form corresponding to the first request information according to a calling order, where the generating includes: determining a calling relation among instantiated components according to a calling sequence, and adding calling information to the components with the calling relation, wherein the calling information is used for indicating the components to call the next component in the execution process; and splicing at least one component added with the calling information to generate a component form. The adding of the call information is actually registering the call relation between the components, and may be implemented by an onChange () function illustrated in step 203, which is only exemplary and does not represent that the present application is limited thereto.
In addition, optionally, after generating a component form corresponding to the first request information according to the call order according to the instantiated at least one component, the method further includes: and displaying the user interface corresponding to the component form according to the component form. And after the user interface corresponding to the component form is displayed to the user, the user can realize the function corresponding to the component form through operation on the user interface.
With reference to the application scenario shown in fig. 1, in a specific application scenario, as shown in fig. 2A, fig. 2A is a flowchart of a data processing method provided in an embodiment of the present application, first, a user performs human-computer interaction with an electronic device, and the electronic device generates first request information according to detected interaction operations; acquiring component information of at least one component in a preset database according to the parameter name of the at least one component contained in the first request information;
secondly, traversing at least one component, acquiring the class of the component in a component registry according to component information acquired from a preset database, and instantiating the component, wherein the component in the component registry is registered in advance; circularly executing the process of instantiating the components until all the components in the components indicated in the first request information are instantiated, and ending traversal;
and finally, determining the identifier of the component and the parameter name of the downstream component of the component, determining the calling relationship among the components according to the parameter name of the downstream component of the component, namely determining the calling sequence of the components, and splicing the instantiated components according to the calling sequence of the components to generate a component form. Exemplarily, as shown in fig. 2B, fig. 2B is a schematic diagram of a component form provided in an embodiment of the present application, in the component form shown in fig. 2B, calling and returning between components are implemented through an onChange () function and a handleByUpstream () function between components, that is, a next called component can be automatically determined in an execution process of the components, and linkage can be implemented between the components; the decoupling between the development and the upgrade of the components and the generation of the component forms is realized, because the components are automatically linked, the development or the upgrade of the components does not influence the generation of the component forms, the generation of the component forms does not influence the development and the upgrade of the components, the maintenance cost is reduced, a user does not need to write codes to control, the formation of the component forms is more flexible and efficient, and the adjustment is convenient.
The data processing method provided by the embodiment of the invention obtains first request information; acquiring component information and a calling sequence of at least one component corresponding to the first request information in a preset database according to the first request information; instantiating the at least one component according to the component information of the at least one component; and generating a component form corresponding to the first request information according to the instantiated at least one component and the calling sequence. Because the component information and the calling sequence can be directly acquired in the preset database according to the first request information, linkage can be realized among the components, the instantiated components are spliced to form a component form, development and upgrade of the components are decoupled from generation of the component form, program codes do not need to be written by developers, workload of developers is reduced, and because the component form is spliced, if user requirements change, the components in the component form and the calling sequence are adjusted, workload of the developers is further reduced, efficiency is higher, and use is more flexible.
Example two
Based on the data processing method described in the first embodiment, a second embodiment of the present application provides a data processing method, which describes in detail how the component form generated by the method according to the first embodiment is applied. For convenience of understanding, fig. 3 is a schematic view of an application scenario of a data processing method provided in the second embodiment of the present application, fig. 3 is only an exemplary application scenario and does not represent that the data processing method described in the second embodiment of the present application is necessarily applied to the scenario shown in fig. 3, in the scenario shown in fig. 3, an electronic device 101 and a user 102 are shown, and the electronic device 101 and the user 102 are already described in the first embodiment, and are not described again here. Taking an operation and maintenance scene as an example, the user 102 may be an operation and maintenance worker who needs to maintain background servers such as an Application (APP), a web page, and the like, for example, a maintenance version is updated, and a maintenance program is updated; the method comprises the following steps of repairing equipment faults, restarting the equipment, releasing a memory, upgrading a kernel version and the like. Optionally, as shown in fig. 3, the scenario shown in fig. 3 further shows a server 103, and the server 103 may be a device that needs to be maintained by the operation and maintenance staff. As shown in fig. 1, a user 102 may perform human-computer interaction with an electronic device 101, where the electronic device 101 generates second request information according to an interaction operation, determines a component form corresponding to the second request information, calls at least one component according to the component form to perform an operation corresponding to the first request information on a server 103, and returns a processing result.
With reference to the scenario shown in fig. 3, a detailed description is given of a data processing method provided in the second embodiment of the present application, where the method may be applied to a data processing apparatus, where the data processing apparatus may be the electronic color device 101 shown in fig. 1 and fig. 3, it should be noted that fig. 3 is only an application scenario of the data processing method provided in the first embodiment of the present application, and does not represent that the data processing method must be applied to the scenario shown in fig. 3, and fig. 4 is a flowchart of the data processing method provided in the first embodiment of the present application, and the method includes the following steps:
step 401, obtaining second request information.
It should be noted that the second request information is used to instruct to perform a corresponding operation to fulfill a corresponding user requirement. The second request message may be generated according to the user interaction operation, or may be sent by the other device.
Optionally, in an implementation manner, the obtaining the second request information includes: receiving interactive operation, and determining a corresponding component form according to the interactive operation; and generating second request information according to the corresponding component form. The second request information may include an identification of the component form, and the second request information may indicate that the corresponding operation is performed according to the corresponding component form. It should be noted that the interactive operation may be a key operation, a touch operation, a voice interactive operation, or the like. For example, the key operation may include a keyboard input operation, a mouse input operation, or the like; the touch operation may include a single-point touch operation, a multi-point touch operation, and the like on the touch screen; the voice interaction operation may include a user inputting a voice signal through a microphone. Of course, the above is merely exemplary and does not represent that the present application is limited thereto. And receiving the interactive operation to generate second request information, so that the user can directly interact with the data processing device, and the operation is more convenient.
Optionally, in another implementation manner, the obtaining of the second request information includes receiving the second request information sent by another device. The data processing device receives the second request information sent by other equipment, and does not directly interact with the user, so that interaction components are reduced, and the load of the data processing device is reduced.
And step 402, acquiring a corresponding component form according to the second request information.
The component form comprises at least one component which needs to be called for executing the operation corresponding to the second request information and the calling sequence of the at least one component. The component form may be generated according to the method described in the first embodiment, and is not described here.
And step 403, calling at least one component to execute the operation corresponding to the second request information according to the calling sequence indicated by the component form, and obtaining a processing result.
Here, an example is listed to specifically describe how to make a component call, however, this is only an example and does not represent that the present application is limited thereto.
Optionally, in a first example, the component form includes a calling relationship between components, and calls at least one component according to a calling order indicated by the component form to execute an operation corresponding to the second request information, and obtain a processing result, where the method includes: and sequentially calling at least one component to execute the operation corresponding to the second request information according to the calling relationship among the components in the component form, and obtaining a processing result.
With reference to the scenario shown in fig. 3, in a specific application scenario, a user may perform human-computer interaction with an electronic device, and the electronic device generates second request information according to a detected interaction operation, as shown in fig. 3, the interaction operation may be to click a corresponding requirement on a touch screen, obtain a corresponding component form according to the second request information, and one request information may correspond to one component form, that is, one requirement on a user interface may correspond to one component form, which is, this is only an exemplary description here. According to at least one component contained in the component form and the calling relation among the components, calling at least one component to execute the operation corresponding to the second request information according to the calling sequence indicated by the component form, and in combination with the scenario shown in fig. 3, calling at least one component to execute the operation corresponding to the second request information on the server to realize the maintenance of the server, obtain a processing result, and display the processing result to a user.
The data processing method provided by the embodiment of the invention obtains second request information; acquiring a corresponding component form according to the second request information, wherein the component form comprises at least one component which needs to be called for executing the operation corresponding to the second request information and a calling sequence of the at least one component, and the component form is generated according to the method of the first aspect; and calling at least one component to execute the operation corresponding to the second request information according to the calling sequence indicated by the component form, and obtaining a processing result. The automatic calling of the components is realized through the component form, and a user does not need to write codes to realize the automatic calling, so that the development efficiency is improved, and the use is more urgent and flexible.
EXAMPLE III
Based on the methods described in the first and second embodiments, a third embodiment of the present application provides a data processing apparatus for executing the method described in the first embodiment, and referring to fig. 5, the data processing apparatus 50 includes: a request module 501, a component information module 502, an instantiation module 503, and a form module 504;
the request module 501 is configured to obtain first request information;
a component information module 502, configured to obtain component information of at least one component corresponding to the first request information in a preset database according to the first request information;
an instantiation module 503, configured to instantiate at least one component according to component information of the at least one component;
the form module 504 is configured to generate a component form corresponding to the first request information according to the instantiated at least one component and the calling order.
Optionally, the form module 504 is specifically configured to determine a call relationship between instantiated components according to a call sequence, and add call information to the component having the call relationship, where the call information is used to instruct the component to call a next component in an execution process; and splicing at least one component added with the calling information to generate a component form.
Optionally, the requesting module 501 is specifically configured to receive the interactive operation, and determine a parameter name of the corresponding at least one component according to the interactive operation; the first request information is generated according to the parameter name of at least one component.
Optionally, the instantiation module 503 is specifically configured to obtain a class of the at least one component from a component registry according to the identifier included in the component information of the at least one component, where the component registry is used to indicate a correspondence between the component and the class of the component; and instantiating the class of the at least one component according to the configuration information contained in the component information of the at least one component to obtain the instantiated at least one component.
Optionally, the instantiating module 503 is further configured to determine, from the at least one candidate component, a component to be registered that meets the registration condition; and acquiring the identifier of the component to be registered and the class of the component to be registered, and adding the component to be registered in the component registry according to the identifier of the component to be registered and the class of the component to be registered.
Optionally, the instantiating module 503 is specifically configured to determine, among the at least one candidate component, a component having a calling function and an upstream processing function as the component to be registered, where the calling function is used to call a next component, and the upstream processing function is used to return a previous component.
Optionally, the form module 504 is further configured to display a user interface corresponding to the component form according to the component form.
The data processing device provided by the embodiment of the invention acquires first request information; acquiring component information and a calling sequence of at least one component corresponding to the first request information in a preset database according to the first request information; instantiating the at least one component according to the component information of the at least one component; and generating a component form corresponding to the first request information according to the instantiated at least one component and the calling sequence. Because the component information and the calling sequence can be directly acquired in the preset database according to the first request information, linkage can be realized among the components, the instantiated components are spliced to form a component form, development and upgrade of the components are decoupled from generation of the component form, program codes do not need to be written by developers, workload of developers is reduced, and because the component form is spliced, if user requirements change, the components in the component form and the calling sequence are adjusted, workload of the developers is further reduced, efficiency is higher, and use is more flexible.
Example four
Based on the methods described in the first and second embodiments, a fourth embodiment of the present application provides a data processing apparatus for executing the method described in the second embodiment, and as shown in fig. 6, the data processing apparatus 60 includes: a request module 601, a form module 602 and a processing module 603;
the request module 601 is configured to obtain second request information;
the form module 602 is configured to obtain a corresponding component form according to the second request information, where the component form includes at least one component that needs to be called to execute an operation corresponding to the second request information and a calling order of the at least one component, and the component form is generated according to the data processing method described in embodiment one;
the processing module 603 is configured to invoke at least one component to execute an operation corresponding to the second request information according to the invocation order indicated by the component form, and obtain a processing result.
Optionally, the processing module 603 is specifically configured to sequentially invoke at least one component to execute an operation corresponding to the second request information according to a call relationship between components in the component form, and obtain a processing result.
The data processing device provided by the embodiment of the invention acquires second request information; acquiring a corresponding component form according to the second request information, wherein the component form comprises at least one component which needs to be called for executing the operation corresponding to the second request information and a calling sequence of the at least one component, and the component form is generated according to the method of the first aspect; and calling at least one component to execute the operation corresponding to the second request information according to the calling sequence indicated by the component form, and obtaining a processing result. The automatic calling of the components is realized through the component form, and a user does not need to write codes to realize the automatic calling, so that the development efficiency is improved, and the use is more urgent and flexible.
EXAMPLE five
Based on the methods described in the first embodiment and the second embodiment, a fifth embodiment of the present application provides an electronic device, which is configured to execute the method described in the first embodiment or the second embodiment, and fig. 7 is a schematic structural diagram of the electronic device provided in the fifth embodiment of the present application, where a specific embodiment of the present application does not limit a specific implementation of the electronic device.
As shown in fig. 7, the electronic device may include: a processor (processor)702, a Communications Interface 704, a memory 706, and a communication bus 708.
Wherein:
the processor 702, communication interface 704, and memory 706 communicate with each other via a communication bus 708.
A communication interface 704 for communicating with other electronic devices, such as a terminal device or a server.
The processor 702 is configured to execute the program 710, and may specifically execute the relevant steps in the foregoing method embodiments.
In particular, the program 710 may include program code that includes computer operating instructions.
The processor 702 may be a central processing unit CPU or an ASIC specific integrated circuit
(Application Specific Integrated Circuit) or one or more Integrated circuits configured to implement embodiments of the invention. The electronic device comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
The memory 706 stores a program 710. The memory 706 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 710 may specifically be configured to cause the processor 702 to perform any of the methods described in the first or second embodiments.
For specific implementation of each step in the program 710, reference may be made to corresponding steps and corresponding descriptions in units in the foregoing data processing method embodiments, which are not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, and are not described herein again.
The electronic equipment provided by the embodiment of the invention acquires first request information; acquiring component information and a calling sequence of at least one component corresponding to the first request information in a preset database according to the first request information; instantiating the at least one component according to the component information of the at least one component; and generating a component form corresponding to the first request information according to the instantiated at least one component and the calling sequence. Because the component information and the calling sequence can be directly acquired in the preset database according to the first request information, linkage can be realized among the components, the instantiated components are spliced to form a component form, development and upgrade of the components are decoupled from generation of the component form, program codes do not need to be written by developers, workload of developers is reduced, and because the component form is spliced, if user requirements change, the components in the component form and the calling sequence are adjusted, workload of the developers is further reduced, efficiency is higher, and use is more flexible.
EXAMPLE six
Based on the methods described in the first embodiment and the second embodiment, a fifth embodiment of the present application provides a computer storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method described in the first embodiment or the second embodiment.
It should be noted that, according to the implementation requirement, each component/step described in the embodiment of the present invention may be divided into more components/steps, and two or more components/steps or partial operations of the components/steps may also be combined into a new component/step to achieve the purpose of the embodiment of the present invention.
The above-described method according to an embodiment of the present invention may be implemented in hardware, firmware, or as software or computer code storable in a recording medium such as a CD ROM, a RAM, a floppy disk, a hard disk, or a magneto-optical disk, or as computer code originally stored in a remote recording medium or a non-transitory machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the method described herein may be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware such as an ASIC or FPGA. It will be appreciated that the computer, processor, microprocessor controller or programmable hardware includes memory components (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code that, when accessed and executed by the computer, processor or hardware, implements the data processing methods described herein. Further, when a general-purpose computer accesses code for implementing the data processing method shown herein, execution of the code converts the general-purpose computer into a special-purpose computer for executing the data processing method shown herein.
Those of ordinary skill in the art will appreciate that the various illustrative elements and method steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present embodiments.
The above embodiments are only for illustrating the embodiments of the present invention and not for limiting the embodiments of the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the embodiments of the present invention, so that all equivalent technical solutions also belong to the scope of the embodiments of the present invention, and the scope of patent protection of the embodiments of the present invention should be defined by the claims.

Claims (13)

1. A method of data processing, comprising:
acquiring first request information;
acquiring component information and a calling sequence of at least one component corresponding to the first request information in a preset database according to the first request information;
instantiating the at least one component according to the component information of the at least one component;
and generating a component form corresponding to the first request information according to the instantiated at least one component and the calling sequence.
2. The method of claim 1, wherein generating the component form corresponding to the first request information according to the instantiated at least one component in the calling order comprises:
determining a calling relation among instantiated components according to the calling sequence, and adding calling information to the components with the calling relation, wherein the calling information is used for indicating the components to call the next component in the execution process;
and splicing the at least one component added with the calling information to generate the component form.
3. The method of claim 1, wherein the obtaining first request information comprises:
receiving interactive operation, and determining the parameter name of at least one corresponding component according to the interactive operation;
and generating the first request information according to the parameter name of the at least one component.
4. The method of claim 1, wherein the component information includes identification and configuration information of the component; instantiating the at least one component according to the component information of the at least one component, including:
acquiring the class of the at least one component in a component registry according to the identifier contained in the component information of the at least one component, wherein the component registry is used for indicating the corresponding relation between the component and the class of the component;
according to the configuration information contained in the component information of the at least one component, instantiating the class of the at least one component to obtain the instantiated at least one component.
5. The method of claim 4, wherein the method further comprises:
determining a component to be registered meeting the registration condition in at least one candidate component;
and acquiring the identifier of the component to be registered and the class of the component to be registered, and adding the component to be registered in the component registry according to the identifier of the component to be registered and the class of the component to be registered.
6. The method of claim 5, wherein the determining, among the at least one component, the component to be registered that satisfies the registration condition comprises:
and determining a component with a calling function and an upstream processing function as the component to be registered in the at least one candidate component, wherein the calling function is used for calling the next component, and the upstream processing function is used for returning the previous component.
7. The method according to any one of claims 1-6, wherein after generating the component form corresponding to the first request information according to the instantiated at least one component in the calling order, the method further comprises:
and displaying the user interface corresponding to the component form according to the component form.
8. A method of data processing, comprising:
acquiring second request information;
acquiring a corresponding component form according to the second request information, wherein the component form comprises at least one component which needs to be called for executing the operation corresponding to the second request information and a calling sequence of the at least one component, and the component form is generated according to the method of any one of claims 1-6;
and calling the at least one component to execute the operation corresponding to the second request information according to the calling sequence indicated by the component form, and obtaining a processing result.
9. The method of claim 8, wherein the component form includes a calling relationship between components, and the calling the at least one component in the calling order indicated by the component form to execute the operation corresponding to the second request message and obtain a processing result includes:
and sequentially calling the at least one component to execute the operation corresponding to the second request information according to the calling relationship among the components in the component form, and obtaining the processing result.
10. A data processing apparatus, comprising:
the request module is used for acquiring first request information;
the component information module is used for acquiring component information of at least one component corresponding to the first request information in a preset database according to the first request information;
the instantiation module is used for instantiating the at least one component according to the component information of the at least one component;
and the form module is used for generating a component form corresponding to the first request information according to the instantiated at least one component and the calling sequence.
11. A data processing apparatus, comprising:
the request module is used for acquiring second request information;
a form module, configured to obtain a corresponding component form according to the second request information, where the component form includes at least one component that needs to be called to perform an operation corresponding to the second request information, and a calling order of the at least one component, and the component form is generated according to the method of any one of claims 1 to 6;
and the processing module is used for calling the at least one component to execute the operation corresponding to the second request information according to the calling sequence indicated by the component form and obtaining a processing result.
12. An electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the corresponding operation of the data processing method according to any one of claims 1-7;
alternatively, the executable instructions cause the processor to perform operations corresponding to the data processing method of any one of claims 8 to 9.
13. A computer storage medium on which a computer program is stored which, when executed by a processor, implements a data processing method as claimed in any one of claims 1 to 7;
or, when being executed by a processor, to carry out the data processing method of any one of claims 8 to 9.
CN202010606128.8A 2020-06-29 2020-06-29 Data processing method and device, electronic equipment and computer storage medium Pending CN113326035A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010606128.8A CN113326035A (en) 2020-06-29 2020-06-29 Data processing method and device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010606128.8A CN113326035A (en) 2020-06-29 2020-06-29 Data processing method and device, electronic equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN113326035A true CN113326035A (en) 2021-08-31

Family

ID=77413392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010606128.8A Pending CN113326035A (en) 2020-06-29 2020-06-29 Data processing method and device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN113326035A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699537A (en) * 2015-03-18 2015-06-10 北京奇虎科技有限公司 Program control method, activity module scheduling method and corresponding devices thereof
CN106687920A (en) * 2014-09-02 2017-05-17 起元科技有限公司 Managing invocation of tasks
CN111080170A (en) * 2019-12-30 2020-04-28 北京云享智胜科技有限公司 Workflow modeling method and device, electronic equipment and storage medium
CN111191228A (en) * 2019-12-20 2020-05-22 京东数字科技控股有限公司 Service processing method and device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106687920A (en) * 2014-09-02 2017-05-17 起元科技有限公司 Managing invocation of tasks
CN104699537A (en) * 2015-03-18 2015-06-10 北京奇虎科技有限公司 Program control method, activity module scheduling method and corresponding devices thereof
CN111191228A (en) * 2019-12-20 2020-05-22 京东数字科技控股有限公司 Service processing method and device, equipment and storage medium
CN111080170A (en) * 2019-12-30 2020-04-28 北京云享智胜科技有限公司 Workflow modeling method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US10956179B1 (en) Third party integration of plugins and widgets
US20110231592A1 (en) Mashup Infrastructure with Learning Mechanism
JP5282677B2 (en) Compatibility evaluation apparatus, compatibility evaluation method, and program
CN113312037B (en) Data processing method, device, equipment and storage medium applied to micro-service
US8584116B2 (en) Installing method, installer, and installing program
US20230308504A9 (en) Method and system of application development for multiple device client platforms
US8032588B2 (en) System and method for hosting one or more versions of a service using a service proxy
CN108776592B (en) Page construction method, device, equipment and storage medium
CN110955409B (en) Method and device for creating resources on cloud platform
CN111930290B (en) Resource deployment method and device
RU2580079C2 (en) Application activation framework
CN111984440A (en) Method, system and storage medium for Celery online management and automatic task execution
CN111625312A (en) APP skin changing method and device, electronic equipment and storage medium
CN113448650A (en) Live broadcast function plug-in loading method, device, equipment and storage medium
CN111158777B (en) Component calling method, device and computer readable storage medium
WO2012063282A1 (en) Operating method and system for mashup application
CN110599112B (en) Network page development and maintenance method and device
JP5574017B2 (en) Information processing apparatus, compatibility evaluation method, and program
CN113326035A (en) Data processing method and device, electronic equipment and computer storage medium
CN114741275A (en) Equipment debugging method, device and equipment
KR101418390B1 (en) system for remotely debugging an application programming and controlling method therefor
US8732659B2 (en) Method, apparatus and storage medium for customizing application
CN107193670B (en) Remote management method, device and system for cluster workstations
EP4270175A1 (en) Information processing device, information processing system, and user interface providing method
KR101703837B1 (en) System and method for providing widget platform

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40058029

Country of ref document: HK