CN114240358A - Method, device, equipment and medium for realizing user-defined business process - Google Patents

Method, device, equipment and medium for realizing user-defined business process Download PDF

Info

Publication number
CN114240358A
CN114240358A CN202111532322.7A CN202111532322A CN114240358A CN 114240358 A CN114240358 A CN 114240358A CN 202111532322 A CN202111532322 A CN 202111532322A CN 114240358 A CN114240358 A CN 114240358A
Authority
CN
China
Prior art keywords
service
target
service chain
sub
chain
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
CN202111532322.7A
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 Securities Co Ltd
Original Assignee
Ping An Securities 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 Securities Co Ltd filed Critical Ping An Securities Co Ltd
Priority to CN202111532322.7A priority Critical patent/CN114240358A/en
Publication of CN114240358A publication Critical patent/CN114240358A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Computer Security & Cryptography (AREA)
  • Operations Research (AREA)
  • General Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for implementing a customized business process. The method for realizing the user-defined business process comprises the following steps: when a target service loading request sent by a terminal through a target application is received, acquiring corresponding service chain configuration information according to the target service loading request; determining a main service chain according to the service chain configuration information; determining a target component from a pre-constructed component pool based on the main service chain and the sub-service chain associated with the service node, and constructing a corresponding service flow file; and returning the page file obtained by packaging according to the business process file to the terminal, enabling the terminal to load the page file through the target application, and displaying an operation interface corresponding to the business process file. By applying the technical scheme provided by the embodiment of the application, the flexibility and the individuation of the user-defined business process are improved, and the user experience is better.

Description

Method, device, equipment and medium for realizing user-defined business process
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a method for realizing a user-defined business process, a device for realizing the user-defined business process, computer equipment and a computer readable storage medium.
Background
At present, an application program usually provides a fixed set of business processes, so that a user can realize corresponding business requirements according to the business processes. However, when the application program is updated, the inherent service flow cannot be changed in real time due to the complicated service logic in the service flow, so that the application program cannot adapt to the personalized requirements of the user. Therefore, the conventional mode for realizing the user-defined business process is too single and is not flexible.
Disclosure of Invention
The invention aims to provide a method for realizing a user-defined service flow, a device for realizing the user-defined service flow, computer equipment and a computer readable storage medium, so as to solve the technical problems that the mode for realizing the user-defined service flow is too single and is not flexible in the prior art.
A first aspect of the embodiments of the present application provides a method for implementing a customized service flow, including:
when a target service loading request sent by a terminal through a target application is received, acquiring corresponding service chain configuration information according to the target service loading request; the service chain configuration information describes the functional component configuration requirements of the target service;
determining a main service chain according to the service chain configuration information; the main service chain comprises N service nodes, wherein N is an integer greater than 1;
determining a target component from a pre-constructed component pool based on the main service chain and the sub-service chain associated with the service node, and constructing a corresponding service flow file;
and returning the page file obtained by packaging according to the business process file to the terminal, enabling the terminal to load the page file through the target application, and displaying an operation interface corresponding to the business process file.
A second aspect of the embodiments of the present application provides an apparatus for implementing a customized service flow, including:
the system comprises an acquisition module, a service chain configuration module and a service chain configuration module, wherein the acquisition module is used for acquiring corresponding service chain configuration information according to a target service loading request when the target service loading request sent by a terminal through a target application is received; the service chain configuration information describes the functional component configuration requirements of the target service;
the determining module is used for determining a main service chain according to the service chain configuration information; the main service chain comprises N service nodes, wherein N is an integer greater than 1;
the construction module is used for determining a target component from a pre-constructed component pool and constructing a corresponding business process file based on the main business chain and the sub business chain associated with the business node;
and the loading module is used for returning the page file obtained by packaging according to the business process file to the terminal, so that the terminal loads the page file through the target application and displays an operation interface corresponding to the business process file.
A third aspect of the embodiments of the present application provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the computer device, where the processor implements the steps of the method for implementing a customized service flow provided by the first aspect when executing the computer program.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of the method for implementing a customized service flow provided by the first aspect.
The method for realizing the user-defined service flow, the device for realizing the user-defined service flow, the computer equipment and the computer readable storage medium provided by the embodiment of the application have the following beneficial effects:
when a target service loading request sent by a terminal through a target application is received, acquiring corresponding service chain configuration information according to the target service loading request; because the service chain configuration information describes the configuration requirements of the functional components of the target service, the corresponding main service chain can be determined according to the service chain configuration information; the main service chain comprises N service nodes, and because the service nodes are associated with the sub service chains, a target component can be determined from a pre-constructed component pool based on the main service chain and the sub service chains associated with the service nodes, so that a corresponding service flow file is constructed; because the target component acquired from the component pool can represent the realization of the function of the target service, and the target component, the main service chain and the sub-service chain construct the service flow file in real time, the service flow file is self-defined, the page file obtained by packaging the service flow file is returned to the terminal, the terminal loads the page file through the target application, and an operation interface corresponding to the service flow file is displayed. Acquiring service chain configuration information according to a target service loading request, determining a main service chain from the service chain configuration information, acquiring a target component from a component pool, configuring the target component to a sub-service chain associated with a service node of the main service chain and the main service chain, customizing and pertinently constructing a corresponding service flow file, and displaying the service flow file through a terminal. The method for realizing the business process improves the flexibility and the individuation of realizing the user-defined business process, and has better user experience.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating an implementation of a method for implementing a customized service flow according to an embodiment of the present application;
fig. 2 is a schematic diagram of a main service chain according to an embodiment of the present application;
fig. 3 is a block diagram illustrating a structure of a device for implementing a customized service flow according to an embodiment of the present application;
fig. 4 is a block diagram of a computer device according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present invention more clearly apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the method for implementing a customized service flow provided by this embodiment, the execution subject is a target server in the server cluster for displaying the service flow. Here, the server cluster may be a server cluster composed of a plurality of servers, and the distributed system is constructed based on the server cluster, so that each component required for constructing the distributed system can be configured into each server in the server cluster, and the server configured with the distributed system component may also be referred to as a component server. Data sharing or data synchronization can be performed between the servers in the server cluster. On this basis, an object script file is configured to any server in the server cluster, and the object script file describes the method for implementing the customized service flow provided by this embodiment, so that the server configured with the object script file can execute each step of the method for implementing the customized service flow by executing the object script file. Or, configuring a new server for the server cluster, configuring a target script file for the new server, and describing the method for implementing the customized service flow provided by this embodiment by the target script file, so that the new server can execute each step in the method for implementing the customized service flow by executing the target script file.
When the method is realized, when a target server for realizing the self-definition of a service flow in a server cluster receives a target service loading request sent by a terminal through a target application, the target server acquires corresponding service chain configuration information according to the target service loading request; because the service chain configuration information describes the functional component configuration requirements of the target service, the target server determines the main service chain according to the service chain configuration information; the main service chain comprises N service nodes, and because the service nodes are associated with the sub service chains, the target server determines a target component from a pre-constructed component pool based on the main service chain and the sub service chains associated with the service nodes, and constructs a corresponding service flow file; the target assembly acquired from the assembly pool can represent the realization of the function of the target service, and the target assembly, the main service chain and the sub service chain construct the service flow file in real time according to the self-definition, so the target server returns the page file obtained by packaging according to the service flow file to the terminal, the terminal loads the page file through the target application, and an operation interface corresponding to the service flow file is displayed. The method for realizing the user-defined business process improves the flexibility and the individuation of realizing the user-defined business process, and has better user experience.
Referring to fig. 1, fig. 1 shows an implementation flowchart of a method for implementing a customized service flow according to an embodiment of the present application. A method for realizing a user-defined business process comprises the following steps:
s11: when a target service loading request sent by a terminal through a target application is received, acquiring corresponding service chain configuration information according to the target service loading request; the service chain configuration information describes functional component configuration requirements of the target service.
In step S11, the service chain configuration information refers to a script file that implements the configuration requirement of the functional component corresponding to the target service, and includes frame information of the main service chain and the sub service chain, specifically, a connection sequence rule of the components in the service chain. A user can trigger the terminal to send a target service loading request to a target server by loading an operation instruction of a target service through a target application program on the terminal; for example, the operation instruction for loading the target service may be a frequent click operation performed on a preset button provided in a page corresponding to the target application of the terminal.
By clicking a component corresponding to a target service on a target application such as a webpage or an APP, service chain configuration information related to the target service requirement is called from a database, wherein the database can be called from a server corresponding to the target application or from a server of another application program. As an example, a user sends a request for loading a target service to a server of the target application by clicking a component related to the target service on a target application of a terminal, and the server of the target application acquires a service chain configuration corresponding to the target service from a target database according to the request. Because the service chain configuration information only comprises a frame of basic components of the main service chain and the sub service chain, and the pre-configured service chain configuration information and the functions required to be realized by the target service are not completely configured, the target component related to the target service needs to be determined from the component pool, the service chain is spliced again by using the target component, a service flow file is constructed, and a page for displaying the service flow is returned to the terminal, so that the target service requirement is realized.
In practical applications, a target application usually includes multiple services, different services usually have contents such as respective service flows and service pages, and for these services in the target application, required service components are often the same in the process of executing the services, for example, for each service in the target application, through the displayed page, each page layout frame may be substantially the same in the process of executing the service, except that the page contents displayed in each page are different from each other. And aiming at different services, configuring corresponding configuration information on components required by the target service to realize the target service.
When the target application executes a service, a corresponding service execution request instruction needs to be generated according to a service operation executed by a user, and a service request is further generated. When receiving a service operation that a user executes on a service page of a certain service, determining that the service needs to be executed, and generating a corresponding service execution request according to a service identifier of the service. For example, when the user clicks an execution control in a service a page of the target application, it is determined that the service a needs to be executed, and then a corresponding service request is generated according to the service identifier of the service a.
As an implementation manner of the embodiment of the present application, step S11 includes:
receiving the target service loading request, and determining a process interface corresponding to the target service loading request;
and calling the process interface to acquire service chain configuration information corresponding to the target service loading request from a target database.
Specifically, the service chain configuration information to be retrieved from the database needs to be accessed through the interface. The flow interface may be an external interface or an internal interface of the target server. And determining an information interaction interface according to the requirement. When an external interface is required to be called to call data on a database, the address of a process interface is determined according to a target service loading request, a server where the interface address is located is logged in, a request message is sent through the interface, and then a response message is received, namely service chain configuration information is obtained from the target database.
As an example, the user sends a request for loading a target service through a target application on a terminal, where the request is based on the user's requirement, and when the target service needs to be executed, the user realizes the purpose of loading a target service page by clicking a component for executing the target service on the target application, and the like. The target server receives a request initiated by the terminal, judges whether the request carries an identifier of a target service loading request, calls an internal flow interface according to the identifier corresponding to the target service loading request, and acquires service chain configuration information corresponding to the identifier from a target database.
S12: determining a main service chain according to the service chain configuration information; the main service chain comprises N service nodes, wherein N is an integer greater than 1.
In step S12, when a target service loading request sent by a user through a target application is received, a configuration file of a service chain related to the target service is obtained from a target database, where the configuration file includes information of a functional component configuration requirement of the target service, and a main service chain related to the target service can be determined from the configuration file by analyzing the service chain configuration information. The main service chain includes at least one service node because the main service chain includes at least two step flows. The two steps are connected by a service node. After determining the main service chain, determining, by a service node on the main service chain, a sub-service chain of the main service chain.
As one example, when a user purchases a stock through a target application, multiple different business orders may be generated. For each service order, the target application needs to execute a corresponding service chain, and the service chains are usually concatenated by different links. Here, a link in the service chain is a service node. The main service chain comprises at least one service node, each service node corresponds to a service instruction, and when a user processes the service instruction corresponding to one service node in one page, a new page corresponding to the next service node pointed by the service flow is loaded or only a component corresponding to the next service node is loaded without loading the new page.
S13: and determining a target component from a pre-constructed component pool based on the main service chain and the sub-service chain associated with the service node, and constructing a corresponding service flow file.
In step S13, the sub service chain is a branch of the main service chain, and the main service chain may include a plurality of sub service chains. The service chain configuration information includes an execution sequence of the main service chain and an execution sequence of the plurality of sub service chains. The execution sequence rule of the sub-service chain can be determined according to the execution sequence rule of the main service chain, the execution sequence rule of the sub-service chain can also be determined in advance, and when the service node in the main service chain has the target identifier of the sub-service chain, the sub-service chain is determined according to the target identifier. By analyzing the service chain configuration information, the main service chain related to the target service can be determined. And then determining a sub-service chain associated with the service node according to the service node on the main service chain. After that, in order to configure the main service chain and the sub service chain, a target component is determined from the component pool and configured on the main service chain and the sub service chain.
See fig. 2 as an example. Fig. 2 is a schematic diagram of a main service chain according to an embodiment of the present application. When the main business chain has a plurality of sub business chains, the main business chain has the processes of identity authentication, commodity information browsing and commodity A purchasing. Wherein, two sub-business chains of the purchased commodity A1 and the purchased commodity A2 can be determined according to business nodes between the steps of browsing commodity information and purchasing the commodity A on the main business chain. The sub-business chain for purchase of item A1 may be to determine item A information and the sub-business chain for purchase of item A2 may be to pay. Wherein, the purchased commodity A1 is a first sub business chain, and the purchased commodity A2 is a second sub business chain. And determining a first sub-service chain, and determining a second sub-service chain according to the identifier of the first sub-service chain.
The business process file is constructed by the target component, the main business chain and the sub business chain. Configuring target component information in the main business chain and the sub business chain according to the incidence relation of each component in the main business chain, and as an example, adding the target component into the main business chain and the sub business chain according to a preset component arrangement rule on the basis of the label of the component in the main business chain. Each component information comprises a label, the label is a basic attribute mark for realizing the component function, the component information is arranged according to the label to construct the business process more quickly, and the efficiency of constructing the business process is improved.
Because the main service chain and the sub service chain describe the configuration requirements of the functional components, the component types can be determined according to the main service chain and the sub service chain, and then the target component is determined from the component pool according to the component types. The preset constructed component pool comprises a plurality of components which are independent from each other. A main service chain is composed of a plurality of components, and component information identifiers for realizing target services, such as components for realizing basic functions, label views and the like, are arranged in the main service chain and the sub service chains. By analyzing the data of the main service chain and the sub service chain, the target component which needs to finally realize the target service is selected from the component pool or freely combined or processed. For example, a service component with a correlation degree greater than a predetermined threshold with a target service component is selected from existing components in the component pool, and the components in the component pool are combined and processed according to the requirements of the target service on the basis of not changing the original components. And diversified selections are provided for constructing the business process for realizing the target business in real time, and the flexibility of constructing the business process is improved. In addition, the service process is formed by the components of the component pool, the functional characteristics of the target service can be subdivided, and the new service function can be realized without changing the original basic process information.
As an implementation manner of the embodiment of the present application, step S13 includes:
when a sub-service chain identifier exists in the service node, determining a sub-service chain associated with the service node according to the sub-service chain identifier;
determining the type of the component to be executed according to the main service chain and the sub service chain;
determining a target component from a pre-constructed component pool according to the type of the component to be executed;
and configuring the target component into the main business chain and the sub business chain to construct a corresponding business process file.
Specifically, when the service node of the main service chain has the identifier of the sub-service chain, and one service node corresponds to the identifier of the corresponding sub-service chain, the sub-service chain can be determined according to the identifier. Because both the main service chain and the sub service chain describe the functional component configuration requirements of the target service, the type of the component to be executed can be determined according to the main service chain and the sub service chain. And acquiring the target component from the component pool according to the type of the required component to be executed. And according to a preset threshold value, carrying out similarity measurement and calculation on the attribute information of the component to be executed and the component information in the component pool, and determining the component as a target component when the similarity is greater than the preset threshold value. The target component may also be obtained by combining component information from a component pool not according to attribute information of the component to be executed but according to the type of the target service. And then configuring the target component to the corresponding positions of the components in the main service chain and the sub service chain respectively, constructing a service flow file, and displaying a flow operation page of the target service by calling the service flow file.
As an implementation manner of the embodiment, when a sub service chain identifier exists in the service node in the above steps, determining the sub service chain associated with the service node according to the sub service chain identifier includes:
when a sub-service chain identifier exists in the service node, determining a first sub-service chain and a second sub-service chain associated with the service node according to the sub-service chain identifier;
determining a second component type corresponding to the second sub service chain according to the first component type in the first sub service chain;
and determining the connection sequence between the first sub service chain and the second sub service chain according to the first component type and the second component type.
Specifically, when the service node has the sub-service identifier, different sub-service chains can be determined according to the type of the sub-service identifier. The sub-service chain identifier is used for identifying different sub-service chains, different sub-service chain identifiers can correspond to different sub-service chain identifiers, and the sub-service chain identifiers can be configured based on actual requirements, for example, the sub-service chain identifiers can be letters, numbers, service names and the like. There is a connection order between different sub-service chains. For example, a first component of a first sub-service chain is connected to a service node on the main service chain, a last component of the first sub-service chain is connected to a first component of a second sub-service chain, and a second component type on the second sub-service chain can be determined by the first component type of the first sub-service chain. The last component of the second sub-service chain is connected to a service node of the main service chain. The connection relation between the first sub-service chain and the second sub-service chain is determined according to the types of the components on the first sub-service chain and the second sub-service chain, namely the first component type and the second component type, so that the corresponding sub-service chain and the connection relation between the sub-service chains are determined according to the service node on the main service chain. And the components between the sub service chains are connected in an ending way, so that the closed connection loop of each sub service chain is realized.
As an implementation manner of the embodiment, the step of configuring the target component into the main service chain and the sub service chain to construct a corresponding service flow file includes:
sequencing the target components according to the component sequencing rules of the main service chain and the sub service chain to obtain sequenced target components;
and constructing a corresponding business process file according to the sorted target assembly and the configuration information corresponding to the sorted target assembly.
Specifically, after the target component is determined from the component pool according to the functional component requirements of the main service chain and the sub service chain, because the main service chain and the sub service chain describe the configuration requirements of the functional component and also include the configuration rule of the component, the target component is to be configured into the main service chain and the sub service chain, and the target component is sequenced first. The main service chain and the sub service chain are a flow frame, the target components are function modules, and the target components are linked in a loose coupling mode, so that the method has the characteristics of flexibility, quick response and strong applicability. The cohesion of each activity in the target assembly is strong, and high-efficiency and high-quality service can be provided for the outside. The target components are sorted and arranged, so that personalized configuration is embodied.
S14: and returning the page file obtained by packaging according to the business process file to the terminal, enabling the terminal to load the page file through the target application, and displaying an operation interface corresponding to the business process file.
In step S14, the service flow file constructed by the target component, the main service chain, and the sub-service chain is encapsulated, so that the terminal can conveniently load and call the encapsulated file in the following process. The business process file can be packaged and packed into the directory according to a certain packaging format, and the packaging package in the directory is directly called when the packaging file needs to be called, so that the packaging file is called. The terminal can display an operation interface or a page corresponding to the business process file in the target application by loading the packaging file, namely the page file through the target application, so that the requirement of the target business is realized.
When a target service loading request sent by a terminal through a target application is received, acquiring corresponding service chain configuration information according to the target service loading request; determining a main service chain according to the service chain configuration information because the service chain configuration information describes the functional component configuration requirements of the target service; because the main service chain comprises N service nodes, a target component is determined from a pre-constructed component pool based on the main service chain and the sub-service chain associated with the service nodes, and a corresponding service flow file is constructed; because the target component acquired from the component pool can represent the realization of the function of the target service, and the target component, the main service chain and the sub-service chain construct the service flow file in real time according to the self-definition, the page file obtained by packaging according to the service flow file is returned to the terminal, so that the terminal loads the page file through the target application, and displays the operation interface corresponding to the service flow file. The method for realizing the user-defined business process improves the flexibility and the individuation of realizing the user-defined business process, and has better user experience.
As an implementation manner of the embodiment of the present application, step S14 includes:
packaging the service flow file according to a preset packaging format to obtain the page file;
sending the page file to the terminal to enable the terminal to analyze and load the page file through the target application;
and rendering the target assembly in the business process file according to the display sequence in the page file, and generating and displaying an operation interface corresponding to the business process file.
Specifically, the packaging of the service flow file according to the preset packaging format is to enable the service flow file to be in a display format of a page corresponding to the target application, where the preset packaging format may include a JSON format. For example, the position of the component display and the display size of the component are packaged to obtain a page file suitable for front-end display. And then, pushing the information of the page file to a target display terminal, enabling the terminal to analyze the page file through a target application and unseal the page file, and then gradually loading and rendering the target component on the business process file, so that the business process information about the target component is displayed on an operation interface.
As an implementation manner of the embodiment of the present application, after step S14, the method may further include:
and receiving an operation instruction triggered by the terminal through the operation interface, and returning a response page corresponding to the operation instruction to the terminal.
Specifically, a control related to triggering the business process is arranged on the operation interface, a user clicks the control through the operation interface on the terminal to trigger and generate an operation instruction, the server receives the instruction and returns a processing result to the terminal, and the terminal receives the processing result and loads a response page. It should be understood that a control is a visual component of an operator interface, such as: a button, a list box, an edit box, or static text in a dialog box, etc. The target service loading request received by the server at the beginning is different from the receiving trigger operation instruction of the step. And the purpose of receiving the target service loading request is to configure a corresponding service flow file according to the request and enable the terminal to display a corresponding operation interface according to the configured service flow file. And when the server receives the operation instruction, the server returns a corresponding page to the terminal.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a device for implementing a customized service flow, as shown in fig. 3, where the device 30 may include the following modules:
the acquiring module 31 is configured to, when a target service loading request sent by a terminal through a target application is received, acquire corresponding service chain configuration information according to the target service loading request; the service chain configuration information describes the functional component configuration requirements of the target service;
a determining module 32, configured to determine a main service chain according to the service chain configuration information; the main service chain comprises N service nodes, wherein N is an integer greater than 1;
a construction module 33, configured to determine a target component from a pre-constructed component pool based on the main service chain and the sub-service chain associated with the service node, and construct a corresponding service flow file;
and the loading module 34 is configured to return a page file obtained by encapsulating the service flow file to the terminal, so that the terminal loads the page file through the target application, and displays an operation interface corresponding to the service flow file.
It should be understood that, in the structural block diagram of the apparatus for implementing a customized service flow shown in fig. 3, each module is used to execute each step in the embodiment corresponding to fig. 1, and each step in the embodiment corresponding to fig. 1 has been explained in detail in the foregoing embodiment, and please refer to the relevant description in the embodiment corresponding to fig. 1 specifically, which is not described herein again.
Fig. 4 is a block diagram of a computer device according to an embodiment of the present application. As shown in fig. 4, the computer device 40 of this embodiment includes: a processor 41, a memory 42 and a computer program 43 stored in said memory 42 and executable on said processor 41, such as a program implementing a method of customizing a business process. The processor 41, when executing the computer program 43, implements the steps in the embodiments of the method for implementing the customized business process, such as S11 to S14 shown in fig. 1. Alternatively, when the processor 41 executes the computer program 43, the functions of the modules in the embodiment corresponding to fig. 3, for example, the functions of the modules 31 to 34 shown in fig. 3, are implemented, for which reference is specifically made to the relevant description in the embodiment corresponding to fig. 3, and details are not repeated here.
Illustratively, the computer program 43 may be partitioned into one or more modules that are stored in the memory 42 and executed by the processor 41 to accomplish the present application. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 43 in the computer device 40.
The turntable device may include, but is not limited to, a processor 41, a memory 42. Those skilled in the art will appreciate that fig. 4 is merely an example of a computer device 40 and does not constitute a limitation of computer device 40 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the turntable device may also include input output devices, network access devices, buses, etc.
The Processor 41 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 42 may be an internal storage unit of the computer device 40, such as a hard disk or a memory of the computer device 40. The memory 42 may also be an external storage device of the computer device 40, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the computer device 40. Further, the memory 42 may also include both internal storage units and external storage devices of the computer device 40. The memory 42 is used for storing the computer program and other programs and data required by the turntable device. The memory 42 may also be used to temporarily store data that has been output or is to be output.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the method of implementing a custom business process in the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. Any reference to memory, storage, database, or other computer-readable storage medium used in the embodiments provided herein can include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should 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; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for realizing a customized business process is characterized by comprising the following steps:
when a target service loading request sent by a terminal through a target application is received, acquiring corresponding service chain configuration information according to the target service loading request; the service chain configuration information describes the functional component configuration requirements of the target service;
determining a main service chain according to the service chain configuration information; the main service chain comprises N service nodes, wherein N is an integer greater than 1;
determining a target component from a pre-constructed component pool based on the main service chain and the sub-service chain associated with the service node, and constructing a corresponding service flow file;
and returning the page file obtained by packaging according to the business process file to the terminal, enabling the terminal to load the page file through the target application, and displaying an operation interface corresponding to the business process file.
2. The method according to claim 1, wherein when receiving a target service loading request sent by a terminal through a target application, acquiring corresponding service chain configuration information according to the target service loading request includes:
receiving the target service loading request, and determining a process interface corresponding to the target service loading request;
and calling the process interface to acquire service chain configuration information corresponding to the target service loading request from a target database.
3. The method according to claim 1, wherein the determining a target component from a pre-constructed component pool based on the main service chain and the sub-service chain associated with the service node, and constructing a corresponding service flow file comprises:
when a sub-service chain identifier exists in the service node, determining a sub-service chain associated with the service node according to the sub-service chain identifier;
determining the type of the component to be executed according to the main service chain and the sub service chain;
determining a target component from a pre-constructed component pool according to the type of the component to be executed;
and configuring the target component into the main business chain and the sub business chain to construct a corresponding business process file.
4. The method of claim 3, wherein when a sub-service chain identifier exists in the service node, determining the sub-service chain associated with the service node according to the sub-service chain identifier comprises:
when a sub-service chain identifier exists in the service node, determining a first sub-service chain and a second sub-service chain associated with the service node according to the sub-service chain identifier;
determining a second component type corresponding to the second sub service chain according to the first component type in the first sub service chain;
and determining the connection sequence between the first sub service chain and the second sub service chain according to the first component type and the second component type.
5. The method of claim 3, wherein the configuring the target component into the main business chain and the sub business chain, and constructing a corresponding business process file comprises:
sequencing the target components according to the component sequencing rules of the main service chain and the sub service chain to obtain sequenced target components;
and constructing a corresponding business process file according to the sorted target assembly and the configuration information corresponding to the sorted target assembly.
6. The method according to claim 1, wherein the step of returning the page file obtained by encapsulating according to the business process file to the terminal, so that the terminal loads the page file through the target application and displays an operation interface corresponding to the business process file comprises:
packaging the service flow file according to a preset packaging format to obtain the page file;
sending the page file to the terminal to enable the terminal to analyze and load the page file through the target application;
and rendering the target assembly in the business process file according to the display sequence in the page file, and generating and displaying an operation interface corresponding to the business process file.
7. The method according to any one of claims 1 to 6, further comprising:
and receiving an operation instruction triggered by the terminal through the operation interface, and returning a response page corresponding to the operation instruction to the terminal.
8. An apparatus for implementing a customized business process, comprising:
the system comprises an acquisition module, a service chain configuration module and a service chain configuration module, wherein the acquisition module is used for acquiring corresponding service chain configuration information according to a target service loading request when the target service loading request sent by a terminal through a target application is received; the service chain configuration information describes the functional component configuration requirements of the target service;
the determining module is used for determining a main service chain according to the service chain configuration information; the main service chain comprises N service nodes, wherein N is an integer greater than 1;
the construction module is used for determining a target component from a pre-constructed component pool and constructing a corresponding business process file based on the main business chain and the sub business chain associated with the business node;
and the loading module is used for returning the page file obtained by packaging according to the business process file to the terminal, so that the terminal loads the page file through the target application and displays an operation interface corresponding to the business process file.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202111532322.7A 2021-12-15 2021-12-15 Method, device, equipment and medium for realizing user-defined business process Pending CN114240358A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111532322.7A CN114240358A (en) 2021-12-15 2021-12-15 Method, device, equipment and medium for realizing user-defined business process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111532322.7A CN114240358A (en) 2021-12-15 2021-12-15 Method, device, equipment and medium for realizing user-defined business process

Publications (1)

Publication Number Publication Date
CN114240358A true CN114240358A (en) 2022-03-25

Family

ID=80756175

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111532322.7A Pending CN114240358A (en) 2021-12-15 2021-12-15 Method, device, equipment and medium for realizing user-defined business process

Country Status (1)

Country Link
CN (1) CN114240358A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115878277A (en) * 2022-07-26 2023-03-31 北京中关村科金技术有限公司 Service calling method, device and medium compatible with multi-service system
CN116126426A (en) * 2023-04-10 2023-05-16 杭州城市大数据运营有限公司 Automatic component decoupling method and system based on Web service system
CN116185529A (en) * 2023-04-28 2023-05-30 北京拓普丰联信息科技股份有限公司 Service component processing method and device, electronic equipment and storage medium
CN117149182A (en) * 2023-10-30 2023-12-01 数研院(福建)信息产业发展有限公司 Low-coupling configuration method, medium and equipment for front-end page

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115878277A (en) * 2022-07-26 2023-03-31 北京中关村科金技术有限公司 Service calling method, device and medium compatible with multi-service system
CN116126426A (en) * 2023-04-10 2023-05-16 杭州城市大数据运营有限公司 Automatic component decoupling method and system based on Web service system
CN116126426B (en) * 2023-04-10 2023-08-29 杭州城市大数据运营有限公司 Automatic component decoupling method and system based on Web service system
CN116185529A (en) * 2023-04-28 2023-05-30 北京拓普丰联信息科技股份有限公司 Service component processing method and device, electronic equipment and storage medium
CN117149182A (en) * 2023-10-30 2023-12-01 数研院(福建)信息产业发展有限公司 Low-coupling configuration method, medium and equipment for front-end page
CN117149182B (en) * 2023-10-30 2024-02-13 数研院(福建)信息产业发展有限公司 Low-coupling configuration method, medium and equipment for front-end page

Similar Documents

Publication Publication Date Title
CN114240358A (en) Method, device, equipment and medium for realizing user-defined business process
CN108958714B (en) Business component type development method and device, computer equipment and storage medium
CN112380213B (en) Information acquisition method and device, computer equipment and storage medium
CN108255847B (en) Page generation method and device
CN109460527A (en) Product data configuration method, device, computer equipment and storage medium
CN110069297A (en) Abnormality eliminating method, device, computer equipment and storage medium based on Spring MVC
CN111324905A (en) Image data labeling method and device, computer equipment and storage medium
CN106301885A (en) The method and system of uniform traffic management
US20110320286A1 (en) System And Method For Integrating An Ad Banner With A Calling Application
CN109039751A (en) Configure method, apparatus, computer equipment and the storage medium of routing
CN110688598A (en) Service parameter acquisition method and device, computer equipment and storage medium
CN111667336A (en) Product information configuration and pushing method, device, equipment and storage medium
CN115098098A (en) Page generation method, page display method and device
CN108989365B (en) Information processing method, server, terminal equipment and storage medium
CN110531984B (en) Code compiling method, device, system, computer equipment and storage medium
CN109582313B (en) Business interface dynamic construction method and device, computer equipment and storage medium
CN112241298A (en) Page display method and device, storage medium and electronic device
CN113923144A (en) Service test system, method, electronic device and storage medium
CN109345063B (en) Data processing method and device for wind control system and storage medium
CN116208676A (en) Data back-source method, device, computer equipment, storage medium and program product
CN113157754B (en) Method, device and equipment for displaying flow form data and storage medium
CN109542918A (en) Guarantee method, system, computer equipment and the storage medium of data consistency
CN114090083B (en) Visual component configuration method, device, equipment and storage medium
CN108804155A (en) Profile acquisition method, device, terminal and computer readable storage medium
CN114500640A (en) Message generation method, message transmission device, electronic equipment and 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