CN103530744A - Configuration business handling flow method and device - Google Patents

Configuration business handling flow method and device Download PDF

Info

Publication number
CN103530744A
CN103530744A CN201310543203.0A CN201310543203A CN103530744A CN 103530744 A CN103530744 A CN 103530744A CN 201310543203 A CN201310543203 A CN 201310543203A CN 103530744 A CN103530744 A CN 103530744A
Authority
CN
China
Prior art keywords
message
return
business
unit
response message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310543203.0A
Other languages
Chinese (zh)
Other versions
CN103530744B (en
Inventor
李勃
熊刚
徐华胜
罗建军
姚国东
胡李伟
陈海宣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Telefonaktiebolaget LM Ericsson AB
Original Assignee
SUNRISE TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SUNRISE TECHNOLOGY Co Ltd filed Critical SUNRISE TECHNOLOGY Co Ltd
Priority to CN201310543203.0A priority Critical patent/CN103530744B/en
Publication of CN103530744A publication Critical patent/CN103530744A/en
Application granted granted Critical
Publication of CN103530744B publication Critical patent/CN103530744B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a configuration business handling flow method and a configuration business handling flow device. The method comprises the steps as follows: acquiring to-be-configured business operation; determining an interface command word corresponding to the to-be-configured business operation according to a preset corresponding relationship of the business operation and the interface command word; selecting a request message and a respond message corresponding to the to-be-configured business operation in a pre-established module library according to the interface command word, wherein the module library is provided with the request message and the respond message corresponding to each business operation; analyzing the request message and the respond message to respectively acquire the sending parameters of the request message and the return information of the respond message; selecting a corresponding acquiring method for each sending parameter according to the type of the sending parameter; determining a corresponding processing result for each return information. The module library pre-established in the method provided by the invention can achieve the repeated use of the business handling code, and the storage resources are saved.

Description

A kind of configuration service is accepted method and the device of flow process
Technical field
The application relates to field of software development, and especially a kind of configuration service is accepted method and the device of flow process.
Background technology
Ecommerce typically refers in the commerce and trade activity widely of all parts of the world, the Internet Transmission channel based on open, and both parties do not carry out various transactions with meeting.The various products that the telecommunication operators such as commmunication company, CHINAUNICOM, telecommunications company are released, as 88 yuan of local set meals of Global Link of commmunication company's release tariff package class, 5 yuan of GPRS month set meals of online set meal class etc., belong to virtual goods, can apply described ecommerce mode and conclude the business.Process of exchange is, e-commerce website is by after the product issue of telecommunication operators, and client submits and orders or quit the subscription of request in described website, and described website reception described request is also carried out service handling operation according to service handling flow process.
Described service handling operation refers to, website is to the BOSS(Bussiness Operation Support System of telecommunication operators, business operation support system) send request message, so that described BOSS returns to response message, the described response message of described website foundation is corresponding processing result information for user returns.
In prior art, e-commerce website is issued before each product, needs respectively for each product development service handling flow process independently, and described overlapping development process causes code repeated storage, thus waste storage resources.
Summary of the invention
In view of this, method and device that the application provides a kind of configuration service to accept flow process, need develop corresponding service handling flow process in order to solve in prior art for every product, thus the problem of the code repeated storage causing waste storage resources.The application's technical scheme is as follows:
Configuration service is accepted a method for flow process, comprising:
Obtain business to be configured operation;
According to the corresponding relation of predefined business operation and interface command word, determine and operate corresponding interface command word with described business to be configured;
According to described interface command word, in the module library of setting up in advance, select to operate corresponding request message and response message with described business to be configured; Wherein, in described module library, be provided with the request message corresponding with each business operation and response message;
Resolve described request message and described response message, obtain respectively the transmission parameter of described request message and the return message of described response message, the number of described transmission parameter and return message can have respectively one or more;
According to the type of described transmission parameter, for sending parameter, described each select corresponding acquisition methods;
For described each return message is determined corresponding result.
Preferably, described business to be configured operation comprises: mutual exclusion query manipulation, order query manipulation, order operate or quit the subscription of operation.
Preferably, when described business to be configured action type is mutual exclusion query manipulation or while ordering query manipulation, the return message of described response message comprises return parameters, describedly for described each return message, determine corresponding result, comprising:
Obtain the judgement numerical value corresponding with described return parameters;
Select the judgment rule between described return parameters and described judgement numerical value.
Preferably, when described business to be configured action type is when ordering action type or quitting the subscription of action type, the return message of described response message comprises return code, describedly for described each return message, determines corresponding result, comprising:
For described each return code is selected the corresponding information that returns results.
Configuration service is accepted a device for flow process, comprising:
Obtain operating unit, for obtaining business to be configured operation;
Determine command word unit, for the corresponding relation according to predefined business operation and interface command word, determine and operate corresponding interface command word with described business to be configured;
Select message unit, for according to described interface command word, in the module library of setting up in advance, select to operate corresponding request message and response message with described business to be configured; Wherein, in described module library, be provided with the request message corresponding with each business operation and response message;
Analytic message unit, for resolving described request message and described response message, obtains respectively the transmission parameter of described request message and the return message of described response message, and the number of described transmission parameter and return message can have respectively one or more;
Select to send parameter unit, for the type according to described transmission parameter, for described each sends parameter, select corresponding acquisition methods;
Determine result unit, be used to described each return message to determine corresponding result.
Preferably, described acquiring unit comprises:
The first acquiring unit, for obtaining the operation of mutual exclusion inquiry business;
Second acquisition unit, orders inquiry business operation for obtaining;
The 3rd acquiring unit, for obtaining order business operation;
The 4th acquiring unit, quits the subscription of business operation for obtaining.
Preferably, the return message of described response message comprises return parameters and/or return code, and described definite result unit comprises:
Obtain judgement numerical value unit, be connected with described the first acquiring unit, described second acquisition unit respectively, for obtaining the judgement numerical value corresponding with described return parameters;
Select judgment rule unit, for selecting the judgment rule between described return parameters and described judgement numerical value;
Obtain information unit, be connected with described the 3rd acquiring unit, described the 4th acquiring unit respectively, be used to described each return code to select the corresponding information that returns results.
From above technical scheme, method and device that the application provides a kind of configuration service to accept flow process, the method comprises: obtain business to be configured operation; According to the corresponding relation of predefined business operation and interface command word, determine and operate corresponding interface command word with described business to be configured; According to described interface command word, in the module library of setting up in advance, select to operate corresponding request message and response message with described business to be configured; Wherein, in described module library, be provided with the request message corresponding with each business operation and response message; Resolve described request message and described response message, obtain respectively the transmission parameter of described request message and the return message of described response message, the number of described transmission parameter and return message can have respectively one or more; According to the type of described transmission parameter, for sending parameter, described each select corresponding acquisition methods; For described each return message is determined corresponding result.In prior art, for each product is developed respectively independently business processing flow, identical code repeated storage in described each business processing flow, and the method that the application provides is set up module library in advance, in described module library, be set with the request message corresponding with each business operation and response message, by configuring the corresponding relation between each product business operation and message corresponding in described module library, the configuration of finishing service treatment scheme.The multiplexing of business processing code can be realized in the module library of setting up in advance in the method that the application provides, and saved storage resources.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present application, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiment of the application, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
A kind of configuration service that Fig. 1 provides for the application is accepted the process flow diagram of flow and method embodiment mono-;
A kind of configuration service that Fig. 2 provides for the application is accepted the process flow diagram of flow and method embodiment bis-;
A kind of configuration service that Fig. 3 provides for the application is accepted the process flow diagram of flow and method embodiment tri-;
A kind of configuration service that Fig. 4 provides for the application is accepted the structural representation of flow path device embodiment tetra-;
A kind of configuration service that Fig. 5 provides for the application is accepted the structural representation of flow path device embodiment five.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only the application's part embodiment, rather than whole embodiment.Embodiment based in the application, those of ordinary skills are not making the every other embodiment obtaining under creative work prerequisite, all belong to the scope of the application's protection.
The product of the telecommunication service operation companies such as commmunication company, CHINAUNICOM or telecommunications company is before being published to website and ordering or quit the subscription of for client, need configuration service to accept flow process, described service handling flow process comprises mutual exclusion inquiry, orders inquiry, orders and quit the subscription of.The service handling flow process of product completes after configuration and just can be published in website and select for user.The product that described configuration completes is published to behind website, and the available action that is shown to user has to be ordered and quits the subscription of two kinds.
When user selects to order certain product, website receives described order order need judge whether described product disposes mutual exclusion query manipulation and order query manipulation, if so, needs to carry out mutual exclusion inquiry and orders inquiry.If not, directly order.Described mutual exclusion, refer to that certain product (as A product) and some product (as B product) can not be ordered by same user simultaneously, whether the user that this product (A product) is ordered in the i.e. inquiry of mutual exclusion inquiry has ordered the product (B product) with described product (A product) mutual exclusion.In addition, carrying out described order inquiry is because some product can not be ordered more than twice and twice by same user.Certainly, described order inquiry can be understood as special mutual exclusion inquiry, i.e. this product and mutual exclusion own.Complete after described mutual exclusion inquiry and the inquiry of described order, when described user did not order when having the product of mutex relation and not ordering current production with current production, carry out the order of current production.
When user selects to quit the subscription of certain product, described in receiving, website quits the subscription of order, do not need to carry out any judgement, directly carry out quitting the subscription of of current production.
It should be noted that, the implementation procedure that described mutual exclusion inquiry, order are inquired about, ordered or quit the subscription of is, sending each business operation processing asks to BOSS, triggering described BOSS carries out returning to response message after business operation processing, receive and resolve described each response message and determine result, and described result is returned to user.
It should be noted that, each embodiment that the application provides is not limited to the service handling flow process of described telecommunication service operation company, and the e-commerce company of other form electronic goods of concluding the business, all in the application's protection domain.
For realizing the above service handling flow process of product, need to develop definition to described service handling flow process.In prior art, for each product stand-alone development, define described service handling flow process, caused the repeated storage of code, a kind of method that the application provides configuration service to accept flow process, the wasting of resources problem causing to solve repeated storage exploitation code.Refer to Fig. 1, a kind of configuration service that it shows the application provides is accepted the process flow diagram of flow and method embodiment mono-, and the present embodiment can comprise:
Step S101: obtain business to be configured operation;
Described business operation, refers to the business tine that the service handling flow process of described a certain product comprises, including but not limited to mutual exclusion inquiry, order inquiry, order and quit the subscription of.Described in realization, obtain the mode of business to be configured operation, can be to obtain the business operation corresponding with described instruction according to configuration person's instruction, can be also the business operation that obtains described product according to the product setting in advance and the corresponding relation between business operation.Wherein:
Described the first implementation is specially, and to described configuration person, provides business operation list, includes the every business operation in the service handling flow process of described product in described list, and the business operating instructions of selecting according to configuration person obtains described business operation.
Described the second implementation is specially, and according to the type of product, sets in advance the corresponding business operation of each product.As arranged, A product is corresponding orders operation and quits the subscription of operation; The corresponding mutual exclusion inquiry of B product is set, orders inquiry, orders and quit the subscription of operation.
The described business to be configured operation of obtaining is set up to corresponding relation with described product, complete described business to be configured is distributed to described product.
It should be noted that; described configuration person refers to and uses the method that the application provides product to be accepted to the personnel of flow process configuration; certainly; being not limited to the person of configuration calls described personnel; as long as the method that described librarian use the application provides is carried out described configuration, all belong to the application's protection domain.
Step S102: according to the corresponding relation of predefined business operation and interface command word, determine and operate corresponding interface command word with described business to be configured;
Between business operation and interface command word, there is unique corresponding relation, according to corresponding relation, determine and operate corresponding interface command word with described business to be configured.The interface command word of ordering operation as inquired about is 1001.Described interface command word is for determining the module of processing described business at BOSS.By described interface command word, the request message of described business operation can be sent to the Service Processing Module in described BOSS.
Step S103: according to described interface command word, select to operate corresponding request message and response message with described business to be configured in the module library of setting up in advance; Wherein, in described module library, be provided with the request message corresponding with each business operation and response message;
In described module library, set in advance the request message corresponding with described each business operation and the response message corresponding with described each business operation.According to the unique corresponding relation between described interface command word and the operation of described business to be configured, in described module library, select request message and the response message corresponding with described each business to be configured.Each request message in the described module library setting in advance and response message, for all products, are each product stand-alone development business processing flow in prior art, have realized the multiplexing of code, have saved storage resources.
Step S104: resolve described request message and described response message, obtain respectively the transmission parameter of described request message and the return message of described response message, the number of described transmission parameter and return message can have respectively one or more;
The described request message that parsing is selected by step S103, obtains the transmission parameter in described request message.As needed to comprise mobile, operator, returnType parameter in the request message of the mutual exclusion query manipulation of 88 yuan of local set meal products of Global Link.Wherein: mobile is subscriber phone number, operator is business operation type, and returnType is message return type.Certainly, according to the difference of product type, it can be also a plurality of that described transmission parameter can be one.
The described response message that parsing is selected by step S103, obtains the return message in described response message.Described return message has different types according to the difference of business operation, may be return code, may be also return parameters.Certainly, according to the difference of product type, it can be also a plurality of that described return message can be one.
Step S105: according to the type of described transmission parameter, select corresponding acquisition methods for described each sends parameter;
According to the type of described transmission parameter, select acquisition methods corresponding thereto.As, when transmission parameter comprises phone number, acquisition methods is for obtaining phone number; When transmission parameter comprises the time, acquisition methods is for obtaining system time; When transmission parameter comprises user's input information, acquisition methods is the input message of obtaining user; When transmission parameter comprises null character string, obtain null character string; When sending parameter and comprise according to the predefined preset value of interface protocol with BOSS, obtain described preset value.Wherein, for sending parameter, comprise that the situation of user's input information is illustrated.For example, order 88 yuan of local set meal products of Global Link, the subscription request message format sending is: mobile~operator~returnType~nCode~sType~packageServiceIdentification~is Force~efficientType, wherein: parameter efficientType represents the mode of coming into force, come into force or come into force next month, the information that this value is inputted in the mode of selecting at Product Interface for user.
Described selection sends the corresponding implementation of parameter with each, can be to show to configuration person the list that comprises described each acquisition methods, according to configuration person's selection instruction, described parameter and described acquisition methods is set up to corresponding relation; Also can be according to the parameters setting in advance and the corresponding relation of acquisition methods, be embodied as described parameter and select acquisition methods corresponding thereto.
It should be noted that, set in advance the implementation procedure of described each acquisition methods, for sending parameter, select acquisition methods corresponding thereto, by after described product issue, while sending request message according to user's triggering to described BOSS, can get the parameters that described request message need to encapsulate according to described acquisition methods.The implementation procedure of described described each acquisition methods setting in advance, is applicable to all products, compared in prior art for each product development business processing flow, realized the multiplexing of code, saved storage resources.
Step S106: for described each return message is determined corresponding result.
The type of return message is different, determines that the process of result also can be different.Described definite result, according to return message configuration, to return to user's information, or according to the judgment rule of return message configuration return message, described judgment rule is for after product issue, judges the business operation disposition that the return message in the response message that described BOSS returns represents.
From above technical scheme, the application provides a kind of configuration service to accept the method for flow process, and the method comprises: obtain business to be configured operation; According to the corresponding relation of predefined business operation and interface command word, determine and operate corresponding interface command word with described business to be configured; According to described interface command word, in the module library of setting up in advance, select to operate corresponding request message and response message with described business to be configured; Wherein, in described module library, be provided with the request message corresponding with each business operation and response message; Resolve described request message and described response message, obtain respectively the transmission parameter of described request message and the return message of described response message, the number of described transmission parameter and return message can have respectively one or more; According to the type of described transmission parameter, for sending parameter, described each select corresponding acquisition methods; For described each return message is determined corresponding result.
In prior art, for each product is developed respectively independently business processing flow, identical code repeated storage in described each business processing flow, and the method that the application provides is set up module library in advance, in described module library, be set with the request message corresponding with each business operation and response message, for all products.In addition, in this enforcement, set in advance the realization of various parameter acquiring methods, equally for all products.Therefore, the method that the present embodiment provides can realize the multiplexing of code in business processing flow, has saved storage resources.Simultaneously, when the corresponding interface command word of business operation changes, in prior art, need using the product of this interface command word to re-start successively modification, increased maintenance cost, and the method that the application provides is by reselecting business operation interface command word corresponding thereto, the corresponding relation re-establishing between interface command word and described business operation completes described modification, does not need manual modification code, has therefore reduced maintenance cost.
When described business to be configured action type is mutual exclusion query manipulation or order query manipulation, the return message of described response message comprises return parameters.In this kind of situation, refer to Fig. 2, a kind of configuration service that it shows the application provides is accepted the part process flow diagram of flow implementation example two, and the step S106 in embodiment mono-can comprise:
Step S201: obtain the judgement numerical value corresponding with described return parameters;
When described business operation is mutual exclusion query manipulation or order query manipulation, what in the response message that described BOSS returns, comprise is return parameters, needs described return parameters to configure corresponding judgement information.In described judgement information, needing to judge numerical value, obtain the mode of described judgement numerical value, can be the numerical value that obtains configuration person's input, using described numerical value as judgement numerical value, as 1 or 0; Also can be according to the judgement numerical value setting in advance and the corresponding relation between return parameters, obtain the judgement numerical value corresponding with described return parameters.Certainly, need to set in advance the corresponding relation between judgement numerical value and return parameters according to interface protocol.
Step S202: select the judgment rule between described return parameters and described judgement numerical value.
Described judgment rule comprises and is greater than, is less than, is more than or equal to, is less than or equal to or equal.Select the mode of judgment rule, can be to show to configuration person the list that includes a plurality of judgment rules, in described judgement list, include above-mentioned each judgment rule, according to configuration person's selection instruction, the judgment rule between the judgement numerical value of selecting to obtain in described return parameters and step S201; Also can be according to the corresponding relation between the return parameters setting in advance, judgement numerical value and judgment rule, select the judgment rule between described return parameters and described judgement numerical value.
For example, if the return parameters comprising in the response message of mutual exclusion inquiry comprises ret, the judgement numerical value corresponding with described ret getting is 0, and the judgment rule of selection is for being greater than, and described judgement information is ret > 0.Described judgement information is for after receiving described response message, split described response message, obtain described return parameters ret, whether the numerical value that judges described ret parameter is greater than 0, if be greater than 0, represents to have ordered the product (B product) that has mutex relation with current production (A product), can send prompting to user and order failure, in described prompting message, include and order failed reason,, owing to ordering B product, can not order A product; If be not more than 0, represent not have the product of order and current production mutex relation, judge whether this product needs to be provided with the judgement of ordering inquiry, if so, orders inquiry.
It should be noted that; in described returned packet, can comprise one or more return parameterss; when comprising a plurality of return parameters, need to each return parameters, configure respectively corresponding judgement information according to step S201 and step S202, the pass between the parameters in described judgement information is; (and) relation.Under this kind of situation, after product issue, described in receiving, comprise after the response message of a plurality of return parameterss, resolve described response message, judge whether the parameters in described response message all meets judgement information corresponding thereto.For example, the response message of above-mentioned mutual exclusion inquiry comprises a parameter and b parameter, judgement information for a parameter is a>0, judgement information for b parameter is b<0, need to resolve described response message, the numerical value that judges whether a parameter in described response message be greater than 0 and the numerical value of b parameter be less than 0, if, represent to have ordered the product (B product) that has mutex relation with current production (A product), can send prompting to user and order failure, in described prompting message, include and order failed reason, owing to ordering B product, can not order A product.
In addition, in the returned packet of mutual exclusion query manipulation and order query manipulation, can comprise return code, as 1 or 0.Described return code is used for judging that whether BOSS successfully processes, and as when return code is 0, expression BOSS exists fault, cannot process business, returns results information described in can be: system temporarily cannot be served for you.When described return code is 1, represent to process successfully, do not need to send relevant information to user.Certainly, described in return results information and be not limited thereto a kind of form, as long as can give expression to the implication that system breaks down, all in the protection domain of the present embodiment.
When described business to be configured action type operates or quits the subscription of operation for ordering, the return message of described response message comprises return code.In this kind of situation, refer to Fig. 3, a kind of configuration service that it shows the application provides is accepted the process flow diagram of flow implementation example three, and the present embodiment can comprise:
Step S301: obtain business to be configured operation;
Step S302: according to the corresponding relation of predefined business operation and interface command word, determine and operate corresponding interface command word with described business to be configured;
Step S303: according to described interface command word, select to operate corresponding request message and response message with described business to be configured in the module library of setting up in advance; Wherein, in described module library, be provided with the request message corresponding with each business operation and response message;
Step S304: resolve described request message and described response message, obtain respectively the transmission parameter of described request message and the return code of described response message, the number of described transmission parameter and return message can have respectively one or more;
Step S305: according to the type of described transmission parameter, select corresponding acquisition methods for described each sends parameter;
Step S301 is identical to step S105 with the step S101 in embodiment mono-to step S305, and therefore not to repeat here.
Step S306: for described each return code is selected the corresponding information that returns results.
When described business operation operates or quits the subscription of operation for ordering, in the response message that described BOSS returns, comprise return code, as ordered the return code comprising in the response message of A product, be 1 or 0.Described return code is for judging that BOSS carries out the result after business processing, and as when return code is 1, expression is ordered successfully, returns results information described in can be: you successfully order A product; When return code is 0, represent to order unsuccessfully, return results information described in and can be: sorry, the operation failure of order A product.Certainly, described in return results information and be not limited to above-mentioned form, as long as can express order success or order failed implication, all in the protection domain of the present embodiment.
Based on above-mentioned, in business procession, use described return code to resolve returned packet, need to be before carrying out release product, for the order operation returned packet of product and the return parameters of quitting the subscription of in operation returned packet select to return results accordingly information.The mode of described selection, can be to be shown to configuration person to comprise a plurality of lists that return results information, according to configuration person's selection instruction, selects corresponding prompting object information, and sets up the corresponding relation between described prompting object information and described return code.
Refer to Fig. 4, a kind of configuration service that it shows the application provides is accepted the structural representation of flow path device embodiment tetra-, the present embodiment can comprise: obtains operating unit 401, determines command word unit 402, selects message unit 403, analytic message unit 404, selects to send parameter unit 405 and definite result unit 406, wherein:
The described operating unit 401 that obtains, for obtaining business to be configured operation;
Described business operation, refers to the business tine that the service handling flow process of described a certain product comprises, including but not limited to mutual exclusion inquiry, order inquiry, order and quit the subscription of.Describedly obtain the mode that operating unit 401 obtains business to be configured operation described in realizing, can be to obtain the business operation corresponding with described instruction according to configuration person's instruction, can be also the business operation that obtains described product according to the product setting in advance and the corresponding relation between business operation.Wherein:
Described the first implementation is specially, and to described configuration person, provides business operation list, includes the every business operation in the service handling flow process of described product in described list, and the business operating instructions of selecting according to configuration person obtains described business operation.
Described the second implementation is specially, and according to the type of product, sets in advance the corresponding business operation of each product.As arranged, A product is corresponding orders operation and quits the subscription of operation; The corresponding mutual exclusion inquiry of B product is set, orders inquiry, orders and quit the subscription of operation.
The described operating unit 401 that obtains is set up corresponding relation by the described business to be configured operation of obtaining with described product, completes described business to be configured is distributed to described product.
Described definite command word unit 402, for the corresponding relation according to predefined business operation and interface command word, determines and operates corresponding interface command word with described business to be configured;
Between business operation and interface command word, have unique corresponding relation, described definite command word unit 402 is determined and is operated corresponding interface command word with described business to be configured according to corresponding relation.The interface command word of ordering operation as inquired about is 1001.Described interface command word is for determining the module of processing described business at BOSS.By described interface command word, the request message of described business operation can be sent to the Service Processing Module in described BOSS.
Described selection message unit 403 for according to described interface command word, is selected to operate corresponding request message and response message with described business to be configured in the module library of setting up in advance; Wherein, in described module library, be provided with the request message corresponding with each business operation and response message;
In described module library, set in advance the request message corresponding with described each business operation and the response message corresponding with described each business operation.Described selection message unit 403, according to the unique corresponding relation between described interface command word and the operation of described business to be configured, is selected request message and the corresponding message corresponding with described each business to be configured in described module library.Each request message in the described module library setting in advance and response message, for all products, are each product stand-alone development business processing flow in prior art, have realized the multiplexing of code, have saved storage resources.
Described analytic message unit 404, for resolving described request message and described response message, obtains respectively the transmission parameter of described request message and the return code of described response message, and the number of described transmission parameter and return message can have respectively one or more;
The described request message that described selection message unit 403 is selected is resolved in described analytic message unit 404, obtains the transmission parameter in described request message.As needed to comprise mobile, operator, returnType parameter in the request message of the mutual exclusion query manipulation of 88 yuan of local set meal products of Global Link.Wherein: mobile is subscriber phone number, operator is business operation type, and returnType is message return type.Certainly, according to the difference of product type, it can be also a plurality of that described transmission parameter can be one.
The described response message that described selection message unit 403 is selected is resolved in described analytic message unit 404, obtains the return message in described response message.Described return message has different types according to the difference of business operation, may be return code, may be also return parameters.Certainly, according to the difference of product type, it can be also a plurality of that described return message can be one.
Described selection sends parameter unit 405, for the type according to described transmission parameter, for described each sends parameter, selects corresponding acquisition methods;
Described selection sends parameter unit 405 according to the type of described transmission parameter, selects acquisition methods corresponding thereto.As, when transmission parameter comprises phone number, acquisition methods is for obtaining phone number; When transmission parameter comprises the time, acquisition methods is for obtaining system time; When transmission parameter comprises user's input information, acquisition methods is the input message of obtaining user; When transmission parameter comprises null character string, obtain null character string; When transmission parameter comprises according to the default preset value of first setting of the interface protocol with BOSS, obtain described preset value.Wherein, for sending parameter, comprise that the situation of user's input information is illustrated.For example, order 88 yuan of local set meal products of Global Link, the subscription request message format sending is: mobile~operator~returnType~nCode~sType~packageServiceIdentification~is Force~efficientType, wherein: parameter efficientType represents the mode of coming into force, come into force or come into force next month, the information that this value is inputted in the mode of selecting at Product Interface for user.
Described selection sends parameter unit 405 and selects to send the corresponding implementation of parameter with each, can be to show to configuration person the list that comprises described each acquisition methods, according to configuration person's selection instruction, described parameter and described acquisition methods are set up to corresponding relation; Also can be according to the parameters setting in advance and the corresponding relation of acquisition methods, be embodied as described parameter and select acquisition methods corresponding thereto.
It should be noted that, set in advance the implementation procedure of described each acquisition methods, described selection sends parameter unit 405 and selects acquisition methods corresponding thereto for sending parameter, by after described product issue, while sending request message according to user's triggering to described BOSS, can get the parameters that described request message need to encapsulate according to described acquisition methods.The implementation procedure of described described each acquisition methods setting in advance, is applicable to all products, compared in prior art for each product development business processing flow, realized the multiplexing of code, saved storage resources.
Described definite result unit 406, is used to described each return message to determine corresponding result.
The type of return message is different, and described definite result unit 406 determines that the process of result also can be different.Described definite result, according to return message configuration, to return to user's information, or according to the judgment rule of return message configuration return message, described judgment rule is for after product issue, judges the business operation disposition that the return message in the response message that described BOSS returns represents.
From above technical scheme, the device that the application provides a kind of configuration service to accept flow process, this device comprises: obtain operating unit, determine command word unit, select message unit, analytic message unit, select to send parameter unit and definite result unit.Wherein, described in, obtain operating unit and obtain business to be configured operation; Described definite command word unit, according to the corresponding relation of predefined business operation and interface command word, is determined and is operated corresponding interface command word with described business to be configured; Described selection message unit, according to described interface command word, is selected to operate corresponding request message and response message with described business to be configured in the module library of setting up in advance; Wherein, in described module library, be provided with the request message corresponding with each business operation and response message; Described analytic message unit resolves described request message and described response message, obtain respectively the transmission parameter of described request message and the return message of described response message, and the number of described transmission parameter and return message can have respectively one or more; Described selection sends parameter unit according to the type of described transmission parameter, for described each sends parameter, selects corresponding acquisition methods; Described definite result unit is that described each return message is determined corresponding result.
In prior art, for each product is developed respectively independently business processing flow, identical code repeated storage in described each business processing flow, and in the device that the application provides, set up in advance module library, in described module library, be set with the request message corresponding with each business operation and response message, for all products.In addition, in this enforcement, set in advance the realization of various parameter acquiring methods, equally for all products.Therefore, the method that the present embodiment provides can realize the multiplexing of code in business processing flow, has saved storage resources.Simultaneously, when the corresponding interface command word of business operation changes, in prior art, need using the product of this interface command word to re-start successively modification, increased maintenance cost, and the method that the application provides is by reselecting business operation interface command word corresponding thereto, the corresponding relation re-establishing between interface command word and described business operation completes described modification, does not need manual modification code, has therefore reduced maintenance cost.
Refer to Fig. 5, a kind of configuration service that it shows the application provides is accepted the structural representation of flow implementation example five, the present embodiment can comprise: the first acquiring unit 5011, second acquisition unit 5012, the 3rd acquiring unit 5013, the 4th acquiring unit 5014, determines command word unit 502, selects message unit 503, analytic message unit 504, selects to send parameter unit 505, obtains judgement numerical value unit 50611, select judgment rule unit 50612 and obtain information unit 5062, wherein:
Described the first acquiring unit 5011, for obtaining the operation of mutual exclusion inquiry business; Described second acquisition unit 5012, orders inquiry business operation for obtaining; Described the 3rd acquiring unit 5013, for obtaining order business operation; Described the 4th acquiring unit 5014, quits the subscription of business operation for obtaining;
Described definite command word unit 502, for the corresponding relation according to predefined business operation and interface command word, determines and operates corresponding interface command word with described business to be configured;
Described selection message unit 503 for according to described interface command word, is selected to operate corresponding request message and response message with described business to be configured in the module library of setting up in advance; Wherein, in described module library, be provided with the request message corresponding with each business operation and response message;
Described analytic message unit 504, be used for resolving described request message and described response message, obtain respectively the transmission parameter of described request message and the return message of described response message, the number of described transmission parameter and return message can have respectively one or more;
Described selection sends parameter unit 505, for the type according to described transmission parameter, for described each sends parameter, selects corresponding acquisition methods;
Described Unit 502 to 505 are identical with Unit 402 to 405 of embodiment tetra-, and therefore not to repeat here.
The described judgement numerical value unit 50611 that obtains, is connected with described the first acquiring unit 5011, described second acquisition unit 5011 respectively, for obtaining the judgement numerical value corresponding with described return parameters;
The business operation obtaining when described the first acquiring unit 5011 is that the business operation that mutual exclusion query manipulation or described second acquisition unit 5012 obtain is while ordering query manipulation, what in the response message that described BOSS returns, comprise is return parameters, needs described return parameters to configure corresponding judgement information.In described judgement information, need to judge numerical value, described in obtain judgement numerical value unit 50611 and obtain the mode of described judgement numerical value, can be the numerical value that obtains configuration person's input, using described numerical value as judgement numerical value, as 1 or 0; Also can be according to the judgement numerical value setting in advance and the corresponding relation between return parameters, obtain the judgement numerical value corresponding with described return parameters.Certainly, need to set in advance the corresponding relation between judgement numerical value and return parameters according to interface protocol.
It should be noted that, described in obtain judgement numerical value unit 50611 be connected with described the first acquiring unit 5011, described second acquisition unit 5011 respectively, described connection is not direct connection, by Unit 502 to 505, connects.
Described selection judgment rule unit 50612, for selecting the judgment rule between described return parameters and described judgement numerical value;
Described judgment rule comprises and is greater than, is less than, is more than or equal to, is less than or equal to or equal.The mode of judgment rule is selected in described selection judgment rule unit 50612, can be to show to configuration person the list that includes a plurality of judgment rules, in described judgement list, include above-mentioned each judgment rule, according to configuration person's selection instruction, select described return parameters and described in obtain the judgment rule between the judgement numerical value that obtains of judgement numerical value unit 50611; Also can be according to the corresponding relation between the return parameters setting in advance, judgement numerical value and judgment rule, select the judgment rule between described return parameters and described judgement numerical value.
For example, if the return parameters comprising in the response message of mutual exclusion inquiry comprises ret, the judgement numerical value corresponding with described ret getting is 0, and the judgment rule of selection is for being greater than, and described judgement information is ret > 0.Described judgement information is for after receiving described response message, split described response message, obtain described return parameters ret, whether the numerical value that judges described ret parameter is greater than 0, if be greater than 0, represents to have ordered the product (B product) that has mutex relation with current production (A product), can send prompting to user and order failure, in described prompting message, include and order failed reason,, owing to ordering B product, can not order A product; If be not more than 0, represent not have the product of order and current production mutex relation, judge whether this product needs to be provided with the judgement of ordering inquiry, if so, orders inquiry.
It should be noted that; in described returned packet, can comprise one or more return parameterss; when comprising a plurality of return parameters; need, according to obtaining judgement numerical value unit 50611 and described selection judgment rule unit 50612, each return parameters is configured respectively to corresponding judgement information, the pass between the parameters in described judgement information is; (and) relation.Under this kind of situation, after product issue, described in receiving, comprise after the response message of a plurality of return parameterss, resolve described response message, judge whether the parameters in described response message all meets judgement information corresponding thereto.For example, the response message of above-mentioned mutual exclusion inquiry comprises a parameter and b parameter, judgement information for a parameter is a>0, judgement information for b parameter is b<0, need to resolve described response message, the numerical value that judges whether a parameter in described response message be greater than 0 and the numerical value of b parameter be less than 0, if, represent to have ordered the product (B product) that has mutex relation with current production (A product), can send prompting to user and order failure, in described prompting message, include and order failed reason, owing to ordering B product, can not order A product.
In addition, in the returned packet of mutual exclusion query manipulation and order query manipulation, can comprise return code, as 1 or 0.Described return code is used for judging that whether BOSS successfully processes, and as when return code is 0, expression BOSS exists fault, cannot process business, returns results information described in can be: system temporarily cannot be served for you.When described return code is 1, represent to process successfully, do not need to send relevant information to user.Certainly, described in return results information and be not limited thereto a kind of form, as long as can give expression to the implication that system breaks down, all in the protection domain of the present embodiment.
The described information unit 5062 that obtains is connected with described the 3rd acquiring unit, described the 4th acquiring unit respectively, is used to described each return code to select the corresponding information that returns results.
When the business operation obtaining when described the 3rd acquiring unit 5013 operates for quitting the subscription of for the business operation of ordering operation or described the 4th acquiring unit 5014 and obtaining, in the response message that described BOSS returns, comprising return code, is 1 or 0 as ordered the return code comprising in the response message of A product.Described return code is for judging that BOSS carries out the result after business processing, and as when return code is 1, expression is ordered successfully, returns results information described in can be: you successfully order A product; When return code is 0, represent to order unsuccessfully, return results information described in and can be: sorry, the operation failure of order A product.Certainly, described in return results information and be not limited to above-mentioned form, as long as can express order success or order failed implication, all in the protection domain of the present embodiment.
Based on above-mentioned, in business procession, use described return code to resolve returned packet, need to be before carrying out release product, for the order operation returned packet of product and the return parameters of quitting the subscription of in operation returned packet select to return results accordingly information.The described mode of obtaining 5062 selections of information unit, can be to be shown to configuration person to comprise a plurality of lists that return results information, according to configuration person's selection instruction, select corresponding prompting object information, and set up the corresponding relation between described prompting object information and described return code.
It should be noted that, described in obtain information unit 5062 and be connected with described the 3rd acquiring unit 5013, described the 4th acquiring unit 5014 respectively, described connection is not direct connection, by Unit 502 to 505, connects.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and each embodiment stresses is the difference with other embodiment, between each embodiment identical similar part mutually referring to.
Method and the device of above a kind of configuration service provided by the present invention being accepted to flow process are described in detail, and the above-mentioned explanation to the disclosed embodiments, makes professional and technical personnel in the field can realize or use the present invention.To the multiple modification of these embodiment, will be apparent for those skilled in the art, General Principle as defined herein can, in the situation that not departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (7)

1. configuration service is accepted a method for flow process, it is characterized in that, comprising:
Obtain business to be configured operation;
According to the corresponding relation of predefined business operation and interface command word, determine and operate corresponding interface command word with described business to be configured;
According to described interface command word, in the module library of setting up in advance, select to operate corresponding request message and response message with described business to be configured; Wherein, in described module library, be provided with the request message corresponding with each business operation and response message;
Resolve described request message and described response message, obtain respectively the transmission parameter of described request message and the return message of described response message, the number of described transmission parameter and return message can have respectively one or more;
According to the type of described transmission parameter, for sending parameter, described each select corresponding acquisition methods;
For described each return message is determined corresponding result.
2. method according to claim 1, is characterized in that, described business to be configured operation comprises: mutual exclusion query manipulation, order query manipulation, order operate or quit the subscription of operation.
3. method according to claim 2, it is characterized in that, when described business to be configured action type is mutual exclusion query manipulation or order query manipulation, the return message of described response message comprises return parameters,, for described each return message, determine corresponding result, comprising:
Obtain the judgement numerical value corresponding with described return parameters;
Select the judgment rule between described return parameters and described judgement numerical value.
4. method according to claim 2, it is characterized in that, when described business to be configured action type is when ordering action type or quitting the subscription of action type, the return message of described response message comprises return code,, for described each return message, determine corresponding result, comprising:
For described each return code is selected the corresponding information that returns results.
5. configuration service is accepted a device for flow process, it is characterized in that, comprising:
Obtain operating unit, for obtaining business to be configured operation;
Determine command word unit, for the corresponding relation according to predefined business operation and interface command word, determine and operate corresponding interface command word with described business to be configured;
Select message unit, for according to described interface command word, in the module library of setting up in advance, select to operate corresponding request message and response message with described business to be configured; Wherein, in described module library, be provided with the request message corresponding with each business operation and response message;
Analytic message unit, for resolving described request message and described response message, obtains respectively the transmission parameter of described request message and the return message of described response message, and the number of described transmission parameter and return message can have respectively one or more;
Select to send parameter unit, for the type according to described transmission parameter, for described each sends parameter, select corresponding acquisition methods;
Determine result unit, be used to described each return message to determine corresponding result.
6. device according to claim 5, is characterized in that, described acquiring unit comprises:
The first acquiring unit, for obtaining the operation of mutual exclusion inquiry business;
Second acquisition unit, orders inquiry business operation for obtaining;
The 3rd acquiring unit, for obtaining order business operation;
The 4th acquiring unit, quits the subscription of business operation for obtaining.
7. device according to claim 6, is characterized in that, the return message of described response message comprises return parameters and/or return code, and described definite result unit comprises:
Obtain judgement numerical value unit, be connected with described the first acquiring unit, described second acquisition unit respectively, for obtaining the judgement numerical value corresponding with described return parameters;
Select judgment rule unit, for selecting the judgment rule between described return parameters and described judgement numerical value;
Obtain information unit, be connected with described the 3rd acquiring unit, described the 4th acquiring unit respectively, be used to described each return code to select the corresponding information that returns results.
CN201310543203.0A 2013-11-05 2013-11-05 A kind of configuration service accepts the method and device of flow Expired - Fee Related CN103530744B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310543203.0A CN103530744B (en) 2013-11-05 2013-11-05 A kind of configuration service accepts the method and device of flow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310543203.0A CN103530744B (en) 2013-11-05 2013-11-05 A kind of configuration service accepts the method and device of flow

Publications (2)

Publication Number Publication Date
CN103530744A true CN103530744A (en) 2014-01-22
CN103530744B CN103530744B (en) 2018-01-30

Family

ID=49932734

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310543203.0A Expired - Fee Related CN103530744B (en) 2013-11-05 2013-11-05 A kind of configuration service accepts the method and device of flow

Country Status (1)

Country Link
CN (1) CN103530744B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107274023A (en) * 2017-06-20 2017-10-20 阿里巴巴集团控股有限公司 Flow of insuring generation method, insure request processing method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003196435A (en) * 2001-12-25 2003-07-11 Hitachi Information Systems Ltd Business flow creation support method and system for it
CN101282500A (en) * 2007-04-02 2008-10-08 中国移动通信集团山东有限公司 Control method and system for increment service supporting multiple access modes
CN101296397A (en) * 2007-04-28 2008-10-29 中国移动通信集团山东有限公司 Third party service access method, value-added service providing method and system
CN101765112A (en) * 2009-12-22 2010-06-30 中国联合网络通信集团有限公司 Value added service mutually exclusive authentication method and device
CN101951576A (en) * 2010-09-19 2011-01-19 中兴通讯股份有限公司 Method for implementing USSD (Unstructured Supplementary Service Data) application service and USSD centre

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003196435A (en) * 2001-12-25 2003-07-11 Hitachi Information Systems Ltd Business flow creation support method and system for it
CN101282500A (en) * 2007-04-02 2008-10-08 中国移动通信集团山东有限公司 Control method and system for increment service supporting multiple access modes
CN101296397A (en) * 2007-04-28 2008-10-29 中国移动通信集团山东有限公司 Third party service access method, value-added service providing method and system
CN101765112A (en) * 2009-12-22 2010-06-30 中国联合网络通信集团有限公司 Value added service mutually exclusive authentication method and device
CN101951576A (en) * 2010-09-19 2011-01-19 中兴通讯股份有限公司 Method for implementing USSD (Unstructured Supplementary Service Data) application service and USSD centre

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107274023A (en) * 2017-06-20 2017-10-20 阿里巴巴集团控股有限公司 Flow of insuring generation method, insure request processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN103530744B (en) 2018-01-30

Similar Documents

Publication Publication Date Title
CN103023933B (en) A kind of log-on message Integrated Processing System and method
CN102591724B (en) Method and device for information interaction
CN104809816B (en) Pickup processing method, pickup perform method, pickup method and apparatus and system
JP5751561B2 (en) Application store system and development method using the application store system
CN107770269A (en) A kind of service response method and its terminal
CN104993998A (en) Enterprise-level safety instant messaging system supporting cloud deploying and method
CN105224396A (en) A kind of business data processing method and device
CN105960784A (en) System and method for creating service chains and virtual networks in the cloud
CN104639646B (en) Method and apparatus for handling user&#39;s request
CN105100002B (en) The operating method and device of attribute
CN110750780B (en) User role permission fusion method, device and equipment based on multi-service system
CN104092694B (en) A kind of method and system of the account distribution of mobile phone games
CN105099856A (en) Communication message processing method and system
CN107341059A (en) A kind of wechat public number concurrent message treatment mechanism
CN105933271A (en) Data processing method and apparatus based on encoder
CN102480403B (en) Method for providing virtual private network service, device and system
CN103530744A (en) Configuration business handling flow method and device
CN105260898A (en) Method and device of monitoring user browsing goods states through Internet
CN111741175A (en) Call center system, signal transmission method, device, server and medium
CN101834808A (en) Method and system for realizing information interaction based on instant messaging (IM) paging enterprises end
CN108551652B (en) Binding method and device of child equipment, equipment and storage medium
CN101471799B (en) Method for sending on-line announcement message in IGRS network
CN102591714A (en) Process calling method, system and application server
WO2022160864A1 (en) Network access method and apparatus for intelligent device, and intelligent device
CN105592013B (en) A kind of sensitive information processing method, device and client

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: HONGKONG SHIYE DEVELOPMENT CO., LTD.

Free format text: FORMER OWNER: CONGXING TECHNOLOGY CO., LTD.

Effective date: 20150728

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20150728

Address after: Room 32, building 3205, Bank of America, 12 Cecil Harcourt Road, central, Hongkong, China

Applicant after: Hongkong world industry development Co., Ltd.

Address before: 24, building 368, 510000 South Guangzhou Avenue, Guangdong, Guangzhou

Applicant before: Sunrise Technology Co., Ltd.

ASS Succession or assignment of patent right

Owner name: TELEFON AB L.M. ERICSSON (SE)

Free format text: FORMER OWNER: HONGKONG SHIYE DEVELOPMENT CO., LTD.

Effective date: 20150908

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20150908

Address after: Stockholm

Applicant after: Telefon AB L.M. Ericsson [SE]

Address before: Room 32, building 3205, Bank of America, 12 Cecil Harcourt Road, central, Hongkong, China

Applicant before: Hongkong world industry development Co., Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180130

Termination date: 20191105

CF01 Termination of patent right due to non-payment of annual fee