CN112685006A - Process management method and device, electronic equipment and storage medium - Google Patents

Process management method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112685006A
CN112685006A CN202011553462.8A CN202011553462A CN112685006A CN 112685006 A CN112685006 A CN 112685006A CN 202011553462 A CN202011553462 A CN 202011553462A CN 112685006 A CN112685006 A CN 112685006A
Authority
CN
China
Prior art keywords
target
product
attribute information
parameter
determining
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
CN202011553462.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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202011553462.8A priority Critical patent/CN112685006A/en
Publication of CN112685006A publication Critical patent/CN112685006A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The present application relates to data processing technologies, and in particular, to a method, an apparatus, an electronic device, and a storage medium for process management, where the method includes: acquiring target attribute information of a target product, wherein the target attribute information at least comprises partial attribute information expressed by adopting a global process variable; detecting whether the target product is a preset type product or not according to the target attribute information; when the target product is the preset type product, determining a target flow module corresponding to the target attribute information; determining a process processing parameter corresponding to the target product; and controlling the target process module to operate the target product according to the process parameters. By adopting the embodiment of the application, the product compatibility can be improved.

Description

Process management method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for process management, an electronic device, and a storage medium.
Background
When newly adding a product, the flow is generally the same, and some customized parts need to embed compatible logic on the original basis, so that the original flow is invaded to a certain extent, and the processing logic of the existing product is influenced slightly unnoticed, so that the problem of how to improve the product compatibility is urgently needed to be solved.
Disclosure of Invention
The embodiment of the application provides a process management method and device, electronic equipment and a storage medium, and can improve product compatibility.
In a first aspect, an embodiment of the present application provides a process management method, where the method includes:
acquiring target attribute information of a target product, wherein the target attribute information at least comprises partial attribute information expressed by adopting a global process variable;
detecting whether the target product is a preset type product or not according to the target attribute information;
when the target product is the preset type product, determining a target flow module corresponding to the target attribute information;
determining a process processing parameter corresponding to the target product;
and controlling the target process module to operate the target product according to the process parameters.
In a second aspect, an embodiment of the present application provides a process management apparatus, where the apparatus includes: an acquisition unit, a detection unit, a first determination unit, a second determination unit and an operation unit, wherein,
the acquisition unit is used for acquiring target attribute information of a target product, wherein the target attribute information at least comprises partial attribute information expressed by adopting a global process variable;
the detection unit is used for detecting whether the target product is a preset type product or not according to the target attribute information;
the first determining unit is configured to determine, when the target product is the preset type product, a target process module corresponding to the target attribute information;
the second determining unit is used for determining the process processing parameters corresponding to the target product;
and the operation unit is used for controlling the target process module to operate the target product according to the process parameters.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect of the embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program enables a computer to perform some or all of the steps described in the first aspect of the embodiment of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
The embodiment of the application has the following beneficial effects:
it can be seen that the process management method, apparatus, electronic device, and storage medium described in the embodiments of the present application obtain target attribute information of a target product, where the target attribute information at least includes partial attribute information represented by a global process variable, detect whether the target product is a preset type product according to the target attribute information, when the target product is a preset type product, determining a target process module corresponding to the target attribute information, determining process processing parameters corresponding to the target product, controlling the target process module to operate the target product according to the process parameters, and aiming at the specified product, on one hand, product compatibility is improved through the compatibility of the global process variable, and on the other hand, corresponding flow modules and flow processing parameters can be distributed according to product attributes, so that the product compatibility is further improved, and the normal operation of products is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present application 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 of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a process management method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart diagram of another flow management method provided in the embodiments of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 4 is a block diagram illustrating functional units of a flow management device according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic device according to the embodiment of the present application may include various handheld devices (such as a mobile phone, a tablet computer, a POS machine, etc.) having a wireless communication function, a desktop computer, an in-vehicle device, a wearable device (a smart watch, a smart bracelet, a wireless headset, an augmented reality/virtual reality device, smart glasses), an AI robot, a computing device, or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), a Mobile Station (MS), a terminal device (terminal device), etc. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
The following describes embodiments of the present application in detail.
Referring to fig. 1, fig. 1 is a schematic flowchart of a process management method according to an embodiment of the present application, and as shown in the drawing, the process management method is applied to an electronic device, and includes:
101. target attribute information of a target product is obtained, wherein the target attribute information at least comprises partial attribute information expressed by adopting a global process variable.
The target product may be an application program, an applet, or a fast application, and is not limited herein. And the time difference between the on-line time of the target product and the current time is less than the preset time. The preset duration can be set by the user or defaulted by the system. The target attribute information may be at least one of: the product type, the product format, the product release time, the product identifier, the interface input and output parameters, the product version, the product development language, the product memory size, the service type, the product operating environment parameters, and the like, which are not limited herein. The target product may also be a data warehouse. The target attribute information at least comprises partial attribute information expressed by the global process variable, and the global process variable is adopted to express the attribute information, so that the product attribute expression can be simplified, the product performance can be optimized, the compatibility of the global process variable can be used, and the compatibility of the product can be improved. The partial attribute information may be at least one of: the product type, the product format, the product version, the product development language, the product memory size, the service type, the product operating environment parameter, and the like, which are not limited herein.
Wherein, the product operation environment parameters can be set by the user or the system defaults. The product operating environment parameters may include software environment parameters, and/or hardware environment parameters. The software environment parameters may include at least one of: CPU temperature, GPU temperature, foreground application type, number of processes, CPU resource occupancy, GPU resource occupancy, memory size, screen resolution, system type, and the like, without limitation. The hardware environment parameters may include at least one of: a CPU model, a GPU model, a CPU core count, a CPU processing rate, a GPU processing rate, and the like, which are not limited herein.
In a specific implementation, the target product may be a new product, or an installed product of a non-electronic device, or an upgrade package of an installed product. Aiming at the process treatment and the subdivision treatment logic, the access and the participation of the product can adopt the global process variable, further, the single treatment logic can be completely reused, only the customization is developed, and the process is integrated, the original process is not changed, the new product can simultaneously reuse the original logic, and only the customization part is processed.
Optionally, before the step 101, the following steps may be further included:
a1, acquiring current environment parameters;
a2, acquiring target test requirements;
a3, determining a preset test environment parameter corresponding to the target test requirement according to a mapping relation between the preset test requirement and the test environment parameter;
a4, comparing the current environment parameter with the preset test environment parameter;
a5, when the comparison between the current environment parameter and the preset test environment parameter is successful, executing the step of obtaining the target attribute information of the target product.
The preset test environment parameters may be set by the user or default by the system, or may be determined by the manufacturer of the product. The preset testing environment parameters may include software testing environment parameters, and/or hardware testing environment parameters. The software testing environment parameters may include at least one of: CPU temperature, GPU temperature, foreground application type, number of processes, CPU resource occupancy, GPU resource occupancy, memory size, screen resolution, system type, and the like, without limitation. The hardware test environment parameters may include at least one of: a CPU model, a GPU model, a CPU core count, a CPU processing rate, a GPU processing rate, and the like, which are not limited herein. Different test requirements may correspond to different test environment parameters.
Additionally, the current environmental parameters may include software environmental parameters, and/or hardware environmental parameters. The software environment parameters may include at least one of: CPU temperature, GPU temperature, foreground application type, number of processes, CPU resource occupancy, GPU resource occupancy, memory size, screen resolution, system type, and the like, without limitation. The hardware environment parameters may include at least one of: a CPU model, a GPU model, a CPU core count, a CPU processing rate, a GPU processing rate, and the like, which are not limited herein.
In the specific implementation, a mapping relation between a preset test requirement and a test environment parameter may be prestored in the electronic device, a current environment parameter is obtained, a target test requirement is obtained, a preset test environment parameter corresponding to the target test requirement is determined according to the mapping relation between the preset test requirement and the test environment parameter, the current environment parameter is compared with the preset test environment parameter, and when the comparison between the current environment parameter and the preset test environment parameter is successful, step 101 is executed, otherwise, when the comparison between the current environment parameter and the preset test environment parameter is failed, the test environment needs to be debugged, so that the current environment meets the test requirement.
Optionally, in step 101, acquiring the target attribute information of the target product, may include the following steps:
11. acquiring an attribute information set of the target product;
12. acquiring an attribute list required by a system of the electronic equipment;
13. and screening the attribute information set according to the attribute list to obtain the target attribute information.
The electronic equipment can acquire an attribute information set of a target product, the attribute information set can include a plurality of attribute information, each attribute information corresponds to one attribute identifier, and an attribute list required by a system of the electronic equipment is acquired, the attribute list can include a plurality of attribute identifiers, and then the attribute information set is screened according to the attribute list, namely according to the plurality of attribute identifiers contained in the attribute list, so that the target attribute information is acquired.
102. And detecting whether the target product is a preset type product or not according to the target attribute information.
The preset type product may be set by the user or default to the system, for example, the preset type product is a product that is listed in the last week, and for example, the preset type product is a product that is not installed in the electronic device at present, and of course, the preset type product may also be a certain type of product, such as a game product, an instant messaging product, a payment product, a shopping product, an audio/video product, and the like, which is not limited herein. For example, since the target attribute information may include a product release time or a product identifier, it may be determined whether the product is a product that is listed in the last week according to the product release time, and in addition, it may also be determined whether the product is an uninstalled product in the electronic device according to the product identifier.
103. And when the target product is the preset type product, determining a target flow module corresponding to the target attribute information.
In this embodiment, the process module may be at least one of the following: a flow distributor, a flow constructor, a flow processor, etc., without limitation thereto. A flow module may be understood as a software module or a program module, which may be used to perform the corresponding function of the code. The target flow module may include at least one flow module, i.e., one or more flow modules. The electronic device may include a plurality of process modules, of which the target process module is a part or all.
A flow distributor (process distributor) that can select a flow based on a distributor code that is incoming from a controller (controller).
The process builder (ProcessBuilder) is used for building a process flow class, and comprises definitions of relevant parameters such as process variables, arguments and the like.
A stream processor (ProcessHandler) which is an executor (process class) of the initialization flow process.
Optionally, in step 103, determining the target flow module corresponding to the target attribute information may include the following steps:
and determining a target process module corresponding to the target attribute information according to a preset mapping relation between the attribute information and the process module.
In specific implementation, the electronic device may pre-store a mapping relationship between the preset attribute information and the process module, and then the electronic device may determine the target process module corresponding to the target attribute information according to the mapping relationship between the preset attribute information and the process module, and then may obtain the process module matched with the product attribute, which is beneficial to subsequently improving the product operation efficiency.
Optionally, in step 103, determining the target flow module corresponding to the target attribute information may include the following steps:
31. acquiring interface access parameters in the target attribute information;
32. acquiring a target product code corresponding to the interface input parameter;
33. and determining the target process module corresponding to the target product code according to a preset mapping relation between the product code and the process module.
The electronic device may pre-store a mapping relationship between a preset product code and a process module, and in addition, the target attribute information may also include an interface parameter, and further, the electronic device may obtain the interface parameter in the target attribute information, and the electronic device may read a target product code corresponding to the target product according to the interface parameter, and the target product code may be recorded in an interface document of an interface corresponding to the interface parameter.
104. And determining the process processing parameters corresponding to the target product.
Wherein, the flow processing parameter may be at least one of the following: the flow processing priority, the type of the calling function, the type of the calling interface, and the like, which are not limited herein, the function type may be a function type of a function that can be called and included in each flow module. In specific implementation, the electronic device can determine the process processing parameters corresponding to the target product, and then can operate the corresponding product according to the process processing parameters corresponding to the product performance, thereby improving the product operation efficiency.
Optionally, the step 104 of determining the process processing parameters corresponding to the target product may include the following steps:
a41, acquiring a target model of the target product;
a42, acquiring target model identification information corresponding to the target model;
a43, determining the process processing parameters corresponding to the target model identification information according to the mapping relationship between the preset model identification information and the processing parameters.
In specific implementation, the electronic device may pre-store a mapping relationship between preset model identification information and processing parameters, and the electronic device may obtain a target model of a target product, where the target model may be a product architecture of the target product, such as a software architecture, and a hierarchical model of the target product; furthermore, the electronic device can obtain target model identification information corresponding to the target model, some model identification information can be marked in the software architecture, the model identification information is used for positioning corresponding process processing parameters in the later period, and the process processing parameters corresponding to the target model identification information are determined according to the preset mapping relation between the model identification information and the processing parameters, so that the college operation process module can be realized by combining product characteristics.
Optionally, the step 104 of determining the process processing parameters corresponding to the target product may include the following steps:
b41, determining the target optimization degree of the target product according to the global process variable corresponding to the partial attribute information;
b42, determining a target adjustment coefficient corresponding to the target optimization degree according to a preset mapping relation between the optimization degree and the adjustment coefficient;
b43, determining initial flow processing parameters corresponding to the target flow module;
and B44, adjusting the initial process processing parameters according to the target adjustment coefficient to obtain process processing parameters corresponding to the target product.
The electronic device may store a mapping relationship between a preset optimization degree and an adjustment coefficient in advance. The electronic device may determine a target optimization degree of the target product according to the global process variable corresponding to the partial attribute information, and specifically, may predict a first operation duration corresponding to a code of the target product that uses the non-global process variable in the partial attribute information, and determine a second operation duration corresponding to a code of the target product that uses the global process variable in the partial attribute information, where the target optimization degree is 1- (the second operation duration/the first operation duration).
Furthermore, the electronic device may determine a target adjustment coefficient corresponding to the target optimization degree according to a preset mapping relationship between the optimization degree and the adjustment coefficient, where a value range of the adjustment coefficient may be preset or default to a system, for example, -0.012 to 0.012. Because the process module is fixed, the corresponding initial process processing parameters are also fixed, and it can be understood that the initial process processing parameters are default or pre-stored, and further, the initial process processing parameters corresponding to the target process module can be directly obtained, and furthermore, the initial process processing parameters are adjusted according to the target adjustment coefficient to obtain the process processing parameters corresponding to the target product, which can specifically refer to the following formula:
the process processing parameter corresponding to the target product is the initial process processing parameter (1+ target regulating coefficient)
Therefore, the initial process processing parameters of the process module can be optimized according to the optimization degree of the product, and further the subsequent operation efficiency of the product is improved.
105. And controlling the target process module to operate the target product according to the process parameters.
In specific implementation, the electronic device can control the target process module to operate the target product according to the process parameters, and further, fully utilize the process configuration and use the proxy mode to complete automatic service assembly of each process node.
Optionally, in the step 105, controlling the target process module to operate the target product according to the process parameter may include the following steps:
51. acquiring a first idle resource parameter of the electronic equipment;
52. determining a demand resource parameter corresponding to the target process module and a resource identification set corresponding to the demand resource parameter;
53. screening the first idle resource parameter according to the resource identification set to obtain a second idle resource parameter;
54. when the ratio of the second idle resource parameter to the required resource parameter is larger than a preset ratio, calling a first target resource corresponding to the second idle resource parameter, and controlling the target process module to operate the target product based on the first target resource.
The preset proportion can be preset or default in the system. In a specific implementation, a first idle resource parameter of the electronic device is obtained, where the first idle resource parameter may be at least one of the following: CPU free resources, GPU free resources, available memory space, available memory fragmentation size, and the like, without limitation.
Further, the electronic device may determine a demand resource parameter corresponding to the target process module and a resource identifier set corresponding to the demand resource parameter, where the resource identifier set may include a plurality of resource identifiers, each resource identifier is used to identify a resource, and the demand resource parameter may be at least one of the following: CPU resources, GPU resources, memory space, memory fragmentation size, etc., without limitation. Furthermore, the electronic device may screen the first idle resource parameter according to the resource identifier set to obtain a second idle resource parameter, and when a ratio between the second idle resource parameter and the required resource parameter is greater than a preset ratio, call a first target resource corresponding to the second idle resource parameter, and control the target process module to operate the target product based on the first target resource, if the idle resource is sufficient, call the corresponding resource to operate the target product.
Further, optionally, after the step 53, the following step may be further included:
55. when the ratio of the second idle resource parameter to the required resource parameter is smaller than or equal to the preset ratio, releasing resources of the electronic equipment to obtain a third idle resource parameter;
56. screening the third idle resource parameter according to the resource identification set to obtain a fourth idle resource parameter;
57. and calling a second target resource corresponding to the fourth idle resource parameter, and controlling the target process module to operate the target product based on the second target resource.
In the specific implementation, when the ratio between the second idle resource parameter and the required resource parameter is less than or equal to the preset ratio, the electronic device may release resources to obtain a third idle resource parameter, and further may obtain more available resources, and may further screen the third idle resource parameter according to the resource identifier set to obtain a fourth idle resource parameter, and then obtain a resource meeting the requirements of the process module, and further call a second target resource corresponding to the fourth idle resource parameter, and based on the second target resource, control the target process module to operate the target product, so that system resources may be optimized, so that the electronic device may call the available resource to operate the target product as much as possible, and contribute to improving the product operation efficiency.
It can be seen that, in the process management method described in the embodiment of the present application, the target attribute information of the target product is obtained, where the target attribute information at least includes partial attribute information expressed by a global process variable, whether the target product is a preset type product is detected according to the target attribute information, when the target product is the preset type product, a target process module corresponding to the target attribute information is determined, a process processing parameter corresponding to the target product is determined, and the target process module is controlled to operate the target product according to the process parameter.
Referring to fig. 2, fig. 2 is a schematic flowchart of a process management method applied to an electronic device according to an embodiment of the present application, where as shown in the drawing, the process management method includes:
201. and acquiring current environment parameters.
202. And acquiring target test requirements.
203. And determining a preset test environment parameter corresponding to the target test requirement according to a mapping relation between the preset test requirement and the test environment parameter.
204. And comparing the current environment parameter with the preset test environment parameter.
205. And when the current environment parameter is successfully compared with the preset test environment parameter, acquiring target attribute information of a target product, wherein the target attribute information at least comprises partial attribute information expressed by adopting a global process variable.
206. And detecting whether the target product is a preset type product or not according to the target attribute information.
207. And when the target product is the preset type product, determining a target flow module corresponding to the target attribute information.
208. And determining the process processing parameters corresponding to the target product.
209. And controlling the target process module to operate the target product according to the process parameters.
The detailed description of the steps 201 to 209 may refer to the corresponding steps described in fig. 1, and is not repeated herein.
It can be seen that the process management method described in the embodiments of the present application obtains a current environmental parameter, obtains a target test requirement, determines a preset test environmental parameter corresponding to the target test requirement according to a mapping relationship between the preset test requirement and the test environmental parameter, compares the current environmental parameter with the preset test environmental parameter, and obtains target attribute information of a target product when the comparison is successful, where the target attribute information at least includes partial attribute information expressed by a global process variable, detects whether the target product is a preset type product according to the target attribute information, determines a target process module corresponding to the target attribute information when the target product is the preset type product, determines a process processing parameter corresponding to the target product, controls the target process module to operate the target product according to the process parameter, and aims at the specified product, the method can be used for realizing the optimal operation environment, can be used for improving the product compatibility through the self compatibility of the global process variable, and can be used for distributing corresponding process modules and process processing parameters according to the product attributes, thereby being beneficial to further improving the product compatibility and ensuring the normal operation of the product.
In accordance with the foregoing embodiments, please refer to fig. 3, fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in the drawing, the electronic device includes a processor, a memory, a communication interface, and one or more programs, the one or more programs are stored in the memory and configured to be executed by the processor, and in an embodiment of the present application, the programs include instructions for performing the following steps:
acquiring target attribute information of a target product, wherein the target attribute information at least comprises partial attribute information expressed by adopting a global process variable;
detecting whether the target product is a preset type product or not according to the target attribute information;
when the target product is the preset type product, determining a target flow module corresponding to the target attribute information;
determining a process processing parameter corresponding to the target product;
and controlling the target process module to operate the target product according to the process parameters.
It can be seen that, in the electronic device described in this embodiment of the present application, target attribute information of a target product is obtained, where the target attribute information at least includes partial attribute information expressed by a global process variable, and whether the target product is a preset type product is detected according to the target attribute information, when the target product is the preset type product, a target process module corresponding to the target attribute information is determined, a process processing parameter corresponding to the target product is determined, and the target process module is controlled to operate the target product according to the process parameter.
Optionally, in the aspect of determining the target flow module corresponding to the target attribute information, the program includes instructions for performing the following steps:
acquiring interface access parameters in the target attribute information;
acquiring a target product code corresponding to the interface input parameter;
and determining the target process module corresponding to the target product code according to a preset mapping relation between the product code and the process module.
Optionally, in the aspect of determining the process parameter corresponding to the target product, the program includes instructions for performing the following steps:
determining the target optimization degree of the target product according to the global process variable corresponding to the partial attribute information;
determining a target adjusting coefficient corresponding to the target optimization degree according to a preset mapping relation between the optimization degree and the adjusting coefficient;
determining an initial process processing parameter corresponding to the target process module;
and adjusting the initial process processing parameters according to the target adjustment coefficient to obtain process processing parameters corresponding to the target product.
Optionally, in the aspect of obtaining the target attribute information of the target product, the program includes instructions for performing the following steps:
acquiring an attribute information set of the target product;
acquiring an attribute list required by a system of the electronic equipment;
and screening the attribute information set according to the attribute list to obtain the target attribute information.
Optionally, in the aspect of determining the process parameter corresponding to the target product, the program includes instructions for performing the following steps:
acquiring a target model of the target product;
acquiring target model identification information corresponding to the target model;
and determining the process processing parameters corresponding to the target model identification information according to a mapping relation between preset model identification information and the processing parameters.
Optionally, in the aspect of determining the target flow module corresponding to the target attribute information, the program includes instructions for performing the following steps:
and determining a target process module corresponding to the target attribute information according to a preset mapping relation between the attribute information and the process module.
Optionally, in the aspect of controlling the target process module to run the target product according to the process parameter, the program includes instructions for executing the following steps:
acquiring a first idle resource parameter of the electronic equipment;
determining a demand resource parameter corresponding to the target process module and a resource identification set corresponding to the demand resource parameter;
screening the first idle resource parameter according to the resource identification set to obtain a second idle resource parameter;
when the ratio of the second idle resource parameter to the required resource parameter is larger than a preset ratio, calling a first target resource corresponding to the second idle resource parameter, and controlling the target process module to operate the target product based on the first target resource.
Optionally, after the first idle resource parameter is screened according to the resource identifier set to obtain a second idle resource parameter, the program further includes instructions for executing the following steps:
when the ratio of the second idle resource parameter to the required resource parameter is smaller than or equal to the preset ratio, releasing resources of the electronic equipment to obtain a third idle resource parameter;
screening the third idle resource parameter according to the resource identification set to obtain a fourth idle resource parameter;
and calling a second target resource corresponding to the fourth idle resource parameter, and controlling the target process module to operate the target product based on the second target resource.
Optionally, before the obtaining of the target attribute information of the target product, the program further includes instructions for performing the following steps:
acquiring current environmental parameters;
acquiring a target test requirement;
determining a preset test environment parameter corresponding to the target test requirement according to a mapping relation between the preset test requirement and the test environment parameter;
comparing the current environment parameter with the preset test environment parameter;
and when the current environment parameter is successfully compared with the preset test environment parameter, executing the step of acquiring the target attribute information of the target product.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. 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 application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 4 is a block diagram showing functional units of the flow management apparatus 400 according to the embodiment of the present application. The apparatus 400 for process management, said apparatus 400 comprising: an acquisition unit 401, a detection unit 402, a first determination unit 403, a second determination unit 404 and an execution unit 405, wherein,
the obtaining unit 401 is configured to obtain target attribute information of a target product, where the target attribute information at least includes partial attribute information represented by a global process variable;
the detecting unit 402 is configured to detect whether the target product is a preset type product according to the target attribute information;
the first determining unit 403 is configured to determine, when the target product is the preset type product, a target process module corresponding to the target attribute information;
the second determining unit 404 is configured to determine a process processing parameter corresponding to the target product;
the operation unit 405 is configured to control the target process module to operate the target product according to the process parameter.
It can be seen that, the process management apparatus described in the embodiment of the present application obtains target attribute information of a target product, where the target attribute information at least includes partial attribute information represented by a global process variable, detects whether the target product is a preset type product according to the target attribute information, determines a target process module corresponding to the target attribute information when the target product is the preset type product, determines a process processing parameter corresponding to the target product, and controls the target process module to operate the target product according to the process parameter.
Optionally, in terms of determining the target process module corresponding to the target attribute information, the first determining unit 403 is specifically configured to:
acquiring interface access parameters in the target attribute information;
acquiring a target product code corresponding to the interface input parameter;
and determining the target process module corresponding to the target product code according to a preset mapping relation between the product code and the process module.
Optionally, in terms of determining the process processing parameter corresponding to the target product, the second determining unit 404 is specifically configured to:
determining the target optimization degree of the target product according to the global process variable corresponding to the partial attribute information;
determining a target adjusting coefficient corresponding to the target optimization degree according to a preset mapping relation between the optimization degree and the adjusting coefficient;
determining an initial process processing parameter corresponding to the target process module;
and adjusting the initial process processing parameters according to the target adjustment coefficient to obtain process processing parameters corresponding to the target product.
Optionally, in terms of obtaining the target attribute information of the target product, the obtaining unit 401 is specifically configured to:
acquiring an attribute information set of the target product;
acquiring an attribute list required by a system of the electronic equipment;
and screening the attribute information set according to the attribute list to obtain the target attribute information.
Optionally, in terms of determining the process processing parameter corresponding to the target product, the second determining unit 404 is specifically configured to:
acquiring a target model of the target product;
acquiring target model identification information corresponding to the target model;
and determining the process processing parameters corresponding to the target model identification information according to a mapping relation between preset model identification information and the processing parameters.
Optionally, in terms of determining the target process module corresponding to the target attribute information, the first determining unit 403 is specifically configured to:
and determining a target process module corresponding to the target attribute information according to a preset mapping relation between the attribute information and the process module.
Optionally, in the aspect of controlling the target process module to operate the target product according to the process parameter, the operation unit 405 is specifically configured to:
acquiring a first idle resource parameter of the electronic equipment;
determining a demand resource parameter corresponding to the target process module and a resource identification set corresponding to the demand resource parameter;
screening the first idle resource parameter according to the resource identification set to obtain a second idle resource parameter;
when the ratio of the second idle resource parameter to the required resource parameter is larger than a preset ratio, calling a first target resource corresponding to the second idle resource parameter, and controlling the target process module to operate the target product based on the first target resource.
Further, optionally, after the first idle resource parameter is screened according to the resource identifier set to obtain a second idle resource parameter, the operation unit 405 is further specifically configured to:
when the ratio of the second idle resource parameter to the required resource parameter is smaller than or equal to the preset ratio, releasing resources of the electronic equipment to obtain a third idle resource parameter;
screening the third idle resource parameter according to the resource identification set to obtain a fourth idle resource parameter;
and calling a second target resource corresponding to the fourth idle resource parameter, and controlling the target process module to operate the target product based on the second target resource.
Optionally, before the obtaining of the target attribute information of the target product, the apparatus 400 is further specifically configured to:
acquiring current environmental parameters;
acquiring a target test requirement;
determining a preset test environment parameter corresponding to the target test requirement according to a mapping relation between the preset test requirement and the test environment parameter;
comparing the current environment parameter with the preset test environment parameter;
and when the current environment parameter is successfully compared with the preset test environment parameter, executing the step of acquiring the target attribute information of the target product.
It can be understood that the functions of each program module of the flow management apparatus in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A process management method, the method comprising:
acquiring target attribute information of a target product, wherein the target attribute information at least comprises partial attribute information expressed by adopting a global process variable;
detecting whether the target product is a preset type product or not according to the target attribute information;
when the target product is the preset type product, determining a target flow module corresponding to the target attribute information;
determining a process processing parameter corresponding to the target product;
and controlling the target process module to operate the target product according to the process parameters.
2. The method of claim 1, wherein the determining the target process module corresponding to the target attribute information comprises:
acquiring interface access parameters in the target attribute information;
acquiring a target product code corresponding to the interface input parameter;
and determining the target process module corresponding to the target product code according to a preset mapping relation between the product code and the process module.
3. The method of claim 1 or 2, wherein said determining process parameters corresponding to said target product comprises:
determining the target optimization degree of the target product according to the global process variable corresponding to the partial attribute information;
determining a target adjusting coefficient corresponding to the target optimization degree according to a preset mapping relation between the optimization degree and the adjusting coefficient;
determining an initial process processing parameter corresponding to the target process module;
and adjusting the initial process processing parameters according to the target adjustment coefficient to obtain process processing parameters corresponding to the target product.
4. The method of claim 1 or 2, wherein said determining process parameters corresponding to said target product comprises:
acquiring a target model of the target product;
acquiring target model identification information corresponding to the target model;
and determining the process processing parameters corresponding to the target model identification information according to a mapping relation between preset model identification information and the processing parameters.
5. The method according to claim 1 or 2, wherein the controlling the target process module to run the target product according to the process parameter comprises:
acquiring a first idle resource parameter of the electronic equipment;
determining a demand resource parameter corresponding to the target process module and a resource identification set corresponding to the demand resource parameter;
screening the first idle resource parameter according to the resource identification set to obtain a second idle resource parameter;
when the ratio of the second idle resource parameter to the required resource parameter is larger than a preset ratio, calling a first target resource corresponding to the second idle resource parameter, and controlling the target process module to operate the target product based on the first target resource.
6. The method according to claim 5, wherein after said screening said first idle resource parameter according to said resource identifier set to obtain a second idle resource parameter, said method further comprises:
when the ratio of the second idle resource parameter to the required resource parameter is smaller than or equal to the preset ratio, releasing resources of the electronic equipment to obtain a third idle resource parameter;
screening the third idle resource parameter according to the resource identification set to obtain a fourth idle resource parameter;
and calling a second target resource corresponding to the fourth idle resource parameter, and controlling the target process module to operate the target product based on the second target resource.
7. The method of claim 1 or 2, wherein prior to said obtaining target attribute information for a target product, the method further comprises:
acquiring current environmental parameters;
acquiring a target test requirement;
determining a preset test environment parameter corresponding to the target test requirement according to a mapping relation between the preset test requirement and the test environment parameter;
comparing the current environment parameter with the preset test environment parameter;
and when the current environment parameter is successfully compared with the preset test environment parameter, executing the step of acquiring the target attribute information of the target product.
8. A process management apparatus, comprising: an acquisition unit, a detection unit, a first determination unit, a second determination unit and an operation unit, wherein,
the acquisition unit is used for acquiring target attribute information of a target product, wherein the target attribute information at least comprises partial attribute information expressed by adopting a global process variable;
the detection unit is used for detecting whether the target product is a preset type product or not according to the target attribute information;
the first determining unit is configured to determine, when the target product is the preset type product, a target process module corresponding to the target attribute information;
the second determining unit is used for determining the process processing parameters corresponding to the target product;
and the operation unit is used for controlling the target process module to operate the target product according to the process parameters.
9. An electronic device comprising a processor, a memory for storing one or more programs and configured for execution by the processor, the programs comprising instructions for performing the steps of the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to carry out the method according to any one of claims 1-7.
CN202011553462.8A 2020-12-24 2020-12-24 Process management method and device, electronic equipment and storage medium Pending CN112685006A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011553462.8A CN112685006A (en) 2020-12-24 2020-12-24 Process management method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011553462.8A CN112685006A (en) 2020-12-24 2020-12-24 Process management method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112685006A true CN112685006A (en) 2021-04-20

Family

ID=75452899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011553462.8A Pending CN112685006A (en) 2020-12-24 2020-12-24 Process management method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112685006A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114817482A (en) * 2022-03-23 2022-07-29 赛美特科技有限公司 Method, device and equipment for determining product manufacturing program and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114817482A (en) * 2022-03-23 2022-07-29 赛美特科技有限公司 Method, device and equipment for determining product manufacturing program and storage medium

Similar Documents

Publication Publication Date Title
CN108762937B (en) Configuration information sending method, configuration information obtaining method, configuration information sending device, configuration information obtaining device and terminal
CN108462760B (en) Electronic device, automatic cluster access domain name generation method and storage medium
CN112114892B (en) Deep learning model acquisition method, loading method and selection method
CN112861057A (en) Page rendering method, device and equipment based on small program and storage medium
CN105718313A (en) Application operation method and device
WO2018103405A1 (en) Method for identifying access point and hotspot, and related product
CN112954040B (en) Method, system, device and storage medium for embedding application release server
WO2019047708A1 (en) Resource configuration method and related product
CN110837391B (en) Application program hot updating method and device, storage medium and electronic equipment
CN109710510B (en) Code submitting method, device, equipment and readable storage medium
CN102750493B (en) Access right control method, Apparatus and system
CN109522021B (en) Parameter callback processing method and device, electronic equipment and storage medium
CN112685006A (en) Process management method and device, electronic equipment and storage medium
CN108717357B (en) Page display code conversion method, device, equipment and computer storage medium
CN115454576B (en) Virtual machine process management method and system and electronic equipment
KR20210046426A (en) Application optimizing method and electronic device supporting the same
CN113254158B (en) Deployment method and device of deep learning system
CN115688102A (en) Window processing method and device, processor and electronic equipment
CN112100058A (en) Interface specification detection method and device
CN111638914A (en) Method, equipment and storage medium for setting terminal function
US9189633B2 (en) Download management method and device based on android browser
CN113282363A (en) Method and device for optimizing hybrid APP
CN115004667A (en) Information pushing method and device, electronic equipment and computer readable medium
CN111324368A (en) Data sharing method and server
CN110737911A (en) Data processing method, device and computer readable storage medium

Legal Events

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