CN107656946B - Method and system for redirecting business process - Google Patents

Method and system for redirecting business process Download PDF

Info

Publication number
CN107656946B
CN107656946B CN201610859663.8A CN201610859663A CN107656946B CN 107656946 B CN107656946 B CN 107656946B CN 201610859663 A CN201610859663 A CN 201610859663A CN 107656946 B CN107656946 B CN 107656946B
Authority
CN
China
Prior art keywords
request
service request
mapping
initial service
service
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.)
Active
Application number
CN201610859663.8A
Other languages
Chinese (zh)
Other versions
CN107656946A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201610859663.8A priority Critical patent/CN107656946B/en
Publication of CN107656946A publication Critical patent/CN107656946A/en
Application granted granted Critical
Publication of CN107656946B publication Critical patent/CN107656946B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • 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/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • Educational Administration (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Operations Research (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for redirecting a business process, which comprises the following steps: intercepting an initial service request sent by a client; searching a mapping request corresponding to the initial service request according to a preset mapping table; and sending the mapping request to a process node pointed by the mapping request as a service request of the client. The invention also discloses a system for redirecting the business process. The invention has the advantages of small workload of redirecting WEB application business flow, more convenient and faster operation and more convenient system maintenance.

Description

Method and system for redirecting business process
Technical Field
The invention relates to the technical field of internet, in particular to a method and a system for redirecting a business process.
Background
In the process of service popularization and application, WEB application is continuously improved or updated, and a new service flow is provided so as to improve service. The functions of the new and old business processes are independent from each other, and the display interfaces are different.
According to the service development requirement or the test requirement of the new service process, not all users need to use the new service process. In order to enable a user to correctly access a service flow required by the user, the current method is to modify a code of WEB application, so as to perform logic judgment according to an identifier of a service request, select a correct service flow for the service request, and the code modification has the disadvantages of large workload, high research and development cost, and is not beneficial to popularization and online of a new service.
Disclosure of Invention
The invention mainly aims to provide a method and a system for redirecting a business process, and aims to solve the technical problem of large workload for redirecting a WEB application business process.
In order to achieve the above object, the present invention provides a method for redirecting a service flow, which comprises the following steps:
intercepting an initial service request sent by a client;
searching a mapping request corresponding to the initial service request according to a preset mapping table;
and sending the mapping request to a process node pointed by the mapping request as a service request of the client.
Preferably, after the step of intercepting the initial service request sent by the client, the method further includes:
judging whether the type of the initial service request is a preset type or not;
if the type of the initial service request is a preset type, executing the following steps: and searching a mapping request corresponding to the initial service request according to a preset mapping table.
Preferably, the initial service request carries a process identifier, and the step of searching for the mapping request corresponding to the initial service request according to a preset mapping table includes:
and searching a mapping request corresponding to the initial service request according to the mapping table and the process identification.
Preferably, the method for redirecting the business process further includes:
and determining the directed flow nodes according to the Uniform Resource Locators (URLs) in the mapping request.
Preferably, the method for redirecting the business process further includes:
and if the type of the initial service request is not a preset type or a mapping node corresponding to the initial service request is not found, sending the initial service request to a process node pointed by the initial service request.
In addition, to achieve the above object, the present invention further provides a system for redirecting a service flow, where the system for redirecting a service flow includes:
the intercepting module is used for intercepting an initial service request sent by a client;
the searching module is used for searching a mapping request corresponding to the initial service request according to a preset mapping table;
and the sending module is used for sending the mapping request to the process node pointed by the mapping request as the service request of the client.
Preferably, the system for redirecting the business process further comprises:
the judging module is used for judging whether the type of the initial service request is a preset type or not;
the searching module is further configured to search, if the type of the initial service request is a preset type, a mapping request corresponding to the initial service request according to a preset mapping table.
Preferably, the initial service request carries a flow identifier, and the search module is further configured to,
and searching a mapping request corresponding to the initial service request according to the mapping table and the process identification.
Preferably, the sending module is further configured to,
and determining the directed flow nodes according to the Uniform Resource Locators (URLs) in the mapping request.
Preferably, the sending module is further configured to,
and if the type of the initial service request is not a preset type or a mapping node corresponding to the initial service request is not found, sending the initial service request to a process node pointed by the initial service request.
The embodiment of the invention provides a method and a system for redirecting a business process, which are used for acquiring a business request needing to redirect the business process by intercepting an initial business request sent by a client; then, according to a preset mapping table, searching a mapping request corresponding to the initial service request, wherein the obtained mapping request is also a service request pointing to a redirected service flow; then, the mapping request is used for replacing the initial service request and is sent to the process node pointed by the mapping request as the service request in the client, so that the process node provides service support for the client and redirection of the service process is realized. The invention intercepts the initial service request sent by the client, obtains the mapping request pointing to another service process according to the preset mapping table, provides the support of the current service for the client by the service process pointed by the mapping request, and realizes the redirection of the service process. Compared with the modification of WEB application core codes, the interception of the service request and the configuration of the mapping table have the advantages of small workload, more convenient and faster operation and more convenient system maintenance, and solve the technical problem of large workload of the redirected WEB application service process. Moreover, the service flows in the WEB application are mutually independent and isolated, so that the coupling between systems is reduced, the popularization of a new service flow and the offline transformation of an old service flow are facilitated, and the normal use of the WEB application is not influenced.
Drawings
Fig. 1 is a schematic flow chart of a first embodiment of a service flow redirection method according to the present invention;
fig. 2 is a flowchart illustrating a service flow redirection method according to a second embodiment of the present invention;
fig. 3 is a flowchart illustrating a third embodiment of a method for redirecting a service flow according to the present invention;
fig. 4 is a flowchart illustrating a fourth embodiment of a method for redirecting a service flow according to the present invention;
fig. 5 is a flowchart illustrating a fifth embodiment of a method for redirecting a service flow according to the present invention;
FIG. 6 is a functional block diagram of a first embodiment of a business process redirection system of the present invention;
fig. 7 is a functional block diagram of a business process redirection system according to a second embodiment, a third embodiment, a fourth embodiment, and a fifth embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
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.
Referring to fig. 1, a first embodiment of a method for redirecting a service flow according to the present invention provides a method for redirecting a service flow, where the method for redirecting a service flow includes:
and step S10, intercepting the initial service request sent by the client.
The invention intercepts the service request sent by each client to redirect the service flow by adding the filter, and sends the service flow of the client to the redirected flow node without modifying the application code, thereby greatly reducing the workload of research personnel.
In one embodiment, a filter is configured at the general entrance of the WEB application end to intercept the service request.
Specifically, a user uses a client to obtain service support of WEB application, and the client generates a corresponding service request according to an instruction input by the user, and sends the service request as an initial service request to a WEB application server.
It should be noted that the initial service request describes an initial service flow of the client requesting to process the current service.
The filter intercepts an initial service request sent by a client.
Step S20, finding a mapping request corresponding to the initial service request according to a preset mapping table.
After an initial service request of a client is intercepted, a filter acquires a mapping request corresponding to the service request according to a preset mapping table.
Specifically, as an embodiment, a mapping table is configured in advance, and a mapping request corresponding to a preset type of service request is recorded. It should be noted that the mapping request is a request directed to another service flow after the initial service flow to which the initial service request is directed is redirected.
And the filter searches the mapping request corresponding to the current initial service request in the mapping table.
And step S30, sending the mapping request as the service request of the client to the process node pointed by the mapping request.
And after the mapping request corresponding to the initial service request is successfully found, the filter takes the found service request as the service request of the client, and covers or replaces the initial service flow sent by the client.
Then, the filter acquires the flow node to which the mapping request points.
Then, the filter takes the mapping request as a service request of the client and sends the service request to the process node pointed by the mapping request, so that the process node replaces the initial service process and provides service support for the client.
Therefore, the redirection of the business process is realized.
In this embodiment, an initial service request sent by a client is intercepted to obtain a service request requiring redirection of a service flow; then, according to a preset mapping table, searching a mapping request corresponding to the initial service request, wherein the obtained mapping request is also a service request pointing to a redirected service flow; then, the mapping request is used for replacing the initial service request and is sent to the process node pointed by the mapping request as the service request in the client, so that the process node provides service support for the client and redirection of the service process is realized. The embodiment intercepts an initial service request sent by a client, obtains a mapping request pointing to another service flow according to a preset mapping table, and provides the support of the current service for the client by the service flow pointed by the mapping request, thereby realizing the redirection of the service flow. Compared with the modification of WEB application core codes, the interception of the service request and the configuration of the mapping table have the advantages of small workload, more convenient and faster operation and more convenient system maintenance, and solve the technical problem of large workload of the redirected WEB application service process. Moreover, the service flows in the WEB application are mutually independent and isolated, so that the coupling between systems is reduced, the popularization of a new service flow and the offline transformation of an old service flow are facilitated, and the normal use of the WEB application is not influenced.
Further, referring to fig. 2, a second embodiment of the method for redirecting a service flow according to the present invention provides a method for redirecting a service flow, where after step S10, the method further includes:
step S40, judging whether the type of the initial service request is a preset type; if the type of the initial service request is a preset type, executing the following steps: and S20.
As an implementation mode, a user uses a client to obtain business support of WEB application, and the client generates a corresponding business request according to an instruction input by the user and sends the business request as an initial business request to a WEB application server.
It should be noted that the initial service request describes an initial service flow of the client requesting to process the current service. When configuring the initial service request, the client configures the type of the initial service request according to whether the current service needs to redirect the service flow. For example, if the client determines that the current service flow needs to be redirected and does not go through the currently pointed initial service flow, the type of the initial service request is configured as a specified type; and if the flow of the current service does not need to be redirected and the current directed initial service flow is taken, configuring the type of the initial service request as another specified type.
After intercepting an initial service request sent by a client, a filter acquires the type of the initial service request and judges whether the type of the initial service request is a preset type.
For example, the preset type may be a service request with a preset suffix, and when the suffix of a service request is the preset suffix, it is determined that the service request is the service request of the preset type. The preset suffix may be.
The client may configure the suffix of the initial service request as a preset suffix when determining that the current service needs to redirect the service flow. Correspondingly, after intercepting the initial service request, the filter can determine that the type of the initial service request is a preset type according to the suffix of the initial service request.
And if the type of the service request sent by the client is a preset type, the filter acquires a mapping request corresponding to the service request according to a preset mapping table.
In this embodiment, after an initial service request sent by a client is intercepted, whether the type of the initial service request is a preset type is judged; if the type of the initial service request is a preset type, determining that the service flow of the initial service request needs to be redirected, searching a mapping request corresponding to the initial service request according to a preset mapping table, and searching the obtained mapping request, namely the service request pointing to the redirected service flow; then, the mapping request is used for replacing the initial service request and is sent to the process node pointed by the mapping request as the service request in the client, so that the process node provides service support for the client and redirection of the service process is realized. In this embodiment, the initial service request of the service flow to be redirected by the client is obtained by screening according to the type of the service request, so that the service of the client is distributed, not all service requests need to be redirected, and only the service requests of the preset type and with requirements are redirected.
Further, referring to fig. 3, a third embodiment of the service flow redirection method according to the present invention provides a service flow redirection method, based on the embodiment shown in fig. 1 or fig. 2 (this embodiment takes fig. 2 as an example), where the initial service request carries a flow identifier, and step S20 includes:
step S21, finding the mapping request corresponding to the initial service request according to the mapping table and the process identifier.
And when the client receives an instruction input by the client, determining the service supported by the WEB application according to the current page of the client.
Then, the client determines whether the service flow of the current service needs to be redirected according to the current group, the current logged-in user account information, IP (internet protocol), and other factor information.
Meanwhile, the client configures a flow identifier, which may also be referred to as a SYS-ID (SYSTEM-ID). The client can fill various factor information into the process identifier for the filter to look up the corresponding mapping request. Certainly, the client may also configure the indication information of the service flow redirection according to the information of each factor, and configure the indication information of the service flow redirection into the flow identifier, so that the filter can directly obtain the indication information of the service flow redirection, for example, whether the service flow needs to be redirected according to the group to which the client belongs, the currently logged-in user, and the IP configuration of the client; if the service flow needs to be redirected, the service flow pointed after redirection can be specified, so that the indication information of service flow redirection is obtained, and the indication information of service flow redirection is configured into the flow identifier.
Then, the client generates an initial service request according to the client instruction and the flow identification. And if the service requested currently needs to be redirected, configuring the type of the initial service request as a preset type. And the client sends the initial service request obtained by configuration to the WEB application server.
The filter intercepts an initial service request sent by a client, and if the type of the initial service request is a preset type, a mapping request corresponding to the initial service request is searched according to a process identifier and a mapping table in the initial service request.
For example, a mapping table records mapping requests corresponding to a plurality of current initial service requests, and if the service flow redirection indication information in the flow identifier specifies a redirected service flow, the mapping request corresponding to the specified service flow is directly obtained and is the mapping request corresponding to the current initial service request; if the service flow redirection indication information in the flow identifier does not specify the redirected service flow, the mapping request can be randomly selected for the current initial service request from a plurality of mapping requests corresponding to the current initial service request to serve as the searched mapping request.
If the process identifier records information of various factors of the current client, the filter may search a mapping request corresponding to the current initial service request in the mapping table according to a pre-configured distribution policy.
Thereby, a lookup of the mapping request is achieved.
In this embodiment, the initial service request sent by the client carries a flow identifier, and if the type of the initial service request is a preset type, the mapping request corresponding to the initial service request is searched according to the mapping table and the flow identifier. In this embodiment, the redirected service flow may be specified by configuring the flow identifier, so that the client may obtain the service support provided by the specified service flow according to the requirement.
Further, referring to fig. 4, a fourth embodiment of the service flow redirection method according to the present invention provides a service flow redirection method, based on the embodiments shown in fig. 1, fig. 2, or fig. 3 (this embodiment takes fig. 3 as an example), the service flow redirection method further includes:
and step S50, determining the pointed flow node according to the uniform resource locator URL in the mapping request.
The initial service request sent by the client includes a URL (uniform resource Locator) pointing to an initial service flow page; correspondingly, the mapping request includes a URL pointing to the redirection flow page, that is, a flow node for processing the current client service after the service flow is redirected.
After the mapping request corresponding to the initial service request is found, the filter determines the process node pointed by the mapping request according to the URL in the mapping request, and sends the mapping request to the determined process node.
In this embodiment, the URL in the service request points to the flow node, and after the mapping request corresponding to the initial service request is obtained, the flow node after the service flow is redirected is determined according to the URL in the mapping request, and the mapping request is sent to the flow node as the service request of the client, so that the flow node provides service support for the client.
Further, referring to fig. 5, a fifth embodiment of the method for redirecting a service flow of the present invention provides a method for redirecting a service flow, where based on the embodiments shown in fig. 1, fig. 2, fig. 3, or fig. 4, the method for redirecting a service flow further includes:
step S60, if the type of the initial service request is not a preset type, or a mapping node corresponding to the initial service request is not found, sending the initial service request to a process node to which the initial service request points.
When the initial service request intercepted by the filter is not a service request of a preset type, or the initial service request is a service request of a preset type, but a mapping node corresponding to the initial service request is searched according to a mapping table, and the mapping node corresponding to the initial service request is not successfully found, the filter determines a process node pointed to by the initial service request according to a URL pointing to an initial service process page in the initial service request.
The filter then sends the initial service request to the flow node to which it is directed.
In this embodiment, if the type of the initial service request is not the preset type, or the mapping node corresponding to the initial service request is not found, the initial service request is sent to the flow node to which the initial service request points, so that when the service flow redirection of the client is not successfully performed, the service flow to which the initial service request points provides service support for the client, and the service of the client is prevented from being not responded.
Referring to fig. 6, a first embodiment of the business process redirection system of the present invention provides a business process redirection system, which includes:
the intercepting module 10 is configured to intercept an initial service request sent by a client.
The invention intercepts the service request sent by each client through the service flow redirection system to redirect the service flow, and sends the service flow of the client to the redirected flow node without modifying application codes, thereby greatly reducing the workload of research personnel.
As an implementation mode, a business process redirection system is deployed in a WEB application server and used for redirecting business requests.
Specifically, a user uses a client to obtain service support of WEB application, and the client generates a corresponding service request according to an instruction input by the user, and sends the service request as an initial service request to a WEB application server.
It should be noted that the initial service request describes an initial service flow of the client requesting to process the current service.
The interception module 10 intercepts an initial service request sent by a client.
The searching module 20 is configured to search, according to a preset mapping table, a mapping request corresponding to the initial service request.
After intercepting an initial service request of a client, the lookup module 20 obtains a mapping request corresponding to the service request according to a preset mapping table.
Specifically, as an implementation manner, the lookup module 20 is configured with a mapping table in advance, and records a mapping request corresponding to a service request of a preset type. It should be noted that the mapping request is a request directed to another service flow after the initial service flow to which the initial service request is directed is redirected.
The lookup module 20 looks up the mapping request corresponding to the current initial service request in the mapping table.
A sending module 30, configured to send the mapping request to a process node to which the mapping request points, as a service request of the client.
After the mapping request corresponding to the initial service request is successfully found, the sending module 30 uses the found service request as a service request of the client, and covers or replaces the initial service flow sent by the client.
Then, the sending module 30 obtains the flow node to which the mapping request is directed.
Then, the sending module 30 sends the mapping request as a service request of the client to the flow node pointed by the mapping request, so that the flow node replaces the initial service flow to provide service support for the client.
Therefore, the redirection of the business process is realized.
In this embodiment, the intercepting module 10 intercepts an initial service request sent by a client to obtain a service request that needs to redirect a service flow; then, the searching module 20 searches a mapping request corresponding to the initial service request according to a preset mapping table, and searches the obtained mapping request, that is, a service request pointing to a redirected service flow; then, the sending module 30 replaces the initial service request with the mapping request, and sends the mapping request as a service request in the client to the flow node pointed by the mapping request, so that the flow node provides service support for the client, and redirection of the service flow is realized. The embodiment intercepts an initial service request sent by a client, obtains a mapping request pointing to another service flow according to a preset mapping table, and provides the support of the current service for the client by the service flow pointed by the mapping request, thereby realizing the redirection of the service flow. Compared with the modification of WEB application core codes, the interception of the service request and the configuration of the mapping table have the advantages of small workload, more convenient and faster operation and more convenient system maintenance, and solve the technical problem of large workload of the redirected WEB application service process. Moreover, the service flows in the WEB application are mutually independent and isolated, so that the coupling between systems is reduced, the popularization of a new service flow and the offline transformation of an old service flow are facilitated, and the normal use of the WEB application is not influenced.
Further, referring to fig. 7, a second embodiment of the service flow redirection system of the present invention provides a service flow redirection system, based on the embodiment shown in fig. 6, the service flow redirection system further includes:
a judging module 40, configured to judge whether the type of the initial service request is a preset type;
the searching module 20 is further configured to search, if the type of the initial service request is a preset type, a mapping request corresponding to the initial service request according to a preset mapping table.
As an implementation mode, a user uses a client to obtain business support of WEB application, and the client generates a corresponding business request according to an instruction input by the user and sends the business request as an initial business request to a WEB application server.
It should be noted that the initial service request describes an initial service flow of the client requesting to process the current service. When configuring the initial service request, the client configures the type of the initial service request according to whether the current service needs to redirect the service flow. For example, if the client determines that the current service flow needs to be redirected and does not go through the currently pointed initial service flow, the type of the initial service request is configured as a specified type; and if the flow of the current service does not need to be redirected and the current directed initial service flow is taken, configuring the type of the initial service request as another specified type.
After the interception module 10 intercepts the initial service request sent by the client, the determining module 40 obtains the type of the initial service request, and determines whether the type of the initial service request is a preset type.
For example, the preset type may be a service request with a preset suffix, and when the suffix of a service request is the preset suffix, the determining module 40 determines that the service request is the service request of the preset type. The preset suffix may be.
The client may configure the suffix of the initial service request as a preset suffix when determining that the current service needs to redirect the service flow. Correspondingly, after the intercepting module 10 intercepts the initial service request, the determining module 40 may determine that the type of the initial service request is a preset type according to the suffix of the initial service request.
If the type of the service request sent by the client is a preset type, the lookup module 20 obtains a mapping request corresponding to the service request according to a preset mapping table.
In this embodiment, after the intercepting module 10 intercepts an initial service request sent by a client, the determining module 40 determines whether the type of the initial service request is a preset type; if the type of the initial service request is a preset type, the determining module 40 may determine that the service flow of the initial service request needs to be redirected, at this time, the searching module 20 searches a mapping request corresponding to the initial service request according to a preset mapping table, and the mapping request obtained by searching is also a service request directed to the redirected service flow; then, the sending module 30 replaces the initial service request with the mapping request, and sends the mapping request as a service request in the client to the flow node pointed by the mapping request, so that the flow node provides service support for the client, and redirection of the service flow is realized. In this embodiment, the initial service request of the service flow to be redirected by the client is obtained by screening according to the type of the service request, so that the service of the client is distributed, not all service requests need to be redirected, and only the service requests of the preset type and with requirements are redirected.
Further, referring to fig. 7, a third embodiment of the service flow redirection system of the present invention provides a service flow redirection system, based on the first embodiment or the second embodiment of the service flow redirection system of the present invention (in this embodiment, the second embodiment of the service flow redirection system of the present invention is taken as an example), the initial service request carries a flow identifier, and the search module 20 is further configured to,
and searching a mapping request corresponding to the initial service request according to the mapping table and the process identification.
And when the client receives an instruction input by the client, determining the service supported by the WEB application according to the current page of the client.
Then, the client determines whether the service flow of the current service needs to be redirected according to the current group, the current logged-in user account information, IP (internet protocol), and other factor information.
Meanwhile, the client configures a flow identifier, which may also be referred to as a SYS-ID (SYSTEM-ID). The client may fill various factor information into the flow identifier for the lookup module 20 to lookup the corresponding mapping request. Certainly, the client may also configure the indication information of the service flow redirection according to the information of each factor, and configure the indication information of the service flow redirection into the flow identifier, so that the search module 20 may directly obtain the indication information of the service flow redirection, for example, whether the service flow needs to be redirected according to the group to which the client belongs, the currently logged-in user, and the IP configuration of the client; if the service flow needs to be redirected, the service flow pointed after redirection can be specified, so that the indication information of service flow redirection is obtained, and the indication information of service flow redirection is configured into the flow identifier.
Then, the client generates an initial service request according to the client instruction and the flow identification. And if the service requested currently needs to be redirected, configuring the type of the initial service request as a preset type. The client sends the configured initial service request to the interception module 10.
The interception module 10 intercepts an initial service request sent by a client, and if the type of the initial service request is a preset type, the search module 20 searches for a mapping request corresponding to the initial service request according to a flow identifier and a mapping table in the initial service request.
For example, the mapping table records mapping requests corresponding to a plurality of current initial service requests, and if the service flow redirection indication information in the flow identifier specifies a redirected service flow, the lookup module 20 directly obtains the mapping request corresponding to the specified service flow, which is the mapping request corresponding to the current initial service request; if the service flow redirection indication information in the flow identifier does not specify the redirected service flow, the search module 20 may randomly select a mapping request for the current initial service request from a plurality of mapping requests corresponding to the current initial service request, as the searched mapping request.
If the flow identifier records information of various factors of the current client, the lookup module 20 may lookup a corresponding mapping request for the current initial service request in the mapping table according to a pre-configured splitting policy.
Thereby, a lookup of the mapping request is achieved.
In this embodiment, the initial service request sent by the client carries a flow identifier, and if the type of the initial service request is a preset type, the lookup module 20 looks up a mapping request corresponding to the initial service request according to the mapping table and the flow identifier. In this embodiment, the redirected service flow may be specified by configuring the flow identifier, so that the client may obtain the service support provided by the specified service flow according to the requirement.
Further, referring to fig. 7, a fourth embodiment of the business process redirection system of the present invention provides a business process redirection system, based on the first, second, or third embodiment of the business process redirection system of the present invention (this embodiment takes the third embodiment of the business process redirection system of the present invention as an example), the sending module 30 is further configured to,
and determining the directed flow nodes according to the Uniform Resource Locators (URLs) in the mapping request.
The initial service request sent by the client includes a URL (uniform resource Locator) pointing to an initial service flow page; correspondingly, the mapping request includes a URL pointing to the redirection flow page, that is, a flow node for processing the current client service after the service flow is redirected.
After finding the mapping request corresponding to the initial service request, the sending module 30 determines the process node to which the mapping request points according to the URL in the mapping request, and sends the mapping request to the determined process node.
In this embodiment, if the URL in the service request points to the flow node, after the mapping request corresponding to the initial service request is obtained, the sending module 30 determines the flow node after redirecting the service flow according to the URL in the mapping request, and sends the mapping request to the flow node as the service request of the client, so that the flow node provides service support for the client.
Further, referring to fig. 7, a fifth embodiment of the business process redirection system of the present invention provides a business process redirection system, based on the first embodiment, the second embodiment, the third embodiment or the fourth embodiment of the business process redirection system of the present invention (in this embodiment, the fourth embodiment of the business process redirection system of the present invention is taken as an example), the sending module 30 is further configured to,
and if the type of the initial service request is not a preset type or a mapping node corresponding to the initial service request is not found, sending the initial service request to a process node pointed by the initial service request.
When the initial service request intercepted by the intercepting module 10 is not a service request of a preset type, or the initial service request is a service request of a preset type, but a mapping node corresponding to the initial service request is found according to a mapping table, and the mapping node corresponding to the initial service request is not successfully found, the finding module 20 determines a flow node pointed to by the initial service request according to a URL pointing to an initial service flow page in the initial service request.
The sending module 30 then sends the initial service request to the flow node to which it is directed.
In this embodiment, if the type of the initial service request is not the preset type, or the mapping node corresponding to the initial service request is not found, the initial service request is sent to the flow node to which the initial service request points, so that when the service flow redirection of the client is not successfully performed, the service flow to which the initial service request points provides service support for the client, and the service of the client is prevented from being not responded.
The above description is only an alternative embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (6)

1. A method for redirecting a business process is characterized by comprising the following steps:
intercepting an initial service request sent by a client, wherein the initial service request carries a process identifier;
judging whether the type of the initial service request is a preset type or not;
if the type of the initial service request is a preset type, detecting whether the flow identification contains a specified redirected service flow;
if yes, searching a mapping request corresponding to the initial service request according to a mapping table between the service request and the mapping request which is configured in advance and the process identification;
if not, acquiring a plurality of mapping requests corresponding to the initial service request according to a mapping table between a service request and a mapping request which are configured in advance, and selecting one mapping request from the plurality of mapping requests as a searched mapping request;
and sending the searched mapping request as a service request of the client to a process node pointed by the mapping request.
2. The method for redirecting traffic flow according to claim 1, wherein the method for redirecting traffic flow further comprises:
and determining the directed flow nodes according to the Uniform Resource Locators (URLs) in the mapping request.
3. The method for redirecting traffic flow according to claim 2, wherein said method for redirecting traffic flow further comprises:
and if the type of the initial service request is not a preset type or a mapping node corresponding to the initial service request is not found, sending the initial service request to a process node pointed by the initial service request.
4. A business process redirection system, the business process redirection system comprising:
the system comprises an interception module, a processing module and a processing module, wherein the interception module is used for intercepting an initial service request sent by a client, and the initial service request carries a process identifier;
the judging module is used for judging whether the type of the initial service request is a preset type or not;
the searching module is used for detecting whether the flow identification contains the appointed redirected service flow if the type of the initial service request is a preset type;
if yes, searching a mapping request corresponding to the initial service request according to a mapping table between the service request and the mapping request which is configured in advance and the process identification;
if not, acquiring a plurality of mapping requests corresponding to the initial service request according to a mapping table between a service request and a mapping request which are configured in advance, and randomly selecting one mapping request from the plurality of mapping requests as a searched mapping request;
and the sending module is used for sending the searched mapping request to the process node pointed by the mapping request as the service request of the client.
5. The traffic redirection system of claim 4, wherein the sending module is further configured to,
and determining the directed flow nodes according to the Uniform Resource Locators (URLs) in the mapping request.
6. The traffic redirection system of claim 5, wherein the sending module is further configured to,
and if the type of the initial service request is not a preset type or a mapping node corresponding to the initial service request is not found, sending the initial service request to a process node pointed by the initial service request.
CN201610859663.8A 2016-09-28 2016-09-28 Method and system for redirecting business process Active CN107656946B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610859663.8A CN107656946B (en) 2016-09-28 2016-09-28 Method and system for redirecting business process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610859663.8A CN107656946B (en) 2016-09-28 2016-09-28 Method and system for redirecting business process

Publications (2)

Publication Number Publication Date
CN107656946A CN107656946A (en) 2018-02-02
CN107656946B true CN107656946B (en) 2020-06-05

Family

ID=61127563

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610859663.8A Active CN107656946B (en) 2016-09-28 2016-09-28 Method and system for redirecting business process

Country Status (1)

Country Link
CN (1) CN107656946B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110020765B (en) * 2018-11-05 2023-06-30 创新先进技术有限公司 Service flow switching method and device
CN111831999B (en) * 2020-07-13 2022-08-19 中国银行股份有限公司 Method and system for aggregating multi-station operation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1540918A (en) * 2003-10-30 2004-10-27 中兴通讯股份有限公司 General redirection method in use for wireless data service
CN102014173A (en) * 2010-11-01 2011-04-13 蓝汛网络科技(北京)有限公司 Domain name redirecting control method, module and system
CN103384993A (en) * 2012-12-14 2013-11-06 华为技术有限公司 Redirection method of visiting web pages by user equipment, gateway and server
CN103634421A (en) * 2013-11-26 2014-03-12 中国联合网络通信集团有限公司 Address distribution method and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1540918A (en) * 2003-10-30 2004-10-27 中兴通讯股份有限公司 General redirection method in use for wireless data service
CN102014173A (en) * 2010-11-01 2011-04-13 蓝汛网络科技(北京)有限公司 Domain name redirecting control method, module and system
CN103384993A (en) * 2012-12-14 2013-11-06 华为技术有限公司 Redirection method of visiting web pages by user equipment, gateway and server
CN103634421A (en) * 2013-11-26 2014-03-12 中国联合网络通信集团有限公司 Address distribution method and server

Also Published As

Publication number Publication date
CN107656946A (en) 2018-02-02

Similar Documents

Publication Publication Date Title
CN108353095B (en) Domain name resolution method, client, edge node and domain name resolution system
US8321503B2 (en) Context-specific network resource addressing model for distributed services
KR101962156B1 (en) Authorization processing method and apparatus
JP5587732B2 (en) Computer-implemented method, computer program, and system for managing access to a domain name service (DNS) database
EP3594808B1 (en) Virtual machine migration method, switch, and virtual machine system
JP5805934B2 (en) Distributed control method and apparatus using URL
EP2330847A1 (en) Method, system and apparatus for service negotiation
CN109756584B (en) Domain name resolution method, domain name resolution device and computer readable storage medium
EP2036257B1 (en) Locating services using compiled scopes
CN103973461A (en) Notification message pushing method and message server
KR20060097568A (en) Method and system for discovery via tribal knowledge
KR20150038321A (en) Method for service content distribution under heterogeneous network and service management platform
CN114567880B (en) Communication method, system and computer readable storage medium
JP4699530B2 (en) Methods, systems, and applications for service addressing
CN105956143A (en) Database access method and database proxy node
CN113014681A (en) Network card binding method and device of multi-network card server, electronic equipment and storage medium
CN107656946B (en) Method and system for redirecting business process
CN102664756B (en) Device access method, device and system
CN110336752B (en) Method and system for improving local broadcast push efficiency
CN108494870B (en) CDN-based dynamic data loading method and device
US8171066B2 (en) Techniques for accessing remote files
CN113067844B (en) Service discovery method and device and HNRF
CN109167758A (en) A kind of message processing method and device
CN108076165B (en) Method, equipment and system for domain name resolution information management
CN104735174A (en) HTTP transparent proxy implementing method and device

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
GR01 Patent grant
GR01 Patent grant