CN102542337A - Service logic processing method for information system and device - Google Patents

Service logic processing method for information system and device Download PDF

Info

Publication number
CN102542337A
CN102542337A CN201010585539XA CN201010585539A CN102542337A CN 102542337 A CN102542337 A CN 102542337A CN 201010585539X A CN201010585539X A CN 201010585539XA CN 201010585539 A CN201010585539 A CN 201010585539A CN 102542337 A CN102542337 A CN 102542337A
Authority
CN
China
Prior art keywords
trust
service logic
dialog box
unique identifier
request
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
CN201010585539XA
Other languages
Chinese (zh)
Other versions
CN102542337B (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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN201010585539.XA priority Critical patent/CN102542337B/en
Publication of CN102542337A publication Critical patent/CN102542337A/en
Application granted granted Critical
Publication of CN102542337B publication Critical patent/CN102542337B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention provides a service logic processing method for an information system and a device, which are applicable to the field of information processing. The method includes steps of receiving a service logic processing request of a client, building an unique identifier and corresponding delegation for service logic of the request with a dialog box, and storing the unique identifier and the corresponding delegation into a cache; transmitting the unique identifier and a dialog box request instruction to the client; receiving an unique identifier and user processing information which are fed back from the client, and acquiring the corresponding delegation from the cache; and executing the delegation, and continuing processing the service logic according to the delegation after the delegation is executed. By the aid of the service logic processing method, the service logic is processed in a segment of codes of a server, and system development efficiency and service logic processing efficiency are effectively improved.

Description

A kind of business logic processing method and device of infosystem
Technical field
The invention belongs to field of information processing, relate in particular to a kind of business logic processing method and device of infosystem.
Background technology
Service logic generally is meant the implementation procedure of different business function in the project, for example: the implementation procedure of function such as registration in shopping website, shopping, payment.
In the internet application exploitation,, hope usually the realization code of a complete service logic is placed on service end for reducing exploitation and debugging difficulty.Yet; Because service end can only be handled client-requested; Can't initiatively send the defective of request to client, when needing information such as the user examines, affirmation when certain service logic existence, prior art will realize that the code division of this service logic becomes multistage to be stored in service end; Increase the complicacy of program, reduced the treatment effeciency of the readability and the service logic of code.
Summary of the invention
The purpose of the embodiment of the invention is to provide the method for business logic processing in a kind of infosystem; Be intended to solve existing processing to service logic; Need the code division of service logic be become multistage be stored in service end, cause that treatment effeciency is lower, the readable relatively poor problem of code.
The embodiment of the invention is achieved in that a kind of business logic processing method of infosystem, and said method comprises the steps:
Receive the business logic processing request of client, the service logic that has the dialog box request is set up unique identifier and corresponding trust, said unique identifier is stored in the buffer memory with corresponding trust;
Said unique identifier and dialog box request instruction are sent to client;
Accept unique identifier that client returns and user's process information, from buffer memory, obtain corresponding trust;
Carry out said trust, and, continue to handle said service logic according to the trust after carrying out;
Said trust is the Service Logic processing Program that is used to connect after dialog box shows preceding and demonstration.
Another purpose of the embodiment of the invention is to provide a kind of business logic processing device, and said device comprises:
Handle the request receiving element, be used to receive the business logic processing request of client;
Dialog box request judging unit is used to judge whether said service logic exists the dialog box request;
Information memory cell is used for the service logic that has the dialog box request is set up unique identifier and corresponding trust, and said unique identifier is stored in the buffer memory with corresponding trust;
Information receiving unit is used to receive the said unique identifier of client transmission and user's process information;
Entrust performance element, be used for process information, from buffer memory, obtain corresponding trust, and carry out said trust according to said unique identifier and user;
Continue processing unit, be used for continuing to handle said service logic according to the trust after carrying out;
Said trust refers to the Service Logic processing Program that is used to connect after dialog box shows preceding and demonstration.
Another purpose of the embodiment of the invention also is to provide a kind of infosystem, and said infosystem comprises said business logic processing device.
In embodiments of the present invention; Through the unique identifier of setting up and corresponding trust; Make that the business logic processing code that has the dialog box request is related with the existence of demonstration back before dialog box shows, said business logic processing can be accomplished in one section code of service end, need not be divided into multistage and carry out; Strengthen the readability of code, effectively raised the efficient of system development and business logic processing.
Description of drawings
Fig. 1 is the realization flow figure of the business logic processing method that provides of the embodiment of the invention one;
Fig. 2 is the structured flowchart of the business logic processing device that provides of the embodiment of the invention two.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The unique identifier and corresponding trust of the embodiment of the invention through setting up; Make the business logic processing code that has the dialog box request before dialog box shows, exist related with the demonstration back; Said business logic processing can be accomplished in one section code of service end; Need not be divided into multistage and carry out, strengthen the readability of code, effectively raise the efficient of system development and business logic processing.
For technical scheme of the present invention is described, describe through specific embodiment below.
Embodiment one:
Fig. 1 shows the realization flow of the business logic processing method that the embodiment of the invention one provides, and details are as follows for this procedure:
In step S101, receive the business logic processing request of client.
In the present embodiment, the business logic processing request is meant the processing request of different business function in the project, for example: the processing request of function such as registration in shopping website, shopping, payment.
In step S102, judge whether said service logic exists the dialog box request.If judged result is " being " then execution in step S104, if judged result is " denying " then execution in step S103.
In the present embodiment, after service end receives the business logic processing request of client, call and carry out the corresponding processing program that is stored in service end in advance, handle this service logic.In the process of handling this service logic; Judge whether said service logic exists the dialog box request; When if there is the dialog box request in this service logic; Then service end is set up unique identifier and corresponding trust to the service logic that has the dialog box request, and said unique identifier is stored in the buffer memory with corresponding trust; If when there was not the dialog box request in this service logic, then service end was directly handled.
In step S103, when there was not the dialog box request in the service logic of said processing, service end was directly handled.
In step S104, when there was the dialog box request in the service logic of said processing, service end was set up unique identifier and corresponding trust to the service logic that has the dialog box request, and said unique identifier is stored in the buffer memory with corresponding trust.
In the present embodiment, the dialog box request refers to processing requests such as needing the user examines, affirmation in the business logic processing process.When there is the dialog box request in this service logic; In order to make the business logic processing code that has the dialog box request before dialog box shows, exist related with the demonstration back; Service end is set up unique identifier and corresponding trust to the service logic that has the dialog box request, and said unique identifier is stored in the buffer memory with corresponding trust.Wherein, unique identifier is this service logic unique sign corresponding with trust, entrusts to refer to the Service Logic processing Program that is used to connect after dialog box shows preceding and demonstration.Below be one and entrust instance, but be not limited to this example.
this.View.ShowForm(param,new?Action<FormResult>((result)=>
{
// after dialog box finishes, call following procedure
var?data=result.ReturnData;
if(data==MessageBox.OK)
{
// mutual with follow-up code very easily
this.Refresh()
}
}
));
In step S105,, send to client with setting up good said unique identifier and dialog box request instruction to there being the service logic of dialog box request.
In the present embodiment, when there was the dialog box request in service logic, the instruction that service end will be handled this dialog box request (for example: showConfirmDialog ()) send to client, will set up good unique identifier simultaneously and send to client.
In step S106, accept unique identifier that client returns and user's process information, from buffer memory, obtain corresponding trust.
In the present embodiment; The instruction that service end will be handled this dialog box request sends to client, after client receives said instruction, and the program that running client is corresponding; Show this dialog box; Process informations such as reception user's audit, affirmation, after receiving process informations such as user's audit, affirmation, client returns to service end with said process information and unique identifier.
In the present embodiment; After service end receives the user processing information and unique identifier that client sends over; From buffer memory, obtain corresponding trust according to said unique identifier, and send user's process information the trust of said correspondence to the form of parameter, carry out said trust.
As another embodiment of the present invention, after this method also was included in and executes said trust, deletion should be entrusted, and effectively prevented to entrust too much, and the storage space of buffer memory influences the service end handling property in the waste service end.
In step S107,, continue to handle said service logic according to the trust after carrying out.
In the present embodiment,, jump to the follow-up code place that handles said service logic, continue to handle said service logic, guaranteed that service logic carries out in one section code, effectively raise the efficient of business logic processing according to the trust after carrying out.
As as another embodiment of the present invention, after this method also is included in and handles said service logic, the object information after handling is fed back to client, improve the satisfaction of user to system.
Embodiment two:
Fig. 2 shows the structure of the business logic processing device that the embodiment of the invention two provides; For the ease of explanation; Only show the part relevant with the embodiment of the invention, this device can be for being arranged at the unit of software unit, hardware cell or software and hardware combining in the infosystem.
This business logic processing device comprises to be handled request receiving element 21, dialog box request judging unit 22, direct processing unit 23, information memory cell 24, information receiving unit 25, trust performance element 26, continuation processing unit 27 and entrusts delete cells 28, wherein:
Handle request receiving element 21, be used to receive the business logic processing request of client.
In the present embodiment, the business logic processing request is meant the processing request of different business function in the project.
Dialog box request judging unit 22; Be used for after the business logic processing request of accepting client; Call the said service logic of corresponding service logical process routine processes that is stored in service end in advance; And in the process of business logic processing, judge whether said service logic exists the dialog box request, if judged result is " being "; Then 24 pairs of information memory cells exist the service logic of dialog box request to set up unique identifier and corresponding trust, and said unique identifier is stored in the buffer memory with corresponding trust; If judged result is " denying ", then directly processing unit 23 is direct through being stored in the said service logic of corresponding service logical process routine processes of service end in advance.
Information receiving unit 25 is used to accept unique identifier that client returns and user's process information.
In the present embodiment, unique identifier is unique sign of said service logic and trust, and user's process information is meant process informations such as needing the user examines, affirmation.
Entrust performance element 26, be used for process information, from buffer memory, obtain and carry out the trust of said correspondence according to said unique identifier and user.
Continue processing unit 27, be used for continuing to handle said service logic according to the trust after carrying out.
In the present embodiment; Behind the client that executes said correspondence; Can jump to the follow-up code place that handles said service logic according to the client of said correspondence, continue to handle said service logic; Guaranteed that service logic carries out in one section code, effectively raised the efficient of business logic processing.
As another embodiment of the present invention, this business logic processing device also comprises entrusts delete cells 28, is used to delete the trust after executing.Entrust delete cells 28 can prevent effectively that the trust of storing in the buffer memory is too much, the waste storage space influences the service end handling property.
As another embodiment of the present invention, this business logic processing device also comprises object information feedback unit 29, and the information feedback that is used for said business logic processing after intact is given client.The object information feedback unit can effectively improve the satisfaction of user to system.
In embodiments of the present invention; Through the unique identifier of setting up and corresponding trust; Make that the business logic processing code that has the dialog box request is related with the existence of demonstration back before dialog box shows, said business logic processing can be accomplished in one section code of service end, need not be divided into multistage and carry out; Strengthen the readability of code, effectively raised the efficient of system development and business logic processing.In addition, after executing trust, deletion should be entrusted, and effectively prevented to entrust too much, and the storage space of buffer memory influences the service end handling property in the waste service end.After the present invention also is included in and handles said service logic, the object information after handling is fed back to client, improve the satisfaction of user system.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. the business logic processing method of an infosystem is characterized in that, said method comprises the steps:
Receive the business logic processing request of client, the service logic that has the dialog box request is set up unique identifier and corresponding trust, said unique identifier is stored in the buffer memory with corresponding trust;
Said unique identifier and dialog box request instruction are sent to client;
Accept unique identifier that client returns and user's process information, from buffer memory, obtain corresponding trust;
Carry out said trust, and, continue to handle said service logic according to the trust after carrying out;
Said trust is the Service Logic processing Program that is used to connect after dialog box shows preceding and demonstration.
2. the method for claim 1 is characterized in that, said method also comprises the steps:
Service logic to there not being the dialog box request is directly handled.
3. the method for claim 1 is characterized in that, said method also comprises the steps:
Trust to after executing is deleted.
4. the method for claim 1 is characterized in that, said method also comprises the steps:
Information feedback with said business logic processing after intact is given client.
5. a business logic processing device is characterized in that, said device comprises:
Handle the request receiving element, be used to receive the business logic processing request of client;
Dialog box request judging unit is used to judge whether said service logic exists the dialog box request;
Information memory cell is used for the service logic that has the dialog box request is set up unique identifier and corresponding trust, and said unique identifier is stored in the buffer memory with corresponding trust;
Information receiving unit is used to accept unique identifier that client returns and user's process information;
Entrust performance element, be used for process information, from buffer memory, obtain corresponding trust, and carry out said trust according to said unique identifier and user;
Continue processing unit, be used for continuing to handle said service logic according to the trust after carrying out;
Said trust is the Service Logic processing Program that is used to connect after dialog box shows preceding and demonstration.
6. device as claimed in claim 5 is characterized in that, said device also comprises:
Directly processing unit is used for the service logic that does not have the dialog box request is directly handled.
7. device as claimed in claim 5 is characterized in that, said device also comprises:
Entrust delete cells, be used for the trust after executing is deleted.
8. device as claimed in claim 5 is characterized in that, said device also comprises:
The object information feedback unit, the information feedback that is used for said business logic processing after intact is given client.
9. an infosystem is characterized in that, said infosystem comprises claim 5 or 8 described business logic processing devices.
CN201010585539.XA 2010-12-13 2010-12-13 Service logic processing method for information system and device Active CN102542337B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010585539.XA CN102542337B (en) 2010-12-13 2010-12-13 Service logic processing method for information system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010585539.XA CN102542337B (en) 2010-12-13 2010-12-13 Service logic processing method for information system and device

Publications (2)

Publication Number Publication Date
CN102542337A true CN102542337A (en) 2012-07-04
CN102542337B CN102542337B (en) 2014-04-02

Family

ID=46349183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010585539.XA Active CN102542337B (en) 2010-12-13 2010-12-13 Service logic processing method for information system and device

Country Status (1)

Country Link
CN (1) CN102542337B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107767123A (en) * 2017-11-10 2018-03-06 平安科技(深圳)有限公司 A kind of declaration form responsibility detailed checking method and device
CN107784117A (en) * 2017-11-10 2018-03-09 平安科技(深圳)有限公司 The declaration form of settlement of insurance claim case determines method and apparatus
CN112394962A (en) * 2020-11-27 2021-02-23 ***股份有限公司 Service execution method, service logic updating method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6253369B1 (en) * 1994-11-30 2001-06-26 International Business Machines Corp. Workflow object compiler with user interrogated information incorporated into skeleton of source code for generating executable workflow objects
CN101236490A (en) * 2007-02-01 2008-08-06 阿里巴巴公司 Method and system for obtaining business logic
CN101359288A (en) * 2008-09-16 2009-02-04 浪潮齐鲁软件产业有限公司 Method for implementing self-help operation of software by using WIN32 message mechanism

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6253369B1 (en) * 1994-11-30 2001-06-26 International Business Machines Corp. Workflow object compiler with user interrogated information incorporated into skeleton of source code for generating executable workflow objects
CN101236490A (en) * 2007-02-01 2008-08-06 阿里巴巴公司 Method and system for obtaining business logic
CN101359288A (en) * 2008-09-16 2009-02-04 浪潮齐鲁软件产业有限公司 Method for implementing self-help operation of software by using WIN32 message mechanism

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107767123A (en) * 2017-11-10 2018-03-06 平安科技(深圳)有限公司 A kind of declaration form responsibility detailed checking method and device
CN107784117A (en) * 2017-11-10 2018-03-09 平安科技(深圳)有限公司 The declaration form of settlement of insurance claim case determines method and apparatus
CN112394962A (en) * 2020-11-27 2021-02-23 ***股份有限公司 Service execution method, service logic updating method and device
CN112394962B (en) * 2020-11-27 2024-01-26 ***股份有限公司 Service execution method, service logic updating method and device

Also Published As

Publication number Publication date
CN102542337B (en) 2014-04-02

Similar Documents

Publication Publication Date Title
CN108985757B (en) Information processing method, device and system, storage medium and electronic equipment
CN110601952B (en) Multi-channel message notification sending method and device
CN104751266A (en) Data processing method, value-added server and system
CN110597839A (en) Transaction data processing method, device, equipment and storage medium
US8386608B1 (en) Service scripting framework
CN104487913A (en) Mechanism for facilitating efficient operations paths for storage devices in computing systems
CN111242462B (en) Data processing method and device, computer storage medium and electronic equipment
CN103559118A (en) Security auditing method based on aspect oriented programming (AOP) and annotation information system
CN109767200B (en) Electronic payment method, device, system and storage medium
CN113254445B (en) Real-time data storage method, device, computer equipment and storage medium
CN110661853A (en) Data proxy method, device, computer equipment and readable storage medium
CN110351672B (en) Information pushing method and device and electronic equipment
CN107133233B (en) Processing method and device for configuration data query
CN102479355A (en) Method and device for loading business documents and mobile terminal
CN110535631A (en) Method, system, equipment and the storage medium of edge calculations node data transmission
CN102542337A (en) Service logic processing method for information system and device
CN111488169A (en) Method and device for hot updating of application program, storage medium and electronic equipment
CN112949273B (en) Electronic contract signing method, device, electronic equipment and computer readable medium
CN104601448A (en) Method and device for handling virtual card
CN104050058A (en) Method and system for restoring data and related devices
CN110309213B (en) Database access control method, device, system, medium and equipment
CN115333851A (en) Automatic driving data transmission method and device and electronic equipment
CN114449523A (en) Flow filtering method, device, equipment and medium for satellite measurement and control system
CN103490898A (en) E-mail collection authorization method, device and system
CN113781154A (en) Information rollback method, system, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant