CN104217271A - A method and system for enabling legacy system to have ability to process workflow - Google Patents

A method and system for enabling legacy system to have ability to process workflow Download PDF

Info

Publication number
CN104217271A
CN104217271A CN201310217934.6A CN201310217934A CN104217271A CN 104217271 A CN104217271 A CN 104217271A CN 201310217934 A CN201310217934 A CN 201310217934A CN 104217271 A CN104217271 A CN 104217271A
Authority
CN
China
Prior art keywords
business form
state
workflow
data
control information
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
CN201310217934.6A
Other languages
Chinese (zh)
Other versions
CN104217271B (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.)
Institute of Software Application Technology Guangzhou GZIS of CAS
Original Assignee
Institute of Software Application Technology Guangzhou GZIS of CAS
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 Institute of Software Application Technology Guangzhou GZIS of CAS filed Critical Institute of Software Application Technology Guangzhou GZIS of CAS
Priority to CN201310217934.6A priority Critical patent/CN104217271B/en
Publication of CN104217271A publication Critical patent/CN104217271A/en
Application granted granted Critical
Publication of CN104217271B publication Critical patent/CN104217271B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention discloses a method and system for enabling a legacy system to have an ability to process workflow. The method includes: intercepting business form target parameters in a business form operation, and storing the business form target parameters in a method call stack database; determining whether the business form operation needs workflow processing according to the business form target parameters; if not, completing the business form operation, and then storing the business form in a business form database for other users to search and call; if so, initiating and performing workflow, and then determining whether the workflow is successfully completed; if not, enabling the business form operation to end in failure; and if so, completing the business form operation, and then storing the business form in the business form database for other users to search and call. The present invention can enable the legacy system, which does not have the ability to process the workflow currently, to have the ability to process the workflow without amending business form codes.

Description

A kind of method and system making Legacy System possess workflow processing ability
Technical field
The invention belongs to business form technical field, be specifically related to a kind of method and system making Legacy System possess workflow processing ability.
Background technology
Business form, also can be electronic spreadsheet, is to adopt abstract to paper list in real world (such as ask for leave list, expense report) of informationalized means.It is major way and the means of carrying out data acquisition and displaying in application system, is also main handling object in Workflow system, mainly comprises three partial contents:
(1) form tags: contain the method that the URL of processing list forms data CGI/JSP/ASP supervisor used and data are submitted to server here.
(2) form fields: contain text box, password box, Hidden field, multiline text frame, check box, radio box, drop-down choice box and files passe frame etc.
(3) list button: comprise submit button, reset button and general button; For data being sent to the scripts such as CGI/JSP/ASP on server or cancelling input, can also control with list button the work for the treatment of that other define processing scripts.Wherein submit button just correspond to the operation such as newly-built, amendment, deletion of list.
Workflow (Work Flow) is exactly the computation model of workflow, carries out representing in a computer and to the calculation that in fact plays tricks by the logic Sum fanction organized together before and after the work in workflow how with appropriate model.The subject matter that workflow will solve is: for realizing certain business objective, between multiple participant, utilizing computing machine, automatically transmitting document, information or task by certain pre-defined rule.Briefly, workflow is exactly a series of mutual linking, the business activity automatically carried out or task.We can regard whole business procedure as Yi Tiaohe, and the river wherein flow through is exactly pending business form.
Workflow engine (Work Flow Engine) is the maneuverability pattern in order to realize workflow, flow operations process is encapsulated, provides service to application system, make operation system can realize the mode of operation of workflow.
Legacy System (legacy system) is the system to setting up in the past, or the general term of the system of legacy version.If Legacy System does not have the ability of workflow processing, if Legacy System so will be made to have the processing power of workflow, current way is exactly modify to the service code left over.The ability without workflow processing is embodied in after a client submits a business form to, and the information of business form is kept in a database, can not active push be for further processing to other client terminals.And the ability with workflow processing is embodied in after a client submits a business form to, business form information down will be transmitted, until workflow terminates automatically according to the node of workflow setting.
The node that the interpolation of workflow processing ability function is equivalent to the operation of business form sets according to workflow has carried out cutting, the operation of business form is not come into force at once, must wait until that the operation of workflow processing complete business form afterwards could finally come into force.So existing technology adds workflow capabilities to the business form operation without workflow capabilities, needs to revise source code.
List of asking for leave in such as Legacy System, there is list button " submission ", after click on submission button, this single coming into force of asking for leave, namely: for the business form of existing not Legacy System, once after user's click " submission " button, directly will be saved in DB database by the data of this business form, the data in DB database can be consulted by other people.
If will single processing power of adding workflow of asking for leave be submitted to, then amendment is needed to submit single service code of asking for leave to.Ask for leave in the service code of single application existing, need the function calling workflow engine, be used for initiating some workflows.Meanwhile, single can not being at once queried to of asking for leave of submission, after single workflow processing of must by the time asking for leave all completes, just can be queried to.Therefore, inquiry single code of asking for leave also needs to modify, and needs to add this single service code whether in workflow processing of asking for leave and judges.
As can be seen from above example, the processing power that the business form left over adds workflow is the work of a very loaded down with trivial details and inefficiency, needs to modify to existing service code, and the code of business form is coupled with the code of workflow.
Summary of the invention
In order to solve the problem, the object of the present invention is to provide a kind of method and system making Legacy System possess workflow processing ability, the existing Legacy System not possessing workflow processing ability can be made to possess workflow processing ability, and do not need amendment business form code.
In order to realize foregoing invention object, the technical solution used in the present invention is as follows:
Make Legacy System possess a method for workflow processing ability, comprising:
Business form image parameter in the operation of intercept service list, and business form image parameter is stored in a method call stacked data storehouse;
According to described business form image parameter, judge that the operation of this business form is the need of carrying out workflow processing;
As no, then read corresponding business form image parameter from described method call stacked data storehouse to complete the operation of this business form, be then stored in business form database for other user's query calls;
In this way, then initiate and perform workflow, then judging whether described workflow successfully terminates;
As no, then make described business form operate unsuccessfully to terminate, get this business form state of a control information simultaneously, perform " refusal " operation and business form state of a control information is changed;
In this way, then read corresponding business form image parameter from described method call stacked data storehouse to complete the operation of this business form, then be stored in business form database for other user's query calls, get this business form state of a control information simultaneously, perform " acceptance " operation and business form state of a control information is changed.
Further, described business form image parameter comprises and calls class name, called side religious name and call method parameter.
Further, also comprise after business form image parameter in the operation of intercept service list: generate business form state of a control information according to described business form image parameter, described business form state of a control information comprises the eight kinds of state of a controls can mutually changed under certain operating conditions: state in state, newly-built status of fail, normal condition, the process of modification stream in newly-built state, newly-built workflow processing, revise failed device, delete state and deleted state in workflow processing.
Further, also comprise the step of checking business form data of Legacy System, specific as follows:
Perform the business form querying method of Legacy System, the data of loaded with traffic list;
Check described business form state of a control information, whether comprise this business form data;
If do not comprised, then business form processing page is sent to show the data of business form;
As comprised, then according to business form state of a control information, the state of amendment business form processing page.
Further, also comprise in workflow processing the step of checking business form data, specific as follows:
In the workflow processing page, display is about to the business form information changed;
After receiving workflow processing page display request, by performing the business form querying method of Legacy System, loading and showing business form data;
Judge business form action type, described business form action type comprise newly-built, delete and amendment three types;
If delete, then business form data are sent in the page in workflow processing and show;
If newly-built or amendment, then the business form data of aforementioned loading are replaced with newly-built or amended business form data.
Present invention also offers corresponding consistent make Legacy System complete in preceding method and possess the system of workflow processing ability, it comprises:
Business form operation intercept module, for the business form image parameter in the operation of intercept service list, and is stored in a method call stacked data storehouse by business form image parameter;
Workflow judge module, for according to described business form image parameter, judges that the operation of this business form is the need of carrying out workflow processing, and as no, then complete business form logical operation module, in this way, then performs workflow and initiate and terminate judge module;
Finishing service form logic operational module, for reading corresponding business form image parameter from described method call stacked data storehouse to complete the operation of this business form, is then stored in business form database for other user's query calls;
Workflow is initiated and is terminated judge module, and for initiating and performing workflow, then judge whether described workflow successfully terminates, as no, then perform and unsuccessfully terminate module, in this way, then run succeeded end module;
Unsuccessfully terminating module, for making described business form operate unsuccessfully to terminate, getting this business form state of a control information simultaneously, perform " refusal " operation and business form state of a control information is changed;
Successfully terminate module, for reading corresponding business form image parameter from described method call stacked data storehouse to complete the operation of this business form, then be stored in business form database for other user's query calls, get this business form state of a control information simultaneously, perform " acceptance " operation and business form state of a control information is changed.
Further, described business form image parameter comprises and calls class name, called side religious name and call method parameter.
Further, described business form operation intercept module, also comprise after business form image parameter in the operation of intercept service list: generate business form state of a control information according to described business form image parameter, described business form state of a control information comprises the eight kinds of state of a controls can mutually changed under certain operating conditions: state in state, newly-built status of fail, normal condition, the process of modification stream in newly-built state, newly-built workflow processing, revise failed device, delete state and deleted state in workflow processing.
Further, also comprise the module of checking business form data of Legacy System, for specifically performing following action:
Perform the business form querying method of Legacy System, the data of loaded with traffic list;
Check described business form state of a control information, whether comprise this business form data;
If do not comprised, then business form processing page is sent to show the data of business form;
As comprised, then according to business form state of a control information, the state of amendment business form processing page.
Further, also comprise in workflow processing the module of checking business form data, for specifically performing following action:
In the workflow processing page, display is about to the business form information changed;
After receiving workflow processing page display request, by performing the business form querying method of Legacy System, loading and showing business form data
Judge business form action type, described business form action type comprise newly-built, delete and amendment three types;
If delete, then business form data are sent in the page in workflow processing and show;
If newly-built or amendment, then the business form data of aforementioned loading are replaced with newly-built or amended business form data.
The treatment scheme of existing legacy system services list: after submitting business form operation to, business form will come into force, namely be that after submitting to, business form image parameter will be saved in business form database, by other user's query calls, can be inquired by other users.
But business form image parameter by the business form image parameter in the operation of intercept service list, and is stored to a method call stacked data storehouse by the present invention, and is not directly stored in business form database, makes it to come into force.Meanwhile, the data stored in Application way allocating stack database of the present invention, initiate and perform corresponding workflow, and workflow execution terminates rear being just stored in business form database, enable by other user's query calls.Namely be, the present invention is by the data cutout of business form submit operation out, be stored in an intermediate database (method call stacked data storehouse), and then workflow processing ability is added to it, thus when can find out that the present invention can not change the original form tags of business form, form fields, list button, business form can be processed in workflow, thus reduce the exploitation of System Programming, improve development efficiency.
Accompanying drawing explanation
This accompanying drawing illustrates that the picture provided is used for auxiliary a further understanding of the present invention, forms a application's part, does not form inappropriate limitation of the present invention, in the accompanying drawings:
Fig. 1 is overall flow principle schematic of the present invention;
Fig. 2 is the schematic flow sheet that business form carries out when workflow is initiated;
Fig. 3 is the schematic flow sheet that business form carries out at the end of workflow processing;
Fig. 4 is the schematic flow sheet checking business form data in Legacy System;
Fig. 5 is the schematic flow sheet checking business form data in workflow processing;
Fig. 6 is the control device schematic diagram that business form carries out when workflow is initiated;
Fig. 7 is the control device schematic diagram that business form carries out at the end of workflow processing;
Fig. 8 is the device schematic diagram checking business form data;
Fig. 9 is business form state of a control machine schematic diagram.
Embodiment
As shown in Figure 1, present embodiment discloses a kind of method making Legacy System possess workflow processing ability, comprising:
11, the business form image parameter in the operation of intercept service list, and is stored in a method call stacked data storehouse by business form image parameter, described business form image parameter comprises and calls class name, called side religious name and call method parameter;
12, according to described business form image parameter, judge that the operation of this business form is the need of carrying out workflow processing;
As no, then perform 131: read corresponding business form image parameter from described method call stacked data storehouse to complete the operation of this business form, be then stored in business form database for other user's query calls;
In this way, then perform 132: initiate and perform workflow, then judge whether described workflow successfully terminates;
As no, then perform 141: described business form is operated unsuccessfully to terminate, gets this business form state of a control information simultaneously, perform " refusal " operation and business form state of a control information is changed;
In this way, then perform 142: read corresponding business form image parameter from described method call stacked data storehouse to complete the operation of this business form, then be stored in business form database for other user's query calls, get this business form state of a control information simultaneously, perform " acceptance " operation and business form state of a control information is changed.
In order to the operation of service control list and process circulation in workflow, also comprise after business form image parameter in the operation of intercept service list: generate business form state of a control information according to described business form image parameter, described business form state of a control information comprises the eight kinds of state of a controls can mutually changed under certain operating conditions: state in state, newly-built status of fail, normal condition, the process of modification stream in newly-built state, newly-built workflow processing, revise failed device, delete state and deleted state in workflow processing.
In order to shield or change the information of the business form display in Legacy System, make it possible to mate with workflow processing ability, also comprise the step of checking business form data of Legacy System, specific as follows:
Perform the business form querying method of Legacy System, the data of loaded with traffic list;
Check described business form state of a control information, whether comprise this business form data;
If do not comprised, then business form processing page is sent to show the data of business form;
As comprised, then according to business form state of a control information, the state of amendment business form processing page.
For the ease of checking business form data in workflow process, also comprise in workflow processing the step of checking business form data, specific as follows:
In the workflow processing page, display is about to the business form information changed;
After receiving workflow processing page display request, by performing the business form querying method of Legacy System, loading and showing business form data;
Judge business form action type, described business form action type comprise newly-built, delete and amendment three types;
If delete, then business form data are sent in the page in workflow processing and show;
If newly-built or amendment, then the business form data of aforementioned loading are replaced with newly-built or amended business form data.
The present embodiment also disclose a kind of with preceding method completely the corresponding consistent Legacy System that makes possess the system of workflow processing ability, it comprises:
Business form operation intercept module, for the business form image parameter in the operation of intercept service list, and business form image parameter being stored in a method call stacked data storehouse, described business form image parameter comprises and calls class name, called side religious name and call method parameter;
Workflow judge module, for according to described business form image parameter, judges that the operation of this business form is the need of carrying out workflow processing, and as no, then complete business form logical operation module, in this way, then performs workflow and initiate and terminate judge module;
Finishing service form logic operational module, for reading corresponding business form image parameter from described method call stacked data storehouse to complete the operation of this business form, is then stored in business form database for other user's query calls;
Workflow is initiated and is terminated judge module, and for initiating and performing workflow, then judge whether described workflow successfully terminates, as no, then perform and unsuccessfully terminate module, in this way, then run succeeded end module;
Unsuccessfully terminating module, for making described business form operate unsuccessfully to terminate, getting this business form state of a control information simultaneously, perform " refusal " operation and business form state of a control information is changed;
Successfully terminate module, for reading corresponding business form image parameter from described method call stacked data storehouse to complete the operation of this business form, then be stored in business form database for other user's query calls, get this business form state of a control information simultaneously, perform " acceptance " operation and business form state of a control information is changed.
In order to the operation of service control list and process circulation in workflow, described business form operation intercept module, also comprise after business form image parameter in the operation of intercept service list: generate business form state of a control information according to described business form image parameter, described business form state of a control information comprises the eight kinds of state of a controls can mutually changed under certain operating conditions: newly-built state, state in newly-built workflow processing, newly-built status of fail, normal condition, state in the process of modification stream, revise failed device, delete state and deleted state in workflow processing.
In order to shield or change the information of the business form display in Legacy System, make it possible to mate with workflow processing ability, also comprise the module of checking business form data of Legacy System, for specifically performing following action:
Perform the business form querying method of Legacy System, the data of loaded with traffic list;
Check described business form state of a control information, whether comprise this business form data;
If do not comprised, then business form processing page is sent to show the data of business form;
As comprised, then according to business form state of a control information, the state of amendment business form processing page.
For the ease of checking business form data in workflow process, also comprise in workflow processing the module of checking business form data, for specifically performing following action:
In the workflow processing page, display is about to the business form information changed;
After receiving workflow processing page display request, by performing the business form querying method of Legacy System, loading and showing business form data
Judge business form action type, described business form action type comprise newly-built, delete and amendment three types;
If delete, then business form data are sent in the page in workflow processing and show;
If newly-built or amendment, then the business form data of aforementioned loading are replaced with newly-built or amended business form data.
Certainly the above-mentioned method making Legacy System possess workflow processing ability can also be divided into the treatment scheme of four-stage: workflow mounting phase flow process, the workflow business form data completed in phase flow, workflow processing check that in flow process, Legacy System, business form data check flow process.
Wherein, the Main Function of workflow mounting phase flow process intercepts the operation of legacy service list, and insert the logic of workflow initiation.Such as during newly-built expense report operation, need original service logic to intercept, and initiate the workflow processing of newly-built expense report.
Wherein, the Main Function that workflow completes phase flow is on the basis that workflow completes, and completes the operation to business form.When such as newly-built expense report workflow processing completes, the business logical operation intercepted before needing to continue to perform, completes the newly-built operation of expense report.
Wherein, the business form data in workflow processing check that the Main Function of flow process is in workflow processing, and the business form that handler will check needs to do further process just can meet display requirement.After such as newly-built expense report operation, owing to having intercepted newly-built expense report operation in workflow mounting phase, make there is not this expense report in expense report storehouse, but be stored in other database, so when needing to check this newly-built expense report information in workflow processing, just must carry out extra process, just can see this newly-built expense report information.
Wherein, in Legacy System, business form data check that the Main Function of flow process is shielding or the information changing the business form display in Legacy System, make it possible to mate with workflow processing ability.Such as the reimbursed sum of expense report is revised as 2000 yuan from 1000 yuan, just come into force after Legacy System amendment is complete, and the amended expense report amount of money 2000 yuan can be seen by financial attache at once.If but with the addition of workflow processing ability, so this expense report amount of money 2000 yuan can not be viewed by financial attache at once, after must waiting until that whole workflow processing completes, just can see 2000 yuan.
As shown in Figure 2, workflow mounting phase specifically comprises the following steps:
Step S110, the button of click-to-call service list, will perform the business logical operation of rear end.Conventional business logical operation have newly-built, delete, revise, check.Such as, click " submission " button of list of asking for leave, so this can the be asked for leave data of list of the newly-built operation logic of opposite rear end are deposited in database.
Step S120, business form image parameter in the operation of intercept service list, business form state of a control information is generated based on this business form object, according to Target-oriented thought, perform the submit operation of business form state of a control information object, in the submit operation of this object, mainly change the state of a control of business form and the business form data after change is set.Intercept parameter and generally can adopt AOP (Aspect-oriented programming) technology, the parameter of method is crawled out.
Step S130, judges that the operation of this business form is the need of carrying out workflow processing.If do not carry out workflow processing, then perform step S140, otherwise perform step S160.
Step S140, completes the business form logical operation in S110.
Step S150, according to Target-oriented thought, using the business form state of a control information in S120 as object, performs the acceptance operation of this object.In the acceptance operation of this object, mainly change the state of a control of business form and the business form data after emptying change.
Step S160, stop the back-end logic operation of business form, and the method call stack information operated by this back-end logic is preserved.When the preservation of method call stack information makes work be successfully completed, again can be transferred out and perform, the logical operation of finishing service list.Method call stack information comprises called side religious name, method parameter object etc.If object-oriented language such as Java writes, also comprise the title calling class.
Step S170, initiates workflow.
As shown in Figure 3, the workflow stage that completes specifically comprises the following steps:
Step S210, judges whether workflow successfully terminates, if unsuccessfully to terminate, then performs step S220, if successfully to terminate, perform step S240.
Step S220, abandons method storehouse corresponding for business form operation, makes the operation failure of business form.
Step S230, according to Target-oriented thought, using the business form state of a control information in S120 as object, performs the refusal operation of this object.In the refusal operation of this object, mainly change the state of a control of business form and the business form data after emptying change.
Step S240, removing method allocating stack, continues the operation performing business form, makes the successful operation of business form.Such as perform the operation of newly-built expense report, judge that this newly-built expense report needs to perform workflow operation in step s 130, which, and in step S160, the method call storehouse that the back-end logic of newly-built expense report operates is preserved.When step S240, the allocating stack preserved before is taken out, and performs, newly-built expense report is finally come into force, and can view by user.
Step S250, according to Target-oriented thought, using the business form state of a control information in S120 as object, performs the acceptance operation of this object.In the acceptance operation of this object, mainly change the state of a control of business form and the business form data after emptying change.
As shown in Figure 4, Legacy System check that the flow process of business form data specifically comprises the following steps:
Step S310, performs the business form querying method of Legacy System, the data of loaded with traffic list.Such as, according to the ID of expense report, the information of the expense report that inquiry is corresponding.
Step S320, checks the business form state of a control information in S120, whether comprises this business form data, if do not comprised, performs step S340, if comprised, performs step S330.
Step S330, according to business form state of a control information, the state display of amendment business form.There is " state " form fields in such as business form, be set to " in amendment examination & approval " according to state of a control information.
The data of business form are shown on the page by step S340.
As shown in Figure 5, check in workflow processing that the flow process of business form data specifically comprises the following steps:
Step S410, workflow processing user clicks the workflow processing page entering some business forms, display is about to the business form information changed wherein.Such as, in the workflow processing page of newly-built expense report, by the information displaying of expense report out.
Step S420, system, after receiving workflow processing page display request, by performing the business form querying method of Legacy System, loading and showing business form data.
Step S430, business form operation have newly-built, delete and repair three basic forms of it, judge business form action type, if the workflow of the deletion action of the business form carried out, then perform step S450, if the business form carried out is newly-built and the workflow of amendment, then perform step S440.
The business form data that step S440, step S420 load replace with newly-built or amended business form data.The business form image parameter intercepted in newly-built or amended business form data i.e. step S120.
Business form data are shown in the page in workflow processing by step S450.
Equally, the aforementioned system making Legacy System possess workflow processing ability, can also divide in such a way: mainly comprise relevant database table, workflow initiation module, workflow completes module and business form data check modular converter.
Database table comprises method call storehouse storehouse 210, business form control information storehouse 220, business form storehouse 230, sees Fig. 6, Fig. 7, Fig. 8.
The method execution stack of the back-end operations logic of the 210 pairs of business form operations in method call storehouse storehouse stores, and mainly comprises and calls class, called side religious name, call method parameter sets information.
Such as the manner of execution of the back-end operations logic of newly-built list of asking for leave is: LeaveFormService.newLeaveForm (LeaveForm form), then calling class is LeaveFormService, call method is called newLeaveForm, and called side religious name parameter sets is LeaveForm form.
220 pairs, business form control information storehouse business form state of a control information stores, and mainly comprises four fields such as state of a control of the business form data after business form type, business form id, change, business form.
Business form type field can differentiated service form types, makes business form control information storehouse 220 can store the state of a control information of the business form of any type.
Business form id field can distinguish the different business list in same business form type.
Business form data field after change be used for temporary newly-built and amendment business form data.For newly-built and retouching operation, when carrying out workflow processing, its business form data content can not come into force, and when must work as workflow to be successfully completed, the newly-built and retouching operation of business form just can come into force.Business form data field after change can adopt the mode of serializing that the data message overall transformation of business form is become scale-of-two bytecode and stores.
The state of a control of business form mainly contains eight, see Fig. 9, mainly comprise NewState (newly-built state), NewProcessState (in newly-built workflow processing state), NewFailState (newly-built status of fail), NormalState (normal condition), ModifyProcessState (in the process of modification stream state), ModifyFailState (amendment status of fail), DelProcessState (deleting state in workflow processing), DeletedState (deleted state) state, can shift under certain operating conditions between each state.Operation comprises submission, deletion, accepts and refusal four kinds of operations.Wherein submit operation can be used for process newly-built and retouching operation, deletion action be used for process deletion action, accept and refusal operation can be used for process newly-built, amendment and deletion action.
Preferably, the state of a control of business form can be added as required, such as ModifyWaitProcessState, represents also not through the amendment business form state of one action stream process.
Preferably, DeletedState state not necessarily.After the deletion of business form, can delete completely from business form storehouse.
According to Target-oriented thought, business form state of a control information not only can comprise four attributes such as state of a control of the business form data after business form type, business form id, change, business form, also comprises submit operation, accepts operation and refusal operation.
Accept, in processor 130, operation refusal processor 160, the state of a control based on business form is carried out business form process operation control in operation submission processor 110, operation.The implication that business form process operation controls is when business form is in different state of a controls, the operation behavior that service control list can perform.
Such as, when being in NormalState, performing submit operation, by state transition to ModifyProcessState, and submit operation can not be carried out again at ModifyProcessState, can only carry out accepting and refuse operation.Control based on such state, just can realize same business form can not repeatedly be revised at the same time, avoids business form and operates the data collision that may cause.
Business form storehouse 230 store any type, the business form of heterogeneous structure.The implication of heterogeneous structure is that form fields, form tags are different with during list button.List of such as asking for leave comprises form tags and " asks for leave the time ", and reimbursement list comprises form tags " reimbursed sum ".
Workflow initiation module comprise Legacy System business form operations actuator 110, operation submit to processor 120, workflow initiate blocker 130, operation accept processor 140, see Fig. 6.
The business form operations actuator 110 of Legacy System processes the operation logic of business form, and major parameter is the business form data after change.If newly-built operation, then these business form data are the data constructed.If retouching operation, then these business form data be according to old service form data amendment after data.If deletion action, then these business form data are old service form datas.
Operation submits to processor 120 to inquire about the control information whether having current business list from business form control information storehouse 220.If there is no the control information of corresponding business form, if or have the control information of corresponding business form, and business form state of a control is one of these four kinds of states of NewState, NewFailState, NormalState and ModifyFailState, then generate business form state of a control information according to current business form data, and perform " submission " operation.
If business form action type is newly-built operation, then, after performing " submission " operation, business form state of a control will be transformed into N state ewProcessState, and be stored in business form control information storehouse 220.
If business form action type is retouching operation, then, after performing " submission " operation, business form state of a control will be transformed into state ModifyProcessState, and be stored in business form control information storehouse 220.
If business form action type is deletion action, then, after performing " submission " operation, business form state of a control will be transformed into state DelProcessState, and be stored in business form control information storehouse 220.
If inquire the control information of current business list in business form control information storehouse 220, and business form state of a control is not these four kinds of states of NewState, NewFailState, NormalState and ModifyFailState, then throw exception prompting " can not perform the XXX operation of business form ", and interrupts the execution of subsequent module.
Workflow is initiated blocker 130 and is tackled parameter in the business form operations actuator 110 of Legacy System, comprises action type, calls class, called side religious name, call method parameter sets, judges whether to initiate workflow according to these parameters.If the workflow of initiation, then above parameter is saved in method call storehouse 210.
If do not need to initiate workflow, operation accepts processor 140 and submits business form state of a control information and executing " acceptance " operation obtained in processor 120 based on operation to, and execute the operation of business form, by business form data stored in business form storehouse 230.
If business form action type is newly-built operation, then, after performing " acceptance " operation, business form state of a control will be transformed into N state ormalState, and be stored in business form control information storehouse 220.
If business form action type is retouching operation, then, after performing " acceptance " operation, business form state of a control will be transformed into N state ormalState, and be stored in business form control information storehouse 220.
If business form action type is deletion action, then, after performing " acceptance " operation, business form state of a control will be transformed into state DeletedState, and be stored in business form control information storehouse 220.
Preferably, when business form state of a control is in NormalState, this business form state of a control can be deleted from 220.
Workflow terminate module comprise workflow complete processor 150, operation accept processor 140, operation refusal processor 160.
When workflow completes, workflow completes processor 150 and take out business form state of a control information and business form method of operating allocating stack respectively from business form control information storehouse 220 and method call storehouse storehouse 210.
If successfully to terminate, the allocating stack of preservation will be taken out in method call storehouse 210, adopt reflection technology to perform, by business form data stored in business form storehouse 230.Meanwhile, accept in processor 140, business form state of a control information and executing " acceptance " to be operated in operation.
If business form action type is newly-built operation, then, after performing " acceptance " operation, business form state of a control will be transformed into N state ormalState, and be stored in business form control information storehouse 220.
If business form action type is retouching operation, then, after performing " acceptance " operation, business form state of a control will be transformed into N state ormalState, and be stored in business form control information storehouse 220.
If business form action type is deletion action, then, after performing " acceptance " operation, business form state of a control will be transformed into state DeletedState, and be stored in business form control information storehouse 220.
Preferably, when business form state of a control is in NormalState, this business form state of a control can be deleted from 220.
If unsuccessfully to terminate, in operation refusal processor 160, business form state of a control information and executing " refusal " is operated.
If business form action type is newly-built operation, then, after performing " refusal " operation, business form state of a control will be transformed into N state ewFailState, and be stored in business form control information storehouse 220.
If business form action type is retouching operation, then, after performing " refusal " operation, business form state of a control will be transformed into N state ormalState, and be stored in business form control information storehouse 220.
Preferably, this business form control information is carried out copy the new business form control information of generation one, these three field values of business form data wherein after business form type, business form id, change are constant, and the state of a control field of business form is set to ModifyFailState.User submits to after can editing based on the business form data of this amendment failure again.
If business form action type is deletion action, then, after performing " refusal " operation, business form state of a control will be transformed into N state ormalState, and be stored in business form control information storehouse 220.
Preferably, when business form state of a control is in NormalState, this business form state of a control can be deleted from 220.
Business form data check that modular converter comprises business form information inspection device 310 and business form information replacer 320.
Business form information inspection device 310 takes out business form data from business form database 230, and judges whether according to business form control information storehouse 210 replacement will carrying out business form data.
When checking business form data in the workflow processing page, and when business form data have a corresponding control information in business form control information storehouse 210, and when state of a control is NewProcessState or NewFailState, then by business form information replacer 320, the business form data after the change in business form control information are taken out, adopt the display field of the reflection technology structure business form page.
When checking business form data in the workflow processing page, and when business form data have a corresponding control information in business form control information storehouse 210, and when state of a control is ModifyProcessState or ModifyFailState, then by business form information replacer 320, the business form data after the change in business form control information are taken out, adopt reflection technology to replace and take out business form data from business form database 230, and be presented on the business form page.
When checking business form data in the workflow processing page, and when business form data have a corresponding control information in business form control information storehouse 210, and when state of a control is DelProcessState, do not carry out the replacement of business form data, directly display takes out business form data from business form database 230.
When checking business form data in legacy service forms pages, the state of a control of business form can only be in NormalState, ModifyProcessState and DelProcessState.
When being in NormalState, business form information replacer 320 does not need to carry out any replacement.
When being in ModifyProcessState and DelProcessState, business form information replacer 320 needs ModifyProcessState and DelProcessState state to be presented in the business form page.
Operate with newly-built list of asking for leave the example be combined with workflow processing to be below described technical scheme.
Initiate newly-built single workflow of asking for leave
Perform newly-built list operation of asking for leave, 110 perform back end business logic operation.
Operation submits to processor 120 first to check from 220, find the state of a control information that there is not this list of asking for leave, then according to the data of list of asking for leave, generate business form state of a control information, wherein business form type=list of asking for leave, what business form id=was newly-built ask for leave list id, the business form data after change=form data of asking for leave carries out the scale-of-two bytecode after serializing, the state of a control=NewState of business form.
Operation submits to processor 120 to the operation of this business form state of a control information and executing " submission ", makes the state of a control of the business form in business form state of a control information become NewProcessState.
Workflow is initiated the newly-built operation of blocker 130 to list of asking for leave and is tackled, and find that this action need carries out workflow processing, newly-built method of asking for leave is LeaveFormService.newLeaveForm (LeaveForm form).Then the method call stack information of the newly-built list operation of asking for leave of 130 generations, wherein calls class name=LeaveFormService, called side religious name=newLeaveForm, method parameter=LeaveForm form.And by this information store method allocating stack storehouse 210.
Single information of asking for leave is checked in workflow processing
Whether business form information inspection device 310 is inquired about from business form storehouse 230 newly-built forms data of asking for leave, and finds do not have.Then business form information replacer 320 gets newly-built state of a control information of asking for leave single from business form control information storehouse 210, and the business form data extracted after change wherein, adopt the method for unserializing to recover its data representation format, finally adopt reflection technology to be implemented to ask for leave loading and the displaying of single-page data again.
Be successfully completed newly-built single workflow of asking for leave
When newly-built single workflow processing of asking for leave completes, newly-built single state control information of asking for leave that workflow completer 150 stores before first obtaining from business form control information storehouse 220, operation accepts processor 140 on state control information, performs " acceptance " operation, makes the state of a control of the business form in business form state of a control information become NormalState.
Workflow completer 150, extracting newly-built method of operating storehouse of asking for leave single from method call storehouse storehouse 210, wherein calls class name=LeaveFormService, called side religious name=newLeaveForm, method parameter=LeaveForm form.And adopting reflection technology, re invocation performs LeaveFormService.newLeaveForm (LeaveForm form), makes these single data of asking for leave stored in business form storehouse 230.
More than describe preferred embodiment of the present invention in detail, should be appreciated that the ordinary skill of this area just design according to the present invention can make many modifications and variations without the need to creative work.Therefore, all technician in the art according to the present invention's design on prior art basis by logic analysis, reasoning or according to the available technical scheme of limited experiment, all should by among the determined protection domain of these claims.

Claims (10)

1. make Legacy System possess a method for workflow processing ability, it is characterized in that comprising:
Business form image parameter in the operation of intercept service list, and business form image parameter is stored in a method call stacked data storehouse;
According to described business form image parameter, judge that the operation of this business form is the need of carrying out workflow processing;
As no, then read corresponding business form image parameter from described method call stacked data storehouse to complete the operation of this business form, be then stored in business form database for other user's query calls;
In this way, then initiate and perform workflow, then judging whether described workflow successfully terminates;
As no, then make described business form operate unsuccessfully to terminate, get this business form state of a control information simultaneously, perform " refusal " operation and business form state of a control information is changed;
In this way, then read corresponding business form image parameter from described method call stacked data storehouse to complete the operation of this business form, then be stored in business form database for other user's query calls, get this business form state of a control information simultaneously, perform " acceptance " operation and business form state of a control information is changed.
2. the method making Legacy System possess workflow processing ability according to claim 1, is characterized in that:
Described business form image parameter comprises and calls class name, called side religious name and call method parameter.
3. the method making Legacy System possess workflow processing ability according to claim 1, is characterized in that:
Also comprise after business form image parameter in the operation of intercept service list: generate business form state of a control information according to described business form image parameter, described business form state of a control information comprises the eight kinds of state of a controls can mutually changed under certain operating conditions: state in state, newly-built status of fail, normal condition, the process of modification stream in newly-built state, newly-built workflow processing, revise failed device, delete state and deleted state in workflow processing.
4. the method making Legacy System possess workflow processing ability according to claim 3, characterized by further comprising the step of checking business form data of Legacy System, specific as follows:
Perform the business form querying method of Legacy System, the data of loaded with traffic list;
Check described business form state of a control information, whether comprise this business form data;
If do not comprised, then business form processing page is sent to show the data of business form;
As comprised, then according to business form state of a control information, the state of amendment business form processing page.
5. the method making Legacy System possess workflow processing ability according to claim 3, characterized by further comprising in workflow processing the step of checking business form data, specific as follows:
In the workflow processing page, display is about to the business form information changed;
After receiving workflow processing page display request, by performing the business form querying method of Legacy System, loading and showing business form data;
Judge business form action type, described business form action type comprise newly-built, delete and amendment three types;
If delete, then business form data are sent in the page in workflow processing and show;
If newly-built or amendment, then the business form data of aforementioned loading are replaced with newly-built or amended business form data.
6. make Legacy System possess a system for workflow processing ability, it is characterized in that comprising:
Business form operation intercept module, for the business form image parameter in the operation of intercept service list, and is stored in a method call stacked data storehouse by business form image parameter;
Workflow judge module, for according to described business form image parameter, judges that the operation of this business form is the need of carrying out workflow processing, and as no, then complete business form logical operation module, in this way, then performs workflow and initiate and terminate judge module;
Finishing service form logic operational module, for reading corresponding business form image parameter from described method call stacked data storehouse to complete the operation of this business form, is then stored in business form database for other user's query calls;
Workflow is initiated and is terminated judge module, and for initiating and performing workflow, then judge whether described workflow successfully terminates, as no, then perform and unsuccessfully terminate module, in this way, then run succeeded end module;
Unsuccessfully terminating module, for making described business form operate unsuccessfully to terminate, getting this business form state of a control information simultaneously, perform " refusal " operation and business form state of a control information is changed;
Successfully terminate module, for reading corresponding business form image parameter from described method call stacked data storehouse to complete the operation of this business form, then be stored in business form database for other user's query calls, get this business form state of a control information simultaneously, perform " acceptance " operation and business form state of a control information is changed.
7. the system making Legacy System possess workflow processing ability according to claim 6, is characterized in that:
Described business form image parameter comprises and calls class name, called side religious name and call method parameter.
8. the system making Legacy System possess workflow processing ability according to claim 6, is characterized in that:
Described business form operation intercept module, also comprise after business form image parameter in the operation of intercept service list: generate business form state of a control information according to described business form image parameter, described business form state of a control information comprises the eight kinds of state of a controls can mutually changed under certain operating conditions: state in state, newly-built status of fail, normal condition, the process of modification stream in newly-built state, newly-built workflow processing, revise failed device, delete state and deleted state in workflow processing.
9. the system making Legacy System possess workflow processing ability according to claim 8, characterized by further comprising the module of checking business form data of Legacy System, for specifically performing following action:
Perform the business form querying method of Legacy System, the data of loaded with traffic list;
Check described business form state of a control information, whether comprise this business form data;
If do not comprised, then business form processing page is sent to show the data of business form;
As comprised, then according to business form state of a control information, the state of amendment business form processing page.
10. the system making Legacy System possess workflow processing ability according to claim 8, characterized by further comprising in workflow processing the module of checking business form data, for specifically performing following action:
In the workflow processing page, display is about to the business form information changed;
After receiving workflow processing page display request, by performing the business form querying method of Legacy System, loading and showing business form data
Judge business form action type, described business form action type comprise newly-built, delete and amendment three types;
If delete, then business form data are sent in the page in workflow processing and show;
If newly-built or amendment, then the business form data of aforementioned loading are replaced with newly-built or amended business form data.
CN201310217934.6A 2013-06-04 2013-06-04 A kind of method and system for making Legacy System possess workflow processing ability Active CN104217271B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310217934.6A CN104217271B (en) 2013-06-04 2013-06-04 A kind of method and system for making Legacy System possess workflow processing ability

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310217934.6A CN104217271B (en) 2013-06-04 2013-06-04 A kind of method and system for making Legacy System possess workflow processing ability

Publications (2)

Publication Number Publication Date
CN104217271A true CN104217271A (en) 2014-12-17
CN104217271B CN104217271B (en) 2018-05-15

Family

ID=52098731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310217934.6A Active CN104217271B (en) 2013-06-04 2013-06-04 A kind of method and system for making Legacy System possess workflow processing ability

Country Status (1)

Country Link
CN (1) CN104217271B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656723A (en) * 2017-08-17 2018-02-02 成都好医生医学检验所有限公司 A kind of flow engine frame design method based on WF4.5

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060241954A1 (en) * 2005-04-22 2006-10-26 International Business Machines Corporation Method and system for adaptive action management for business solutions
CN1933462A (en) * 2005-09-13 2007-03-21 韩美爱提株式会社 A mobile middleware and a method for processing business logic using it
CN101145217A (en) * 2006-09-13 2008-03-19 鸿富锦精密工业(深圳)有限公司 Flow process form processing system and method
CN101546395A (en) * 2008-03-24 2009-09-30 国际商业机器公司 Method and equipment for generating service process model and method for identifying status field
CN101695070A (en) * 2009-09-30 2010-04-14 北京航空航天大学 Method and system for service encapsulation of Java legacy system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060241954A1 (en) * 2005-04-22 2006-10-26 International Business Machines Corporation Method and system for adaptive action management for business solutions
CN1933462A (en) * 2005-09-13 2007-03-21 韩美爱提株式会社 A mobile middleware and a method for processing business logic using it
CN101145217A (en) * 2006-09-13 2008-03-19 鸿富锦精密工业(深圳)有限公司 Flow process form processing system and method
CN101546395A (en) * 2008-03-24 2009-09-30 国际商业机器公司 Method and equipment for generating service process model and method for identifying status field
CN101695070A (en) * 2009-09-30 2010-04-14 北京航空航天大学 Method and system for service encapsulation of Java legacy system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张凡等: ""基于工作流的J2EE遗留系统改造"", 《计算机应用》 *
李引等: ""基于领域驱动设计的应用系统模型"", 《计算机工程与应用》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656723A (en) * 2017-08-17 2018-02-02 成都好医生医学检验所有限公司 A kind of flow engine frame design method based on WF4.5

Also Published As

Publication number Publication date
CN104217271B (en) 2018-05-15

Similar Documents

Publication Publication Date Title
CN104216912B (en) The implementation method and device of a kind of business form work fluidisation without intrusive mood
US7971145B2 (en) Systems and methods for adapting service interface behaviors
US8150746B2 (en) Global account reconciliation tool
US7207034B2 (en) Undo infrastructure
EP1477897A2 (en) Reflection-based processing of input parameters for commands
US20060074714A1 (en) Workflow tracking based on profiles
US7496927B2 (en) Auto-generated task sequence
WO2013059797A1 (en) Service based information technology platform
US10516791B2 (en) Information processing system, information processing apparatus, and information processing method for executing an iteration of one or more processes
US7257735B2 (en) Identifying solutions to computer problems in client/server system
US20030204503A1 (en) Connecting entities with general functionality in aspect patterns
WO2020258492A1 (en) Information processing method and apparatus, storage medium and terminal device
US7418628B2 (en) Systems and methods for identifying solutions to computer problems using contexts and versions
JP2004502209A (en) Method of workflow processing via computer network
EP2685376B1 (en) COBOL reference architecture
US20130111343A1 (en) Load balancing of user interface script execution
CN101763340B (en) Business bill conversion method, device and system
CN104217271A (en) A method and system for enabling legacy system to have ability to process workflow
CN111145033A (en) Service item receiving authority processing method and device and storage medium
US9507567B2 (en) Facilitating use of techniques implemented by external library functions in process definitions of analytical applications
US7433875B2 (en) Web store events
CN116301758B (en) Rule editing method, device, equipment and medium based on event time points
US20050188377A1 (en) Mobile application morphing system and method
Troelsen et al. Exploring Entity Framework Core
JP5732926B2 (en) Remote procedure call processing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant