Disclosure of Invention
The invention mainly aims to solve the problem of low project development efficiency caused by inflexible project development configuration and no visualization.
The first aspect of the present invention provides a visual service configuration method, including:
acquiring a business process of a project, and setting a process node to be developed according to the business process;
setting a service function to be developed for each process node;
setting a service, a page and an element to be developed for each process node according to the service function;
setting configurable function points to be developed according to the services, the pages and the elements to be developed, wherein the configurable function points comprise nodes to be configured, components to be configured, pages to be configured and elements to be configured;
traversing a function tree in a preset library to obtain a standard function point corresponding to the configurable function point in the function tree, wherein the preset library comprises a standard node library, a standard component library, a standard page library and a standard element library, and the standard function point comprises a standard node, a standard component, a standard page and a standard element;
and configuring the process nodes on a preset visual console through a preset configuration file and the standard function points, wherein the configuration file is used for indicating the mode and the condition for editing the standard function points corresponding to the process nodes into the operation process according with the service product.
Optionally, in a first implementation manner of the first aspect of the present invention, before the acquiring a business process of a project and setting a process node to be developed according to the business process, the visual business configuration method includes:
respectively creating a function tree corresponding to a standard node, a standard component, a standard page and a standard element in a preset library;
and storing the function tree in a corresponding storage space in a preset memory key value database to obtain a standard node library, a standard component library, a standard page library and a standard element library.
Optionally, in a second implementation manner of the first aspect of the present invention, after the function tree is stored in a corresponding storage space in a preset memory key value database to obtain a standard node library, a standard component library, a standard page library, and a standard element library, the visualized service configuration method includes:
configuring a dependent service for the nodes in the standard node library, wherein the dependent service is used for indicating each process node of a business product implementation process;
configuring a dependency relationship for components in the standard component library, wherein the components comprise a user interface component, a business logic component, a service component and a database component;
standardizing the elements in the standard element library, wherein the elements comprise fields.
Optionally, in a third implementation manner of the first aspect of the present invention, after the configuration processing is performed on the process node on a preset visual console through a preset configuration file and the standard function point, the visual service configuration method includes:
detecting whether the process node is performing configuration updating;
when detecting that the process node is performing configuration update, judging whether the dependent service corresponding to the process node before configuration update is allowed to be newly added or moved during configuration update;
and if the dependent service corresponding to the process node before configuration updating is judged to be allowed to be newly added or moved during configuration updating, acquiring a process configuration file of the project, and newly adding or moving the dependent service according to the process configuration file, wherein the process configuration file comprises process node information of the business process and an operation sequence of the business process.
Optionally, in a fourth implementation manner of the first aspect of the present invention, after the dependent service is newly added or moved according to the process configuration file, the visual service configuration method includes:
acquiring a new version of the project after the configuration update of the process node, and acquiring a historical version of the project before the configuration update;
adding version isolation between the new version and the historical version.
Optionally, in a fifth implementation manner of the first aspect of the present invention, after the configuration processing is performed on the process node on a preset visual console through a preset configuration file and the standard function point, the visual service configuration method includes:
monitoring whether operation abnormity and/or information abnormity exists in the process of configuring the process nodes by the visual console;
and if the operation abnormity and/or the information abnormity exist in the process of carrying out configuration processing on the process nodes by the visual console, generating abnormal information and carrying out early warning according to the abnormal information.
Optionally, in a sixth implementation manner of the first aspect of the present invention, after the configuration processing is performed on the process node on a preset visual console through a preset configuration file and the standard function point, the visual service configuration method includes:
acquiring a development requirement of the project and acquiring a configuration processing process of configuring and processing a flow node to be examined and approved, wherein the development requirement comprises the characteristics and functions of the project;
and setting an approval node in the configuration processing process according to the development requirement, wherein the approval node is used for approval and confirmation of a user.
A second aspect of the present invention provides a visual service configuration apparatus, including:
the first setting module is used for acquiring a business process of a project and setting a process node to be developed according to the business process;
the second setting module is used for setting a service function to be developed for each process node;
the third setting module is used for setting services, pages and elements to be developed for each process node according to the business function;
the fourth setting module is used for setting configurable function points to be developed according to the services, the pages and the elements to be developed, wherein the configurable function points comprise nodes to be configured, components to be configured, pages to be configured and elements to be configured;
the traversal module is used for traversing a function tree in a preset library to obtain a standard function point corresponding to the configurable function point in the function tree, wherein the preset library comprises a standard node library, a standard component library, a standard page library and a standard element library, and the standard function point comprises a standard node, a standard component, a standard page and a standard element;
and the first configuration processing module is used for configuring the process nodes on a preset visual console through a preset configuration file and the standard function points, wherein the configuration file is used for indicating a mode and a condition for editing the standard function points corresponding to the process nodes into a mode and a condition which accord with the operation process of a business product.
Optionally, in a first implementation manner of the second aspect of the present invention, the visualized service configuration apparatus includes:
the creating module is used for respectively creating a function tree corresponding to a standard node, a standard component, a standard page and a standard element in a preset library;
and the storage module is used for storing the function tree in a corresponding storage space in a preset memory key value database to obtain a standard node library, a standard component library, a standard page library and a standard element library.
Optionally, in a second implementation manner of the second aspect of the present invention, the visualized service configuration apparatus includes:
a first configuration module, configured to configure a dependent service for a node in the standard node library, where the dependent service is used to indicate each process node of a business product implementation process;
the second configuration module is used for configuring the dependency relationship for the components in the standard component library, and the components comprise a user interface component, a business logic component, a service component and a database component;
a definition module for performing standardized definition on the elements in the standard element library, wherein the elements comprise fields.
Optionally, in a third implementation manner of the second aspect of the present invention, the visualized service configuration apparatus includes:
the detection module is used for detecting whether the flow node is performing configuration updating;
the judging module is used for judging whether the dependent service corresponding to the process node before configuration updating is allowed to be newly added or moved during configuration updating when the process node is detected to be performing configuration updating;
and the processing module is used for acquiring a process configuration file of the project if judging that the dependent service corresponding to the process node before configuration updating is allowed to be newly added or moved during configuration updating, and newly adding or moving the dependent service according to the process configuration file, wherein the process configuration file comprises the process node information of the business process and the operation sequence of the business process.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the visualized service configuration apparatus includes:
the first acquisition module is used for acquiring a new version of the project after the configuration update of the process node and acquiring a historical version of the project before the configuration update;
an adding module for adding version isolation between the new version and the historical version.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the visualized service configuration apparatus includes:
the monitoring module is used for monitoring whether operation abnormity and/or information abnormity exists in the process of carrying out configuration processing on the process nodes by the visual console;
and the early warning module is used for generating abnormal information and carrying out early warning according to the abnormal information if the operation abnormality and/or the information abnormality are monitored in the process of carrying out configuration processing on the process nodes by the visual console.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the visualized service configuration apparatus includes:
the second acquisition module is used for acquiring the development requirement of the project and acquiring the configuration processing process of the process node to be examined and approved for configuration processing, wherein the development requirement comprises the characteristics and functions of the project;
and the second configuration processing module is used for setting an approval node in the configuration processing process according to the development requirement, and the approval node is used for approval and confirmation of a user.
A third aspect of the present invention provides a visual service configuration device, including: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line; the at least one processor calls the instructions in the memory to cause the visualization service configuration device to execute the visualization service configuration method.
A fourth aspect of the present invention provides a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to perform the visualized service configuration method described above.
According to the technical scheme provided by the invention, a business process of a project is obtained, and a process node to be developed is set according to the business process; setting a service function to be developed for each process node; setting a service, a page and an element to be developed for each process node according to the service function; setting configurable function points to be developed according to services, pages and elements to be developed; traversing a function tree in a preset library to obtain a standard function point corresponding to the configurable function point in the function tree; and configuring the flow nodes on a preset visual console through a preset configuration file and a standard function point. In the embodiment of the invention, aiming at a flexible configuration scheme of a project, the method and the device are suitable for the customized requirements of various internet product sales scenes, can support the rapid implementation and online of the project, can support the differentiated configuration of nodes, components, pages and elements for each project to be developed, realize the flexible and visual configuration of the project development, have high code reuse rate, and greatly improve the efficiency of the project development, thereby solving the problems of low efficiency of the project development caused by the inflexibility and no visualization of the project development configuration.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a detailed flow of the embodiment of the present invention is described below, and referring to fig. 1, an embodiment of a visualized service configuration method in the embodiment of the present invention includes:
101. acquiring a business process of a project, and setting a process node to be developed according to the business process;
inputting the information of the project into a preset project development platform, reading the information of the project by a server through the project development platform, extracting the characteristics of the business process from the information of the project according to preset extraction conditions to obtain the characteristics of the business process, and setting a process node to be developed of the project according to the characteristics of the business process. The extraction condition may be a preset word or sentence related to the process, and a condition to be met corresponding to the word or sentence.
102. Setting a service function to be developed for each process node;
the server analyzes the service function requirements of the project information to obtain the service function requirements, classifies and predicts the service function requirements through a preset classification algorithm to obtain the service function to be developed of each process node, and creates a service function configuration file of each process node, so that the service function to be developed is set for each process node.
103. Setting a service, a page and an element to be developed for each process node according to the service function;
the server performs data cleaning, data integration, data transformation and data preprocessing of data protocols on various service product information in various service fields collected by various network platforms or other channels to obtain initial data, performs feature extraction on the initial data to obtain feature information, classifies the feature information to obtain classified information, wherein the classified information is fields (namely elements) of each process node corresponding to various service product operation processes, traverses a preset service function configuration table according to the classified information and the service functions, the service function configuration table comprises the service functions, element items (corresponding classified information), page items and service items, configuration items corresponding to the service functions and the classified information are obtained from the service function configuration table, and corresponding page information and service information are extracted from the configuration items, therefore, the service, the page and the element to be developed are set for each process node according to the service function.
104. Setting a configurable function point to be developed according to a service, a page and an element to be developed, wherein the configurable function point comprises a node to be configured, a component to be configured, a page to be configured and an element to be configured;
the server retrieves a preset set text according to the service, the page and the element to be developed to obtain a node to be configured, a component to be configured, the page to be configured and the element to be configured, wherein the set text is used for indicating the operational relationship and the operational condition for connecting and calling the service, the page and the element to be developed, a first corresponding relationship between the node to be configured and the element to be configured is established according to the set text, a second corresponding relationship between the element to be configured and the page to be configured is established, a third corresponding relationship between the component to be configured and the component to be configured, the page to be configured and the element to be configured is established, the component to be configured selects the corresponding element to be configured according to the node to be configured through the first corresponding relationship, the second corresponding relationship and the third corresponding relationship, and the selected element to be configured is called to the corresponding page to be configured.
105. Traversing a function tree in a preset library to obtain standard function points corresponding to the configurable function points in the function tree, wherein the preset library comprises a standard node library, a standard component library, a standard page library and a standard element library, and the standard function points comprise standard nodes, standard components, standard pages and standard elements;
the method comprises the steps that a standard node library, a standard component library, a standard page library and a standard element library respectively correspond to a function tree, a server classifies and marks configurable function points to respectively obtain node tags, component tags, page tags and element notes, the corresponding function trees are selected through the node tags, the component tags, the page tags and the element notes, and node analysis is carried out on the function trees layer by layer through a width-first search algorithm to obtain the standard nodes, the standard components, the standard pages and the standard elements which correspond to nodes to be configured, the components to be configured, the pages to be configured and the elements to be configured one by one.
106. And configuring the process nodes on a preset visual console through a preset configuration file and standard function points, wherein the configuration file is used for indicating a mode and a condition for editing the standard function points corresponding to the process nodes into a mode and a condition which accord with the operation process of the business product.
The method comprises the steps that standard function points are selected in a preset visual console, a server receives the selected standard function points of the preset visual console, a preset configuration file is called, key values of the selected standard function points are generated, the configuration file is retrieved through the key values, a mode and conditions which correspond to the standard function points and are in accordance with the operation flow of a business product in the configuration file are obtained, the standard function points are configured and processed through an embedded middle control SDK according to the mode and the conditions, differential configuration of node elements and flow nodes is achieved, the influence of flow updating of the business product on online customer groups is reduced, acquisition of designated fields is reduced, the development period is shortened, the code reuse rate is high, and the project development efficiency is improved.
The method comprises the steps of determining configurable function points to be developed according to a business process of a project to be developed, and acquiring corresponding standard nodes, standard components, standard pages and standard elements from a standard node library, a standard component library, a standard page library and a standard element library which are constructed in advance; and according to the process nodes, the acquired standard nodes, standard components, standard pages and standard elements, configuring and developing each process node on a preset visual interface. Specifically, the preset visualization interface may be a development interface of a visualization console for developing the project.
In the embodiment of the invention, aiming at a flexible configuration scheme of a project, the method and the device are suitable for the customized requirements of various internet product sales scenes, can support the rapid implementation and online of the project, can support the differentiated configuration of nodes, components, pages and elements for each project to be developed, realize the flexible and visual configuration of the project development, have high code reuse rate, and greatly improve the efficiency of the project development, thereby solving the problems of low efficiency of the project development caused by the inflexibility and no visualization of the project development configuration.
Referring to fig. 2, another embodiment of a visualized service configuration method according to an embodiment of the present invention includes:
201. acquiring a business process of a project, and setting a process node to be developed according to the business process;
specifically, before the server acquires a business process of a project and sets a process node to be developed according to the business process, the server respectively creates a function tree corresponding to a standard node, a standard component, a standard page and a standard element in a preset library, and stores the function tree in a corresponding storage space in a preset memory key value database to obtain a standard node library, a standard component library, a standard page library and a standard element library.
The server analyzes standard nodes, standard components, standard pages and standard elements in a preset library respectively through a decision tree algorithm or a random forest algorithm to create function trees respectively, the function trees corresponding to the standard nodes, the standard components, the standard pages and the standard elements respectively are stored in storage spaces pre-created in a stored key value database Redis correspondingly to obtain a standard node library, a standard component library, a standard page library and a standard element library, and the standard node library, the standard component library, the standard page library and the standard element library are constructed in advance, so that the standardized nodes, components, pages and elements can be rapidly configured in the whole development process, rapid and flexible configuration is realized, and the project development configuration efficiency is greatly improved. Specifically, the standard node library may include corresponding standard components, the standard components include corresponding standard pages, the standard pages include corresponding standard elements, and the standard node library, the standard component library, the standard page library, and the standard element library may be independent of each other, or may have an inclusion relationship. And aiming at each project to be developed, the contents of the corresponding standard node, standard component, standard page and standard element can be directly matched from the standard node library, the standard component library, the standard page library and the standard element library according to specific development requirements, so that the reusability of code development is greatly improved.
Optionally, after the server stores the function tree in a corresponding storage space in a preset memory key value database to obtain a standard node library, a standard component library, a standard page library and a standard element library, the server configures a dependent service for a node in the standard node library, where the dependent service is used to indicate each process node of a business product implementation process; configuring a dependency relation for components in a standard component library, wherein the components comprise a user interface component, a business logic component, a service component and a database component; elements in the standard element library are defined by standardization, and the elements comprise fields.
After a standard node library, a standard component library, a standard page library and a standard element library are constructed, a server configures corresponding dependent services for relevant nodes in the standard node library according to development requirements, wherein the dependent services are each process node of a business product implementation process, for example: examination and approval nodes such as face recognition, personal information verification, production risk increase and the like in the borrower qualification examination and approval link; the collection nodes of identity information registration, work information registration, spouse information registration and the like in the borrower information collection process enable the connection relationship among the nodes to be more definite. Further, according to development needs, a dependency relationship is configured for components in the standard component library, each component in the standard component library can be relatively independent, and the dependency relationship can also be configured, wherein the components include a User Interface component (UI), a business logic component, a service component and a database component. Further, according to development needs, elements in the standard element library are defined in a standardized manner, that is, a company-level standard element library can be established in advance, so that the element definitions in all upstream and downstream systems are uniform and consistent in source. The configuration can be completed in a visual console for developing projects, and elements in a standard element library are issued to an upstream and downstream system with related elements in a data synchronization mode and the like, wherein the elements comprise fields, and the fields comprise options of display, editable, necessary filling and the like. In the embodiment, the constructed contents in the standard node library, the standard component library, the standard page library and the standard element library are developed or processed in advance, so that the attributes of the nodes, the components, the pages and the elements for configuration are perfect, and a foundation is laid for visual development and configuration of projects.
202. Setting a service function to be developed for each process node;
the server analyzes the service function requirements of the project information to obtain the service function requirements, classifies and predicts the service function requirements through a preset classification algorithm to obtain the service function to be developed of each process node, and creates a service function configuration file of each process node, so that the service function to be developed is set for each process node.
203. Setting a service, a page and an element to be developed for each process node according to the service function;
the server performs data cleaning, data integration, data transformation and data preprocessing of data protocols on various service product information in various service fields collected by various network platforms or other channels to obtain initial data, performs feature extraction on the initial data to obtain feature information, classifies the feature information to obtain classified information, wherein the classified information is fields (namely elements) of each process node corresponding to various service product operation processes, traverses a preset service function configuration table according to the classified information and the service functions, the service function configuration table comprises the service functions, element items (corresponding classified information), page items and service items, configuration items corresponding to the service functions and the classified information are obtained from the service function configuration table, and corresponding page information and service information are extracted from the configuration items, therefore, the service, the page and the element to be developed are set for each process node according to the service function.
204. Setting a configurable function point to be developed according to a service, a page and an element to be developed, wherein the configurable function point comprises a node to be configured, a component to be configured, a page to be configured and an element to be configured;
the server retrieves a preset set text according to the service, the page and the element to be developed to obtain a node to be configured, a component to be configured, the page to be configured and the element to be configured, wherein the set text is used for indicating the operational relationship and the operational condition for connecting and calling the service, the page and the element to be developed, a first corresponding relationship between the node to be configured and the element to be configured is established according to the set text, a second corresponding relationship between the element to be configured and the page to be configured is established, a third corresponding relationship between the component to be configured and the component to be configured, the page to be configured and the element to be configured is established, the component to be configured selects the corresponding element to be configured according to the node to be configured through the first corresponding relationship, the second corresponding relationship and the third corresponding relationship, and the selected element to be configured is called to the corresponding page to be configured.
205. Traversing a function tree in a preset library to obtain standard function points corresponding to the configurable function points in the function tree, wherein the preset library comprises a standard node library, a standard component library, a standard page library and a standard element library, and the standard function points comprise standard nodes, standard components, standard pages and standard elements;
the method comprises the steps that a standard node library, a standard component library, a standard page library and a standard element library respectively correspond to a function tree, a server classifies and marks configurable function points to respectively obtain node tags, component tags, page tags and element notes, the corresponding function trees are selected through the node tags, the component tags, the page tags and the element notes, and node analysis is carried out on the function trees layer by layer through a width-first search algorithm to obtain the standard nodes, the standard components, the standard pages and the standard elements which correspond to nodes to be configured, the components to be configured, the pages to be configured and the elements to be configured one by one.
206. Configuring the process nodes on a preset visual console through a preset configuration file and standard function points, wherein the configuration file is used for indicating a mode and a condition for editing the standard function points corresponding to the process nodes into a mode and a condition which accord with the operation process of a business product;
optionally, after the server performs configuration processing on the flow nodes on a preset visual console through a preset configuration file and a standard function point, the server also monitors whether an operation abnormality and/or an information abnormality exists in the process of performing configuration processing on the flow nodes by the visual console; and if the monitoring visualization console has abnormal operation and/or abnormal information in the process of configuring the flow nodes, generating abnormal information and carrying out early warning according to the abnormal information.
The method comprises the steps that a server monitors operation abnormity and/or information abnormity in the process of visual configuration development of a project in real time, if the operation abnormity and/or the information abnormity are found through monitoring, abnormity information is generated, the abnormity information can comprise abnormal operation and/or information and corresponding abnormity reasons and abnormity degrees, and abnormity prompt information (namely early warning) is sent according to the abnormity information to remind current development and configuration personnel of abnormity existing in the current configuration process, so that the misoperation probability of related developers is reduced, and the project development reliability is improved.
Optionally, after the server performs configuration processing on the process points through a preset configuration file and standard function points and a preset visual control platform, the server also obtains development requirements of the project and a configuration processing process of performing configuration processing on the process nodes to be examined and approved, wherein the development requirements include characteristics and functions of the project; and setting an approval node in the configuration processing process according to the development requirement, wherein the approval node is used for approval and confirmation of a user.
The server sets an approval node in a process node link which needs to be approved by a certain process node according to the development requirements of the project, the approval node is used for a user to approve and confirm, namely, according to the development requirements of the project, the approval link can be added to avoid misoperation of related developers, and the reliability of the project development is further guaranteed.
207. Detecting whether the process node is performing configuration updating;
after the server configures the process nodes on a preset visual console through a preset configuration file and standard function points, a preset monitoring tool is called to monitor and detect the configuration operation conditions of the process nodes all the time so as to analyze whether the process nodes are performing configuration updating in real time.
208. When detecting that the process node is performing configuration updating, judging whether the process node is allowed to be newly added or moved or not according to a corresponding dependent service before configuration updating;
when a server detects that a certain process node is updated and configured, input service information is obtained, the service information is extracted from the input service product information and is related to the product operation process, a target key value of the service information and the process node is created, a preset process node table is searched through the target key value, the process node table is used for providing dependent services (namely process node information) corresponding to each configuration of each service product, first process node information corresponding to the service information and the process node before the update configuration and second process node information corresponding to the process node after the update configuration are respectively obtained from the process node table, the first process node information and the second process node information are compared, analyzed and classified to obtain newly added process node information and mobile process node information, and the newly added process node information is the process node information corresponding to the second process node information which is more than the first process node information, the mobile process node information is process node information of which the connection position is changed when the second process node information is compared with the first process node information, and whether the corresponding dependent service of the process node before configuration updating is allowed to be newly added or moved is judged or verified by acquiring the newly added process node information and the mobile process node information.
209. And if judging the corresponding dependent service of the process node before updating the configuration and allowing to be newly added or moved during configuration updating, acquiring a process configuration file of the project, and newly adding or moving the dependent service according to the process configuration file, wherein the process configuration file comprises the process node information of the service process and the operation sequence of the service process.
The server judges the corresponding dependent service of the process node before the configuration is updated, and when the configuration is updated and whether the new addition or the movement is allowed, if the corresponding dependent service of the process node before the configuration is updated and the new addition or the movement is allowed during the configuration update is judged, the information of the new process node and the information of the mobile process node are obtained, and the information of the new process node and the information of the mobile process node are added or moved at the corresponding positions of the corresponding process nodes. The configuration updating is carried out on the detected process nodes to newly add or move the dependent services according to the project requirements, so that the configuration flexibility of the project development is enhanced, the service development process of the project product is quickly and accurately spliced, and the project development efficiency is effectively improved.
Optionally, after the server adds or moves the dependent service according to the process configuration file, the server acquires a new version of the project after the process node performs configuration update, and acquires a historical version of the project before the configuration update; version isolation is added between the new version and the historical version.
After a certain process node is updated, the server needs to rename the new version to obtain the new version of the project after the process node is updated in configuration, and adds version isolation between the new version and the historical version. The invention has flexible project development and configuration and low updating cost, and can adapt to market demands for quick updating and configuration and respond to supervision demands in time because the corresponding Internet product project has low modification cost.
According to the embodiment of the invention, on the basis of realizing flexible and visual project development configuration and high code reuse rate and greatly improving the project development efficiency, thereby solving the problem of low project development efficiency caused by inflexibility and no visualization of the project development configuration, the configuration flexibility of the project development is enhanced by newly adding or moving the dependent service according to the project requirements by detecting the configuration update of the process nodes, the business development process of splicing project products quickly and accurately is realized, and the project development efficiency is effectively improved.
With reference to fig. 3, the visual service configuration method in the embodiment of the present invention is described above, and a visual service configuration apparatus in the embodiment of the present invention is described below, where an embodiment of the visual service configuration apparatus in the embodiment of the present invention includes:
the first setting module 301 is configured to acquire a business process of a project, and set a process node to be developed according to the business process;
a second setting module 302, configured to set a service function to be developed for each process node;
a third setting module 303, configured to set a service, a page, and an element to be developed for each process node according to a service function;
a fourth setting module 304, configured to set a configurable function point to be developed according to a service, a page, and an element to be developed, where the configurable function point includes a node to be configured, a component to be configured, a page to be configured, and an element to be configured;
the traversing module 305 is configured to traverse a function tree in a preset library to obtain a standard function point corresponding to a configurable function point in the function tree, where the preset library includes a standard node library, a standard component library, a standard page library and a standard element library, and the standard function point includes a standard node, a standard component, a standard page and a standard element;
the first configuration processing module 306 is configured to configure the process node on a preset visual console through a preset configuration file and a standard function point, where the configuration file is used to indicate a mode and a condition for editing the standard function point corresponding to the process node to meet an operation flow of a business product.
The function implementation of each module in the visual service configuration apparatus corresponds to each step in the visual service configuration method embodiment, and the function and implementation process thereof are not described in detail herein.
In the embodiment of the invention, aiming at a flexible configuration scheme of a project, the method and the device are suitable for the customized requirements of various internet product sales scenes, can support the rapid implementation and online of the project, can support the differentiated configuration of nodes, components, pages and elements for each project to be developed, realize the flexible and visual configuration of the project development, have high code reuse rate, and greatly improve the efficiency of the project development, thereby solving the problems of low efficiency of the project development caused by the inflexibility and no visualization of the project development configuration.
Referring to fig. 4, another embodiment of a visualized service configuration apparatus according to an embodiment of the present invention includes:
the first setting module 301 is configured to acquire a business process of a project, and set a process node to be developed according to the business process;
a second setting module 302, configured to set a service function to be developed for each process node;
a third setting module 303, configured to set a service, a page, and an element to be developed for each process node according to a service function;
a fourth setting module 304, configured to set a configurable function point to be developed according to a service, a page, and an element to be developed, where the configurable function point includes a node to be configured, a component to be configured, a page to be configured, and an element to be configured;
the traversing module 305 is configured to traverse a function tree in a preset library to obtain a standard function point corresponding to a configurable function point in the function tree, where the preset library includes a standard node library, a standard component library, a standard page library and a standard element library, and the standard function point includes a standard node, a standard component, a standard page and a standard element;
the first configuration processing module 306 is configured to configure the process nodes on a preset visual console through a preset configuration file and standard function points, where the configuration file is used to indicate a mode and a condition for editing the standard function points corresponding to the process nodes to meet the operation flow of the service product;
a detecting module 307, configured to detect whether the process node is performing configuration update;
the determining module 308 is configured to, when it is detected that the process node is performing configuration update, determine whether the process node is allowed to be newly added or moved during configuration update, where the process node is a dependent service corresponding to the process node before configuration update;
the processing module 309 is configured to, if it is determined that the dependent service corresponding to the process node before the configuration is updated and new addition or movement is allowed during configuration update, obtain a process configuration file of the project, and add or move the dependent service according to the process configuration file, where the process configuration file includes process node information of the service process and an operation sequence of the service process.
Optionally, the visualized service configuration apparatus further includes:
the creating module is used for respectively creating a function tree corresponding to a standard node, a standard component, a standard page and a standard element in a preset library;
and the storage module is used for storing the function tree in a corresponding storage space in a preset memory key value database to obtain a standard node library, a standard component library, a standard page library and a standard element library.
Optionally, the visualized service configuration apparatus further includes:
the first configuration module is used for configuring a dependent service for the nodes in the standard node library, and the dependent service is used for indicating each process node of the business product implementation process;
the second configuration module is used for configuring the dependency relationship of the components in the standard component library, and the components comprise a user interface component, a business logic component, a service component and a database component;
and the definition module is used for carrying out standardized definition on the elements in the standard element library, and the elements comprise fields.
Optionally, the visualized service configuration apparatus further includes:
the first acquisition module is used for acquiring a new version of the project after the configuration update of the process node and acquiring a historical version of the project before the configuration update;
and the adding module is used for adding version isolation between the new version and the historical version.
Optionally, the visualized service configuration apparatus further includes:
the monitoring module is used for monitoring whether operation abnormity and/or information abnormity exists in the process of configuring the flow nodes by the visual console;
and the early warning module is used for generating abnormal information and carrying out early warning according to the abnormal information if the operation abnormality and/or the information abnormality are monitored in the process of carrying out configuration processing on the flow nodes by the visual console.
Optionally, the visualized service configuration apparatus further includes:
the second acquisition module is used for acquiring the development requirement of the project and acquiring the configuration processing process of the process node to be examined and approved for configuration processing, wherein the development requirement comprises the characteristics and functions of the project;
and the second configuration processing module is used for setting an approval node in the configuration processing process according to the development requirement, and the approval node is used for allowing a user to carry out approval and confirmation.
The function implementation of each module and each unit in the visual service configuration apparatus corresponds to each step in the visual service configuration method embodiment, and the function and implementation process thereof are not described in detail herein.
According to the embodiment of the invention, on the basis of realizing flexible and visual project development configuration and high code reuse rate and greatly improving the project development efficiency, thereby solving the problem of low project development efficiency caused by inflexibility and no visualization of the project development configuration, the configuration flexibility of the project development is enhanced by newly adding or moving the dependent service according to the project requirements by detecting the configuration update of the process nodes, the business development process of splicing project products quickly and accurately is realized, and the project development efficiency is effectively improved.
Fig. 3 and fig. 4 describe the visualized service configuration apparatus in the embodiment of the present invention in detail from the perspective of the modular functional entity, and the visualized service configuration device in the embodiment of the present invention is described in detail from the perspective of hardware processing.
Fig. 5 is a schematic structural diagram of a visualized service configuration device provided in an embodiment of the present invention, where the visualized service configuration device 500 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) for storing applications 533 or data 532. Memory 530 and storage medium 530 may be, among other things, transient storage or persistent storage. The program stored on the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations in the service configuration apparatus 500 for visualization. Further, the processor 510 may be configured to communicate with the storage medium 530, and execute a series of instruction operations in the storage medium 530 on the service configuration apparatus 500 for visualization.
The visual service provisioning device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input/output interfaces 560, and/or one or more operating systems 531, such as Windows Server, Mac OS X, Unix, L inux, FreeBSD, etc. it will be understood by those skilled in the art that the visual service provisioning device configuration shown in FIG. 5 does not constitute a limitation of the visual service provisioning device, and may include more or fewer components than those shown, or some combination of components, or a different arrangement of components.
The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium, and which may also be a volatile computer-readable storage medium, having stored therein instructions, which, when executed on a computer, cause the computer to perform the steps of the visualized service provisioning method.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.