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

Method and device for configuring gateway route Download PDF

Info

Publication number
CN117081976A
CN117081976A CN202311339947.0A CN202311339947A CN117081976A CN 117081976 A CN117081976 A CN 117081976A CN 202311339947 A CN202311339947 A CN 202311339947A CN 117081976 A CN117081976 A CN 117081976A
Authority
CN
China
Prior art keywords
gateway
information
configuration
routing
version
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311339947.0A
Other languages
Chinese (zh)
Other versions
CN117081976B (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 a 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 application 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 the 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 one of the technical problems in the related art to some extent. To this end, an object of the present application is to propose a method for configuring gateway routes.
A second object of the present application is to provide a gateway routing configuration apparatus.
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 application is to propose a computer programme product.
To achieve the above objective, 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.
The application can extract the workflow gateway routing expression from the flow chart, configure the gateway routing condition parameters, flexibly and conveniently realize the configuration of the gateway routing expression, accurately and flexibly control the gateway routing jump in the flow operation, and improve the service iteration efficiency and accuracy.
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 method of configuring gateway routing 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 provides a computer-readable storage medium having stored thereon computer instructions for causing a computer to execute a configuration method of gateway routing provided in 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, comprising 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 application;
FIG. 2 is a flow chart of a method of configuration of gateway routing according to one embodiment of the application;
FIG. 3 is a flow chart of a method of configuration of gateway routing according to one embodiment of the application;
FIG. 4 is a flow chart of a method of configuration of gateway routing according to one embodiment of the 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 like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative and intended to explain the present application and should not be construed as limiting the 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 a gateway route according to an 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 the embodiment of the present application, the business item is an item having a business flow in a business scenario, for example, the business item may be a cost consultation item, and in other scenarios, the business 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, the 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 can be an electronic device, such as a computer, with gateway configuration function and storage function and running 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 the 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 as follows, where the gateway routing expression of table 2 may be configured according to the gateway routing condition of the service item flow information, the 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 the embodiment of the application, the flow key value is equivalent to the identifier of the flow instance, that is, the configuration environment of the flow instance is constructed according to the gateway configuration information and the gateway routing configuration item information, the 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, the configuration item versions of the gateway routing expressions referenced by the outbound degrees of all the gateways of the target flow instance are recorded according to the gateway configuration information and the gateway routing configuration item information, and the gateway routing expression version association information is obtained, wherein the gateway routing expression version association information comprises the gateway identifier, the gateway exit path identifier and the first association relation among the 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 a flow instance runs to an ith gateway, gateway identifications of all gateways and gateway exit path identifications of all gateway exit paths are obtained, target configuration item versions of all gateway exit paths of the ith gateway are obtained from gateway routing expression version association information according to the gateway identifications and the gateway exit path identifications, and the jump of gateway routing is executed according to the gateway routing expression and the target configuration item versions.
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. The application can extract the workflow gateway routing expression from the flow chart, configure the gateway routing condition parameters, flexibly and conveniently realize the configuration of the gateway routing expression, accurately and flexibly control the gateway routing jump in the flow operation, and improve the service iteration efficiency and accuracy.
Fig. 2 is a flow chart of a method of configuring gateway routing according to an 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 application, the flow key value and the flow instance have a mapping relation, 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 the 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.
The application can extract the workflow gateway routing expression from the flow chart, configure the gateway routing condition parameters, flexibly and conveniently realize the configuration of the gateway routing expression, accurately and flexibly control the gateway routing jump in the flow operation, and improve the service iteration efficiency and accuracy.
Fig. 3 is a flow chart of a method of configuring gateway routing according to an embodiment of the present application, as shown in fig. 3, the method comprising 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 . Destination of the jth gateway egress path with the ith gatewayThe label gateway exit path is identified as 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.
The application can extract the workflow gateway routing expression from the flow chart, configure the gateway routing condition parameters, flexibly and conveniently realize the configuration of the gateway routing expression, accurately and flexibly control the gateway routing jump in the flow operation, and improve the service iteration efficiency and accuracy.
Fig. 4 is a flowchart of a method for configuring a gateway route according to an 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 application, after the business requirement is adjusted, the business code logic is required to be changed, and the workflow engine expression is modified, namely the gateway routing expression is modified. In the embodiment of the application, the gateway configuration adjustment information after the business requirement adjustment 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 the update time as nextThe starting time of the flow instance, that is, if the selection is not effective to the running flow instance, the corresponding configuration item version of the flow instance P recorded in the gateway routing expression version association information is updated to the latest version only when the new flow instance is started, that is, when the new flow instance is started, the configuration item version is updated by v 1 Change to v 2
The application can extract the workflow gateway routing expression from the flow chart, configure the gateway routing condition parameters, flexibly and conveniently realize the configuration of the gateway routing expression, accurately and flexibly control the gateway routing jump in the flow operation, and improve the service iteration efficiency and accuracy. 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.
The application can extract the workflow gateway routing expression from the flow chart, configure the gateway routing condition parameters, flexibly and conveniently realize the configuration of the gateway routing expression, accurately and flexibly control the gateway routing jump in the flow operation, and improve the service iteration efficiency and accuracy.
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 also 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 embodiment of the present application also provides a computer program product, which comprises a computer program, and the computer program when being executed by a processor, is used for the configuration method of the gateway routing in the embodiment.
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 to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

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;
and 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.
2. The method of claim 1, wherein the gateway routing expression version association information includes a first association relationship among the gateway identification, the gateway egress path identification, and the configuration item version, and wherein the obtaining the target configuration item version for each gateway egress path of the ith gateway based on the gateway routing expression version association information 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.
3. 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.
4. A method according to any one of claims 1-3, 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.
5. The method of claim 4, 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.
6. The method of claim 5, 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.
7. The method of claim 4, 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.
8. The method of claim 7, 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.
9. 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;
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 gateway routing, wherein i is a positive integer.
10. 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 true CN117081976A (en) 2023-11-17
CN117081976B 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 (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160358130A1 (en) * 2015-06-04 2016-12-08 Easy Payment Gateway, Ltd. Method and Apparatus for Providing an Electronic Transaction Gateway
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160358130A1 (en) * 2015-06-04 2016-12-08 Easy Payment Gateway, Ltd. Method and Apparatus for Providing an Electronic Transaction Gateway
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
CN117081976B (en) 2024-01-16

Similar Documents

Publication Publication Date Title
CN111221726A (en) Test data generation method and device, storage medium and intelligent equipment
US20190068454A1 (en) Device model to thing model mapping
US8869111B2 (en) Method and system for generating test cases for a software application
JP2007507037A (en) Method and apparatus for providing automatic software updates
CN107590123B (en) Vehicular middle-location context reference resolution method and device
CN111158741B (en) Method and device for monitoring dependency relationship change of service module on third party class library
CN115599437B (en) Software version processing method and device, electronic equipment and storage medium
CN107368513B (en) Method and device for updating client database
CN109284331A (en) Accreditation information acquisition method, terminal device and medium based on business datum resource
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
JP2018514886A (en) Aggregate large amounts of time data from many overlapping sources
CN117081976B (en) Method and device for configuring gateway route
US20100023147A1 (en) Reconfiguration of assets for reuse during manufacturing
JP2011215984A (en) Apparatus and method for processing data and program
US20180373740A1 (en) System and method for merging a source data from a source application into a target data of a target application
CN113001538B (en) Command analysis method and system
CN112817931B (en) Incremental version file generation method and device
CN109840259B (en) Data query method and device, electronic equipment and readable storage medium
JP7131106B2 (en) Transaction management device, transaction management method and program
CN107015831A (en) A kind of client updating management method upgraded based on server end and system
US20210216533A1 (en) Method and system for handling engineering data in a multiengineering system environment
CN117032844B (en) Cooperative link tracking device and method and intelligent vehicle
JP2006285473A (en) Manufacturing process management system
JPWO2016189603A1 (en) Operation optimization support system and operation optimization support method

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