Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a workflow configuration method. Fig. 1 is a schematic flow chart of a workflow configuration method according to an embodiment of the present invention. The method may be performed by an apparatus, which may be implemented by software and/or hardware.
In this embodiment, the workflow configuration method includes:
and S110, calling address information of the server corresponding to the workflow configuration instruction according to the workflow configuration instruction.
Specifically, the processor acquires a workflow configuration instruction, and determines a server required to execute the instruction according to the acquired workflow configuration instruction, for example, if a node of a workflow required to be configured in the workflow configuration instruction needs to use a service provided by a certain server, the processor needs to call a data interface of the server, so as to acquire service data required by the workflow required to be configured from the server. There may be multiple servers required for executing a workflow configuration instruction, for example, a workflow that needs to be configured includes: the address information of the wind control system (server), the contract signing system (server), the deposit system (server) and the like needs to be called respectively for the wind control node, the contract node, the deposit waiting node and the like, so that corresponding service data can be obtained from the corresponding server conveniently.
As an optional embodiment of the present invention, invoking, according to the workflow configuration instruction, address information of the server corresponding to the workflow configuration instruction includes:
acquiring a workflow configuration instruction; the workflow configuration instruction comprises the type of the workflow to be configured;
acquiring a service method name list matched with the type of the workflow to be configured in advance;
acquiring address information of a server corresponding to the service method name list from a preset service address list; the service address list comprises a service method name and address information of a service end corresponding to the service method name.
Specifically, the types of workflows are different, and service data required by each node of a workflow is different, so that service terminals providing the service data are also different. The workflow configuration instruction at least needs to include the type of the workflow to be configured, after the processor obtains the workflow configuration instruction, a service method name list which is matched with the type of the workflow to be configured in advance is obtained according to the type of the workflow to be configured, for example, the type of the workflow to be configured is loan service, the service method name list which is matched with the loan service in advance comprises a pneumatic control method, a contract signing method, a payment method and the like, each service method name in the service method name list corresponds to address information of a service end, and the service method name and the address information of the service end are stored in a preset service address list, so that the search is facilitated.
And S120, calling service data from the server according to the address information of the server.
Specifically, the processor establishes a connection with the data interface of the server according to the acquired address information of the server, and calls the required service data from the server.
As an optional embodiment of the present invention, the retrieving service data from the server according to the address information of the server includes:
filling address information of the server as an entry parameter into a preset server address configuration template, and performing address configuration;
calling a service data interface of the server according to the information that the address configuration is successful;
and calling the service data corresponding to the service method name from the service end through the service data interface.
Specifically, the processor acquires a preset server address configuration template from the server, fills address information of the server into the preset server address configuration template, and performs address configuration, wherein the address configuration mode can be selected as URI (Uniform resource identifier) address configuration, acquires information that the address configuration is successful, and calls a service data interface of the server and acquires service data corresponding to a service method name according to the information that the address configuration is successful.
As an optional embodiment of the present invention, invoking, by a service data interface, service data corresponding to a service method name from a service end includes:
when the service data corresponding to the service method name is not called from the server side, generating the information of the calling data failure;
and calling the service data corresponding to the service method name from the service side again according to the information of the data calling failure and a preset failure frequency threshold value.
Specifically, in the process of calling data from a server through a service data interface by a processor, when data calling fails due to a network or other reasons, information of data calling failure is generated, when the processor acquires the information of data calling failure, failure times of calling service data are acquired, if the failure times of calling service data do not reach a preset failure time threshold value, service data corresponding to a service method name are continuously called from the server again, if the failure times of calling service data reach the preset failure time threshold value, information of service data acquisition failure is generated and sent to a client, wherein the client is an intelligent terminal, such as a mobile phone page of an operator. The times of resetting failure can be generated on the page of the intelligent terminal or the selection of data acquisition is abandoned, and the next operation is carried out according to the obtained selection information.
As an optional embodiment of the present invention, after invoking service data corresponding to a service method name from a service end through a service data interface, the method further includes:
acquiring a data processing rule corresponding to the type of the service data according to the type of the service data;
and according to the data processing rule, performing unified processing on the service data to generate the service data conforming to the flow circulation format.
Specifically, the processor acquires a corresponding data processing rule from the data processing rule base according to the type of the acquired service data, for example, if the type of the data is a type which does not need to be stored, preliminary data processing needs to be performed first, for example, operations such as formatting verification, character renaming and the like are performed in sequence, and the data after preliminary processing is assembled into a format which accords with the flow circulation; if the type of the data is the type to be stored, the corresponding data processing rule may be to sequentially perform operations such as formatting verification, renaming characters, and the like, and assemble the data after the preliminary processing into a format conforming to the flow circulation after the data is stored. The actual data processing rule is determined according to actual needs, and only the service data of different types are subjected to corresponding data processing and finally unified processing to generate the service data conforming to the flow circulation format.
And S130, extracting the service workflow from the service data.
Specifically, the processor extracts service workflows from service data acquired by each service end, such as the above loan service, the wind control service data acquired from the wind control system, the contract signing service data acquired from the contract signing system, and the loan service data acquired from the loan system, respectively, where each of the service data includes a corresponding service workflow, for example, the wind control service data includes a wind control flow, and performs a wind control operation according to the wind control flow.
As an alternative embodiment of the present invention, extracting a service workflow from service data includes:
analyzing service data from different service terminals to obtain analyzed service data;
and extracting the service workflow matched with each service method name in the service method name list from the analyzed service data.
Specifically, the processor analyzes the service data acquired from each server to obtain analyzed service data, and extracts a service workflow matched with each service method name in the service method name list from the analyzed service data. For example, a wind control process matched with a wind control method.
And S140, performing logic integration on the service workflow according to a preset workflow integration frame to generate the workflow.
Specifically, workflow frames corresponding to each service are different, a preset workflow integration frame is correspondingly matched according to the type of the workflow, the preset workflow integration frame includes service method names to be configured of each node of the workflow to be configured and position information of the service method names in the preset workflow integration frame, the service workflow corresponding to the service method names is logically integrated according to the service method names and the position information of the service method names in the preset workflow integration frame, and finally the workflow is generated.
As an optional embodiment of the present invention, the preset workflow integration frame is stored in the blockchain, and the logic integration is performed on the service workflow according to the preset workflow integration frame, and the generating of the workflow includes:
acquiring a preset workflow integration frame corresponding to the type of the workflow to be configured;
and taking each service workflow as a sub-workflow, and logically arranging according to the sequence of a preset workflow integration frame to generate the workflow.
Specifically, the processor acquires a corresponding preset workflow integration frame according to the type of the workflow required to be configured indicated in the workflow configuration instruction, takes each service workflow as a sub-workflow, places the service workflow corresponding to the service method name as the sub-workflow at a corresponding position of the preset workflow integration frame according to the service method name and the position information of the service method name included in the preset workflow integration frame, and finally obtains the workflow.
Fig. 2 is a functional block diagram of a workflow configuration apparatus according to an embodiment of the present invention.
The workflow configuration apparatus 200 of the present invention may be installed in an electronic device. According to the implemented functions, the workflow configuration device may include an address information retrieval module 210, a service data retrieval module 220, a service workflow extraction module 230, and a workflow generation module 240. A module according to the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the address information retrieving module 210 is configured to retrieve, according to the workflow configuration instruction, address information of the server corresponding to the workflow configuration instruction.
Specifically, the processor acquires a workflow configuration instruction, and determines a server required to execute the instruction according to the acquired workflow configuration instruction, for example, if a node of a workflow required to be configured in the workflow configuration instruction needs to use a service provided by a certain server, the processor needs to call a data interface of the server, so as to acquire service data required by the workflow required to be configured from the server. There may be multiple servers required for executing a workflow configuration instruction, for example, a workflow that needs to be configured includes: the address information of the wind control system (server), the contract signing system (server), the deposit system (server) and the like needs to be called respectively for the wind control node, the contract node, the deposit waiting node and the like, so that corresponding service data can be obtained from the corresponding server conveniently.
As an optional embodiment of the present invention, invoking, according to the workflow configuration instruction, address information of the server corresponding to the workflow configuration instruction includes:
acquiring a workflow configuration instruction; the workflow configuration instruction comprises the type of the workflow to be configured;
acquiring a service method name list matched with the type of the workflow to be configured in advance;
acquiring address information of a server corresponding to the service method name list from a preset service address list; the service address list comprises a service method name and address information of a service end corresponding to the service method name.
Specifically, the types of workflows are different, and service data required by each node of a workflow is different, so that service terminals providing the service data are also different. The workflow configuration instruction at least needs to include the type of the workflow to be configured, after the processor obtains the workflow configuration instruction, a service method name list which is matched with the type of the workflow to be configured in advance is obtained according to the type of the workflow to be configured, for example, the type of the workflow to be configured is loan service, the service method name list which is matched with the loan service in advance comprises a pneumatic control method, a contract signing method, a payment method and the like, each service method name in the service method name list corresponds to address information of a service end, and the service method name and the address information of the service end are stored in a preset service address list, so that the search is facilitated.
The service data retrieving module 220 is configured to retrieve service data from the server according to the address information of the server.
Specifically, the processor establishes a connection with the data interface of the server according to the acquired address information of the server, and calls the required service data from the server.
As an optional embodiment of the present invention, the retrieving service data from the server according to the address information of the server includes:
filling address information of the server as an entry parameter into a preset server address configuration template, and performing address configuration;
calling a service data interface of the server according to the information that the address configuration is successful;
and calling the service data corresponding to the service method name from the service end through the service data interface.
Specifically, the processor acquires a preset server address configuration template from the server, fills address information of the server into the preset server address configuration template, and performs address configuration, wherein the address configuration mode can be selected as URI (Uniform resource identifier) address configuration, acquires information that the address configuration is successful, and calls a service data interface of the server and acquires service data corresponding to a service method name according to the information that the address configuration is successful.
As an optional embodiment of the present invention, invoking, by a service data interface, service data corresponding to a service method name from a service end includes:
when the service data corresponding to the service method name is not called from the server side, generating the information of the calling data failure;
and calling the service data corresponding to the service method name from the service side again according to the information of the data calling failure and a preset failure frequency threshold value.
Specifically, in the process of calling data from a server through a service data interface by a processor, when data calling fails due to a network or other reasons, information of data calling failure is generated, when the processor acquires the information of data calling failure, failure times of calling service data are acquired, if the failure times of calling service data do not reach a preset failure time threshold value, service data corresponding to a service method name are continuously called from the server again, if the failure times of calling service data reach the preset failure time threshold value, information of service data acquisition failure is generated and sent to a client, wherein the client is an intelligent terminal, such as a mobile phone page of an operator. The times of resetting failure can be generated on the page of the intelligent terminal or the selection of data acquisition is abandoned, and the next operation is carried out according to the obtained selection information.
As an optional embodiment of the present invention, after invoking service data corresponding to a service method name from a service end through a service data interface, the method further includes:
acquiring a data processing rule corresponding to the type of the service data according to the type of the service data;
and according to the data processing rule, performing unified processing on the service data to generate the service data conforming to the flow circulation format.
Specifically, the processor acquires a corresponding data processing rule from the data processing rule base according to the type of the acquired service data, for example, if the type of the data is a type which does not need to be stored, preliminary data processing needs to be performed first, for example, operations such as formatting verification, character renaming and the like are performed in sequence, and the data after preliminary processing is assembled into a format which accords with the flow circulation; if the type of the data is the type to be stored, the corresponding data processing rule may be to sequentially perform operations such as formatting verification, renaming characters, and the like, and assemble the data after the preliminary processing into a format conforming to the flow circulation after the data is stored. The actual data processing rule is determined according to actual needs, and only the service data of different types are subjected to corresponding data processing and finally unified processing to generate the service data conforming to the flow circulation format.
A service workflow extraction module 230, configured to extract a service workflow from the service data.
Specifically, the processor extracts service workflows from service data acquired by each service end, such as the above loan service, the wind control service data acquired from the wind control system, the contract signing service data acquired from the contract signing system, and the loan service data acquired from the loan system, respectively, where each of the service data includes a corresponding service workflow, for example, the wind control service data includes a wind control flow, and performs a wind control operation according to the wind control flow.
As an alternative embodiment of the present invention, extracting a service workflow from service data includes:
analyzing service data from different service terminals to obtain analyzed service data;
and extracting the service workflow matched with each service method name in the service method name list from the analyzed service data.
Specifically, the processor analyzes the service data acquired from each server to obtain analyzed service data, and extracts a service workflow matched with each service method name in the service method name list from the analyzed service data. For example, a wind control process matched with a wind control method.
And the workflow generating module 240 is configured to perform logic integration on the service workflow according to a preset workflow integration framework to generate a workflow.
Specifically, workflow frames corresponding to each service are different, a preset workflow integration frame is correspondingly matched according to the type of the workflow, the preset workflow integration frame includes service method names to be configured of each node of the workflow to be configured and position information of the service method names in the preset workflow integration frame, the service workflow corresponding to the service method names is logically integrated according to the service method names and the position information of the service method names in the preset workflow integration frame, and finally the workflow is generated.
As an optional embodiment of the present invention, the preset workflow integration frame is stored in the blockchain, and the logic integration is performed on the service workflow according to the preset workflow integration frame, and the generating of the workflow includes:
acquiring a preset workflow integration frame corresponding to the type of the workflow to be configured;
and taking each service workflow as a sub-workflow, and logically arranging according to the sequence of a preset workflow integration frame to generate the workflow.
Specifically, the processor acquires a corresponding preset workflow integration frame according to the type of the workflow required to be configured indicated in the workflow configuration instruction, takes each service workflow as a sub-workflow, places the service workflow corresponding to the service method name as the sub-workflow at a corresponding position of the preset workflow integration frame according to the service method name and the position information of the service method name included in the preset workflow integration frame, and finally obtains the workflow.
Fig. 3 is a schematic structural diagram of an electronic device for implementing a workflow configuration method according to an embodiment of the present invention.
The electronic device 1 may comprise a processor 10, a memory 11 and a bus, and may further comprise a computer program, such as a workflow configuration program 12, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, which includes flash memory, removable hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only to store application software installed in the electronic device 1 and various types of data, such as codes of a workflow configuration program, but also to temporarily store data that has been output or is to be output.
The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device 1 by running or executing programs or modules (e.g., workflow configuration programs, etc.) stored in the memory 11 and calling data stored in the memory 11.
The bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
Fig. 3 shows only an electronic device with components, and it will be understood by those skilled in the art that the structure shown in fig. 3 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device 1 may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so as to implement functions of charge management, discharge management, power consumption management, and the like through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device 1 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Further, the electronic device 1 may further include a network interface, and optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used for establishing a communication connection between the electronic device 1 and other electronic devices.
Optionally, the electronic device 1 may further comprise a user interface, which may be a Display (Display), an input unit (such as a Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the electronic device 1 and for displaying a visualized user interface, among other things.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The workflow configuration program 12 stored in the memory 11 of the electronic device 1 is a combination of instructions that, when executed in the processor 10, may implement:
calling address information of a server corresponding to the workflow configuration instruction according to the workflow configuration instruction;
calling service data from the server according to the address information of the server;
extracting a service workflow from the service data;
and performing logic integration on the service workflow according to a preset workflow integration frame to generate the workflow.
Specifically, the specific implementation method of the processor 10 for the instruction may refer to the description of the relevant steps in the embodiment corresponding to fig. 1, which is not described herein again. It is emphasized that to further ensure privacy and security of the default workflow integration framework, the default workflow integration framework may also be stored in a node of a blockchain.
Further, the integrated modules/units of the electronic device 1, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. The computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.