CN101706901B - Device and method for realizing shielding of different working flow products - Google Patents

Device and method for realizing shielding of different working flow products Download PDF

Info

Publication number
CN101706901B
CN101706901B CN2009102045701A CN200910204570A CN101706901B CN 101706901 B CN101706901 B CN 101706901B CN 2009102045701 A CN2009102045701 A CN 2009102045701A CN 200910204570 A CN200910204570 A CN 200910204570A CN 101706901 B CN101706901 B CN 101706901B
Authority
CN
China
Prior art keywords
module
unified interface
working flow
flow products
local
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.)
Active
Application number
CN2009102045701A
Other languages
Chinese (zh)
Other versions
CN101706901A (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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN2009102045701A priority Critical patent/CN101706901B/en
Publication of CN101706901A publication Critical patent/CN101706901A/en
Application granted granted Critical
Publication of CN101706901B publication Critical patent/CN101706901B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a device and a method for realizing the shielding of different working flow products. The device comprises a receiving module, a judging module, an establishing module, a coupling module and an output module, wherein the receiving module is used for receiving an application context transmitted by an application system server; the judging module is used for judging whether an invoking mode is local invoking or remote invoking according to the application context received by the receiving module; the establishing module is used for establishing a unitive interface local realizing module and a unitive interface remote realizing module; the coupling module is used for coupling the unitive interface local realizing module or the unitive interface remote realizing module and a preset working flow unitive interface and realizing the function of the working flow unitive interface by the unitive interface local realizing module or the unitive interface remote realizing module; and the output module is used for outputting the working flow unitive interface to a user. According to the device and the method for realizing the shielding of different working flow products, the aim of shielding different working flow products is realized, and loose coupling is formed between the working flow products and an application system.

Description

Realize the device and method of shielding of different working flow products
Technical field
The present invention relates to the workflow technology field, particularly, the present invention relates to a kind of device and method of realizing shielding of different working flow products.
Background technology
Workflow technology is the new technology of computer application field after the nineties, and workflow technology all has great significance for the level of informatization, operational efficiency and the competitiveness that improve enterprise.Along with the continuous development of banking, the application system of increasing bank begins to adopt working flow products to satisfy the demand of practical business.Yet; Bank's industry working flow products is weeded out the old and bring forth the new development comparatively fast; The workflow clients program that each manufacturer provides can there are differences; And getting in touch between application system and the working flow products to be client-side program through working flow products self provides accomplish, application system and different working flow products can there are differences on mutual like this.When application system and different working flow products carried out collaborative work, application system need be carried out different configurations according to the client-side program of different working miscarriage article, and this makes between application system and the working flow products and forms tight coupling.When application system needs replacement, renewal working flow products; Bank need send a large amount of technician to remove to learn, be familiar with the client-side program of new working flow products; And then upgrade application system according to new client-side program and dispose; These not only can the serious waste human resources under the situation that the numerous application systems of bank technology personnel finite sum need be built, and also can increase the time and the cost of the project implementation; Even influence project quality, can influence the operational efficiency and the competitiveness of bank to a great extent.
To sum up; The client-side program of the article of different working miscarriage at present there are differences; Do not have unified standard, cause between application system and the working flow products and form tight coupling, be unfavorable for the maintenance and the replacement of application system and working flow products; Also be unfavorable for centralized management, restricted the development of banking the different working flow products client-side program.
Summary of the invention
The purpose of this invention is to provide a kind of device and method of realizing shielding of different working flow products, realize loose coupling between application system and the working flow products through the workflow unified interface.
For realizing above-mentioned purpose, the invention provides a kind of device of realizing shielding of different working flow products, said device comprises:
Receiver module is used to receive the application context that application system server is sent;
Discrimination module, it is that call or far call this locality that the application context that is used for receiving according to said receiver module is differentiated method of calling;
Create module, be used for carrying out following operation according to the differentiation result of said discrimination module: when said discrimination module determines method of calling is this locality when calling, and creates the local module that realizes of unified interface; When said discrimination module determines method of calling when being far call, create the long-range realization module of unified interface;
Coupling module; Be used for the local module or the long-range realization module of said unified interface and preset working stream unified interface of realizing of said unified interface is coupled, realize the function of said workflow unified interface by local module or the long-range realization module of said unified interface of realizing of said unified interface;
Cache module is used for being cached in internal memory through local module and/or the long-range realization module of unified interface of realizing of the unified interface of said coupling module and the coupling of said workflow unified interface;
Output module is used for exporting said workflow unified interface to the user.
The present invention also provides a kind of method that realizes shielding of different working flow products, and said method comprises the steps:
A receives the application context that application system server is sent;
B, differentiating according to said application context is that call or far call this locality;
C when differentiation is called for this locality, creates the local module that realizes of unified interface; When differentiating, create the long-range realization module of unified interface for far call;
D; The local module or the long-range realization module of said unified interface and preset working stream unified interface of realizing of said unified interface is coupled, realizes the function of said workflow unified interface by local module or the long-range realization module of said unified interface of realizing of said unified interface;
E exports said workflow unified interface to the user;
Wherein, between steps d and e, said method also comprises:
To be cached in internal memory with local module and/or the long-range realization module of unified interface of realizing of the unified interface of said workflow unified interface coupling.
Through implementing above technical scheme, the present invention has the following advantages:
Adopt the present invention can form the workflow unified interface; Application system inserts different working miscarriage article through the workflow unified interface; Realize the difference on shielding of different working flow products and application system are alternately; Make between application system and the working flow products and form loose coupling, be convenient to the maintenance and the replacement of application system and working flow products; The workflow unified interface also can realize the centralized management to the working flow products client-side program; Make the technician can ignore the difference of different working flow products client-side program; Utilize the workflow unified interface technology of being grasped to realize operation to different working flow products; Thereby practice thrift manpower and time cost effectively, improve the operational efficiency and the competitiveness of bank, promote the development of banking.
Description of drawings
Fig. 1 is the structural representation of first embodiment of a kind of device of realizing shielding of different working flow products of the present invention;
Fig. 2 is the structural representation of second embodiment of a kind of device of realizing shielding of different working flow products of the present invention;
Fig. 3 is the structural representation of the 3rd embodiment of a kind of device of realizing shielding of different working flow products of the present invention;
Fig. 4 is the alliance synoptic diagram of a kind of device of realizing shielding of different working flow products of the present invention when calling working flow products in this locality;
Fig. 5 is a kind of alliance synoptic diagram of device when the far call working flow products of realizing shielding of different working flow products of the present invention;
Fig. 6 is a kind of alliance synoptic diagram of device when the far call working flow products of realizing shielding of different working flow products of the present invention;
Fig. 7 is the process flow diagram of the embodiment of a kind of method that realizes shielding of different working flow products of the present invention.
Embodiment
For the purpose, technical scheme and the advantage that make embodiments of the invention is clearer, will combine accompanying drawing that the present invention is done to describe in detail further below.
Fig. 1 is the structural representation of first embodiment of a kind of device of realizing shielding of different working flow products provided by the invention, and the device 100 of said realization shielding of different working flow products comprises:
Receiver module 101 is used to receive the application context that application system server is sent, and said application context comprises: method of calling, workflow server IP address and port, username and password;
Discrimination module 102, it is that call or far call this locality that the application context that is used for receiving according to receiver module 101 is differentiated method of calling;
Create module 103; Be used for carrying out following operation according to the differentiation result of discrimination module 102: when discrimination module 102 determines method of calling is that this locality is when calling; Create the local module that realizes of unified interface, and transmit username and password to the local module that realizes of said unified interface; When discrimination module 102 determines method of calling when being far call; Create the long-range realization module of unified interface; And transmit workflow server IP address and port, username and password, API (Application Programming Interface, API) method name, input parameter arrive the long-range realization module of said unified interface;
Coupling module 104; Be used for the local module or the long-range realization module of said unified interface and preset working stream unified interface of realizing of said unified interface is coupled; Realize the function of said workflow unified interface by local module or the long-range realization module of said unified interface of realizing of said unified interface; Wherein, preset working stream unified interface is that the interface message of the API that provides according to different working flow products generates;
Output module 105 is used for exporting said workflow unified interface to the user.
Particularly; Said unified interface is local to realize that module realizes that the function of said workflow unified interface comprises: the local module that realizes of said unified interface is translated into local working flow products ability identified information with said username and password; And transmit said information to said local working flow products, thereby call said local working flow products;
The long-range realization module of said unified interface realizes that the function of said workflow unified interface comprises: the long-range realization module of said unified interface is searched the adaptor module of telework miscarriage article according to said workflow server IP address and port; And transmit said username and password, API method name, input parameter adaptor module to said telework miscarriage article; Said adaptor module is translated into said telework miscarriage article ability identified information with said username and password, API method name, input parameter; And transmit said information, thereby call said telework miscarriage article to said telework miscarriage article; In addition; Preferably; When the far call working flow products; The long-range realization module of said unified interface through JAVA far call, network service (WebService) or HTTP (hyper text transport protocol, Http) mode transmits said username and password, API method name, the input parameter adaptor module to said telework miscarriage article;
Wherein, in far call working flow products process, has the process of application parameter data objects such as said username and password, API method name, input parameter being carried out serializing and unserializing.Because the complicated applications supplemental characteristic object in the computing machine can not directly transmit through network; Need convert said application parameter data object to a kind of binary string just can be in transmission over networks; Therefore need earlier said username and password, API method name, input parameter to be carried out serializing and form the XML message; So that the long-range realization module of said unified interface transmits said username and password, API method name, the input parameter adaptor module to said telework miscarriage article through JAVA far call, WebService or Http mode, the process that said adaptor module is translated into said telework miscarriage article ability identified information with said username and password, API method name, input parameter promptly is the process of the XML message being carried out unserializing.
Through implementing present embodiment, can realize the purpose of shielding of different working flow products, the technician only need adopt the workflow unified interface when using the workflow clients program, and needn't consider the content of interface back.When needs replacement or maintenance work miscarriage article; The technician can ignore the difference of the client-side program of different working flow products; Come working flow products is replaced or safeguarded through the unified interface technology; Saved like this different working flow products has been grasped the time that is spent respectively, can effectively increase work efficiency, reduced bank's operation cost.
Fig. 2 is the structural representation of second embodiment of a kind of device of realizing shielding of different working flow products provided by the invention.In the present embodiment; As shown in Figure 2; The device 100 of said realization shielding of different working flow products also comprises cache module 106, is used for being cached in internal memory through local module and/or the long-range realization module of unified interface of realizing of the coupling module 104 and the unified interface of said workflow unified interface coupling.
Through implementing present embodiment, can directly use when calling working flow products after being provided with being buffered in the internal memory with local module and/or the long-range realization module of unified interface of realizing of the unified interface of said workflow unified interface coupling, convenient and swift.
Fig. 3 is the structural representation of the 3rd embodiment of a kind of device of realizing shielding of different working flow products provided by the invention.In the present embodiment; As shown in Figure 3; The device 100 of said realization shielding of different working flow products further comprises initialization module 107; Be used for carrying out initialization to installing 100, the application context that simultaneously receiver module 101 is received do nuclear inspection work (for example: input parameter can not for empty, whether the IP address legal, the checking work of user name password etc.), and transmit said application context to discrimination module 102.
Through implementing present embodiment; Can realize the beneficial effect of above-mentioned first embodiment, in addition, carry out initialization through using 107 pairs of devices 100 of initialization module; By the module invokes that relates in the initialization module 107 Control work stream unified interface constructive process; Can guarantee that each the execution when calling working flow products work of device 100 can both recover the initialization setting, improve the ease for use of device 100, make the developer need not understand constructive process and directly operative installations 100 get final product.Device 100 has been guaranteed to install 100 execution and has been called the accuracy of the work of different working flow products according to the different local module or the long-range realization modules of unified interface of realizing of unified interface accurately of creating of the difference of calling working flow products and method of calling at every turn.
For making those skilled in the art can understand the present invention better, the relevant API that provides below in conjunction with different working flow products (as: BPS, WLI) carries out the instance explanation to function how to unify different working miscarriage article, realization workflow unified interface.
Instance one: for the function of workflow unified interface " according to sign searching work item information "
Method corresponding in the workflow unified interface is:
public?WFWorkItem?queryWorkItemDetail(String?workItemID);
And corresponding method is respectively in two kinds of working flow products API:
1.BPS6 the method for middle correspondence: public WFWorkItem queryWorkItemDetail (longworkItemID);
2.WLI the method for middle correspondence: public TaskInfo getTaskInfo (StringtaskId); (com.bea.wli.worklist.api.WorklistManager class).
Wherein, Aspect input parameter, input parameter is respectively: String type and long type, and the parameter of long type can change into the String type; And the String type changes long type existence restriction; Promptly only the value in the String type form by numeral the integer character constant string time could successful conversion, therefore, adopt the String type in the workflow unified interface.
Aspect output parameter; TaskInfo is the entity information that WLI provides, and WFWorkItem is the entity information that BPS6 provides, because BPS6 product usable range is more extensive; So the API with BPS6 is main; Because TaskInfo and WFWorkItem exist than big-difference, comprise TaskInfo through the attribute that in WFWorkItem, increases a TaskInfo type, the output parameter of such two kinds of methods has all been contained by new WFWorkItem; Therefore, adopt WFWorkItem in the workflow unified interface.
To sum up; Principle when unified input, output parameter is: type, close the doing of attribute are occured simultaneously or conversion (the for example relation of long type in the previous examples and Stirng type); The form with attribute that difference is bigger is included in into, promptly does union (for example WFWorkItem and TaskInfo).
Instance two: for the function of workflow unified interface " find out the active user can carry out or pending work item "
Method corresponding in the workflow unified interface is:
public?List?queryPersonWorkItems(String?personID,String?permission,Stringscope,PageCond?pagecond)。
And corresponding method is respectively in two kinds of working flow products API:
1.BPS6 the method for middle correspondence: public List queryUserWorkItems (String personID, String permission, String scope, PageCond pagecond);
2.WLI corresponding method: public TaskInfo [] getTaskInfos (TaskSelectortaskSelector).
Can find out that the API of BPS6 can satisfy above-mentioned functions, and the API of WLI can't satisfy above-mentioned functions, but the API of WLI can be satisfied the demands through following method:
public?List?findToDoList(BriefUserVO?user)throws?Exception{
ProfilingUtil.startProfiling(this.getClass()+″.findToDoList″);
WorklistManager?worklistMgr=fetchWliContext().getWorklistManager();
TaskSelector?filter=new?TaskSelector();
StateType[]todoStateTypes=new?StateType[]
{StateType.ASSIGNED,StateType.CLAIMED};
filter.setStateTypes(todoStateTypes);
Assignee?assignee=new?Assignee();
//modi?by?yuan?0112?assignee.setUsers(new?String[]{user.getLoginAccount()});
assignee.setUsers(new?St?ring[]{user.getUserNum()});
filter.setAssignee(assignee);
filter.setSortByCreationDate((short)-1);
filter.setSortByParentProcessld((short)-2);
filter.setSortByTaskld((short)-3);
//filter.setMaxTasksReturned(MAX_TASK_NUM_PER_PAGE);
Tasklnfo[]todoTasks=null;
try{
todoTasks=worklistMgr.getTasklnfos(filter);
}catch(Exce?ption?exception){
StringBuffer?logMsg=new?StringBuffer(200);
LogMsg.append (" search operation person wait to do task the time occurred unusual! ");
logMsg.append(″\n?errorCode=workflowdelegate-e-0000011userNum=″+ user.getUserNum()+″userName=″+user.getUserName());
logger.error(logMsg,exception);
throw new WLI?Exception(new
SysMessage(″workflowdelegate-e-0000011″),exception);
}
if(todoTasks==null){
return?Collections.EMPTY_LIST;
}
Integer?taskState=null;
ArrayList?clpmTasklnfoList=new?ArrayList();
for(int?i=0;i<todoTasks.length;i++){
// ClpmTasklnfo?clpmTasklnfo=buildClpmTasklnfo(todoTasks[i]);
ClpmTasklnfo?clpmTasklnfo=new?ClpmTasklnfo();
clpmTasklnfo.setClaimant(todoTasks[i].getClaimant());
clpmTasklnfo.setStatus(todoTasks[i].getStateType().getValue());
clpmTasklnfo.setTaskld(todoTasks[i].getTaskld());
if(clpmTasklnfo!=null){
taskState=clpmTasklnfo.getStatus();
if(taskState.equals(StateType.ASSIGNED.getValue())||
(taskState.equals(StateType.CLAIMED.getValue())&&
(clpmTasklnfo.getClaimant().equalslgnoreCase(user.getUserNum())))){
clpmTasklnfoList.add(clpmTasklnfo);
}
}
}
ProfilingUtil.stopProfiling(this.getClass()+″.findToDoList″);
return?clpmTasklnfoList;
}
Because the input parameter of this method has only the BriefUserVO type, and in program realizes, only used the UserNum attribute, this attribute is the String type simultaneously; Therefore; The input of two methods is easy to unified, and promptly the String personID parameter by the method in the workflow unified interface replaces the UserNum attribute among the BriefUserVO, and in the workflow interfacing of WLI is realized, creates BriefUserVO according to the UserNum attribute; And import BriefUserVO into the findToDoList method; For input parameter, through in the findToDoList method, converting the array of TaskInfo to List, unified input parameter.
To sum up; When the input parameter number that provides as different working flow products API is different; Do not increase number of parameters as far as possible, can't change then adopt the mode that increases input parameter to solve, in program realizes, can not use for additional parameter if parameter type calls the turn at program design language.
Instance three: for the function of workflow unified interface " hang-up workflow instance "
Method corresponding in the workflow unified interface is:
public?void?suspendProcessInstance(long?processInstID)。
And corresponding method is respectively in two kinds of working flow products API:
1.BPS6 the method for middle correspondence: public void suspendProcessInstance (longprocessInstID);
2.WLI middle no corresponding method, because as far as WLI, daily exploitation uses suspendTask (hanging up certain task) method to satisfy the demand.Because this method is that BPS6 is distinctive, and there is not correlation method in the WLI product, so WLI product this function not itself more can not provide API.Consider that the BPS application range of products is extensive, therefore taking directly to incorporate this method solves this problem.For the WLI working flow products, when using this method, the WLI workflow does not have any effect.
Instance four: for the function of workflow unified interface " operation flow of establishment in working flow products "
Method corresponding in the workflow unified interface is:
public?String?createAndStartProcInstAndSetRelativeData(String?procDefName,String?procInstName,String?procInstDesc,boolean?transcationSpan,Map?map)
And corresponding method is respectively in two kinds of working flow products API:
1.BPS6 the method for middle correspondence:
public?long?createAndStartProcInstAndSetRelativeData(String?procName,StringpInstName,String?procInstDesc,boolean?transcationSpan,Map?map)
2. for this function; WLI does not have independent API, but passes through the cooperation of two API, can accomplish this function; Therefore; Can on the basis of two API of WLI, combine the new method of code programming: public StringcreateWorkflow (ClpmBPMetaInfo bpMetaInfo, CommonBPBO commonBPBO)
The realization code is following:
public?String?createWor?kflow(ClpmBPMetaInfo?bpMetalnfo,CommonBPBOcommonBPBO)throws?Exception{
ProfilingUtil.startProfiling(this.getClass()+″.createWorkflow″);
StartProcess?bp=fetchWliContext().getBP(bpMetalnfo);
if(bp==null){
StringBuffer?logMsg=new?StringBuffer(200);
LogMsg.append (" could obtain JPD Proxy StartProcess, could not visioning procedure! ");
logMsg.append(″¥n?errorCode=workflowdelegate-e-0000005
processCode=″+bpMetalnfo.getProcessCode()+″ServiceURI=″+
bpMetalnfo.getServiceURI());
logger.error(logMsg);
throw new WLIException(new
SysMessage(″workflowdelegate-e-0000005″));
}
try{
String?taskld=bp.startProcess(commonBPBO);
if(logger.isDebugEnabled()){
logger.debug(″new?first?task?instance?created:″+taskld);
}
ProfilingUtil.stopProfiling(this.getClass()+″.createWorkflow″);
return?taskld;
}catch(Exception?exception){
StringBuffer?logMsg=new?StringBuffer(200);
Occurred unusual during logMsg.append (" visioning procedure! ");
logMsg.append(″¥n?errorCode=workflowdelegate-e-0000006
processCode=″+bpMetalnfo.getProcessCode()+″ServiceURI=″+
bpMetalnfo.getServiceURI());
logger.error(logMsg,exce?ption);
throw new WLI?Exception(new
SysMessage(″workflowdelegate-e-0000006″),exception);
}
}
Because the input parameter of WLI needs ClpmBPMetaInfo and CommonBPBO, and the input parameter of BPS needs String, String, String, boolean and Map, so input parameter differs greatly.But the parameter that a Map type is arranged among the BPS; This parameter can directly be held into ClpmBPMetaInfo and ClpmBPMetaInfo that (Map is the data structure that a kind of java programming language carries; Using its developer can be directly dissimilar parameters to be put in goes among the Map), specific code is realized as follows:
map.put(″bpMetalnfo″,ClpmBPMetalnfo);
map.put(″commonBPBO″,CommonBPBO);
Can directly take out ClpmBPMetaInfo and CommonBPBO through following code:
ClpmBPMetalnfo?bpMetalnfo=(ClpmBPMetalnfo)map.get(″bpMetalnfo″);
CommonBPBO?ommonBPBO=(CommonBPBO)map.get(″commonBPBO″);
One of rreturn value is the long type, and one is the String type, so the method rreturn value in the unified interface is decided to be the String type, can accomplish both fusions thus.
In sum; In the process of the device that designs shielding of different working flow products; The relevant API method that at first different working flow products is provided is carried out combing, adopts the correlation technique means to accomplish the unification of input, output parameter according to the input of the identical method of function, the attribute of output parameter then, thus unified different working miscarriage article; Realize the function of workflow unified interface, reach the purpose of shielding of different working flow products.
Fig. 4 is the alliance synoptic diagram of a kind of device of realizing shielding of different working flow products provided by the invention when calling working flow products in this locality, and expression application program and working flow products are positioned on the same application system server.Device according to the invention operates on the said application program; The user can be through said device with routine call mode operation element miscarriage article; For example: username and password is translated into working flow products can identified information; And, input parameter is sent to working flow products through the relevant input parameter of routine call.
Can know that according to prior art different working miscarriage article can provide the API of a cover oneself towards the client, help the client to use workflow through the mode of program code.The API of present most of working flow products supports far call, and the API of some working flow products does not support far call yet certainly.At this moment need develop corresponding adaptor module according to the API that said working flow products provides, and be disposed at said adaptor module on the said working flow products server.The effect of said adaptor module is: when the long-range realization module of said interface will transmit application parameter data such as said username and password, API method name, input parameter to working flow products; Said application parameter data are the adaptor module of the said working flow products of process earlier; The said application parameter data translation that will be received by said adaptor module becomes said telework miscarriage article ability identified information; And transmit said information, thereby call working flow products to working flow products.
Fig. 5 and Fig. 6 are a kind of alliance synoptic diagram of device when the far call working flow products of realizing shielding of different working flow products provided by the invention; As shown in Figure 5; Fig. 5 representes when the API of working flow products supports far call; Device according to the invention is communicated by letter with the working flow products on the workflow server through JAVA far call, WebService or Http mode, directly application parameter data such as username and password, API method name, input parameter is sent to working flow products.As shown in Figure 6; Fig. 6 representes when the API of working flow products does not support far call; The corresponding adaptor module of configuration on workflow server; Be used for routine call mode operation element miscarriage article; Device according to the invention is communicated by letter with said adaptor module through JAVA far call, WebService or Http mode, and application parameter data such as username and password, API method name, input parameter are sent to adaptor module, becomes working flow products ability identified information with operation element miscarriage article application parameter data translations such as username and password, API method name, input parameter through said adaptor module.
Fig. 7 is the process flow diagram of the embodiment of a kind of method that realizes shielding of different working flow products provided by the invention, and said method comprises the steps:
S101 receives the application context that application system server is sent, and said application context comprises: method of calling, workflow server IP address and port, username and password;
S102, differentiating according to said application context is that call or far call this locality;
S103 when differentiation is called for this locality, creates the local realization of unified interface module, and transmits said username and password and realize module to said unified interface this locality; When differentiating, create the long-range realization module of unified interface, and transmit said workflow server IP address and arrive the long-range realization module of said unified interface with port, username and password, API method name, input parameter for far call;
S104; The local module or the long-range realization module of said unified interface and preset working stream unified interface of realizing of said unified interface is coupled, realizes the function of said workflow unified interface by local module or the long-range realization module of said unified interface of realizing of said unified interface;
Wherein, said preset working stream unified interface is that the interface message of the API that provides according to different working flow products generates, and object lesson sees also above-mentioned instance one to instance four, repeats no more here.
S105 exports said workflow unified interface to the user, and the user can operate different working flow products through said workflow unified interface, calls working flow products.
In embodiments of the present invention; Realize that by said unified interface is local module realizes that the function of said workflow unified interface comprises: the local module that realizes of said unified interface is translated into local working flow products ability identified information with said username and password; And transmit said information to said local working flow products, thereby call said local working flow products;
Realize that by the long-range realization module of said unified interface the function of said workflow unified interface comprises: the long-range realization module of said unified interface is searched the adaptor module of telework miscarriage article according to said workflow server IP address and port; And transmit said username and password, API method name, input parameter adaptor module to said telework miscarriage article; Said adaptor module is translated into said telework miscarriage article ability identified information with said username and password, API method name, input parameter; And transmit said information to said telework miscarriage article; Thereby call telework miscarriage article (description above specifically seeing also among the device embodiment is repeated no more) here;
In addition; Preferably; When the far call working flow products, the long-range realization module of said unified interface transmits said username and password, API method name, the input parameter adaptor module to said telework miscarriage article through JAVA far call, WebService or Http mode.
Through implementing present embodiment, utilize the workflow unified interface, the difference on shielding of different working flow products and application system are mutual; Realized centralized management to the working flow products client-side program; Make between application system and the working flow products and form loose coupling, be convenient to the maintenance and the replacement of working flow products and application system like this, can save different working flow products is grasped the time that is spent respectively; Can effectively increase work efficiency, reduce bank's operation cost.
In another embodiment of the present invention, between step S104 and S105, said method also comprises: will be cached in internal memory with local module and/or the long-range realization module of unified interface of realizing of the unified interface of said workflow unified interface coupling.Alternatively; After step S105, said method also comprises: import said application context according to said workflow unified interface, differentiating method of calling is that still far call is called in this locality; When differentiation is called for this locality, the local module that realizes of the unified interface of operation buffer memory; When differentiating for far call, the long-range realization module of unified interface of operation buffer memory.
Through implementing present embodiment; Can be being buffered in the internal memory with local module and/or the long-range realization module of said unified interface of realizing of the said unified interface of said workflow unified interface coupling; When calling same working flow products; Do not need to create again local module or the long-range realization module of said unified interface of realizing of said unified interface; Only need when calling working flow products according to this locality is called or the judgement of far call directly from internal memory local module or the long-range realization module of unified interface of realizing of operation corresponding uniform interface get final product, can effectively increase work efficiency like this, help the development of banking.
Through the description of above embodiment, those skilled in the art can be well understood to the present invention and can realize by the mode of software, can certainly realize through the mode of software combined with hardware platform.Based on such understanding; All or part of can the coming out that technical scheme of the present invention contributes to background technology with the embodied of software product; This computer software product can be stored in the storage medium, like ROM/RAM, magnetic disc, CD etc., comprises that some instructions are with so that a computer equipment (can be a personal computer; Server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
More than disclosedly be merely embodiment of the present invention; Only be used for the present invention is illustrated; Can not limit the present invention's protection domain with this, those skilled in the art can carry out various modifications, variation or replacement under the prerequisite that does not break away from essence of the present invention, therefore; Various equivalent variations according to the present invention did still belong to the scope that the present invention is contained.

Claims (12)

1. a device of realizing shielding of different working flow products is characterized in that, said device comprises:
Receiver module is used to receive the application context that application system server is sent;
Discrimination module, it is that call or far call this locality that the application context that is used for receiving according to said receiver module is differentiated method of calling;
Create module, be used for carrying out following operation according to the differentiation result of said discrimination module: when said discrimination module determines method of calling is this locality when calling, and creates the local module that realizes of unified interface; When said discrimination module determines method of calling when being far call, create the long-range realization module of unified interface;
Coupling module; Be used for the local module or the long-range realization module of said unified interface and preset working stream unified interface of realizing of said unified interface is coupled, realize the function of said workflow unified interface by local module or the long-range realization module of said unified interface of realizing of said unified interface;
Cache module is used for being cached in internal memory through local module and/or the long-range realization module of unified interface of realizing of the unified interface of said coupling module and the coupling of said workflow unified interface;
Output module is used for exporting said workflow unified interface to the user.
2. the device of realization shielding of different working flow products as claimed in claim 1 is characterized in that, said device also comprises:
Initialization module is used for said device is carried out initialization, the application context that the said receiver module of nuclear inspection receives, and transmit said application context to said discrimination module.
3. according to claim 1 or claim 2 the device of realization shielding of different working flow products is characterized in that said application context comprises: method of calling, workflow server IP address and port, username and password.
4. the device of realization shielding of different working flow products as claimed in claim 3; It is characterized in that; When said discrimination module determines method of calling is that this locality is when calling; Said establishment module also is used to transmit username and password to the local module that realizes of said unified interface; The local module that realizes of said unified interface is translated into local working flow products ability identified information with said username and password, and transmits said information to said local working flow products, thereby calls said local working flow products.
5. the device of realization shielding of different working flow products as claimed in claim 3; It is characterized in that; When said discrimination module determines method of calling when being far call; Said establishment module also is used to transmit workflow server IP address and port, username and password, API method name, input parameter arrive the long-range realization module of said unified interface; The long-range realization module of said unified interface is searched the adaptor module of telework miscarriage article according to said workflow server IP address and port; And transmit said username and password, API method name, input parameter adaptor module to said telework miscarriage article; Said adaptor module is translated into said telework miscarriage article ability identified information with said username and password, API method name, input parameter, and transmits said information to said telework miscarriage article, thereby calls said telework miscarriage article.
6. the device of realization shielding of different working flow products as claimed in claim 5; It is characterized in that the long-range realization module of said unified interface transmits said username and password, API method name, the input parameter adaptor module to said telework miscarriage article through JAVA far call, network service or supertext transmission protocol mode.
7. a method that realizes shielding of different working flow products is characterized in that, said method comprises the steps:
A receives the application context that application system server is sent;
B, differentiating according to said application context is that call or far call this locality;
C when differentiation is called for this locality, creates the local module that realizes of unified interface; When differentiating, create the long-range realization module of unified interface for far call;
D; The local module or the long-range realization module of said unified interface and preset working stream unified interface of realizing of said unified interface is coupled, realizes the function of said workflow unified interface by local module or the long-range realization module of said unified interface of realizing of said unified interface;
E exports said workflow unified interface to the user;
Wherein, between steps d and e, said method also comprises:
To be cached in internal memory with local module and/or the long-range realization module of unified interface of realizing of the unified interface of said workflow unified interface coupling.
8. the method for realization shielding of different working flow products as claimed in claim 7 is characterized in that, said application context comprises: method of calling, workflow server IP address and port, username and password.
9. the method for realization shielding of different working flow products as claimed in claim 8 is characterized in that,
In step c, when differentiation is called for this locality, also transmit said username and password to the local module that realizes of said unified interface;
In steps d; Realize that by said unified interface is local module realizes that the function of said workflow unified interface comprises: the local module that realizes of said unified interface is translated into local working flow products ability identified information with said username and password; And transmit said information to said local working flow products, thereby call said local working flow products.
10. the method for realization shielding of different working flow products as claimed in claim 8 is characterized in that,
In step c, when differentiating, also transmit said workflow server IP address and port, username and password, API method name, input parameter to the long-range realization module of said unified interface for far call;
In steps d; Realize that by the long-range realization module of said unified interface the function of said workflow unified interface comprises: the long-range realization module of said unified interface is searched the adaptor module of telework miscarriage article according to said workflow server IP address and port; And transmit said username and password, API method name, input parameter adaptor module to said telework miscarriage article; Said adaptor module is translated into said telework miscarriage article ability identified information with said username and password, API method name, input parameter; And transmit said information to said telework miscarriage article, thereby call telework miscarriage article.
11. the method for realization shielding of different working flow products as claimed in claim 10; It is characterized in that the long-range realization module of said unified interface transmits said username and password, API method name, the input parameter adaptor module to said telework miscarriage article through JAVA far call, network service or supertext transmission protocol mode.
12. method as claimed in claim 7 is characterized in that, after step e, said method also comprises:
Import said application context according to said workflow unified interface, differentiating method of calling is that still far call is called in this locality, when differentiation is called for this locality, and the local module that realizes of the unified interface of operation storage; When differentiating for far call, the long-range realization module of unified interface of operation storage.
CN2009102045701A 2009-12-01 2009-12-01 Device and method for realizing shielding of different working flow products Active CN101706901B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102045701A CN101706901B (en) 2009-12-01 2009-12-01 Device and method for realizing shielding of different working flow products

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102045701A CN101706901B (en) 2009-12-01 2009-12-01 Device and method for realizing shielding of different working flow products

Publications (2)

Publication Number Publication Date
CN101706901A CN101706901A (en) 2010-05-12
CN101706901B true CN101706901B (en) 2012-07-25

Family

ID=42377124

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102045701A Active CN101706901B (en) 2009-12-01 2009-12-01 Device and method for realizing shielding of different working flow products

Country Status (1)

Country Link
CN (1) CN101706901B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101039480B1 (en) * 2010-10-29 2011-06-08 한화에스앤씨주식회사 Application store system for applying application development interoperated with unified device and method for management application store
CN106453213B (en) * 2015-08-11 2019-09-17 阿里巴巴集团控股有限公司 Call method and device between a kind of system
CN107277116B (en) * 2017-05-27 2020-04-03 北京思特奇信息技术股份有限公司 Configurable client engine and method for calling service by using same

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6148323A (en) * 1995-12-29 2000-11-14 Hewlett-Packard Company System and method for managing the execution of system management
CN1466051A (en) * 2002-07-03 2004-01-07 联想(北京)有限公司 Method for realizing data interaction between different systems
CN1512370A (en) * 2002-12-31 2004-07-14 ����̩ƽ User self-defining event mechanism based on structure
US7065493B1 (en) * 2000-04-06 2006-06-20 International Business Machines Corporation Workflow system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6148323A (en) * 1995-12-29 2000-11-14 Hewlett-Packard Company System and method for managing the execution of system management
US7065493B1 (en) * 2000-04-06 2006-06-20 International Business Machines Corporation Workflow system and method
CN1466051A (en) * 2002-07-03 2004-01-07 联想(北京)有限公司 Method for realizing data interaction between different systems
CN1512370A (en) * 2002-12-31 2004-07-14 ����̩ƽ User self-defining event mechanism based on structure

Also Published As

Publication number Publication date
CN101706901A (en) 2010-05-12

Similar Documents

Publication Publication Date Title
CN109245931B (en) Log management and monitoring alarm realization method of container cloud platform based on kubernets
US8065657B2 (en) Exchange infrastructure system and method
US9058571B2 (en) Tool for automated transformation of a business process definition into a web application package
US20100161712A1 (en) Business application address determination
US20070271554A1 (en) Dynamic, Real-Time Integration of Software Resources through Services of a Content Framework
US20080072239A1 (en) Method and apparatus for non-intrusive web application integration to streamline enterprise business process
WO2008134895A1 (en) Xml push and remote execution of a wireless application
WO2013085739A1 (en) Techniques to manage remote events
CN107590072A (en) A kind of application and development and the method and apparatus of test
CN100512158C (en) Network measuring system structure and realizing method thereof
CN102333108A (en) Distributed cache synchronization system and method
US8380549B2 (en) Architectural design for embedded support application software
CN100591056C (en) Method and system for processing message
CN103399735A (en) Method for developing intermediate layer of remote function call interface
CN114490268A (en) Full link monitoring method, device, equipment, storage medium and program product
CN102033741A (en) North interface system and realization method thereof
CN101706901B (en) Device and method for realizing shielding of different working flow products
CN107222575B (en) The method that OPC is communicated between realization industrial control equipment
CN104572099A (en) Assembly and middleware based low-coupling frame data processing method and system
AU2003223040B2 (en) Exchange infrastructure system and method
CN101588347A (en) Method for automatically generating network service client terminal
CN102090039A (en) A method of performing data mediation, and an associated computer program product, data mediation device and information system
CN101957754A (en) Man-machine interaction method in service-oriented service process
CN106598554A (en) Code generating apparatus
CN108234447A (en) A kind of safety regulation for heterogeneous networks security function manages system and 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
C14 Grant of patent or utility model
GR01 Patent grant