Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in this specification one or more embodiment,
Below in conjunction with the attached drawing in this specification one or more embodiment, to the technology in this specification one or more embodiment
Scheme is clearly and completely described, it is clear that and described embodiment is only this specification a part of the embodiment, rather than
Whole embodiments.Based on this specification one or more embodiment, those of ordinary skill in the art are not making creativeness
The range of disclosure protection all should belong in every other embodiment obtained under the premise of labour.
The switching method for the operation flow that at least one embodiment of this specification provides, is determined for for an industry
Business executes request, is the business to be executed using old operation flow, or execute the business using new business process.Also, the party
Method will be cut stream instruction and be separated with the definition for cutting flow content, as follows:
For example, it is assumed that define a condition: if certain business executes request, for business be under product P1
Trade company b1 is related, then uses new business process to this business;Otherwise, business is executed using old operation flow.In the condition,
" product ", " trade company " are referred to as a switching dimension.
Shown in Figure 1, Fig. 1 illustrates one and cuts stream dimension library, can this cut be pre-configured in stream dimension library it is each
It is a to cut stream dimension is corresponding cuts flow content, as the following table 1 illustrates part mapping relationship:
Table 1 cuts the mapping relations in stream dimension library
Marker 1 (cuts stream dimension 1) |
Product 1 |
Marker 2 (cuts stream dimension 2) |
Trade company 1 |
Marker n (cuts stream dimension n) |
*** |
It should be noted that one group of mapping relations of above-mentioned table 1 correspond to a type when configuring in cutting stream dimension library
Type cuts stream instruction.For example, the corresponding format for cutting stream instruction of table 1 is as follows:
Table 2 cuts stream instruction
Marker 1 |
Marker 2 |
Marker 3 |
……. |
Marker n |
Cutting stream instruction may include multiple markers, for example, marker 1, marker 2 etc..Wherein, each marker is corresponding
One is cut stream dimension, for example, the corresponding stream dimension 1 of cutting of marker 1 can be " product ", marker 2 is corresponding cut stream dimension 2 can
To be " trade company ".And " product 1 ", " trade company 1 " in table 1 then for it is corresponding some cut stream dimension cut flow content.In addition, marker
Value can be used to indicate that this cut stream dimension whether come into force, for example, value 1 expression come into force, value 0 expression do not come into force.
Still for above-mentioned, in order to realize process switching under the above conditions: if certain business executes request, needle
Pair business be it is related with the trade company b1 under product P1, then to this business use new business process.It can carry out following tripartite
Face setting:
A, the format of stream instruction is cut in definition: cutting the corresponding stream dimension of cutting of the marker 1 in stream instruction is " product ", marker
2 corresponding stream dimensions of cutting are " trade companies ".
B, it is configured in table 1 and each cut stream dimension is corresponding cuts flow content: setting the corresponding flow content of cutting of marker 1 to
The corresponding flow content of cutting of marker 2 is set " trade company 1 " by " product 1 ".
C, the value of each marker of stream instruction is cut in setting: being set 1 for the value of marker 1, is indicated the marker 1
Corresponding stream dimension of cutting comes into force, and this is cut corresponding cut flow content " product 1 " of stream dimension as condition.Similarly, setting mark
The value of position 2 is also 1.
As above, the mapping relations cut in stream dimension library can be and be pre-configured with, and after configuration is good, each dimension is corresponding
Cutting flow content can be constant, as long as the value of the marker to come into force is set as effective by the setting for cutting stream instruction.For example, when single
When dimension controls, it is effective that marker 1 can be set;Alternatively, marker 1 and mark can be set when various dimensions are combined and controlled
It comes into force simultaneously position 2.
In addition, the mapping relations cut in stream dimension library can also change, for example, can change, marker is corresponding to cut stream dimension
Degree, for example, the stream dimension of cutting of marker 1 is changed to " business department ";It cuts stream alternatively, can also change dimension is corresponding cuts stream
Content, for example, marker 1 corresponding " product 1 " is changed to " product 2 ".
This stream that will cut instructs and cuts the mode that flow content is provided separately, on the one hand, so that cutting the change setting of stream instruction
It is more convenient, for example, when to change it is different cut stream dimension and whether come into force when, as long as changing the marker cut in stream instruction
Value;For another example, it cuts stream dimension or when cutting flow content, as long as configuration mapping relations, cuts stream instruction when changing
Still use the form of simple a string of markers.On the other hand, which can provide the general stream instruction of cutting of one kind and configure
Mode, the business under different scenes, which cuts stream, can use the deployment way of this separate type.
Fig. 2 is the switching method for the operation flow that at least one embodiment of this specification provides, and this method can describe
Above-mentioned cuts how to cut stream under stream instruction configuration mode, as shown in Fig. 2, this method may include handling as follows, does not limit each
Sequence is executed between step:
In step 200, it receives business and executes request.The request is used to request performance objective business, also, in the request
It can carry: the business information of target service.The business information, for example, may include: product that the business is directed to or
Trade company, for example, target service is the business for product 1 or trade company 2.
In step 202, stream instruction is cut in parsing, and what is come into force cuts stream dimension.
Wherein, cutting stream instruction may include multiple markers, and each marker corresponding one is cut stream dimension, and the mark
The value of position cuts whether stream dimension comes into force for indicating this.In this step, each marker cut in stream instruction, root can be traversed
Determine which is cut stream dimension and comes into force according to the value of marker.For example, " product ", " trade company " the two cut stream dimension come into force.
In step 204, stream is cut described in inquiry and instructs corresponding mapping relations, and the mapping relations include: described to cut stream
Each in instruction, which cuts stream dimension is corresponding, cuts flow content, corresponded to described in come into force cut flow dimension cut flow content.
It in this step, cuts stream and instructs corresponding mapping relations can be as shown in table 1, which includes cutting stream instruction
In it is each cut stream dimension be corresponding cuts flow content, for example, cutting the corresponding flow content of cutting of stream dimension " product " is " product 1 ", cut
Flowing dimension " trade company " corresponding flow content of cutting is " trade company 1 ".
In step 206, it requests to meet to cut flow content if current business executes, executes new business process.
In this step, if the business information of target service, which meets, is cut flow content, new industry can be executed to target service
Business process.For example, that indicates that target if the target service that request executes is the business of product 1 and the business of trade company 1
The business information of business, which meets, cuts flow content, or alternatively business execution requests to meet to cut flow content, can be according to new industry
Business process executes the business;Otherwise, business can be executed according to old operation flow.
The switching method of the operation flow of this example, by separating the configuration for cutting stream instruction and the configuration for cutting flow content
It opens, not only makes the modification for cutting stream instruction more efficient and convenient, the treatment effeciency of process switching is improved, but also this cut stream
The configuration mode of instruction can be adapted for several scenes, have more versatility.
In this specification one or more embodiment, the above-mentioned each marker cut in stream instruction, can also include: leakage
Struggle against identification bit sequence, and the corresponding stream dimensional extent of cutting of each marker in the funnel identification bit sequence successively reduces.Wherein, institute
The characteristics of " the funnel identification bit sequence " stated is a kind of description of visualization, this identification bit sequence is as follows:
It is shown in Figure 3, it is assumed that marker 1 to marker n is a funnel identification bit sequence, the mark in the sequence
The corresponding stream dimensional extent of cutting in position successively reduces.Illustratively, it can be and from left to right successively reduce the scope, for example, marker 1
Correspond to it is maximum cut stream dimensional extent, marker 2 cuts that stream dimensional extent is slightly smaller, marker 3 to cut stream dimensional extent small again
It is some, until marker n successively becomes smaller.
Wherein, it is described cut stream dimensional extent and successively reduce may is that for example, one kind is exemplary gradually smaller to cut stream dimension
Range is product line > product type > trade company, and can be includes multiple product types, a product type in a product line
It may include multiple trade companies under number, i.e., the type product is all sold by multiple trade companies.
Stream instruction is cut using above-mentioned funnel identification bit sequence, can be adapted for following cutting flow field scape: if a certain
Business meet it is certain cut stream condition, then execute the business using new business process;Otherwise, if the business be unsatisfactory for it is described
Stream condition is cut, executes the business using old operation flow.Wherein, the described stream condition of cutting is according to funnel shaped in setting
The mode that range successively reduces is set, for example, when singly cutting stream dimension control, as long as can be the business for meeting product 1, all
Use new business process.In another example can be when cutting stream dimension control more and not only meet product 1 but also meet trade company 1, it is full simultaneously
The two conditions of foot just use new business process.
Fig. 4 is the flow chart of the switching method for the operation flow that at least one embodiment of this specification provides, which can
Suitable for cutting stream using the stream instruction of cutting of funnel identification bit sequence to control.May include:
In step 400, it receives business and executes request.
In step 402, stream instruction is cut in parsing, obtains a marker in funnel identification bit sequence.
For example, can be originated by the corresponding marker of stream dimensional extent of cutting maximum in funnel identification bit sequence, successively time
Go through each marker.Such as in the example in figure 3, the value for cutting leftmost marker 1 in stream instruction can be obtained first.
In step 404, judge that marker is corresponding and cut whether stream dimension comes into force.
If come into force, step 406 is continued to execute.
If Pending The Entry Into Force, confirm that traversal terminates, directly execution step 412.For example, the head of funnel identification bit sequence
Bit identification position default comes into force.
In a step 406, inquiry cuts stream and instructs corresponding mapping relations, obtain come into force cut stream dimension be corresponding and cut in stream
Hold.For example, can be with inquiry table 1, obtaining the corresponding flow content of cutting of product dimension is " product 1 ", and trade company's dimension is corresponding to cut in stream
Appearance is " trade company 1 ".
In a step 408, judge current business execution request cuts flow content described in whether meeting.
If meeting, and each marker is not traversed also, has then returned and continue to execute step 402, has obtained adjacent next
It is a to cut the stream lesser marker of dimensional extent.If meeting and having stepped through each marker terminates, step 412 is continued to execute.
If not meeting, 410 are thened follow the steps.
In step 412, business is executed using old operation flow.
In the process of above-mentioned Fig. 4, the form for cutting stream instruction used can be digit strings, and each marker is not using
Whether the same corresponding switching dimension of digital representation comes into force.For example, cutting stream instruction can be 111111, wherein digital " 1 " indicates
This is cut stream dimension and comes into force, and digital " 0 " expression cuts stream dimension and do not come into force.
In addition, cutting stream instruction can also be such as 111000.When using process shown in Fig. 4 parse this cut stream instruction when,
If traverse the 4th marker, the value of the 4th marker is " 0 ", indicates corresponding and cuts stream dimension Pending The Entry Into Force, this
When can be confirmed that traversal terminates.Meanwhile the corresponding stream dimension of cutting of three markers " 111 " of front is all effective, and corresponding
Flow content of cutting meet current business and execute request, business can be executed according to new business process.
In the switching method for the operation flow that at least one embodiment of this specification provides, each mark in stream instruction is cut
Position may not be funnel identification bit sequence.For example, the corresponding stream dimension of cutting of each marker cut in stream instruction can be simultaneously
Column relationship, parsing cut stream instruction when, all markers can be traversed, according to the value of marker acquisition wherein come into force to
Few one is cut stream dimension, obtains cutting stream further according to mapping relations dimension is corresponding and cut flow content.If business, which executes request, meets institute
Some cuts flow content, then uses the business of new business flow execution request;Otherwise, flow content is cut if not meeting, uses old business
Process.
In other examples, different business can also cut stream instruction using different-format, for example, for business
S1, the stream of cutting for configuring a kind of format instruct, and for business S2, configure another format cuts stream instruction.Following 3 example of table,
It may include three markers that business S1 was used, which cuts stream instruction, corresponds to three and cuts stream dimension;And the stream of cutting of business S2 instructs
It may include four markers, corresponding four are cut stream dimension.Also, every kind of configuration can be defined by cutting in stream dimension library cuts stream instruction
In each stream dimension of cutting cut flow content.
Table 3 cuts stream dimension library and corresponding stream of cutting instructs
Fig. 5 is the service flow process switching method that at least one embodiment of this specification provides, and this method is with more shown in table 3
Seed type cut stream instruction for.May include:
In step 500, receive preset value cut stream instruction and the stream of cutting instructs corresponding service identification.
For example, it is assumed that being the switching for being responsible for executing operation flow by the switching equipment of operation flow, which be can receive
Business executes request, and the switching method that can execute this specification embodiment is determined using new business process or old Business Stream
The corresponding business of Cheng Zhihang.
It can be pre-configured in the switching equipment and cut stream instruction, instruct corresponding business and it is possible to configure this and cut stream
Mark.When switching equipment receive the service identification business execute request when, obtain it is corresponding cut stream instruction judge whether
New business process is executed to the business.
There is corresponding relationship in addition it is also possible to be arranged and cut stream instruction and the other information except service identification.
In step 502, it receives business and executes request, the business executes the business mark for carrying target service in request
Know.For example, business, which executes in request, can carry service identification.The available service identification such as S1 of this step.
In step 504, according to service identification, obtain the corresponding mark cuts stream instruction.
It is instructed for example, can store a plurality of stream of cutting in the switching equipment of operation flow, different instructions can correspond to not
Same service identification, for executing the selection for carrying out the old and new's operation flow when request in the business for receiving different business.This
In step, switching equipment can obtain corresponding stream of cutting according to the service identification got in step 502 and instruct.
In step 506, it parses this and cuts stream instruction, cut stream dimension according to what the acquisition of the value of marker came into force.
For example, each marker cut in stream instruction can be traversed, what is come into force cuts stream dimension.
In step 508, it is executed according to business and requests corresponding service identification, stream dimension library is cut in inquiry, obtains the business
Identify corresponding mapping relations.
It also can store multiple groups mapping relations likewise, cutting in stream dimension library, for example, such as the example of table 3, one group of mapping
Relationship corresponds to service identification S1, and another group of mapping relations correspond to service identification S2.Different mapping relations can correspond to not apposition
Formula cuts stream instruction, and cutting the mark bit quantity of stream instruction or cut the corresponding flow content of cutting of stream dimension can be different.This step
In the corresponding mapping relations of available service identification S1.
In step 510, by the stream of cutting that is come into force in the mapping relations, dimension is corresponding cuts flow content.
For example, may include: the contents such as product 1+ trade company 1 according to the available flow content of cutting of mapping relations.
In step 512, it requests to meet to cut flow content if current business executes, executes new business process.
For example, it is that can then execute new service flow for the request of the trade company 1 under product 1 that current business, which executes request,
Journey;Otherwise, using old operation flow.
The switching method of the operation flow of this example is instructed, Ke Yifang by the way that different stream of cutting is arranged for different business
Just it carries out cutting the management of stream condition, also, is separated by that will cut stream instruction and cut flow content, and formed using marker value
Stream instruction is cut, so that the generation for cutting stream instruction is simpler, the modification for cutting stream instruction is also more convenient.
Fig. 6 is the structural schematic diagram of the switching device for the operation flow that at least one embodiment of this specification provides, such as Fig. 6
It is shown, the apparatus may include: request receiving module 61, command analysis module 62, content determination module 63 and process determine mould
Block 64.
Request receiving module 61 executes request to the business of target service for receiving, and the business executes request and carries:
The business information of the target service;
Command analysis module 62, the stream of cutting for parsing the operation flow for determining the target service are instructed, are obtained
What is come into force cuts stream dimension;It is described that cut stream instruction include: multiple markers, wherein each marker corresponding one is cut stream dimension, and
The value of the marker cuts whether stream dimension comes into force for indicating corresponding;
Content determination module 63 instructs corresponding mapping relations for inquiring the stream of cutting, and the mapping relations include: institute
Cut in stream instruction each is stated to cut stream dimension is corresponding cuts flow content, corresponded to described in come into force cut and flow the cutting in stream of dimension
Hold;
Process determining module 64, for the business information of the target service meet it is described cut flow content when, to target
Business executes new business process.
In one example, content determination module 63 are specifically used for: cutting stream dimension by maximum in funnel identification bit sequence
Range corresponding marker starting, if the corresponding stream dimension of cutting of the marker comes into force, and what is come into force cuts stream dimension is corresponding and cut
Flow content executes request with current business and meets, then continues to judge adjacent next marker;It is described to cut in stream instruction
Multiple markers, comprising: funnel identification bit sequence, each marker in the funnel identification bit sequence is corresponding to cut stream dimension
Range successively reduces.
The process determining module 64, is specifically used for: if the stream dimension of cutting to come into force in the funnel identification bit sequence corresponds to
Cut flow content and current business execute request and meet, request is executed to business and executes new business process.
In one example, it is described cut stream instruction be digit strings, each marker using different digital representations this
Switching dimension comes into force or Pending The Entry Into Force.
In one example, command analysis module 62 are also used to: according to the corresponding service identification of the target service, being obtained
Take the corresponding mapping relations of the service identification.
The device or module that above-described embodiment illustrates can specifically realize by computer chip or entity, or by having
The product of certain function is realized.A kind of typically to realize that equipment is computer, the concrete form of computer can be personal meter
Calculation machine, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media player, navigation are set
It is any several in standby, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
For convenience of description, it is divided into various modules when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each module can be realized in the same or multiple software and or hardware when specification one or more embodiment.
Each step in above-mentioned process as shown in the figure, execution sequence are not limited to the sequence in flow chart.In addition, each
The description of a step can be implemented as software, hardware or its form combined, for example, those skilled in the art can be by it
It is embodied as the form of software code, can is the computer executable instructions that can be realized the corresponding logic function of the step.
When it is realized in the form of software, the executable instruction be can store in memory, and by the processor in equipment
It executes.
For example, corresponding to the above method, this specification one or more embodiment provides a kind of cutting for operation flow simultaneously
Exchange device, the equipment may include processor, memory and storage on a memory and the calculating that can run on a processor
Machine instruction, the processor is by executing described instruction for realizing following steps:
It receives and request is executed to the business of target service, the business executes request and carries: the business of the target service
Information;
Parse the operation flow for determining the target service cuts stream instruction, and what is come into force cuts stream dimension;It is described
Cutting stream instruction includes: multiple markers, wherein each marker corresponding one is cut stream dimension, and the value of the marker is used for
It indicates corresponding and cuts whether stream dimension comes into force;
Cut stream described in inquiry and instruct corresponding mapping relations, the mapping relations include: it is described cut it is each in stream instruction
Cutting stream, dimension is corresponding cuts flow content, corresponded to described in come into force cut flow dimension cut flow content;
If the business information of the target service cuts flow content described in meeting, new service flow is executed to the target service
Journey.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, trade company or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, trade company or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, trade company or equipment.
It will be understood by those skilled in the art that this specification one or more embodiment can provide as method, system or calculating
Machine program product.Therefore, this specification one or more embodiment can be used complete hardware embodiment, complete software embodiment or
The form of embodiment combining software and hardware aspects.Moreover, this specification one or more embodiment can be used at one or
It is multiple wherein include computer usable program code computer-usable storage medium (including but not limited to magnetic disk storage,
CD-ROM, optical memory etc.) on the form of computer program product implemented.
This specification one or more embodiment can computer executable instructions it is general on
It hereinafter describes, such as program module.Generally, program module includes executing particular task or realization particular abstract data type
Routine, programs, objects, component, data structure etc..Can also practice in a distributed computing environment this specification one or
Multiple embodiments, in these distributed computing environments, by being executed by the connected remote processing devices of communication network
Task.In a distributed computing environment, the local and remote computer that program module can be located at including storage equipment is deposited
In storage media.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.At data
For managing apparatus embodiments, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to side
The part of method embodiment illustrates.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims
It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment
It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable
Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can
With or may be advantageous.
The foregoing is merely the preferred embodiments of this specification one or more embodiment, not to limit this theory
Bright book one or more embodiment, all within the spirit and principle of this specification one or more embodiment, that is done is any
Modification, equivalent replacement, improvement etc. should be included within the scope of the protection of this specification one or more embodiment.