A kind of visual service flow debugging method and system
Technical field
The invention belongs to communication technical field, be specifically related to a kind of visual service flow debugging method and system.
Background technology
Along with mobile network's high speed development, increasing value-added telecom services appear, and except traditional short message service, MMS, Ring Back Tone service, also visual telephone, mobile TV etc. can appear.The development of these value-added telecom services has promoted the development of business software again.Business software is exactly a series of software products that are born in order to realize value-added telecom services, is the fusion of telecommunications and IT, and wherein, business software has following characteristic:
It is integrated that business software relates to numerous outsourcing pieces, for example main frame, operating system, database and the network equipment etc.;
Have the standard interface of supporting the related protocol standard between the network element of business software and other core net or other business softwares, networking has dirigibility.Generally; Use the business software of different manufacturers to form a complete value-added telecom services network during networking; Unified value-added telecom services service is provided, but, goes wrong in the time of can causing system integration and test because there is deviation in each producer to the understanding of agreement.
At present, there is different types of business software, and the corresponding a kind of value-added telecom services of each type business software; The systematic parameter configuration of business software and the branch of operation flow are various; In order to satisfy client's (operator) different demands; Mainly come the function and the operation flow branch of control system,, safeguard comparatively difficulty though strengthened adaptability like this through the mode of configuration-system switch.
Just because of the continuous change of the personalized customized and business demand of business software, cause in operational process, occurring easily difficult fault.These faults are difficult to handle.Usually have two kinds of methods to handle:
Method one: the research staff is given in configuration data that user feedback is on-the-spot and daily record, lets the research staff build test environment in company and carries out trace debug.After this; The research staff need be put into the source code of business software on the test machine, and the trace debug function through programming tool provides is provided with breakpoint at suspicious code place; Single step trace debug then can also real time inspection and the business datum of revising in the service operation process in debug process.
Though existing method can be dealt with problems, there is following shortcoming in it: the personnel that relate to are numerous to comprise customer service and tester and research staff; The step that relates to is returned situ configuration numerous comprising, builds test environment, copy business software source code etc.; Consumed time is longer, because the equipment that service software system relates to is a lot, build the inevitable labor time of a set of environments.
Method two: direct environmental structure test and debugging environment at the scene copies system source code to scene and carries out the code level debugging.
Adopt this method can the fastest handling failure.But since directly at the scene operating environment build the test and debugging environment, can cause the client normally the business of runing be affected, and reduced the image of Company products in the client greatly.
Can find out that existing method is to Fault Processing underaction and complete, rapidly and efficiently orientation problem.
Summary of the invention
The problem that the present invention will solve is to overcome prior art a kind of visual service flow debugging method and system are provided, and can debug operation flow quickly and easily, and system operation is simple, accurate positioning, has improved user's experience.
For realizing above-mentioned purpose, technical scheme provided by the invention is: a kind of visual service flow debugging method comprises step:
Service software system judges according to the debugging message that receives whether the business when pre-treatment satisfies the debugging Rule of judgment; If satisfy then suspend operation, and be packaged into debugging message to the business datum in this business processing process and send to visible service flow tracing system VSFTS in debugging breakpoint corresponding service flow nodes;
Receive the replacement message that VSFTS sends over, take out the business datum replacement legacy data in the replacement message, and continue operation since the corresponding flow nodes of the debugging breakpoint of last time.
The embodiment of the invention, said method also comprises step:
After service software system is suspended operation, timer is set, is saved in buffer zone to business datum,, then from buffer area, take out and business normally to continue operation in debugging breakpoint corresponding service flow nodes if timer is then also confiscated the replacement order of VSFTS.
The embodiment of the invention, said method also further comprise step:
After service software system receives the replacement order, the deletion timer, the business datum of revising user terminal replaces to original business datum, and continues operation since the corresponding flow nodes of the debugging breakpoint of last time.
A kind of visible service flow tracing system comprises:
The debugging management module, the operation flow breakpoint that is used to receive the input of presentation layer user terminal is provided with the information of page setup, and group is bundled into debugging message, sends to service software system then; Receive the business datum that service software system is sent, offer presentation layer, supply user terminal that business datum is edited, the amended data message of the presentation layer debugging page, group is bundled into debugging message and sends to service software system then.
The embodiment of the invention; Said system also comprises top control module and message coding/decoding module; After the message block that said debugging management module is provided with page setup to the operation flow breakpoint that receives the input of presentation layer user terminal is bundled into debugging message, send to top control module, top control module is transmitted to the message coding/decoding module to debugging message again; The message coding/decoding module is encoded to standard debug message to debugging message, and sends to service software system;
After service software system receives debugging message; Judge whether the business when pre-treatment satisfies the debugging Rule of judgment; If satisfy then suspend operation, and be packaged into debugging message to the business datum in this business processing process and send to top control module in debugging breakpoint corresponding service flow nodes; Top control module is transmitted to the message coding/decoding module to debugging message again; The message coding/decoding module is encoded to standard debug message to debugging message; And sending to the debugging management module, the debugging management module offers presentation layer, supplies user terminal that business datum is edited;
The debugging management module is the amended data message of the presentation layer debugging page; Group is bundled into debugging message and sends to top control module; Top control module sends replacement message and gives the message coding/decoding module, and the message coding/decoding module is the replacement message coding replacement message of standard, sends to service software system; Service software system is taken out the business datum replacement legacy data in the replacement message, and suspend that flow nodes begins to continue to carry out should business.
A kind of visible service flow debug system comprises user terminal, visible service flow tracing system VSFTS and service software system, wherein,
After service software system receives the debugging message of user terminal input; Judge whether the business when pre-treatment satisfies the debugging Rule of judgment; If satisfy then suspend operation, and be packaged into debugging message to the business datum in this business processing process and send to VSFTS in debugging breakpoint corresponding service flow nodes; VSFTS is presented at user terminal for modification through the mode that the page shows; VSFTS is amended data message, and group is bundled into replacement message, sends to service software system, and service software system is taken out the business datum replacement legacy data in the replacement message, and suspend that flow nodes begins to continue to carry out should business.
The embodiment of the invention, said VSFTS comprises presentation layer and application layer, presentation layer provides the operation flow breakpoint that the page is set, and is used to supply user terminal selecting operation flow and concrete flow nodes, imports concrete trace debug Rule of judgment; The debugging page is provided, is used to supply user terminal that business datum is edited;
Application layer comprises the debugging management module, and said debugging management module is used to receive the presentation layer user terminal and at the operation flow breakpoint information that is provided with that the page is imported is set, and group is bundled into debugging message, sends to service software system then; Receive the business datum that service software system is sent, offer presentation layer, supply user terminal that business datum is edited, the amended data message of the presentation layer debugging page, group is bundled into replacement message and sends to service software system then.
The embodiment of the invention; Said application layer also comprises top control module and message coding/decoding module; After the message block that said debugging management module is provided with page setup to the operation flow breakpoint that receives the input of presentation layer user terminal is bundled into debugging message, send to top control module, top control module is transmitted to the message coding/decoding module to debugging message again; The message coding/decoding module is encoded to standard debug message to debugging message; And send to service software system, service software system is suspended operation in debugging breakpoint corresponding service flow nodes when the business when pre-treatment satisfies the trace debug Rule of judgment, and return business datum;
Top control module receives the business datum returned by service software system and business datum is transmitted to the message coding/decoding module; The message coding/decoding module is transmitted to the debugging management module after business datum is encoded; Business datum after the debugging management module will be encoded offers presentation layer, supplies user terminal that business datum is edited;
The debugging management module is the amended data message of the presentation layer debugging page; Group is bundled into replacement message and sends to top control module; Top control module sends replacement message and gives the message coding/decoding module, and the message coding/decoding module is the replacement message coding replacement message of standard, sends to service software system; Make service software system will replace the business datum replacement legacy data in the message, and suspend that flow nodes begins to continue to carry out should business.
A kind of visual service flow debugging method comprises step:
Visible service flow tracing system VSFTS receives the operation flow node and the tracking condition of user terminal input; And with the operation flow node of user terminal appointment as the debugging breakpoint; The tracking condition of user terminal input is as the debugging Rule of judgment; To debug breakpoint then and be packaged into debugging message and send to service software system, and make service software system return the current business datum of managing business that satisfies the debugging Rule of judgment with the debugging Rule of judgment;
VSFTS receives the business datum of service software system feedback, and the mode that shows through the page is presented at user terminal for modification;
VSFTS makes service software system send the business datum of returning to VSFTS and replaces original business datum amended business datum is sent it back to service software system.
The embodiment of the invention, said debugging message comprises: system identifier, flow process ID, node ID,
Traffic ID and business datum.
Compared with prior art; Visible service flow debug system provided by the invention; Increase the operation flow breakpoint at presentation layer the page and the debugging page are set, breakpoint is provided with the page and is used to supply user terminal selecting operation flow and concrete flow nodes, the concrete Rule of judgment of input trace debug; The debugging page is used to supply user terminal that business datum is edited.Comprise in application layer and increase the debugging management module on the basis of top control module, message coding/decoding module, process flow diagram administration module, database management module and system management module; Make visible service flow debug system provided by the invention can debug operation flow fast, easily; Than prior art; This system operation is simple, accurate positioning, has improved user's experience.
Description of drawings
Fig. 1 is the structured flowchart of a kind of visible service flow debug system of providing of the embodiment of the invention;
Fig. 2 is the process flow diagram of a kind of visual service flow debugging method of providing of the embodiment of the invention;
Fig. 3 is the detailed process process flow diagram of a kind of visual service flow debugging method of providing of the embodiment of the invention.
Embodiment
Below through concrete embodiment and combine accompanying drawing that the present invention is described in further detail.
Main thought of the present invention is: at existing visible service flow tracing system (Visual ServiceFlow Trace System; Abbreviation VSFTS) on the function basis that possesses; On presentation layer, having increased provides the operation flow breakpoint that the page and the debugging page are set; Wherein, breakpoint is provided with the page and is used to supply user terminal selecting operation flow and concrete flow nodes, the concrete Rule of judgment of input trace debug; Provide the debugging page to be used to supply user terminal that business datum is edited.Comprise in application layer and increase the debugging management module on the basis of top control module, message coding/decoding module, process flow diagram administration module, database management module and system management module; Make visible service flow debug system provided by the invention can debug operation flow fast, easily; Than prior art; This system operation is simple, accurate positioning, the experience that has improved user terminal.
See also shown in Figure 1ly, a kind of visible service flow tracing system that Fig. 1 provides for the embodiment of the invention, system comprise client 1, VSFTS 2 and service software system 3.VSFTS 2 comprises: presentation layer 20, application layer 21 and database layer 22.Wherein, presentation layer 20 can realize that presentation layer 20 mainly possesses following function through JSP (JavaServer Pages): log-in interface is provided, is used for user terminal input username and password so that carry out system check; The configuration modification interface is provided, and all configurations of system can be revised in the power user terminal that is used for system, for example create the general user terminal and safeguard data that process flow diagram is relevant etc.; The tracking operation interface is provided; Be used for the business that user terminal selecting need be followed the tracks of; After selecting to begin tracking, CS information is sent to application layer, and be transmitted to the business software of being followed the tracks of by application layer; This tracking operation interface also is used to receive the process flow diagram information from application layer, and is plotted on the page and supplies the user to watch; Provide the operation flow breakpoint that the page is set, be used to supply user terminal selecting operation flow and concrete flow nodes, the concrete Rule of judgment of input trace debug; The debugging page is provided, is used to supply the user that business datum is edited.
Application layer 21 can realize that it mainly comprises top control module 210, message coding/decoding module 211, process flow diagram administration module 212, database management module 213, system management module 214 and debugging management module 215 through JAVA.
Said debugging management module 215 is receiving presentation layers 20 user terminals after the operation flow breakpoint is provided with message block being set being bundled into debugging message of page input; Send to top control module 210; Top control module 210 is transmitted to message coding/decoding module 211 to debugging message again; Message coding/decoding module 211 is encoded to standard debug message (being the standard format message that service software system can be discerned) to debugging message, and sends to service software system 3.
After service software system 3 receives debugging message; Judge whether the business when pre-treatment satisfies the debugging Rule of judgment; If satisfy then suspend operation, and be packaged into debugging message to the business datum in this business processing process and send to top control module 210 in debugging breakpoint corresponding service flow nodes; Top control module 210 is transmitted to message coding/decoding module 211 to debugging message again; Message coding/decoding module 211 is encoded to standard debug message to debugging message; And sending to debugging management module 215, debugging management module 215 offers presentation layer 20, supplies user terminal that business datum is edited.Then; Debugging management module 215 is the amended data message of the presentation layer 20 debugging pages, and group is bundled into replacement message and sends to top control module 210, and top control module 210 sends replacement message and gives message coding/decoding module 211; Message coding/decoding module 211 is the replacement message coding replacement message of standard; Send to service software system 3, service software system 3 is taken out the business datum replacement legacy data in the replacement message, and suspend that flow nodes begins to continue to carry out should business.
Through the visible service flow debug system that the embodiment of the invention provides, can debug operation flow fast, easily, compare prior art, this system operation is simple, accurate positioning, has improved user's experience.
See also shown in Figure 2ly, Fig. 2 is the process flow diagram of a kind of visual service flow debugging method of providing of the embodiment of the invention, and this method may further comprise the steps:
Step 201:VSFTS as the debugging breakpoint, is debugging Rule of judgment according to the tracking condition of user terminal input according to the operation flow node of user terminal appointment, and dresses up debugging message to these packets of information and send to service software system; For example debug Rule of judgment and can be subscriber phone number;
Step 202: service software system is in the normal process business procedure; Judge whether the business when pre-treatment satisfies the debugging Rule of judgment; If satisfy then suspend operation, and send to VSFTS to the key business data in this business processing process in debugging breakpoint corresponding service flow nodes; Service software system continues to handle other business afterwards;
Step 203:VSFTS is shown to user terminal to the mode of business datum through the page and checks and revise;
Step 204: after modification finished, VSFTS sent it back business datum to service software system;
Step 205: service software system is replaced original business datum sending the business datum of returning, and continues operation since the corresponding flow nodes of the debugging breakpoint of last time.
Through the visual service flow debugging method that the embodiment of the invention provides, can debug operation flow fast, easily, compare prior art, simple to operate, the accurate positioning of this method has improved user's experience.
See also shown in Figure 3ly, Fig. 3 is the detailed process process flow diagram of a kind of visual service flow debugging method of providing of the inventive method embodiment.As shown in Figure 3, this method may further comprise the steps:
Step 301: the operation pages that user terminal provides through VSFTS selects the idiographic flow node as the debugging breakpoint, and input debugging condition;
Step 302:VSFTS is encoded into the user terminal input information debugging message and sends to service software system;
Step 303: service software system begins to monitor current all business, when certain bar business of discovery satisfies the debugging condition, then stops the execution of this business in the corresponding flow nodes of debugging breakpoint, is saved in service related data in the buffer zone, and timer is set;
Step 304: the business datum group during service operation that service software system monitors step 303 is bundled into debugging message and sends to VSFTS.After transmission finishes, handle other business.Further, debugging message comprises: system identifier, flow process ID, node ID, traffic ID and business datum;
After step 305:VSFTS received debugging message, the form through the page was presented at user terminal, and wherein business datum can be made amendment;
Step 306: user terminal can be revised service data information through the page, and submits to VSFTS;
After step 307:VSFTS receives the business datum of user terminal submission, be encoded into the replacement information and sending and give service software system;
Step 308: service software system is sought its corresponding service through traffic ID after receiving replacement message in native system, after finding, and the deletion timer.Revise the original business datum of business datum replacement later to user terminal, and should business from the execution of debugging breakpoint succession.
Further, for step 303, after service software system is suspended operation, timer can be set.If service software system is not also received the replacement message of VSFTS after timer expiry, then from buffer area, take out this business and normally issue.For example: timer is set to 10 minutes, if timer is just represented timer expiry after 10 minutes.
Through the visual service flow debugging method that the embodiment of the invention provides, can debug operation flow fast, easily, compare prior art, simple to operate, the accurate positioning of this method has improved user's experience.
In sum; Visible service flow debug system provided by the invention and method; Through increase the operation flow breakpoint at presentation layer the page and the debugging page are set; Breakpoint is provided with the page and is used to supply user terminal selecting operation flow and concrete flow nodes, the concrete Rule of judgment of input trace debug; The debugging page is used to supply user terminal that business datum is edited.Comprise in application layer and increase the debugging management module on the basis of top control module, message coding/decoding module, process flow diagram administration module, database management module and system management module; Make visible service flow debug system provided by the invention can debug operation flow fast, easily; Compare prior art; This system operation is simple, accurate positioning, has improved user's experience.
Above content is to combine concrete preferred implementation to the further explain that the present invention did, and can not assert that practical implementation of the present invention is confined to these explanations.For the those of ordinary skill of technical field under the present invention, under the prerequisite that does not break away from the present invention's design, can also make some simple deduction or replace, all should be regarded as belonging to protection scope of the present invention.