CN103023766A - Dynamic routing method based on expression judgment - Google Patents
Dynamic routing method based on expression judgment Download PDFInfo
- Publication number
- CN103023766A CN103023766A CN2012104844965A CN201210484496A CN103023766A CN 103023766 A CN103023766 A CN 103023766A CN 2012104844965 A CN2012104844965 A CN 2012104844965A CN 201210484496 A CN201210484496 A CN 201210484496A CN 103023766 A CN103023766 A CN 103023766A
- Authority
- CN
- China
- Prior art keywords
- expression
- expression formula
- dynamic routing
- routing method
- binary tree
- 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.)
- Pending
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a dynamic routing method based on an expression judgment, which comprises the following steps of: 1) setting an expression in a graphic manner in a bus process designer depending on a business demand; 2) launching the set process, and generating an expression object; 3) converting the expression into a binary tree; 4) covering the binary tree to obtain a reverse Polish expression; 5) calculating the reverse Polish expression to determine a destination service identity (ID); and 6) transmitting a message to a destination service depending on the destination service ID. According to the dynamic routing method disclosed by the invention, a modularized design is avoided, and primary setting can be reused in a plurality of business processes; support variable and constant in the expression can be flexibly set; the development quantity of interfaces is reduced, waste data transmission among the systems is reduced, and the network bandwidth occupancy rate is lowered.
Description
Technical field
The present invention relates to a kind of method for routing, specifically a kind of dynamic routing method of judging based on expression formula.
Background technology
The data in individual data source can't be transferred to the some correct service in a plurality of reception services, and traditional is main by following dual mode transmission:
The first transmission means owing to by the distribution subscription technology message is sent once to each service, will cause in the system junk data too much;
The second transmission means, by request answer mode, this transmission means certainly will need to need a plurality of services respectively it to be processed in data source, causes the development amount large.
Summary of the invention
The deficiency that exists for overcoming above-mentioned prior art the invention provides a kind of dynamic routing method of judging based on expression formula, and not only quantity exploitation amount is little for it, and has greatly reduced the quantities received of each system rubbish data.
The present invention solves the technical scheme that its technical problem takes: the dynamic routing method based on expression formula is judged, it is characterized in that, and may further comprise the steps:
Dynamic routing method based on expression formula is judged is characterized in that, may further comprise the steps:
1) expression formula is set: in bus flow scheme design device, according to business demand expression formula is set;
2) generate the expression formula object: the flow process that issue arranges, and generate the expression formula object;
3) expression formula conversion:
31) expression formula is converted into binary tree;
32) binary tree traversal obtains inverse Polan expression;
4) determine the purpose service ID: inverse Polan expression is carried out calculative determination purpose service ID;
5) send message: send message according to the purpose service ID to the purpose service.
In the said method, described expression formula arranges in patterned mode.
In the said method, described expression formula is supported constant and variable.
The invention has the beneficial effects as follows, the present invention has avoided the modularization design, and once arranging can be multiplexing in a plurality of operation flows; Support variable and constant in the expression formula, can arrange flexibly; Reduce the exploitation quantity of interface; Reduce the junk data transmission between system, reduced network bandwidth occupancy.
Description of drawings
The present invention is further described below in conjunction with accompanying drawing:
Fig. 1 is method flow diagram of the present invention.
Embodiment
As shown in Figure 1, a kind of dynamic routing method of judging based on expression formula of the present invention, it may further comprise the steps:
1) in patterned mode expression formula is set according to business demand in bus flow scheme design device, described expression formula is supported constant and variable;
2) flow process of issue setting starts this flow process in the background thread, generate the expression formula object;
When 3) transmission of messages is to the expression formula node, expression formula is converted into binary tree;
4) binary tree traversal obtains inverse Polan expression;
5) inverse Polan expression is carried out calculative determination purpose service ID;
6) send message according to the purpose service ID to the purpose service, after message arrives the purpose service, because the data that receive are the form of service understanding or the data that need, so this service need to not judged again for data.Simultaneously, other irrelevant service can not receive this message yet, can not produce junk data.
The above is preferred implementation of the present invention, for those skilled in the art, under the prerequisite that does not break away from the principle of the invention, can also make some improvements and modifications, and these improvements and modifications also are regarded as protection scope of the present invention.
Claims (3)
1. the dynamic routing method of judging based on expression formula is characterized in that, may further comprise the steps:
1) expression formula is set: in bus flow scheme design device, according to business demand expression formula is set;
2) generate the expression formula object: the flow process that issue arranges, and generate the expression formula object;
3) expression formula conversion:
31) expression formula is converted into binary tree;
32) binary tree traversal obtains inverse Polan expression;
4) determine the purpose service ID: inverse Polan expression is carried out calculative determination purpose service ID;
5) send message: send message according to the purpose service ID to the purpose service.
2. the dynamic routing method of judging based on expression formula according to claim 1 is characterized in that, described expression formula arranges in patterned mode.
3. the dynamic routing method of judging based on expression formula according to claim 1 is characterized in that, described expression formula is supported constant and variable.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012104844965A CN103023766A (en) | 2012-11-23 | 2012-11-23 | Dynamic routing method based on expression judgment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012104844965A CN103023766A (en) | 2012-11-23 | 2012-11-23 | Dynamic routing method based on expression judgment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103023766A true CN103023766A (en) | 2013-04-03 |
Family
ID=47971913
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012104844965A Pending CN103023766A (en) | 2012-11-23 | 2012-11-23 | Dynamic routing method based on expression judgment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103023766A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107786338A (en) * | 2016-08-25 | 2018-03-09 | 大连楼兰科技股份有限公司 | Shared platform in dynamic password verification |
CN108491207A (en) * | 2018-03-02 | 2018-09-04 | 平安科技(深圳)有限公司 | Expression processing method, apparatus, equipment and computer readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101056210A (en) * | 2007-06-05 | 2007-10-17 | 网御神州科技(北京)有限公司 | An event processing system and method of network central management platform |
CN102521411A (en) * | 2011-12-28 | 2012-06-27 | 畅捷通信息技术股份有限公司 | Formula and formula data processing device and formula and formula data processing method |
-
2012
- 2012-11-23 CN CN2012104844965A patent/CN103023766A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101056210A (en) * | 2007-06-05 | 2007-10-17 | 网御神州科技(北京)有限公司 | An event processing system and method of network central management platform |
CN102521411A (en) * | 2011-12-28 | 2012-06-27 | 畅捷通信息技术股份有限公司 | Formula and formula data processing device and formula and formula data processing method |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107786338A (en) * | 2016-08-25 | 2018-03-09 | 大连楼兰科技股份有限公司 | Shared platform in dynamic password verification |
CN108491207A (en) * | 2018-03-02 | 2018-09-04 | 平安科技(深圳)有限公司 | Expression processing method, apparatus, equipment and computer readable storage medium |
WO2019165706A1 (en) * | 2018-03-02 | 2019-09-06 | 平安科技(深圳)有限公司 | Expression processing method, apparatus, device, and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103580966A (en) | Wireless link and wire link parallel data transmission method and system | |
WO2010027653A3 (en) | Minimal extensions required for multi-master offline and collaboration for devices and web services | |
MX2007000141A (en) | System and method for peer-to-peer hybrid communications. | |
CN103095684A (en) | Method obtaining attention user aggregate information, device and system | |
CN102195683A (en) | Power carrier communication method | |
CN104333517A (en) | Automation equipment communication method based on CAN bus | |
CN103885997A (en) | Dynamic page information displaying method and dynamic page information displaying system | |
CN104811475A (en) | Enterprise service bus middleware based on Restful technology | |
CN104731028A (en) | Automatic embedded multi-CPU-board signal exchange method based on signal names | |
CN101304381B (en) | Method, system and apparatus for transmitting files of P2P network | |
CN104539510A (en) | Multi-protocol-based information pushing system and method | |
CN102256211B (en) | Group-based method and system for application realization of M2M terminal | |
CN103023766A (en) | Dynamic routing method based on expression judgment | |
CN102768618A (en) | Distributed printing control method, system and distributed printing method | |
CN105681225A (en) | Network resource acquisition method and device | |
CN102111237A (en) | Cloud transcoding system and cloud transcoding method thereof | |
CN107193663B (en) | Service message processing method and device | |
CN101547110A (en) | Method, system and device for registering multicast source | |
CN106302432A (en) | A kind of communicator based on car networking and control method | |
CN102662621A (en) | Multi-terminal multi-partition display interactive interface control method based on configuration driving | |
CN203251310U (en) | Quantum key sending-receiving integration controller | |
CN105812390A (en) | Information issuing and transmitting system based on resource server and local area network server cluster architecture | |
CN102882799B (en) | The controllable clustered deploy(ment) configuration System and method for of flow | |
CN102739566B (en) | Sorting method and device of uplink information in instant messaging system | |
CN104917695A (en) | Data management system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130403 |