Embodiment 1
In order to improve user's efficiency of knowing for changes in flow rate information, first the embodiment of the present application 1 provides a kind of flow methods of exhibiting.The flowchart of the method is as it is shown in figure 1, mainly comprise the steps:
Step 11, service logic relation determine the different business of the flow in each Business Processing stage of entrance business, business processing stage.
Wherein, each Business Processing stage can comprise each Business Processing stage of each subservice in business.
In one embodiment, it is possible to according to business process rule, the different Business Processing stages is set and arranges the logical relation between each Business Processing stage.Wherein, the flow in each Business Processing stage may include that for each Business Processing stage pre-assigned flow, and/or jumps to actual flow produced by another Business Processing stage from a Business Processing stage in the processing procedure of business.
Step 12, according to the service logic relation determined and flow, generate logic relation picture;
Wherein, each Business Processing stage corresponding respectively of each relation node in logic relation picture;In logic relation picture, the displaying ratio of special object is that the flow according to each Business Processing stage is determined;Special object may include that each relation node and/or each relation path.
In order to determine the displaying ratio of special object, in one embodiment, the implementation of step 12 may include that the flow according to each Business Processing stage, it is determined that the displaying ratio of special object in logic relation picture.
Step 13, display logic graph of a relation.
Adopt the method that the embodiment of the present application 1 provides, owing to being that service logic relation processing stage of the different business by the flow in each Business Processing stage of business and business displays in the way of logic relation picture, and the displaying ratio of special object is that the flow according to each Business Processing stage is determined in logic relation picture, therefore user's size by special object, just can know changes in flow rate information intuitively, thus improve user to know efficiency for changes in flow rate information.
Hereinafter some optional embodiments of the embodiment of the present application are described in detail.
In one embodiment, logic relation picture is generated for step 12, it is possible to adopt following manner to realize:
First, multiple relation nodes of acquisition can be expressed as V={v1,v2,…,vn, namely V represents relation node set, and n is total number of relation node, and the multiple relation paths corresponding with V can be expressed as E={ < v1,v2>,<v2,v3>,<v1,v3>...,<vi,vj>, wherein, E represents relation path set.
Wherein, the ordered pair that every relation path is made up of two relation nodes, as used < vi,vj> represent relation path, wherein a viIt is the initial point of relation path, vjIt is the terminal of relation path, the numbering of the relation node that i and j represents respectively.Need exist for illustrating: < vi,vj>and<vj,vi>represent two different relation paths, at<vj,vi> in vjIt is the initial point of relation path, viIt it is the terminal of relation path.
Based on above-mentioned available formula [1] represent adjacency matrix A (i, j) be:
Then, according to adjacency matrix A, (i, j) builds directed graph G, and directed graph G is to obtain the tree construction of directed graph G for traversal.If this directed graph G has the relation node of multiple entrance, then many tree constructions, i.e. spanning forest structure can be generated with the relation node of each entrance for summit.It is possible to further adopt the mode of breadth first traversal to travel through each tree construction in forest, to determine each relation node in each tree construction position in directed graph G.
Further, according to the relation node determined position in directed graph G, distribute corresponding flow (flow hereinafter referred to as relation node) for each relation node, be specially step a-step b:
Step a, the flow of the relation node being in primary importance in figure G can be set as total flow.
Wherein, the relation node of primary importance may refer to receive the initial relation node (processing stage that this node being corresponding to the initial service of business) of flow, for instance the relation node of the label 1 shown in Fig. 2;Total flow is that finishing service processes default flow;Or, this total flow can also be after the business procession actually accomplished carries out traffic statistics, the total flow obtained.Such as, for the odd-numbered day visit capacity that certain website is estimated, namely can be considered that finishing service processes default flow;Again such as, it is possible to the actual access amount of this website one day is added up, obtains the actual total visit capacity as described total flow.
Hereafter process default flow for total flow for finishing service, describe in detail.
Step b, except the relation node being in primary importance, the flow flowing into each relation node can continue before corresponding according to each relation node the flow of relation node output, and what the type of each relation node was determined;Flow out the type that the flow of each relation node can be the follow-up relation node corresponding according to each relation node to determine.
It follows that illustrate further for embodiment proposed in above-mentioned steps 12:
Assume the relation node set V={v obtained1,v2,…,v25, relation path set E={ < v1,v2>,<v2,v3>,<v1,v3>...,<v24,v25>, by the adjacency matrix that formula [1] is obtained be A (i, j), wherein, i ∈ [1,25], j ∈ [1,25];Then, according to adjacency matrix A, (i, j) determines directed graph G, and directed graph G is carried out breadth first traversal, to determine the position in directed graph G of each relation node.Specifically, constructed directed graph G is as shown in Figure 2.
Further, introducing the assignment of traffic of relation node in directed graph G, the existing flow rate calculation mode for the relation node of label 13 as shown in Figure 2 illustrates:
The first, pre-set as follows for relation node:
The total flow of the relation node of bidding number 1 is the flow sum of other all relation nodes, the concrete assignment of traffic mode of other relation nodes, it can be then classification by the corresponding Business Processing stage (that is, the processing stage of being divided into main business, branch's Business Processing stage, the process the failed Business Processing stage etc.) distribution that carries out different proportion.
Such as, if the follow-up relation node of certain relation node has two, respectively corresponding processing stage of main business relation node and the failed relation node corresponding to the Business Processing stage of Business Processing, then in such a case it is possible to assume: the assignment of traffic ratio that relation node corresponding processing stage of for this main business is arranged is 90%;This ratio that relation node corresponding to the Business Processing stage that this process is failed is arranged is 10%.If the flow occupancy of certain relation node described is 100%, (flow namely flowing into certain relation node described is I, the flow then flowing out certain relation node described is I × 100%), then may determine that, from the flow that certain relation node described flows out 90%, relation node corresponding processing stage of being flow into this main business;And 10% from the flow that certain relation node described flows out, it is flow into the relation node corresponding to the Business Processing stage that this process is failed.
The second, the calculating of the assignment of traffic of the relation node of label 13: the relation node of label 13 continues before having 1 relation node (label 11 relation node), 2 successor relationship nodes (that is, the relation node of label 15 and label 25).2 successor relationship nodes are that the relation node of label 25 belongs to relation node corresponding processing stage of main business respectively, and the relation node of label 15 belongs to the relation node corresponding to branch's Business Processing stage.Owing to this is numbered the flow occupancy 100% of relation node of 13, so the assignment of traffic rate being numbered the relation node of 13 is: the relation node being numbered 15 is 10%, and the relation node of label 25 is 90%.
It is assumed herein that it is 20 that the relation node of known label 11 can distribute to the flow of the relation node of label 13;Further, by the flow occupancy of the relation node of label 13 and assignment of traffic rate, the assignment of traffic of the relation node of known label 13 is 20 × 100% × 10%=2 to the flow of the relation node of label 15, and the flow distributing to the relation node of label 25 is 20 × 100% × 90%=18.
The distribution method of the flow of other relation nodes is similar to the distribution method of the flow of the relation node of label 13 also described above.
In one embodiment, in order to demonstrate the information of the flow of the arbitrary relation node in logic relation picture further, after step 13, it is possible to realized by the mode of step A1-step A3:
Step A1, receive flow idsplay order;
Wherein, idsplay order can be the instruction sent in suspension procedure mode, or other control system send transfer instruction etc..Further, idsplay order can also carry the mark of relation node.
Step A2, determine the relation node that flow indication instruction is corresponding.
Wherein it is possible to the mark according to relation node entrained in idsplay order, it is determined that the relation node that outflow idsplay order is corresponding.
Step A3, display flow corresponding to relation node information.
Wherein, the information of flow may include that the concrete flow value after by flow number value and/or the change etc. of the circulation size of the flow in relation path.
In one embodiment, for step 12, when each Business Processing stage comprises each Business Processing stage of each subservice in business, obtaining logic relation picture can the mode of B1-step B2 as follows:
Step B1, service logic relation according to each Business Processing stage of each subservice, and the flow in each Business Processing stage of each subservice, generate each logical relation subgraph respectively;
Step B2, then, by synthesizing each logical relation subgraph, obtains logic relation picture.
In one embodiment, for the synthesis mode synthesizing each logical relation subgraph, can synthesize according to Business Processing stage generic (that is, the processing stage of being divided into main business, branch's Business Processing stage, process the failed Business Processing stage etc.).Such as, if the logic relation picture in relation node corresponding processing stage of comprising main business and corresponding relation path is the first logical relation subgraph, comprising the logic relation picture processing relation node corresponding to failed Business Processing stage and corresponding relation path is the second logical relation subgraph, comprise the corresponding relation node in branch's Business Processing stage and the logic relation picture in corresponding relation path is the 3rd logical relation subgraph, then can according to the logical relation between different relation nodes, first logical relation subgraph is combined with the second logical relation subgraph and the 3rd logical relation subgraph respectively, obtain comprising the logic relation picture of relation node corresponding to each Business Processing stage and corresponding relation path.
Further, for instance shown in Fig. 2, the processing stage of the relation node correspondence main business of label 1,2,4,6,11, flowing into the logical relation between the flow of those nodes and those nodes can be represented by the first logical relation subgraph;In the Business Processing stage that the relation node alignment processing of label 3,8,10,21,16 is failed, flowing into the logical relation between the flow of those nodes and those nodes can be represented by the second logical relation subgraph;In other relation node respective branches Business Processing stages, flowing into the logical relation between the flow of those nodes and those nodes can be represented by the 3rd logical relation subgraph.
In one embodiment, for the synthesis mode synthesizing each logical relation subgraph, it is also possible to the time processing reception Business Processing processing stage of according to industry synthesizes.Specifically, can from each logical relation subgraph generated, determine include process business the first Business Processing stage (namely, the starting stage of process business) logical relation subgraph, and first relation node in this logical relation subgraph is set to initial flow entrance, other logical relation subgraphs, according to service logic relation, are combined with the logical relation subgraph corresponding to the first Business Processing stage.
In one embodiment, in order to more intuitively learn the change of the flow in each Business Processing stage, step 13, can by the different attribute of special object being adopted the mode that displays of different colours, display logic graph of a relation, wherein, the different attribute of special object may refer in business procession, each Business Processing stage state to Business Processing, for instance, process service fail state or business waiting processing state etc..
It is possible to further would indicate that the rectangle of relation node and/or represent that the ribbon different colours of relation path is identified, to represent business business processing status different business processing stage.Such as, it is possible to be identified with that the relation node table of redness is shown as the Business Processing stage processing service fail, to be expressed as in all Service Periods this Service Period be branch's flow process etc. for the carrier state relation path that identifies viridescent band state relation path to be expressed as in all Service Periods this Service Period be main flow, be identified with other colors.
Such as, as shown in Figure 2, it is possible to represent relation node by rectangle;The uninterrupted that relation node is assigned with is represented with rectangular height;Forward the size of the flow of another relation node to from a relation node-flow by the width means of stripe-like.If the more high flow just illustrating that this relation node is assigned with of rectangular height is more big, if the width of stripe-like is more wide just illustrates that the flow of the internodal circulation of relation is more big.
In one embodiment, the specific implementation of step 13 is: carries out logic relation picture in this locality and shows, or logic relation picture is sent to terminal displays.
Specifically, it is possible to relation node in logic relation picture and relation path Cubic kolmogorov's differential system are represented, it is then possible to utilize any one 2D interactive graphics system to be displayed by logic relation picture.
It should be noted that the executive agent of each step of the provided method of embodiment 1 may each be same equipment, or, the method also by distinct device as executive agent.Such as, the executive agent of step 11 and step 12 can be equipment 1, and the executive agent of step 13 can be equipment 2;Again such as, the executive agent of step 13 can be the executive agent of equipment 1, step 11 and step 12 can be equipment 2;Etc..
Embodiment 2
In order to improve user's efficiency of knowing for changes in flow rate information, the embodiment of the present application 2 provides a kind of flow exhibiting device.This structure drawing of device determines unit 31, generation figure unit 32 and display figure unit 33 as it is shown on figure 3, this device specifically includes that.The concrete function of each unit is as follows:
Determine unit 31, be used for the service logic relation processing stage of the different business determining the flow in each Business Processing stage of entrance business, business;
Generate figure unit 32, for according to the service logic relation determined and flow, generating logic relation picture;
Display figure unit 33, for display logic graph of a relation;
Wherein, corresponding each Business Processing stage described respectively of each relation node in logic relation picture;In logic relation picture, the displaying ratio of special object is that the flow according to each Business Processing stage is determined;Special object may include that each relation node and/or each relation path.
In one embodiment, each Business Processing stage can include, each Business Processing stage of each subservice in business.
In one embodiment, figure unit 32 is generated, it is possible to be used for: the service logic relation according to each Business Processing stage of each subservice, and the flow in each Business Processing stage of each subservice, generate each logical relation subgraph respectively;By synthesizing each logical relation subgraph, obtain logic relation picture.
In one embodiment, display figure unit 33, it is possible to for the mode that the different attribute of special object adopts different colours display, display logic graph of a relation.
In one embodiment, display figure unit 33, it is possible to display for logic relation picture is sent to terminal.
In one embodiment, in order to demonstrate the information of the flow of the arbitrary relation node in logic relation picture further, this flow exhibiting device can also include: receives unit, determine node unit and information unit.Specific as follows:
Receive unit, after display unit display logic graph of a relation, receive the idsplay order of flow;
Determine node unit, the relation node corresponding for determining the idsplay order of flow;
Information unit, is used for the information of the flow showing that relation node is corresponding.
Adopt the device that the embodiment of the present application 2 provides, owing to being that service logic relation processing stage of the different business by the flow in each Business Processing stage of business and business displays in the way of logic relation picture, and the displaying ratio of special object is that the flow according to each Business Processing stage is determined in logic relation picture, therefore user's size by special object, just can know changes in flow rate information intuitively, thus improve user to know efficiency for changes in flow rate information.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, complete software implementation or the embodiment in conjunction with software and hardware aspect.And, the present invention can adopt the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) wherein including computer usable program code.
The present invention is that flow chart and/or block diagram with reference to method according to embodiments of the present invention, equipment (system) and computer program describe.It should be understood that can by the combination of the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing device work in a specific way, the instruction making to be stored in this computer-readable memory produces to include the manufacture of command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices provides for realizing the step of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
In a typical configuration, computing equipment includes one or more processor (CPU), input/output interface, network interface and internal memory.
Internal memory potentially includes the forms such as the volatile memory in computer-readable medium, random access memory (RAM) and/or Nonvolatile memory, such as read only memory (ROM) or flash memory (flashRAM).Internal memory is the example of computer-readable medium.
Computer-readable medium includes permanent and impermanency, removable and non-removable media can by any method or technology to realize information storage.Information can be computer-readable instruction, data structure, the module of program or other data.The example of the storage medium of computer includes, but it is not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus or any other non-transmission medium, can be used for the information that storage can be accessed by a computing device.According to defining herein, computer-readable medium does not include temporary computer readable media (transitorymedia), such as data signal and the carrier wave of modulation.
It can further be stated that, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include the process of a series of key element, method, commodity or equipment not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, commodity or equipment.When there is no more restriction, statement " including ... " key element limited, it is not excluded that there is also other identical element in including the process of described key element, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program.Therefore, the application can adopt the form of complete hardware embodiment, complete software implementation or the embodiment in conjunction with software and hardware aspect.And, the application can adopt the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) wherein including computer usable program code.
The foregoing is only embodiments herein, be not limited to the application.To those skilled in the art, the application can have various modifications and variations.All make within spirit herein and principle any amendment, equivalent replacement, improvement etc., should be included within claims hereof scope.