CN117081976B - Method and device for configuring gateway route - Google Patents

Method and device for configuring gateway route Download PDF

Info

Publication number
CN117081976B
CN117081976B CN202311339947.0A CN202311339947A CN117081976B CN 117081976 B CN117081976 B CN 117081976B CN 202311339947 A CN202311339947 A CN 202311339947A CN 117081976 B CN117081976 B CN 117081976B
Authority
CN
China
Prior art keywords
gateway
information
configuration
routing
target
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
CN202311339947.0A
Other languages
Chinese (zh)
Other versions
CN117081976A (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.)
Ccb Engineering Consulting Co ltd
Original Assignee
Ccb Engineering Consulting 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 Ccb Engineering Consulting Co ltd filed Critical Ccb Engineering Consulting Co ltd
Priority to CN202311339947.0A priority Critical patent/CN117081976B/en
Publication of CN117081976A publication Critical patent/CN117081976A/en
Application granted granted Critical
Publication of CN117081976B publication Critical patent/CN117081976B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a configuration method and device of gateway routing, and relates to the technical field of gateways. The method comprises the following steps: acquiring gateway configuration information and business item flow information, configuring gateway route configuration item information according to the gateway configuration information and the business item flow information, starting a target flow instance according to the gateway configuration information and the gateway route configuration item information, and recording gateway route expression version association information when the target flow instance operates according to the gateway configuration information and the gateway route configuration item information; and when the target flow instance runs to the ith gateway, acquiring a target configuration item version of each gateway exit path of the ith gateway based on the gateway routing expression version association information, and executing the jump of the gateway routing. The method and the device can flexibly and conveniently realize the configuration of the gateway routing expression, accurately and flexibly control the gateway routing jump in the process of the flow operation, and improve the service iteration efficiency and accuracy.

Description

Method and device for configuring gateway route
Technical Field
The present application relates to the field of gateway technologies, and in particular, to a method and an apparatus for configuring a gateway route.
Background
In a relatively complex project of a business process, such as a cost consultation project, the complex process often comprises complex scenes such as parallel, countersign and a plurality of parallel sub-processes, wherein the gateway condition of the user approval node route jump is generally configured in a gateway route expression of a workflow engine, and the jump logic is realized through a business code, and when the gateway route condition of the business process changes, the business code logic needs to be changed and the workflow engine expression is modified. However, the change of the gateway routing condition depends on the edition and upgrade of the flow chart, so that the on-road flow data needs to be repaired, and when a complex business flow is encountered, the efficiency and accuracy of the repairing flow data are not high.
Therefore, how to flexibly and conveniently realize the configuration of the gateway routing expression, accurately and flexibly control the gateway routing jump in the process of the flow operation, and improve the service iteration efficiency and accuracy rate becomes one of important research directions.
Disclosure of Invention
The present application aims to solve, at least to some extent, one of the technical problems in the related art. To this end, an object of the present application is to propose a method for configuring gateway routing.
A second object of the present application is to provide a configuration apparatus for gateway routing.
A third object of the present application is to propose an electronic device.
A fourth object of the present application is to propose a non-transitory computer readable storage medium.
A fifth object of the present application is to propose a computer programme product.
To achieve the above object, an embodiment of a first aspect of the present application provides a method for configuring a gateway route, including:
acquiring gateway configuration information and business item flow information, and configuring gateway routing configuration item information according to the gateway configuration information and the business item flow information, wherein the gateway configuration information is used for indicating versions of flow instances to which gateway routing expressions belong, and the gateway routing configuration item information is used for indicating gateway routing expressions referenced by various gateways and configuration item versions of the gateway routing expressions;
starting a target flow instance according to the gateway configuration information and the gateway routing configuration item information, and recording the gateway routing expression version association information when the target flow instance runs according to the gateway configuration information and the gateway routing configuration item information;
and when the target flow instance runs to the ith gateway, acquiring a target configuration item version of each gateway exit path of the ith gateway based on the gateway routing expression version association information, and executing the jump of the gateway routing, wherein i is a positive integer.
According to the method and the device, the workflow gateway routing expression can be extracted from the flow chart, the gateway routing condition parameters are configured, the gateway routing expression configuration is flexibly and conveniently realized, the gateway routing jump in the flow operation is accurately and flexibly controlled, and the service iteration efficiency and the service iteration accuracy are improved.
To achieve the above object, an embodiment of a second aspect of the present application provides a gateway routing configuration apparatus, including:
the first acquisition module is used for acquiring gateway configuration information and business project flow information, and configuring gateway routing configuration item information according to the gateway configuration information and the business project flow information, wherein the gateway configuration information is used for indicating versions of flow instances to which gateway routing expressions belong, and the gateway routing configuration item information is used for indicating the gateway routing expressions and configuration item versions of the gateway routing expressions referenced by each gateway;
the second acquisition module is used for starting the target flow instance according to the gateway configuration information and the gateway routing configuration item information, and recording the gateway routing expression version associated information when the target flow instance runs according to the gateway configuration information and the gateway routing configuration item information;
and the processing module is used for acquiring the target configuration item version of each gateway exit path of the ith gateway based on the gateway routing expression version association information when the target flow instance runs to the ith gateway, and executing the jump of the gateway routing, wherein i is a positive integer.
To achieve the above object, an embodiment of a third aspect of the present application provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the gateway routing configuration method provided in the embodiments of the first aspect of the present application.
To achieve the above object, an embodiment of a fourth aspect of the present application proposes a computer-readable storage medium having stored thereon computer instructions for causing a computer to execute a configuration method for gateway routing according to the embodiment of the first aspect of the present application.
To achieve the above object, an embodiment of a fifth aspect of the present application proposes a computer program product, including a computer program, which when executed by a processor implements a method for configuring a gateway route provided in an embodiment of the first aspect of the present application.
Drawings
FIG. 1 is a flow chart of a method of configuration of gateway routing according to one embodiment of the present application;
FIG. 2 is a flow chart of a method of configuration of gateway routing according to one embodiment of the present application;
FIG. 3 is a flow chart of a method of configuration of gateway routing according to one embodiment of the present application;
FIG. 4 is a flow chart of a method of configuration of gateway routing according to one embodiment of the present application;
FIG. 5 is a block diagram of a configuration device of gateway routing according to one embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and intended for the purpose of explaining the present application and are not to be construed as limiting the present application.
The following describes a method and a device for configuring gateway routing according to an embodiment of the present application with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for configuring gateway routing according to one embodiment of the present application, as shown in fig. 1, the method includes the steps of:
s101, acquiring gateway configuration information and business project flow information, and configuring gateway route configuration item information according to the gateway configuration information and the business project flow information.
In this embodiment of the present application, the service item is an item having a service flow in a service scenario, for example, the service item may be a cost consultation item, and in other scenarios, the service item may also be another item.
In implementation, the business item flow information is generally expressed in the form of a flow chart, the flow chart comprises user approval nodes and gateway routing conditions for approval node routing skip, the gateway routing conditions for approval node routing skip are used for judging the next node, wherein the user approval nodes correspond to each gateway, the gateway routing conditions correspond to gateway routing expressions, when business requirements are adjusted, the version of the flow chart is updated, and the gateway routing conditions and the gateway routing expressions are updated accordingly, that is, the gateway routing conditions are changed and depend on the version updating of the flow chart.
When the service requirement is adjusted or the gateway output is changed, the server monitors the gateway configuration adjustment information, so that the gateway routing expression needs to be adjusted, namely the version of the gateway routing expression is changed. In the embodiment of the application, a concept of 'gateway routing expression version' is introduced, and a flow parameterization configuration module is independently established for maintenance, so that decoupling of business flow parameters and a workflow engine is achieved. The execution body of the embodiment of the application may be an electronic device, such as a computer, having a gateway configuration function and a storage function, and running a computing function.
In some implementations, gateway configuration information is defined, and the gateway configuration information is described by taking a table format as an example, where the gateway configuration information table includes attribute parameters of a gateway and service parameters of each flow of a current service item, for example, the gateway configuration information may include a flow key value, a flow definition identifier, a flow model version, a gateway identifier, a gateway type, a gateway name, a gateway exit path identifier, and a gateway exit path name, which are used to uniquely describe a flow to which a gateway routing expression belongs. The gateway type may be a parallel gateway or an exclusive gateway.
In some implementations, gateway routing configuration item information is defined, and the gateway routing configuration item information is described by taking a table format as an example, where the gateway routing configuration item information table includes a configuration information table identifier, a mode, a gateway routing expression, a class full-limit name, a method name, and a configuration item version, abstracts a gateway routing expression configured by a gateway degree into a configuration item, and defines a configuration item version, which is used to describe which version of the gateway routing expression is referenced by the flow gateway.
That is, in the embodiment of the present application, the gateway configuration information is used to indicate the version of the flow instance to which the gateway routing expression belongs, and the gateway routing configuration item information is used to indicate the gateway routing expressions and the configuration item versions of the gateway routing expressions referenced by the respective gateways.
In this embodiment of the present application, a gateway routing configuration item information table (table 2) may be configured based on the acquired gateway configuration information table (table 1) and service item flow information, for example, table 1 and table 2 may be shown below, where a gateway routing expression of table 2 may be configured according to a gateway routing condition of the service item flow information, an initial configuration item version number is 1, and the gateway configuration information table may correspond to a plurality of gateway routing configuration item information tables, that is, there is a one-to-many correspondence between the gateway configuration information table and the gateway routing configuration item information table.
TABLE 1
TABLE 2
S102, starting a target flow instance according to the gateway configuration information and the gateway routing configuration item information, and recording the gateway routing expression version association information when the target flow instance runs according to the gateway configuration information and the gateway routing configuration item information.
In this embodiment of the present application, the flow key value corresponds to an identifier of a flow instance, that is, a configuration environment of the flow instance is constructed according to gateway configuration information and gateway routing configuration item information, and a target flow instance corresponding to the flow key value in the gateway configuration information is started under the environment, after the target flow instance is started, a configuration item version of a gateway routing expression referenced by the outbound degrees of all gateways of the target flow instance is recorded according to the gateway configuration information and the gateway routing configuration item information, and gateway routing expression version association information is obtained, where the gateway routing expression version association information includes a gateway identifier, a gateway exit path identifier, and a first association relationship between configuration item versions.
S103, when the flow instance runs to the ith gateway, the target configuration item version of each gateway exit path of the ith gateway is obtained based on the gateway routing expression version association information, and the jump of the gateway routing is executed.
In the embodiment of the application, when the process instance runs to the ith gateway, the gateway identifier of each gateway and the gateway exit path identifier of each gateway exit path are obtained, the target configuration item version of each gateway exit path of the ith gateway is obtained from the gateway routing expression version association information according to the gateway identifier and the gateway exit path identifier, and the jump of the gateway routing is executed according to the gateway routing expression and the target configuration item version.
Wherein i is a positive integer.
In the embodiment of the application, gateway configuration information and business item flow information are obtained, gateway route configuration item information is configured according to the gateway configuration information and the business item flow information, a target flow instance is started according to the gateway configuration information and the gateway route configuration item information, gateway route expression version association information when the target flow instance runs is recorded according to the gateway configuration information and the gateway route configuration item information, when the target flow instance runs to an ith gateway, a target configuration item version of each gateway outlet path of the ith gateway is obtained based on the gateway route expression version association information, and the jump of gateway route is executed. According to the method and the device, the workflow gateway routing expression can be extracted from the flow chart, the gateway routing condition parameters are configured, the gateway routing expression configuration is flexibly and conveniently realized, the gateway routing jump in the flow operation is accurately and flexibly controlled, and the service iteration efficiency and the service iteration accuracy are improved.
Fig. 2 is a flowchart of a method for configuring gateway routing according to one embodiment of the present application, as shown in fig. 2, the method includes the steps of:
s201, gateway configuration information and business project flow information are obtained, and gateway route configuration item information is configured according to the gateway configuration information and the business project flow information.
The description of step S201 may be referred to the content of the above embodiment, and will not be repeated here.
It should be noted that, the gateway configuration information includes one or more of a flow key value, a flow definition identifier, a flow model version, a gateway identifier, a gateway type, a gateway name, a gateway exit path identifier, and a gateway exit path name; the gateway routing configuration item information includes one or more of a schema, a gateway routing expression, a class full-limit name, a method name, a configuration item version.
S202, obtaining a mapping relation between the flow key value and the flow instance.
In the embodiment of the present application, there is a mapping relationship between the flow key value and the flow instance, that is, different flow key values correspond to different flow instances. For example, the flow key value is zj_bid_process, corresponding to the flow instance P; the flow key value is HW_CID_PROCESS, corresponding to flow instance P'.
Optionally, the mapping relationship is stored in a flow engine of the server, and the flow engine may determine, according to the flow key value, a target flow instance that needs to be started.
S203, obtaining a target flow instance corresponding to the flow key value in the gateway configuration information according to the mapping relation.
In this embodiment of the present application, if the flow key value in the gateway configuration information is zj_bid_process, it is determined that the corresponding target flow instance is the flow instance P.
S204, starting the target flow instance according to the gateway configuration information and the gateway routing configuration item information.
And constructing a configuration environment based on the configuration records of the gateway configuration information table and the gateway routing configuration item information table, and starting a flow instance P under the configuration environment.
S205, a third association relationship between the gateway identification and the gateway exit path identification in the gateway configuration information is obtained.
In the embodiment of the application, each gateway corresponds to one or more gateway exit paths, that is, each gateway identifier may be associated with one or more gateway exit path identifiers.
S206, obtaining the first association relationship among the gateway identification, the gateway exit path identification and the configuration item version according to the third association relationship between the gateway identification and the gateway exit path identification, the second association relationship between the gateway configuration information and the gateway route configuration item information.
For example, the gateway configuration information table may associate a plurality of gateway routing configuration item information tables. In the embodiment of the application, the gateway configuration information and the gateway routing configuration item information have a second association relationship, the gateway routing configuration item information table has a configuration item version, and the configuration item version in the gateway routing configuration item information table can be determined according to the gateway identifier of the gateway configuration information and the gateway exit path identifier. Therefore, the first association relationship among the gateway identifier, the gateway exit path identifier and the configuration item version can be obtained according to the third association relationship between the gateway identifier and the gateway exit path identifier, the second association relationship between the gateway configuration information and the gateway route configuration item information.
S207, when the process instance runs to the ith gateway, the target configuration item version of each gateway exit path of the ith gateway is obtained based on the gateway routing expression version association information, and the jump of the gateway routing is executed.
The description of step S207 may be referred to the content of the above embodiment, and will not be repeated here.
According to the method and the device, the workflow gateway routing expression can be extracted from the flow chart, the gateway routing condition parameters are configured, the gateway routing expression configuration is flexibly and conveniently realized, the gateway routing jump in the flow operation is accurately and flexibly controlled, and the service iteration efficiency and the service iteration accuracy are improved.
Fig. 3 is a flowchart of a method for configuring gateway routing according to one embodiment of the present application, as shown in fig. 3, the method includes the steps of:
s301, acquiring gateway configuration information and business project flow information, and configuring gateway route configuration item information according to the gateway configuration information and the business project flow information.
S302, a target flow instance is started according to the gateway configuration information and the gateway routing configuration item information, and the gateway routing expression version association information when the target flow instance runs is recorded according to the gateway configuration information and the gateway routing configuration item information.
The descriptions of step S301 to step S302 may be referred to the content in the above embodiments, and will not be repeated here.
It should be noted that, the gateway routing expression version association information includes a first association relationship among a gateway identifier, a gateway exit path identifier, and a configuration item version.
The gateway configuration information includes a flow key value, a flow definition identifier, a flow model version, a gateway identifier, a gateway type, a gateway name, a gateway exit path identifier, and a gateway exit path name; the gateway routing configuration item information comprises modes, gateway routing expressions, class full-limit names, method names and configuration item versions.
S303, when the process instance runs to the ith gateway, the target gateway identification of the ith gateway and the target gateway exit path identification of the jth gateway exit path are acquired aiming at the jth gateway exit path of the ith gateway.
Wherein j is a positive integer.
S304, the target gateway identification is used as a first index, the target gateway exit path identification is used as a second index, the gateway routing expression version association information is searched, and the target configuration item version of the j gateway exit path of the i gateway is obtained.
The method comprises the steps of firstly taking a target gateway identifier as a first index, retrieving the gateway routing expression version association information to obtain a first association relation between each gateway exit path of an ith gateway and a configuration item version, and further taking the gateway exit path identifier as a second index to continue retrieval to obtain a target configuration item version corresponding to the target gateway exit path identifier.
Let the current flow instance P contain m gateways, denoted as: p= { g 1 ,g 2 ,…,g n ...g m When the flow goes to gateway g 1 In this case, gateway g is acquired 1 The first association of each gateway exit path with the configuration item version can be expressed as g 1 ={o 1 :v 1 ,o 2 :v 2 ,…,o n :v n }, where o 1 :v 1 Representing gateway g 1 Gateway egress path o of (2) 1 The corresponding configuration item version is v 1 ,o 2 :v 2 Representing gateway g 1 Gateway egress path o of (2) 2 The corresponding configuration item version is v 2 And so on, o n :v n Representing gateway g 1 Gateway egress path o of (2) n The corresponding configuration item version is v n . The target gateway exit path identification of the jth gateway exit path of the ith gateway is o 1 For example (i.e. degree o 1 ) Obtaining a target configuration item version v corresponding to a target gateway exit path identifier 1
S305, continuing to acquire the target configuration item version of the next gateway exit path of the ith gateway until the target configuration item version of each gateway exit path of the ith gateway is obtained.
When the flow instance runs to gateway g 1 And when the gateway routing expression is found according to the configuration item version of the gateway routing expression version association information record, the routing jump is carried out.
According to the method and the device, the workflow gateway routing expression can be extracted from the flow chart, the gateway routing condition parameters are configured, the gateway routing expression configuration is flexibly and conveniently realized, the gateway routing jump in the flow operation is accurately and flexibly controlled, and the service iteration efficiency and the service iteration accuracy are improved.
Fig. 4 is a flowchart of a method for configuring gateway routing according to one embodiment of the present application, as shown in fig. 4, the method includes the steps of:
s401, acquiring gateway configuration information and business project flow information, and configuring gateway route configuration item information according to the gateway configuration information and the business project flow information.
S402, a target flow instance is started according to the gateway configuration information and the gateway routing configuration item information, and the gateway routing expression version association information when the target flow instance runs is recorded according to the gateway configuration information and the gateway routing configuration item information.
S403, when the flow instance runs to the ith gateway, the target configuration item version of each gateway exit path of the ith gateway is obtained based on the gateway routing expression version association information, and the jump of the gateway routing is executed.
The description of step S401 to step S403 may be referred to the content in the above embodiment, and will not be repeated here.
S404, monitoring gateway configuration adjustment information.
In the embodiment of the present application, after the service requirement is adjusted, the service code logic needs to be changed, and the workflow engine expression is modified, that is, the gateway routing expression is modified. In the embodiment of the application, the gateway configuration adjustment information after the adjustment of the service requirement is monitored so as to facilitate the subsequent adjustment of the gateway routing expression, namely the version change of the gateway routing expression.
S405, in response to monitoring the gateway configuration adjustment information, updating the gateway configuration information, the gateway routing configuration item information and the gateway routing expression version association information according to the gateway configuration adjustment information.
In some implementations, the gateway configuration information gateway routing configuration item information is directly modified according to the gateway configuration adjustment information, and then the departure thread updates the gateway routing expression version association information, so that iterative update of the gateway routing expression is realized.
For example, assume gateway g 1 Comprises two output values, denoted o 1 、o 2 When the flow is running to gateway g 1 At this time, the gateway g is adjusted according to the service requirement 1 Degree o of (2) 1 The bound gateway routing expression makes an adjustment, and the configuration item version is defined by version v 1 Change to v 2 The method comprises the following steps: o (o) 1 :v 1 →o 1 :v 2
In some embodiments, the update time may be further confirmed according to the validation parameter, and when the system time reaches the update time, the gateway configuration information, the gateway routing configuration item information and the gateway routing expression version association information are updated according to the gateway configuration adjustment information.
Optionally, in response to the validation parameter indicating that the running process instance is validated, determining the update time as the current time, that is, if the running instance is validated, the corresponding configuration item version of the process instance P recorded in the gateway routing expression version association information is dynamically updated to the latest version, that is, at the current time, the configuration item version is updated by v 1 Change to v 2
Optionally, in response to the validation parameter indicating that the running flow instance is not validated, determining that the update time is the start time of the next flow instance, that is, if the running flow instance is selected to be not validated, updating the corresponding configuration item version of the flow instance P recorded in the gateway routing expression version association information to the latest version only when the new flow instance is started, that is, at the time of starting the new flow instance, the configuration item version is represented by v 1 Change to v 2
According to the method and the device, the workflow gateway routing expression can be extracted from the flow chart, the gateway routing condition parameters are configured, the gateway routing expression configuration is flexibly and conveniently realized, the gateway routing jump in the flow operation is accurately and flexibly controlled, and the service iteration efficiency and the service iteration accuracy are improved. And (3) establishing gateway routing expression associated information when the flow runs, introducing the concept of configuration item version, and controlling the flow Cheng Wangguan jump.
Fig. 5 is a block diagram of a configuration apparatus of a gateway route according to an embodiment of the present disclosure, and as shown in fig. 6, a configuration apparatus 500 of a gateway route includes:
the first obtaining module 510 is configured to obtain gateway configuration information and service item flow information, and configure gateway routing configuration item information according to the gateway configuration information and the service item flow information, where the gateway configuration information is used to indicate a version of a flow instance to which a gateway routing expression depends, and the gateway routing configuration item information is used to indicate the gateway routing expressions and configuration item versions of the gateway routing expressions referenced by each gateway;
the second obtaining module 520 is configured to start the target flow instance according to the gateway configuration information and the gateway routing configuration item information, and record the gateway routing expression version association information when the target flow instance runs according to the gateway configuration information and the gateway routing configuration item information;
and a processing module 530, configured to obtain, when the target flow instance runs to the ith gateway, a target configuration item version of each gateway exit path of the ith gateway based on the gateway routing expression version association information, and perform a jump of the gateway routing, where i is a positive integer.
In some embodiments, the gateway routing expression version association information includes a first association relationship between a gateway identifier, a gateway exit path identifier, and a configuration item version, and the processing module 530 is further configured to:
aiming at a jth gateway exit path of an ith gateway, acquiring a target gateway identifier of the ith gateway and a target gateway exit path identifier of the jth gateway exit path, wherein j is a positive integer;
the method comprises the steps of taking a target gateway identifier as a first index, taking a target gateway exit path identifier as a second index, and retrieving gateway routing expression version association information to obtain a target configuration item version of a jth gateway exit path of an ith gateway;
and continuing to acquire the target configuration item version of the next gateway outlet path of the ith gateway until the target configuration item version of each gateway outlet path of the ith gateway is acquired.
In some embodiments, the gateway configuration information includes a flow key value, and the second obtaining module 520 is further configured to:
obtaining a mapping relation between a flow key value and a flow instance;
and acquiring a target flow instance corresponding to the flow key value in the gateway configuration information according to the mapping relation.
In some implementations, the processing module 530 is further to:
monitoring gateway configuration adjustment information;
and in response to monitoring the gateway configuration adjustment information, updating the gateway configuration information, the gateway routing configuration item information and the gateway routing expression version association information according to the gateway configuration adjustment information.
In some embodiments, the gateway routing expression version association information further includes validation parameters, and the processing module 530 is further configured to:
confirming the update time according to the effective parameters;
and when the system time reaches the update time, updating the gateway configuration information, the gateway routing configuration item information and the gateway routing expression version association information according to the gateway configuration adjustment information.
In some implementations, the processing module 530 is further to:
responding to the effective parameter indication to take effect on the target flow instance, and determining the update time as the current time; or (b)
And in response to the validation parameter indicating that the target flow instance is not validated, determining that the update time is the starting time of the next flow instance.
In some implementations, the gateway configuration information further includes one or more of a flow definition identification, a flow model version, a gateway identification, a gateway type, a gateway name, a gateway egress path identification, a gateway egress path name; the gateway routing configuration item information includes one or more of a schema, a gateway routing expression, a class full-limit name, a method name, a configuration item version.
In some embodiments, the gateway configuration information and the gateway routing configuration item information have a second association relationship, and the second obtaining module 520 is further configured to:
acquiring a third association relationship between a gateway identifier and a gateway exit path identifier in gateway configuration information;
and acquiring a first association relationship among the gateway identifier, the gateway exit path identifier and the configuration item version according to a third association relationship among the gateway identifier and the gateway exit path identifier, the second association relationship among the gateway configuration information and the gateway route configuration item information.
According to the method and the device, the workflow gateway routing expression can be extracted from the flow chart, the gateway routing condition parameters are configured, the gateway routing expression configuration is flexibly and conveniently realized, the gateway routing jump in the flow operation is accurately and flexibly controlled, and the service iteration efficiency and the service iteration accuracy are improved.
Based on the same application conception, the embodiment of the application also provides electronic equipment.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 6, the electronic device 600 includes a memory 601, a processor 602, and a computer program product stored in the memory 601 and executable on the processor 602, and when the processor executes the computer program, the foregoing method for configuring gateway routing is implemented.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Based on the same application concept, the embodiment of the present application further provides a computer readable storage medium having stored thereon computer instructions, where the computer instructions are configured to cause a computer to perform the method for configuring gateway routing in the above embodiment.
Based on the same application concept, the embodiments of the present application also provide a computer program product, including a computer program, which when executed by a processor, is configured to implement the method for configuring gateway routing in the above embodiments.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the invention. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (9)

1. A method for configuring a gateway route, comprising:
acquiring gateway configuration information and business item flow information, and configuring gateway routing configuration item information according to the gateway configuration information and the business item flow information, wherein the gateway configuration information is used for indicating versions of flow instances to which gateway routing expressions belong, and the gateway routing configuration item information is used for indicating gateway routing expressions referenced by various gateways and configuration item versions of the gateway routing expressions;
starting a target flow instance according to the gateway configuration information and the gateway routing configuration item information, and recording gateway routing expression version association information when the target flow instance runs according to the gateway configuration information and the gateway routing configuration item information;
when the target flow instance runs to an ith gateway, acquiring a target configuration item version of each gateway exit path of the ith gateway based on the gateway routing expression version association information, and executing gateway routing skip, wherein i is a positive integer;
the gateway routing expression version association information includes a first association relationship among the gateway identifier, the gateway exit path identifier, and the configuration item version, and the obtaining, based on the gateway routing expression version association information, a target configuration item version of each gateway exit path of the ith gateway includes:
for a jth gateway exit path of the ith gateway, acquiring a target gateway identifier of the ith gateway and a target gateway exit path identifier of the jth gateway exit path, wherein j is a positive integer;
the target gateway identification is used as a first index, the target gateway exit path identification is used as a second index, and the gateway routing expression version association information is retrieved to obtain a target configuration item version of the j gateway exit path of the i gateway;
and continuing to acquire the target configuration item version of the next gateway outlet path of the ith gateway until the target configuration item version of each gateway outlet path of the ith gateway is acquired.
2. The method of claim 1, wherein the gateway configuration information includes a flow key value, and wherein before the target flow instance is started according to the gateway configuration information and the gateway routing configuration item information, further comprising:
obtaining a mapping relation between a flow key value and a flow instance;
and acquiring a target flow instance corresponding to the flow key value in the gateway configuration information according to the mapping relation.
3. The method according to claim 1 or 2, further comprising:
monitoring gateway configuration adjustment information;
and in response to monitoring the gateway configuration adjustment information, updating the gateway configuration information, the gateway routing configuration item information and the gateway routing expression version association information according to the gateway configuration adjustment information.
4. The method of claim 3, wherein the gateway routing expression version association information further comprises an validation parameter, wherein updating the gateway configuration information, the gateway routing configuration item information, and the gateway routing expression version association information according to the gateway configuration adjustment information further comprises:
confirming the update time according to the effective parameters;
and when the system time reaches the updating time, updating the gateway configuration information, the gateway routing configuration item information and the gateway routing expression version association information according to the gateway configuration adjustment information.
5. The method of claim 4, wherein said validating an update time based on said validation parameter comprises:
responding to the validation parameter to instruct the target flow instance to be validated, and determining the update time as the current time; or (b)
And in response to the validation parameter indicating that the target flow instance is not validated, determining that the update time is the starting time of the next flow instance.
6. The method of claim 3, wherein the gateway configuration information further comprises one or more of a flow definition identification, a flow model version, a gateway identification, a gateway type, a gateway name, a gateway egress path identification, a gateway egress path name; the gateway routing configuration item information comprises one or more of a mode, a gateway routing expression, a class full-limit name, a method name and a configuration item version.
7. The method of claim 6, wherein the gateway configuration information and the gateway routing configuration item information have a second association relationship therebetween, and wherein the recording the gateway routing expression version association information when the target flow instance is running according to the gateway configuration information and the gateway routing configuration item information includes:
acquiring a third association relationship between the gateway identifier and the gateway exit path identifier in the gateway configuration information;
and acquiring a first association relationship among the gateway identifier, the gateway exit path identifier and the configuration item version according to a third association relationship among the gateway identifier and the gateway exit path identifier and a second association relationship among the gateway configuration information and the gateway routing configuration item information.
8. A gateway route configuration apparatus, comprising:
the first acquisition module is used for acquiring gateway configuration information and business item flow information, and configuring gateway routing configuration item information according to the gateway configuration information and the business item flow information, wherein the gateway configuration information is used for indicating versions of flow instances to which gateway routing expressions belong, and the gateway routing configuration item information is used for indicating gateway routing expressions referenced by various gateways and configuration item versions of the gateway routing expressions;
the second acquisition module is used for starting a target flow instance according to the gateway configuration information and the gateway routing configuration item information, and recording gateway routing expression version associated information when the target flow instance runs according to the gateway configuration information and the gateway routing configuration item information;
the processing module is used for acquiring a target configuration item version of each gateway outlet path of the ith gateway based on the gateway routing expression version association information when the target flow instance runs to the ith gateway, and executing gateway routing skip, wherein i is a positive integer;
the gateway routing expression version association information comprises a gateway identifier, a gateway exit path identifier and a first association relation among the configuration item versions, and the processing module is further used for:
for a jth gateway exit path of the ith gateway, acquiring a target gateway identifier of the ith gateway and a target gateway exit path identifier of the jth gateway exit path, wherein j is a positive integer;
the target gateway identification is used as a first index, the target gateway exit path identification is used as a second index, and the gateway routing expression version association information is retrieved to obtain a target configuration item version of the j gateway exit path of the i gateway;
and continuing to acquire the target configuration item version of the next gateway outlet path of the ith gateway until the target configuration item version of each gateway outlet path of the ith gateway is acquired.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
CN202311339947.0A 2023-10-17 2023-10-17 Method and device for configuring gateway route Active CN117081976B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311339947.0A CN117081976B (en) 2023-10-17 2023-10-17 Method and device for configuring gateway route

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311339947.0A CN117081976B (en) 2023-10-17 2023-10-17 Method and device for configuring gateway route

Publications (2)

Publication Number Publication Date
CN117081976A CN117081976A (en) 2023-11-17
CN117081976B true CN117081976B (en) 2024-01-16

Family

ID=88718023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311339947.0A Active CN117081976B (en) 2023-10-17 2023-10-17 Method and device for configuring gateway route

Country Status (1)

Country Link
CN (1) CN117081976B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109617807A (en) * 2018-12-28 2019-04-12 深圳云天励飞技术有限公司 Route information update method, device, gateway and storage medium
CN112118184A (en) * 2020-08-06 2020-12-22 北京健康之家科技有限公司 Gateway automatic routing method and device, storage medium and computer equipment
CN112540948A (en) * 2019-09-23 2021-03-23 萨思学会有限公司 Route management through event stream processing cluster manager
CN112636992A (en) * 2021-03-10 2021-04-09 腾讯科技(深圳)有限公司 Dynamic routing method, device, equipment and storage medium
CN114221836A (en) * 2021-12-15 2022-03-22 杭州橙鹰数据技术有限公司 Data processing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3101603A1 (en) * 2015-06-04 2016-12-07 Easy Payment Gateway Ltd A method and apparatus for providing an electronic transaction gateway

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109617807A (en) * 2018-12-28 2019-04-12 深圳云天励飞技术有限公司 Route information update method, device, gateway and storage medium
CN112540948A (en) * 2019-09-23 2021-03-23 萨思学会有限公司 Route management through event stream processing cluster manager
CN112118184A (en) * 2020-08-06 2020-12-22 北京健康之家科技有限公司 Gateway automatic routing method and device, storage medium and computer equipment
CN112636992A (en) * 2021-03-10 2021-04-09 腾讯科技(深圳)有限公司 Dynamic routing method, device, equipment and storage medium
CN114221836A (en) * 2021-12-15 2022-03-22 杭州橙鹰数据技术有限公司 Data processing method and device

Also Published As

Publication number Publication date
CN117081976A (en) 2023-11-17

Similar Documents

Publication Publication Date Title
US20190068454A1 (en) Device model to thing model mapping
CN111221726A (en) Test data generation method and device, storage medium and intelligent equipment
CN107368513B (en) Method and device for updating client database
CN111400288A (en) Data quality inspection method and system
CN117238433B (en) Method for automatically isolating document data based on Libreoffice
CN111061733A (en) Data processing method and device, electronic equipment and computer readable storage medium
JP2006178848A (en) Database system, computer executable method and program for database system, and method for updating indexing table in database system
CN111984666A (en) Database access method and device, computer readable storage medium and computer equipment
CN117081976B (en) Method and device for configuring gateway route
JP2018514886A (en) Aggregate large amounts of time data from many overlapping sources
CN109240916A (en) Information output controlling method, device and computer readable storage medium
CN112181528A (en) Management method and device for configuration file of micro-service
US20180373740A1 (en) System and method for merging a source data from a source application into a target data of a target application
CN111813880B (en) Homeland space planning project management method, system and storage medium
CN112817931B (en) Incremental version file generation method and device
JP2008299496A (en) Operation simulator and program
CN113001538B (en) Command analysis method and system
CN113434360A (en) Method and system for monitoring operation
CN113094048A (en) Data display rule determining method, display method, device, equipment and medium
JP2007242051A (en) Device for mounting/executing business logic program
CN117032844B (en) Cooperative link tracking device and method and intelligent vehicle
CN113486035B (en) Data record batch processing method and device, storage medium and electronic equipment
JP2006285473A (en) Manufacturing process management system
CN112559444A (en) SQL (structured query language) file migration method and device, storage medium and equipment
US20060155481A1 (en) System and method for reusing project planning data

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