CN110751458A - Business approval method, device and system - Google Patents

Business approval method, device and system Download PDF

Info

Publication number
CN110751458A
CN110751458A CN201910930760.5A CN201910930760A CN110751458A CN 110751458 A CN110751458 A CN 110751458A CN 201910930760 A CN201910930760 A CN 201910930760A CN 110751458 A CN110751458 A CN 110751458A
Authority
CN
China
Prior art keywords
approval
target
business
service
workflow system
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.)
Granted
Application number
CN201910930760.5A
Other languages
Chinese (zh)
Other versions
CN110751458B (en
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.)
Beijing Neusoft Wang Hai Technology Co Ltd
Original Assignee
Beijing Neusoft Wang Hai Technology 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 Beijing Neusoft Wang Hai Technology Co Ltd filed Critical Beijing Neusoft Wang Hai Technology Co Ltd
Priority to CN201910930760.5A priority Critical patent/CN110751458B/en
Publication of CN110751458A publication Critical patent/CN110751458A/en
Application granted granted Critical
Publication of CN110751458B publication Critical patent/CN110751458B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Abstract

The invention provides a method, a device and a system for examining and approving services, wherein the method for examining and approving services comprises the following steps: acquiring approval input data, wherein the approval input data are input data of a target approval service; judging whether a first approval process matched with the target approval business exists in the workflow system or not; if the first approval process matched with the target approval business exists in the workflow system, the approval input data are sent to the workflow system, so that the workflow system approves the approval input data according to the first approval process; and if the first approval process matched with the target approval business does not exist in the workflow system, enabling the business system to approve the approval input data according to a second approval process, wherein the second approval process is an approval process matched with the target approval business in the business system. The scheme can improve the efficiency of building the business system.

Description

Business approval method, device and system
Technical Field
The invention relates to the technical field of computers, in particular to a business approval method, a business approval device and a business approval system.
Background
With the continuous development and progress of computer technology, large enterprises and public institutions and government departments build self-used business systems, and the business links such as manpower, purchasing, selling, production and the like are managed through the business systems. The business system usually includes a plurality of business modules, different business modules are used for managing different types of business, each business module usually includes at least one approval process, and the approval process defines the rules for approving the corresponding business.
Because actual services of different users may have differences, requirements of different users on the same approval process in a service system may also be different, for example, user 1 requires that a personnel change approval process includes three approval nodes in total, namely, a chief deputy approval process and a chief manager approval process, and user 2 requires that a change approval process includes four approval nodes in total, namely, a chief deputy approval process, a vice chief manager approval process and a chief manager approval process.
At present, different users have different requirements on the approval process in the business system, when the business system is built for the users, the approval process in the business system can only be modified according to the requirements of the users, but the source code of the business system needs to be modified when the approval process in the business system is modified, and a large amount of labor and time are consumed when the source code of the business system is modified, so that the building efficiency of the business system is low.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a system for examining and approving a service, which can improve the efficiency of building a service system.
In a first aspect, an embodiment of the present invention provides a method for service approval, including:
acquiring approval input data, wherein the approval input data are input data of a target approval business;
judging whether a first approval process matched with the target approval business exists in the workflow system or not;
if the first approval process matched with the target approval business exists in the workflow system, the approval input data are sent to the workflow system, so that the workflow system approves the approval input data according to the first approval process;
and if the first approval process matched with the target approval business does not exist in the workflow system, enabling the business system to approve the approval input data according to a second approval process, wherein the second approval process is an approval process matched with the target approval business in the business system.
Optionally, after the sending the approval input data to the workflow system, further comprising:
receiving target approval result data through a target data interface of a target service module, wherein the target service module is a service module to which the target approval service belongs, the target approval result data is used for indicating an approval result obtained by approving the approval input data according to the first approval process, the target approval result data is sent to the target data interface through a callback interface called by the workflow system, and the callback interface is used for sending the approval result data to a data interface of each service module in the service system;
and updating the state of the target approval service according to the target approval result data.
Optionally, the business approval method further includes:
calculating callback interface load according to the number and data quantity of the approval result data sent by the callback interface in a preset time period and the bandwidth occupation quantity of the callback interface in the preset time period by using the following formula;
Figure BDA0002220202690000021
wherein τ represents the callback interface load, m represents the number of the approval result data sent by the callback interface in the preset time period, and t representsiRepresenting the waiting time of the ith examination and approval result data before the ith examination and approval result data is sent by the callback interface, wherein q isiThe data volume of the ith approval result data, the t represents the length of the preset time period, and the xtRepresenting the bandwidth occupation amount of the callback interface at time t;
judging whether the load of the callback interface is greater than a preset critical threshold value or not;
and if the load of the callback interface is greater than the critical threshold, creating at least one standby callback interface, and configuring the standby callback interface to replace the callback interface to send the approval result data to the data interface of at least one service module aiming at each standby callback interface.
Optionally, the determining whether a first approval process matching the target approval service exists in the workflow system includes:
sending a detection instruction to the workflow system, wherein the detection instruction is used for indicating the workflow system to detect whether at least one third approval process matched with the target approval business exists or not and indicating the workflow system to generate feedback information according to a detection result;
receiving the feedback information from the workflow system;
if the feedback information indicates that the third approval process matched with the target approval service does not exist in the workflow system, determining that the first approval process matched with the target approval service does not exist in the workflow system;
and if the feedback information indicates that at least one third approval process matched with the target approval business exists in the workflow system, determining the currently effective third approval process indicated by the feedback information as the first approval process, and determining that the first approval process matched with the target approval business exists in the workflow system.
In a second aspect, an embodiment of the present invention further provides a device for service approval, including:
the data acquisition module is used for acquiring approval input data, wherein the approval input data are input data of a target approval business;
the path judgment module is used for judging whether a first approval process matched with the target approval business exists in the workflow system;
the first approval module is used for sending the approval input data acquired by the data acquisition module to the workflow system when the path judgment module determines that the first approval process matched with the target approval business exists in the workflow system, so that the workflow system approves the approval input data according to the first approval process;
and the second approval module is used for enabling the business system to approve the approval input data acquired by the data acquisition module according to a second approval process when the path judgment module determines that the first approval process matched with the target approval business does not exist in the workflow system, wherein the second approval process is an approval process matched with the target approval business in the business system.
Optionally, the business approval apparatus further includes:
an approval write-back module, configured to receive target approval result data through a target data interface of a target service module, where the target service module is a service module to which the target approval service belongs, the target approval result data is used to indicate an approval result obtained by approving the approval input data sent by the second approval module according to the first approval process, the target approval result data is sent to the target data interface through a callback interface called by the workflow system, and the callback interface is used to send approval result data to a data interface of each service module in the service system;
and the state updating module is used for updating the state of the target approval business according to the target approval result data received by the approval and write-back module.
Optionally, the business approval apparatus further includes:
the load calculation module is used for calculating the load of the callback interface through the following formula according to the number and the data volume of the approval result data received by the approval write-back module and sent by the callback interface in a preset time period and the bandwidth occupation volume of the callback interface in the preset time period;
Figure BDA0002220202690000041
wherein τ represents the callback interface load, m represents the number of the approval result data sent by the callback interface in the preset time period, and t representsiRepresenting the waiting time of the ith examination and approval result data before the ith examination and approval result data is sent by the callback interface, wherein q isiThe data volume of the ith approval result data, the t represents the length of the preset time period, and the xtRepresenting the bandwidth occupation amount of the callback interface at time t;
a load judging module, configured to judge whether the load of the callback interface calculated by the load calculating module is greater than a preset critical threshold;
and the interface creating module is used for creating at least one standby callback interface after the load judging module determines that the load of the callback interface is greater than the critical threshold, and configuring the standby callback interface to replace the callback interface to send the approval result data to the data interface of at least one service module aiming at each standby callback interface.
Optionally, the path determining module includes:
the instruction sending unit is used for sending a detection instruction to the workflow system, wherein the detection instruction is used for indicating the workflow system to detect whether at least one third approval process matched with the target approval business exists or not and indicating the workflow system to generate feedback information according to a detection result;
a feedback receiving unit for receiving the feedback information from the workflow system for the detection instruction sent by the instruction sending unit;
a first determining unit, configured to determine that the workflow system does not have the first approval process matching the target approval service, if the feedback information received by the feedback receiving unit indicates that the workflow system does not have the third approval process matching the target approval service;
a second determining unit, configured to determine, if the feedback information received by the feedback receiving unit indicates that at least one third approval process matching the target approval service exists in the workflow system, that the currently valid third approval process indicated by the feedback information is the first approval process, and determine that the first approval process matching the target approval service exists in the workflow system.
In a third aspect, an embodiment of the present invention further provides a service approval system, including: a business system, a workflow system and a business approval apparatus provided in any one of the second aspect;
the business system is used for sending the approval input data to the business approval device and approving the approval input data according to a second approval process under the trigger of the business approval device, wherein the second approval process is an approval process matched with the target approval business in the business system;
the workflow system is used for receiving the approval input data from the business approval device and approving the approval input data according to a first approval process, wherein the first approval process is an approval process matched with the target approval business in the workflow system.
Alternatively,
the workflow system is further configured to, during the approval of the approval input data according to the first approval process, after the target approval node in the first approval process is approved, judging whether the target approval node is the last approval node in the first approval process, if the target approval node is the last approval node in the first approval process, calling a callback interface to send target approval result data to a target data interface of a target service module in the service system, wherein the target business module is a business module to which the target approval business belongs, the target approval result data is used for indicating an approval result obtained by approving the approval input data according to the first approval process, and the callback interface is used for sending approval result data to the data interface of each service module in the service system.
According to the technical scheme, after approval input data aiming at a target approval service in a service system are obtained, whether a first approval process matched with the target approval service exists in the workflow system is judged, if the first approval process exists in the workflow system, the approval input data are sent to the workflow system, so that the workflow system approves the approval input data according to the first approval process, and if the first approval process does not exist in the workflow system, the approval input data are approved according to a second approval process matched with the target approval service and inherent in the service system. Therefore, for any approval business in the business system, if a first approval process matched with the approval business exists in the workflow system, the approval business is approved according to the first approval process, if the first approval process matched with the approval business does not exist in the workflow system, the approval business is approved according to the second approval process matched with the approval business inherent in the business system, therefore, when the inherent approval process in the service system does not meet the requirements of the user, the corresponding approval service can be approved according to the requirements of the user only by establishing the corresponding approval process in the workflow system according to the requirements of the user, the inherent approval process in the business system does not need to be modified, so that the labor and time for modifying the source code of the business system are saved, and the efficiency of building the business system can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a business approval method according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for updating a status of a target approval service according to an embodiment of the present invention;
fig. 3 is a flowchart of a load balancing method for a callback interface according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method for determining the presence or absence of a first approval process according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a business approval apparatus according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of another business approval apparatus provided by an embodiment of the present invention;
FIG. 7 is a schematic diagram of another business approval apparatus according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of another business approval apparatus according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a business approval system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a method for business approval, which may include the following steps:
step 101: acquiring approval input data, wherein the approval input data are input data of a target approval business;
step 102: judging whether a first approval process matched with the target approval business exists in the workflow system, if so, executing a step 103, otherwise, executing a step 104;
step 103: sending the approval input data to a workflow system so that the workflow system approves the approval input data according to the first approval process and ends the current process;
step 104: and enabling the business system to examine and approve the examination and approval input data according to a second examination and approval process, wherein the second examination and approval process is an examination and approval process matched with the target examination and approval business in the business system.
In the embodiment of the invention, after approval input data aiming at a target approval business in a business system is obtained, whether a first approval process matched with the target approval business exists in the workflow system is judged, if the first approval process exists in the workflow system, the approval input data are sent to the workflow system, so that the workflow system approves the approval input data according to the first approval process, and if the first approval process does not exist in the workflow system, the approval input data are approved according to a second approval process matched with the target approval business and inherent in the business system. Therefore, for any approval business in the business system, if a first approval process matched with the approval business exists in the workflow system, the approval business is approved according to the first approval process, if the first approval process matched with the approval business does not exist in the workflow system, the approval business is approved according to the second approval process matched with the approval business inherent in the business system, therefore, when the inherent approval process in the service system does not meet the requirements of the user, the corresponding approval service can be approved according to the requirements of the user only by establishing the corresponding approval process in the workflow system according to the requirements of the user, the inherent approval process in the business system does not need to be modified, so that the labor and time for modifying the source code of the business system are saved, and the efficiency of building the business system can be improved.
In the embodiment of the invention, when a business system is newly built, if a fixed business approval process in the business system does not meet the requirements of a user, a corresponding workflow approval process can be established in the workflow system according to the requirements of the user, and then when an approval business matched with the established workflow approval process appears in the business system, the approval business is approved according to the established workflow approval process. In addition, for the built service system, if a user needs to change an approval process of an approval service, a workflow approval process corresponding to the approval service can be created in the workflow system, so that the approval process of the approval service is switched to the created workflow approval process, and the requirement of switching the approval process by the user can be met without re-building the service system.
Optionally, on the basis of the service approval method shown in fig. 1, after the approval input data is sent to the workflow system, and the workflow system approves the approval input data according to the second approval process, the target approval result data returned by the workflow system may be obtained, and then the state of the target approval service is updated according to the obtained target approval result data. As shown in fig. 2, the method for updating the status of the target approval service may include the following steps:
step 201: receiving target approval result data through a target data interface of a target service module, wherein the target service module is a service module to which a target approval service belongs, the target approval result data is used for indicating a workflow system to approve approval input data according to a first approval process to obtain an approval result, and the target approval result data is sent to the target data interface through a callback interface called by the workflow system;
step 202: and updating the state of the target approval service according to the target approval result data.
In the embodiment of the invention, the service system comprises a plurality of service modules, each service module may comprise one or more approval services, each service module has a corresponding data interface, and the data interface of each service module can communicate with a pre-established callback interface. After the workflow system finishes the approval of the approval input data according to the first approval process and obtains the target approval result data, the workflow system can call the callback interface, and then sends the obtained target approval result data to the target data interface of the target service module through the callback interface, and then the service system can update the state of the target approval service according to the target approval result data.
In the embodiment of the invention, when an approval service has a corresponding workflow approval process in a workflow system, after the approval input data corresponding to the approval service is sent to the workflow system, the workflow system approves the approval input data according to the workflow approval process corresponding to the approval service, and then returns the approval result data to the service system, and the service system updates the state of the approval service according to the returned approval result data, so that a user can check the approval result of the approval service in the service system, the user cannot perceive the existence of the workflow approval process, and the use experience of the user is ensured.
In the embodiment of the invention, the pre-established callback interface can be communicated with the data interface of each service module in the service system, after the workflow system approves the approval input data from different service modules according to the corresponding workflow approval process, the workflow system can call the callback interface, and returns the obtained approval result data to the corresponding service module in the service system through the callback interface, thereby realizing the state update of the corresponding approval service. By creating a uniform callback interface, the workflow system can conveniently return the examination and approval result data to the service system, thereby conveniently realizing the update of the examination and approval service state.
In the embodiment of the invention, the service system and the workflow system share the same shared data table, the workflow system can store the examination and approval process information into the shared data table in the process of carrying out service examination and approval according to the workflow examination and approval process, the service system can acquire the examination and approval process information from the shared data table in real time or at regular time, and then the examination and approval progress of the corresponding examination and approval service is updated according to the acquired examination and approval process information. The approval process information may include an identification of each approval node that has completed approval, a given approval result, a time to receive the approval task, a time to complete the approval task, and the like.
Optionally, on the basis of the method for updating the target approval service state shown in fig. 2, it may be detected whether the load of the created callback interface is too large, and when it is detected that the load of the callback interface is too large, a standby callback interface may be created to reduce the load of the callback interface. As shown in fig. 3, the callback interface load balancing method may include the following steps:
step 301: calculating the load of the callback interface through the following formula according to the number and the data volume of the approval result data sent by the callback interface in the preset time period and the bandwidth occupation volume of the callback interface in the preset time period;
Figure BDA0002220202690000101
wherein, tau represents the load of the callback interface, m represents the number of the approval result data sent by the callback interface in the preset time period, and tiRepresenting the waiting time of the ith examination and approval result data before the ith examination and approval result data is sent by the callback interface, qiThe data volume of the ith approval result data, t represents the length of a preset time period, xtRepresenting the bandwidth occupation amount of the callback interface at time t;
step 302: judging whether the load of the callback interface is greater than a preset critical threshold value, if so, executing a step 303, otherwise, ending the current process;
step 303: at least one standby callback interface is established in the workflow system, and for each standby callback interface, the standby callback interface is configured to replace the callback interface to send approval result data to the data interface of at least one service module.
In the embodiment of the present invention, since the service system may include a plurality of service modules, each service module may include a plurality of approval services, and approval result data obtained after the workflow system approves different approval services need to be returned to the service system through the callback interface, when there are many approval services that need to be approved by the workflow system, the callback interface may not return the approval result data to the service system in time, and the approval result data may be queued, which may cause a situation that the state of the approval service in the service system is not updated in time.
In the embodiment of the invention, parameters such as the number of the approval result data sent by the callback interface in the preset time period, the data volume of each approval result data, the bandwidth occupation amount of the callback interface in the preset time period and the like are obtained, the load of the callback interface can be calculated according to the obtained parameters, when the calculated load of the callback interface is greater than a preset critical threshold value, at least one standby callback interface is created, and the standby callback interface replaces the callback interface to send part of the approval result data to the service system, so that the load of the callback interface is reduced, the approval result data can be ensured to return to the service system in time, the user can check the latest state of the approval service in time, and the use experience of the user is improved.
In the embodiment of the invention, after the load of the callback interface is calculated, the number of the standby callback interfaces required to be created can be determined according to the load of the callback interface, if the load of the callback interface is greater than a critical threshold value and the difference between the load of the callback interface and the critical threshold value is larger, two or more than two standby callback interfaces can be created to ensure that the approval result data can be timely returned to a service system, and if the load of the callback interface is greater than the critical threshold value and the difference between the load of the callback interface and the critical threshold value is smaller, one standby callback interface can be created to avoid resource waste caused by the idle standby callback interface.
In the embodiment of the present invention, after the backup callback interface is created, for each created backup callback interface, one or more corresponding service modules may be configured for the backup callback interface, and the backup callback interface is responsible for sending approval result data to the data interface of each corresponding service module. In addition, the examination and approval result data can be dynamically distributed to the callback interface with smaller load or the standby callback interface for sending according to the real-time load of the callback interface and each standby callback interface.
Optionally, on the basis of the service approval method shown in fig. 1, when step 102 determines whether a first approval process matching the target approval process exists in the workflow system, since a plurality of workflow approval processes matching the target approval service may exist in the workflow system, the workflow approval process matching the target approval process and currently taking effect in the workflow system may be determined as the first approval process. As shown in fig. 3, the method for determining whether the first approval process exists may include the following steps:
step 401: sending a detection instruction to the workflow system, wherein the detection instruction is used for indicating the workflow system to detect whether at least one third approval process matched with the target approval service exists or not and indicating the workflow system to generate feedback information according to a detection result;
step 402: receiving feedback information from the workflow system;
step 403: judging whether the feedback information indicates that a third approval process matched with the target approval service exists in the workflow system, if so, executing a step 404, otherwise, executing a step 405;
step 404: determining that a first approval process matched with the target approval service does not exist in the workflow system, and ending the current process;
step 405: and determining a currently effective third approval process indicated by the feedback information as a first approval process, and determining that the first approval process matched with the target approval business exists in the workflow system.
In the embodiment of the invention, after receiving approval input data aiming at a target approval business, firstly, judging whether at least one third approval process matched with the target approval business exists in a workflow system, if the at least one third approval process matched with the target approval business exists in the workflow system, determining a currently effective third approval process as a first approval process, subsequently approving the approval input data according to the first approval process, and if the third approval process matched with the target approval business does not exist in the workflow system, determining an approval process which is fixed in the business system and matched with the target approval business as the first approval process, and subsequently approving the approval input data in the business system according to the approval process carried by the business system.
In the embodiment of the invention, the detection instruction sent to the workflow system comprises the identifier of the target approval service, and the workflow system can accurately judge whether a third approval process matched with the target approval service exists according to the identifier, so that the target approval service can be approved according to the first approval process or the second approval process according to the requirements of users, and the reliability and the safety of service approval are further ensured.
In the embodiment of the invention, a plurality of matched workflow approval processes can be created in the workflow system for the same approval service, but only one workflow approval process of the same approval service is effective at the same time, so that a user can switch different workflow approval processes to be effective according to requirements on the premise of ensuring that the approval process is fixed during each service approval, thereby meeting the requirement of flexibly switching the approval processes of the user and further improving the use experience of the user.
It should be noted that, in the service approval method provided in each of the above embodiments, the approval process created in the workflow system is a workflow approval process, and both the first approval process and the third approval process belong to the workflow approval process.
As shown in fig. 5, the present invention provides a business approval apparatus, including:
a data obtaining module 501, configured to obtain approval input data, where the approval input data is input data of a target approval service;
a path determining module 502, configured to determine whether a first approval process matching the target approval service exists in the workflow system;
a first approval module 503, configured to send the approval input data acquired by the data acquisition module 501 to the workflow system when the path determination module 502 determines that a first approval process matching the target approval service exists in the workflow system, so that the workflow system approves the approval input data according to the first approval process;
and a second approval module 504, configured to, when the path determining module 502 determines that the first approval process matching the target approval service does not exist in the workflow system, enable the business system to approve the approval input data acquired by the data acquiring module 501 according to the second approval process, where the second approval process is an approval process matching the target approval service in the business system.
In an embodiment of the present invention, the data obtaining module 501 may be configured to execute step 101 in the foregoing method embodiment, the path determining module 502 may be configured to execute step 102 in the foregoing method embodiment, the first approval module 503 may be configured to execute step 103 in the foregoing method embodiment, and the second approval module 504 may be configured to execute step 104 in the foregoing method embodiment.
Optionally, on the basis of the business approval apparatus shown in fig. 5, as shown in fig. 6, the business approval apparatus further includes:
an approval write-back module 505, configured to receive target approval result data through a target data interface of a target service module, where the target service module is a service module to which a target approval service belongs, the target approval result data is used to indicate an approval result obtained by approving the approval input data sent by the second approval module 504 according to the first approval process, the target approval result data is sent to the target data interface through a callback interface called by the workflow system, and the callback interface is used to send the approval result data to a data interface of each service module in the service system;
and a state updating module 506, configured to update the state of the target approval service according to the target approval result data received by the approval write-back module 505.
In the embodiment of the present invention, the approval write-back module 505 may be configured to perform step 201 in the above-described method embodiment, and the status update module 506 may be configured to perform step 202 in the above-described method embodiment.
Optionally, on the basis of the business approval apparatus shown in fig. 6, as shown in fig. 7, the business approval apparatus may further include:
a load calculating module 507, configured to calculate a callback interface load according to the number and data amount of the approval result data received by the approval write-back module 505 and sent by the callback interface within the preset time period, and a bandwidth occupation amount of the callback interface within the preset time period, by using the following formula;
Figure BDA0002220202690000141
wherein, tau represents the load of the callback interface, m represents the number of the approval result data sent by the callback interface in the preset time period, and tiRepresenting the waiting time of the ith examination and approval result data before the ith examination and approval result data is sent by the callback interface, qiThe data volume of the ith approval result data, t represents the length of a preset time period, xtRepresenting the bandwidth occupation amount of the callback interface at time t;
a load determining module 508, configured to determine whether the load of the callback interface calculated by the load calculating module 507 is greater than a preset critical threshold;
an interface creating module 509, configured to create at least one standby callback interface after the load determining module 508 determines that the load of the callback interface is greater than the critical threshold, and configure the standby callback interface to replace the callback interface to send approval result data to the data interface of the at least one service module, for each standby callback interface.
In this embodiment of the present invention, the load calculating module 507 may be configured to execute step 301 in the above-described method embodiment, the load determining module 508 may be configured to execute step 302 in the above-described method embodiment, and the interface creating module 509 may be configured to execute step 303 in the above-described method embodiment.
Optionally, on the basis of the service approval apparatus shown in fig. 5, as shown in fig. 8, the path determining module 502 includes:
an instruction sending unit 5021, configured to send a detection instruction to the workflow system, where the detection instruction is used to instruct the workflow system to detect whether there is at least one third approval process matching the target approval service, and instruct the workflow system to generate feedback information according to a detection result;
a feedback receiving unit 5022, configured to receive feedback information from the workflow system for the detection command sent by the command sending unit 5021;
a first determining unit 5023, configured to indicate that a third approval process matching the target approval service does not exist in the workflow system according to the feedback information received by the feedback receiving unit 5022, and determine that a first approval process matching the target approval service does not exist in the workflow system;
a second determining unit 5024, configured to determine that at least one third approval process matching the target approval service exists in the workflow system indicated by the feedback information received by the feedback receiving unit 5022, the currently valid third approval process indicated by the feedback information is the first approval process, and determine that the first approval process matching the target approval service exists in the workflow system.
In an embodiment of the present invention, the instruction transmitting unit 5021 may be configured to perform step 401 in the above-described method embodiment, the feedback receiving unit 5022 may be configured to perform step 402 in the above-described method embodiment, the first determining unit 5023 may be configured to perform step 404 in the above-described method embodiment, and the second determining unit 5024 may be configured to perform step 405 in the above-described method embodiment.
It should be noted that, because the contents of information interaction, execution process, and the like between the units in the apparatus are based on the same concept as the method embodiment of the present invention, specific contents may refer to the description in the method embodiment of the present invention, and are not described herein again.
As shown in fig. 9, an embodiment of the present invention provides a service approval system, including: a business system 901, a workflow system 902 and a business approval apparatus 903 provided in any of the above embodiments;
the service system 901 is configured to send approval input data to the service approval device 903, and approve the approval input data according to a second approval process triggered by the service approval device 903, where the second approval process is an approval process in the service system that matches the target approval service;
and the workflow system 902 is configured to receive the approval input data from the service approval apparatus 903, and approve the approval input data according to a first approval process, where the first approval process is an approval process matched with the target approval service in the workflow system 902.
In the embodiment of the invention, after a user creates approval input data aiming at a target approval business in a business system, a business approval device judges whether a first approval process matched with the target approval business exists in a workflow system, if the first approval process matched with the target approval business exists in the workflow system, the business approval device sends the approval input data to the workflow system, the workflow system approves the approval input data according to the first approval process, and if the first approval process matched with the target approval business does not exist in the workflow system, the business approval device triggers the business system to approve the approval input data according to a second approval process matched with the target approval business in the business system. Therefore, under the control of the service approval device, if an approval service has a matched workflow approval process in the workflow system, the workflow system is preferentially enabled to approve the approval input data of the approval service according to the workflow approval process, and when the workflow system does not have a workflow approval process matched with the approval service, the service system is enabled to approve the approval input data of the approval service according to the inherent approval process, so that when the inherent approval process in the service system does not meet the requirements of users, only the corresponding approval process is created in the workflow system according to the requirements of the users, the corresponding approval service can be approved according to the requirements of the users without modifying the inherent approval process in the service system, thereby saving the manpower and time for modifying the source codes of the service system, therefore, the efficiency of building the business system can be improved.
In the embodiment of the present invention, the service approval apparatus may be an independent apparatus independent from the service system and the workflow system, or the service approval apparatus may be deployed in the service system, that is, the service approval apparatus is a part of the service system, or the service approval apparatus may be deployed in the workflow system, that is, the service approval apparatus is a part of the workflow system.
Alternatively, on the basis of the business approval system shown in fig. 9, the workflow system 902 may further send, to the business system 901, approval result data obtained by approving the approval input data according to the first approval process, and specifically, in the process of approving the approval input data according to the first approval process, after approving to a target approval node in the first approval process, the workflow system 902 determines whether the target approval node is a last approval node in the first approval process, and if the target approval node is the last approval node in the first approval process, invokes a callback interface to send the target approval result data to a target data interface of a target business module in the business system 901, wherein the target business module is a business module to which the target approval business belongs, and the target approval result data is used to indicate an approval result obtained by approving the approval input data according to the first approval process, the callback interface user sends approval result data to the data interface of each service module in the service system 901.
In the embodiment of the invention, in the process that the workflow system approves the approval input data according to the first approval process, after the process flow is transferred to an approval node in the first approval process, the workflow system judges whether the approval node is the last approval node in the first approval process, if the approval node is determined to be the last approval node in the first approval process, the approval result data is written back to the business system by calling the callback interface, so that whether the approval is finished can be accurately judged, and the approval result data is written back to the business system in time after the approval is finished, thereby realizing the timely update of the approval business state in the business system.
The embodiment of the invention provides a readable medium, wherein an execution instruction is stored on the readable medium, and when a processor of a storage controller executes the execution instruction, the storage controller executes the service approval method provided by each embodiment.
An embodiment of the present invention provides a storage controller, including: a processor, a memory, and a bus;
the memory is used for storing an execution instruction, the processor is connected with the memory through the bus, and when the storage controller runs, the processor executes the execution instruction stored in the memory, so that the storage controller executes the service approval method provided by each of the above embodiments.
In summary, the service approval method, apparatus and system provided in the embodiments of the present invention at least have the following advantages:
1. in the embodiment of the invention, after approval input data aiming at a target approval business in a business system is obtained, whether a first approval process matched with the target approval business exists in the workflow system is judged, if the first approval process exists in the workflow system, the approval input data are sent to the workflow system, so that the workflow system approves the approval input data according to the first approval process, and if the first approval process does not exist in the workflow system, the approval input data are approved according to a second approval process matched with the target approval business and inherent in the business system. Therefore, for any approval business in the business system, if a first approval process matched with the approval business exists in the workflow system, the approval business is approved according to the first approval process, if the first approval process matched with the approval business does not exist in the workflow system, the approval business is approved according to the second approval process matched with the approval business inherent in the business system, therefore, when the inherent approval process in the service system does not meet the requirements of the user, the corresponding approval service can be approved according to the requirements of the user only by establishing the corresponding approval process in the workflow system according to the requirements of the user, the inherent approval process in the business system does not need to be modified, so that the labor and time for modifying the source code of the business system are saved, and the efficiency of building the business system can be improved.
2. In the embodiment of the invention, when an approval service has a corresponding workflow approval process in a workflow system, after the approval input data corresponding to the approval service is sent to the workflow system, the workflow system approves the approval input data according to the workflow approval process corresponding to the approval service, and then returns the approval result data to the service system, and the service system updates the state of the approval service according to the returned approval result data, so that a user can check the approval result of the approval service in the service system, the user cannot perceive the existence of the workflow approval process, and the use experience of the user is ensured.
3. In the embodiment of the invention, the pre-established callback interface can be communicated with the data interface of each service module in the service system, after the workflow system approves the approval input data from different service modules according to the corresponding workflow approval process, the workflow system can call the callback interface, and returns the obtained approval result data to the corresponding service module in the service system through the callback interface, thereby realizing the state update of the corresponding approval service. By creating a uniform callback interface, the workflow system can conveniently return the examination and approval result data to the service system, thereby conveniently realizing the update of the examination and approval service state.
4. In the embodiment of the invention, parameters such as the number of the approval result data sent by the callback interface in the preset time period, the data volume of each approval result data, the bandwidth occupation amount of the callback interface in the preset time period and the like are obtained, the load of the callback interface can be calculated according to the obtained parameters, when the calculated load of the callback interface is greater than a preset critical threshold value, at least one standby callback interface is created, and the standby callback interface replaces the callback interface to send part of the approval result data to the service system, so that the load of the callback interface is reduced, the approval result data can be ensured to return to the service system in time, the user can check the latest state of the approval service in time, and the use experience of the user is improved.
5. In the embodiment of the invention, the detection instruction sent to the workflow system comprises the identifier of the target approval service, and the workflow system can accurately judge whether a third approval process matched with the target approval service exists according to the identifier, so that the target approval service can be approved according to the first approval process or the second approval process according to the requirements of users, and the reliability and the safety of service approval are further ensured.
6. In the embodiment of the invention, a plurality of matched workflow approval processes can be created in the workflow system for the same approval service, but only one workflow approval process of the same approval service is effective at the same time, so that a user can switch different workflow approval processes to be effective according to requirements on the premise of ensuring that the approval process is fixed during each service approval, thereby meeting the requirement of flexibly switching the approval processes of the user and further improving the use experience of the user.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a" does not exclude the presence of other similar elements in a process, method, article, or apparatus that comprises the element.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it is to be noted that: the above description is only a preferred embodiment of the present invention, and is only used to illustrate the technical solutions of the present invention, and not to limit the protection scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A business approval method is characterized by comprising the following steps:
acquiring approval input data, wherein the approval input data are input data of a target approval business;
judging whether a first approval process matched with the target approval business exists in the workflow system or not;
if the first approval process matched with the target approval business exists in the workflow system, the approval input data are sent to the workflow system, so that the workflow system approves the approval input data according to the first approval process;
and if the first approval process matched with the target approval business does not exist in the workflow system, enabling the business system to approve the approval input data according to a second approval process, wherein the second approval process is an approval process matched with the target approval business in the business system.
2. The method of claim 1, further comprising, after said sending said approval input data to said workflow system:
receiving target approval result data through a target data interface of a target service module, wherein the target service module is a service module to which the target approval service belongs, the target approval result data is used for indicating an approval result obtained by approving the approval input data according to the first approval process, the target approval result data is sent to the target data interface through a callback interface called by the workflow system, and the callback interface is used for sending the approval result data to a data interface of each service module in the service system;
and updating the state of the target approval service according to the target approval result data.
3. The method of claim 2, further comprising:
calculating callback interface load according to the number and data quantity of the approval result data sent by the callback interface in a preset time period and the bandwidth occupation quantity of the callback interface in the preset time period by using the following formula;
Figure FDA0002220202680000011
wherein τ represents the callback interface load, m represents the number of the approval result data sent by the callback interface in the preset time period, and t representsiRepresenting the waiting time of the ith examination and approval result data before the ith examination and approval result data is sent by the callback interface, wherein q isiThe data volume of the ith approval result data, the t represents the length of the preset time period, and the xtRepresenting the bandwidth occupation amount of the callback interface at time t;
judging whether the load of the callback interface is greater than a preset critical threshold value or not;
and if the load of the callback interface is greater than the critical threshold, creating at least one standby callback interface, and configuring the standby callback interface to replace the callback interface to send the approval result data to the data interface of at least one service module aiming at each standby callback interface.
4. The method according to any one of claims 1 to 3, wherein the determining whether the first approval process matching the target approval service exists in the workflow system comprises:
sending a detection instruction to the workflow system, wherein the detection instruction is used for indicating the workflow system to detect whether at least one third approval process matched with the target approval business exists or not and indicating the workflow system to generate feedback information according to a detection result;
receiving the feedback information from the workflow system;
if the feedback information indicates that the third approval process matched with the target approval service does not exist in the workflow system, determining that the first approval process matched with the target approval service does not exist in the workflow system;
and if the feedback information indicates that at least one third approval process matched with the target approval business exists in the workflow system, determining the currently effective third approval process indicated by the feedback information as the first approval process, and determining that the first approval process matched with the target approval business exists in the workflow system.
5. A business approval apparatus, comprising:
the data acquisition module is used for acquiring approval input data, wherein the approval input data are input data of a target approval business;
the path judgment module is used for judging whether a first approval process matched with the target approval business exists in the workflow system;
the first approval module is used for sending the approval input data acquired by the data acquisition module to the workflow system when the path judgment module determines that the first approval process matched with the target approval business exists in the workflow system, so that the workflow system approves the approval input data according to the first approval process;
and the second approval module is used for enabling the business system to approve the approval input data acquired by the data acquisition module according to a second approval process when the path judgment module determines that the first approval process matched with the target approval business does not exist in the workflow system, wherein the second approval process is an approval process matched with the target approval business in the business system.
6. The apparatus of claim 5, further comprising:
an approval write-back module, configured to receive target approval result data through a target data interface of a target service module, where the target service module is a service module to which the target approval service belongs, the target approval result data is used to indicate an approval result obtained by approving the approval input data sent by the second approval module according to the first approval process, the target approval result data is sent to the target data interface through a callback interface called by the workflow system, and the callback interface is used to send approval result data to a data interface of each service module in the service system;
and the state updating module is used for updating the state of the target approval business according to the target approval result data received by the approval and write-back module.
7. The apparatus of claim 6, further comprising:
the load calculation module is used for calculating the load of the callback interface through the following formula according to the number and the data volume of the approval result data received by the approval write-back module and sent by the callback interface in a preset time period and the bandwidth occupation volume of the callback interface in the preset time period;
Figure FDA0002220202680000031
wherein τ represents the callback interface load, m represents the number of the approval result data sent by the callback interface in the preset time period, and t representsiRepresenting the waiting time of the ith examination and approval result data before the ith examination and approval result data is sent by the callback interface, wherein q isiThe data volume of the ith approval result data, the t represents the length of the preset time period, and the xtRepresenting the bandwidth occupation amount of the callback interface at time t;
a load judging module, configured to judge whether the load of the callback interface calculated by the load calculating module is greater than a preset critical threshold;
and the interface creating module is used for creating at least one standby callback interface after the load judging module determines that the load of the callback interface is greater than the critical threshold, and configuring the standby callback interface to replace the callback interface to send the approval result data to the data interface of at least one service module aiming at each standby callback interface.
8. The apparatus according to any one of claims 5 to 7, wherein the path determining module comprises:
the instruction sending unit is used for sending a detection instruction to the workflow system, wherein the detection instruction is used for indicating the workflow system to detect whether at least one third approval process matched with the target approval business exists or not and indicating the workflow system to generate feedback information according to a detection result;
a feedback receiving unit for receiving the feedback information from the workflow system for the detection instruction sent by the instruction sending unit;
a first determining unit, configured to determine that the workflow system does not have the first approval process matching the target approval service, if the feedback information received by the feedback receiving unit indicates that the workflow system does not have the third approval process matching the target approval service;
a second determining unit, configured to determine, if the feedback information received by the feedback receiving unit indicates that at least one third approval process matching the target approval service exists in the workflow system, that the currently valid third approval process indicated by the feedback information is the first approval process, and determine that the first approval process matching the target approval service exists in the workflow system.
9. A business approval system, comprising: a business system, a workflow system and a business approval apparatus as claimed in any one of claims 5 to 8;
the business system is used for sending the approval input data to the business approval device and approving the approval input data according to a second approval process under the trigger of the business approval device, wherein the second approval process is an approval process matched with the target approval business in the business system;
the workflow system is used for receiving the approval input data from the business approval device and approving the approval input data according to a first approval process, wherein the first approval process is an approval process matched with the target approval business in the workflow system.
10. The system of claim 9,
the workflow system is further configured to, during the approval of the approval input data according to the first approval process, after the target approval node in the first approval process is approved, judging whether the target approval node is the last approval node in the first approval process, if the target approval node is the last approval node in the first approval process, calling a callback interface to send target approval result data to a target data interface of a target service module in the service system, wherein the target business module is a business module to which the target approval business belongs, the target approval result data is used for indicating an approval result obtained by approving the approval input data according to the first approval process, and the callback interface is used for sending approval result data to the data interface of each service module in the service system.
CN201910930760.5A 2019-09-29 2019-09-29 Business approval method, device and system Active CN110751458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910930760.5A CN110751458B (en) 2019-09-29 2019-09-29 Business approval method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910930760.5A CN110751458B (en) 2019-09-29 2019-09-29 Business approval method, device and system

Publications (2)

Publication Number Publication Date
CN110751458A true CN110751458A (en) 2020-02-04
CN110751458B CN110751458B (en) 2022-06-24

Family

ID=69277345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910930760.5A Active CN110751458B (en) 2019-09-29 2019-09-29 Business approval method, device and system

Country Status (1)

Country Link
CN (1) CN110751458B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111582827A (en) * 2020-05-11 2020-08-25 安徽亘达信息科技有限公司 Approval process control method and system
CN111754196A (en) * 2020-06-29 2020-10-09 苏州美能华智能科技有限公司 Configuration method, device and storage medium for application process of assistant tool for disability
CN113011848A (en) * 2021-03-23 2021-06-22 北京奇艺世纪科技有限公司 Method, device, equipment and storage medium for accessing approval service
CN115936619A (en) * 2022-12-20 2023-04-07 北京远舢智能科技有限公司 Business approval processing method and device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105550851A (en) * 2015-12-09 2016-05-04 中国建设银行股份有限公司 Business flow generation method and system
JP2019160203A (en) * 2018-03-16 2019-09-19 株式会社リコー Information processing apparatus, processing method, autonomous processing system and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105550851A (en) * 2015-12-09 2016-05-04 中国建设银行股份有限公司 Business flow generation method and system
JP2019160203A (en) * 2018-03-16 2019-09-19 株式会社リコー Information processing apparatus, processing method, autonomous processing system and program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111582827A (en) * 2020-05-11 2020-08-25 安徽亘达信息科技有限公司 Approval process control method and system
CN111582827B (en) * 2020-05-11 2023-06-20 安徽亘达信息科技有限公司 Approval process control method and system
CN111754196A (en) * 2020-06-29 2020-10-09 苏州美能华智能科技有限公司 Configuration method, device and storage medium for application process of assistant tool for disability
CN113011848A (en) * 2021-03-23 2021-06-22 北京奇艺世纪科技有限公司 Method, device, equipment and storage medium for accessing approval service
CN115936619A (en) * 2022-12-20 2023-04-07 北京远舢智能科技有限公司 Business approval processing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110751458B (en) 2022-06-24

Similar Documents

Publication Publication Date Title
CN110751458B (en) Business approval method, device and system
CN108985937A (en) A kind of computing resource sharing method and block catenary system based on block chain technology
CN112653758B (en) Method, device, equipment and medium for updating edge node
CN107526645A (en) A kind of communication optimization method and system
CN112860342A (en) Method, device, equipment, system and storage medium for microservice configuration
CN114911598A (en) Task scheduling method, device, equipment and storage medium
CN114327804B (en) Block chain based distributed transaction processing method, device, equipment and medium
CN109639755A (en) Interconnected system server decoupling method, device, medium and electronic equipment
CN113704058A (en) Business model monitoring method and device and electronic equipment
CN112948081A (en) Method, device and equipment for processing task in delayed mode and storage medium
CN113590287B (en) Task processing method, device, equipment, storage medium and scheduling system
CN112817992B (en) Method, apparatus, electronic device and readable storage medium for executing change task
CN114327392A (en) Data processing method and device and electronic equipment
CN114490000A (en) Task processing method, device, equipment and storage medium
CN114091909A (en) Collaborative development method, system, device and electronic equipment
CN113656239A (en) Monitoring method and device for middleware and computer program product
CN113986495A (en) Task execution method, device, equipment and storage medium
CN113419921A (en) Task monitoring method, device, equipment and storage medium
CN113238893A (en) Disaster recovery system, method, computer device and medium for multiple data centers
CN113965563A (en) Model-based business processing method and device and server
CN113360689B (en) Image retrieval system, method, related device and computer program product
CN110022220A (en) Routing Activiation method and system in business card recognition
CN113609145B (en) Database processing method, device, electronic equipment, storage medium and product
CN114979141B (en) Task processing method, device, equipment and storage medium
CN114979141A (en) Task processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100176 room 07, block 2, building B, No. 12, Hongda North Road, Beijing Economic and Technological Development Zone, Beijing

Applicant after: Wanghai Kangxin (Beijing) Technology Co., Ltd

Address before: 100176 room 07, block 2, building B, No. 12, Hongda North Road, Beijing Economic and Technological Development Zone, Beijing

Applicant before: Beijing Neusoft Wang Hai Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant