CN105786472B - One kind being based on ECP platform retrieval function setting method and device - Google Patents

One kind being based on ECP platform retrieval function setting method and device Download PDF

Info

Publication number
CN105786472B
CN105786472B CN201410827534.1A CN201410827534A CN105786472B CN 105786472 B CN105786472 B CN 105786472B CN 201410827534 A CN201410827534 A CN 201410827534A CN 105786472 B CN105786472 B CN 105786472B
Authority
CN
China
Prior art keywords
retrieval function
function
platform
retrieval
file
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
CN201410827534.1A
Other languages
Chinese (zh)
Other versions
CN105786472A (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.)
Yuanguang Software Co Ltd
Original Assignee
Yuanguang Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yuanguang Software Co Ltd filed Critical Yuanguang Software Co Ltd
Priority to CN201410827534.1A priority Critical patent/CN105786472B/en
Publication of CN105786472A publication Critical patent/CN105786472A/en
Application granted granted Critical
Publication of CN105786472B publication Critical patent/CN105786472B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the present invention provides a kind of based on ECP platform retrieval function setting method, comprising: the corresponding configuration file based on legacy platform creation retrieval function;Retrieval function is chosen, server-side scan profile simultaneously loads corresponding retrieval function;According to the title of the retrieval function, corresponding retrieval function is obtained in server end.It is different for the fixed only parameter display of a large amount of retrieval function set interface patterns of original GAP platform, it develops and provides set interface according to retrieval function dynamic state of parameters in configuration file.It can migrate in batches to provide to ECP platform and a set of save time convenient to use development approach again by the retrieval function of legacy platform, according to certain rule.

Description

One kind being based on ECP platform retrieval function setting method and device
Technical field
This application involves field of computer technology, in particular to a kind of to be based on ECP platform retrieval function setting method and dress It sets.
Background technique
At enterprise information management system field (ERP), it is related to application of the retrieval function in system research and development, legacy platform GAP The function and application and development program of (enterprise-level application development, Global Application Platform) platform are coupled in one It rises, Numerous and is difficult to safeguard.And recently as ECP (business administration cloud platform, Enterprise Cloud Platform development), the access of ECP platform is independent as frame, maintains easily, and modification code does not influence application program Exploitation.In consideration of it, the function of original legacy platform needs bulk migration to migrate in turn to new platform due to retrieval function Numerous Waste a large amount of human and material resources and time, even and if migration in the past also can inevitably malfunction, it is subsequent to cause very big maintenance cost.
Summary of the invention
In view of this, the embodiment of the present invention provides one kind based on ECP platform retrieval function setting method, it can be by legacy platform Retrieval function migrated in batches according to certain rule to ECP platform, provide that a set of to save the time again convenient to use Development approach.
It is different for the fixed only parameter display of a large amount of retrieval function set interface patterns of original GAP platform, develop basis Retrieval function dynamic state of parameters provides set interface in configuration file.It can by the retrieval function of legacy platform, according to certain rule, Batch migrate provided to ECP platform it is a set of save the time again be easy to use development approach.
The embodiments of the present invention are implemented as follows, and one kind being based on ECP platform retrieval function setting method, comprising:
Corresponding configuration file based on legacy platform creation retrieval function;
Retrieval function is chosen, server-side scan profile simultaneously loads corresponding retrieval function;
According to the title of the retrieval function, corresponding retrieval function is obtained in server end.
Further, the method also includes: member is then constructed if there is parameter list according to the retrieval function of acquirement Data model.
Further, the method also includes: interface is built according to the metadata schema.
Further, the selection retrieval function further comprises:
The description file of the retrieval function is scanned and loads, and scans the function file loaded on interface with tree-like Structure is shown;
Retrieval function tree node is clicked in the tree structure.
Further, the configuration file includes a fixed suffix name, the retrieval function that the configuration file is provided by IDE Configuration file generates template and automatically generates, and is stored under particular category.
Further, the entitled .funcx of fixed suffix, the particular category are as follows: the impl project of bundle Config/funcs file.
Further, the method also includes: exploitation customization retrieval function, and by it is described customization retrieval function description text Part is placed under the particular category.
According to another aspect of an embodiment of the present invention, also provide it is a kind of device is arranged based on ECP platform retrieval function, can be with Conveniently the retrieval function of legacy platform is moved on new platform.
The embodiments of the present invention are implemented as follows, and device is arranged based on ECP platform retrieval function in one kind, comprising:
File configuration module, for the corresponding configuration file based on legacy platform creation retrieval function;
Function chooses module, and for choosing retrieval function, server-side scan profile simultaneously loads corresponding retrieval function;
Setup module obtains corresponding retrieval function in server end for the title according to the retrieval function.
Further, described device further include: metadata schema constructs module, for the retrieval function according to acquirement, such as There are parameter lists for fruit, then construct metadata schema.
Further, described device further include: interface setup module, for building boundary according to the metadata schema Face.
By adopting the above technical scheme, the embodiment of the present invention has the following beneficial effects: 1, realizes that legacy platform and new platform take The fast transferring of number function, saves great effort, material resources, time;2, subsequent retrieval function is facilitated to extend, developer only needs Extending a configuration file can be realized function expansion;3, configuration file can be dynamically modified, so that rapid response to customer's need changes; 4, using such method, realizing complicated retrieval function exploitation becomes simple;5, same system is deployed in different enterprises, demand Variation accomplishes that customizable configures as far as possible, does not do customized development;6, after service logic change, customer demand and very urgent situation Under, configuration file can be recombinated at the scene, be not necessarily to additional organization development.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 shows provided by the present application based on a kind of flow chart of embodiment of ECP platform retrieval function setting method;
Fig. 2 shows a kind of embodiment configuration file arborescences of retrieval function setting method provided by the present application;
Fig. 3 shows a kind of the application offer metadata schema of embodiment of retrieval function setting method and builds interface Display renderings;
Fig. 4 shows the application and provides a kind of service interface of embodiment of retrieval function setting method and realize class figure;
Fig. 5 shows a kind of sequence of the crucial treatment process of embodiment of retrieval function setting method provided by the present application Figure;
Fig. 6 shows the flow chart of the method for the retrieval function provided by the present application for taking management object properties.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
As shown in Figure 1, to be provided in an embodiment of the present invention a kind of based on ECP platform retrieval function setting method, comprising:
S101, the corresponding configuration file based on legacy platform creation retrieval function;
S102, chooses retrieval function, and server-side scan profile simultaneously loads corresponding retrieval function;
S103 obtains corresponding retrieval function in server end according to the title of the retrieval function.
Specifically, it is the retrieval function of quickly compatible legacy platform, and new access letter can be expanded and developed in new platform Number.Retrieval function: from fixed directory scan retrieval function file, and it can according to need extension retrieval function file customization and open Hair.
GRIS original retrieval function customizes setting circle for some non-complexes toward ECP platform migration, compatible processing retrieval function The retrieval function in face, it is only necessary to provide using func as the configuration file of suffix, when servicing load, scanning retrieval function file adds Carry retrieval function.Exploitation customization retrieval function, and the description file of the customization retrieval function is placed on the particular category Under, namely subsequent if desired exploitation customization retrieval function in the process of development, it is only necessary to retrieval function is placed under regulation path Description file (func file), which can be scanned, to be loaded into, and the function file loaded is scanned, finally with tree-shaped knot on interface Structure is shown, as shown in Figure 2: according to the parameter of selected retrieval function, metadata schema is constructed, according to metadata mould in interface Type provides corresponding loader, provides set interface.
1, the corresponding configuration file of creation retrieval function.(IDE provides the template for generating retrieval function configuration file, reference Template automatically creates) configuration file that expands and develops default generates the config/funcs text in the impl project of corresponding bundle Under part folder, filename is ended up with .funcx, as shown in Figure 2:
File name is such as: DXFL_4.funcx.DXFL: retrieval function title, 4: retrieval function number, intermediate following stroke Line " _ " connect, attribute specification in file.Concrete configuration file parameters are provided that
2, retrieval function, the configuration file under server-side scanning load particular category are clicked;
3, specific retrieval function is taken
Retrieval function tree node is clicked, corresponding access letter is obtained according to retrieval function title to server-side (function caching) Number.
Another embodiment of the present invention constructs metadata schema according to retrieval function on the basis of above-mentioned process.Specifically According to the retrieval function got, parameter list, then carry out building metadata schema, structure such as MetaModelVO if it exists.Member Data model (MetaDataModel), data for being interpreted as data that can be popular either be used to describe data data and The information of information.For example, we can obtain the metadata of a query result by related API, it describes query result Column name, the information such as type.Metadata is talked about in ECP, must being associated with VO, (VO model is non-persistence entity, is one It is exclusively used in the view model with interface alternation.It deposits in service item service, it can be with background layer on the scene, role's layer processing VO Model, but cannot function as parameter and enter data access layer.In addition to the essential attribute of physical items in its all metadata, also wrap The information for the attribute for rendering and controlling containing interface) VO generated by the editing machine of IDE, while generation VO, it can also generate VO Corresponding meta data file, the content of metadata are also corresponded with the attribute of VO.MetaModelVO, that is, metadata VO mould Type provides data to build interface.
Another embodiment of the present invention builds interface according to metadata schema on the basis of the above embodiments, shows Show that effect picture is as shown in Figure 3.
Above-mentioned process is further described from service interface and realization class figure angle below.
1, service interface and realization class figure, as shown in Figure 4:
Func.java is the attribute specification class in configuration file, such as the name of configuration file, path, classification etc.. FuncParam.java is the corresponding parameter declaration class of Func, and set interface parameter all obtains from here. ExpFunctionUtil.java is retrieval function file tool class, this tool-class can read the legacy data of legacy platform table, directly raw At function file, static state storage to fixed catalogue, so that scanning load is used.IExpFunctionContext.java retrieval function Set interface scene interface class, front end obtain metadata schema and just pass through the acquisition of this scene class.
2, the sequence chart of crucial treatment process, as shown in Figure 5.
2.1, retrieval function sequence chart, Fig. 5 A are loaded.
When servicing starting, the services package for being Active for state, it is as shown above right if there is configuring to be scanned The configuration file of catalogue retrieval function is answered, then is placed in caching map.After servicing starting, operator clicks to enter retrieval function Configuration interface can then call IExpFunctionContext load to obtain the access letter of caching storage in access function class Number is converted into function object return.
2.2, the parameter setting interface sequence chart of retrieval function, Fig. 5 B. are generated
Operator clicks the retrieval function for needing to be arranged, and calls IExpFunctionContext.getMetaModelByF UncName () obtains the metadata schema that retrieval function corresponds to parameter building, constructs metadata schema according to the parameter of acquisition, According to the loader control that the metadata schema of return building interface parameter and parameter are used, so far constructs the page and complete.
After having loaded retrieval function file, cached.If desired increase retrieval function, it is only necessary to define retrieval function text Part.
The process provided in an embodiment of the present invention based on ECP platform retrieval function setting method is described above.Under below Face for the retrieval function migration for taking management object properties to be explained.Take this function interface of object properties more single first One, meet the rule that the method is lifted to.
As shown in Figure 6A, developer need to configure a configuration file, be placed on the particular category of bundle.
Corresponding parameter is shown in following figure 6B.Shown in retrieval function description is described as follows:
Note: (1) designerUrl is the set interface address shown on the right of retrieval function, if it is empty must then be configured Following funcParams, system can construct set interface according to this configuration parameter, and the value inside funcParams is showing interface Attribute.It needs to provide the controller of designerUrl and corresponding html if the setting of page complexity.
(2) if independent project access is arranged, configuration file will add following configuration:
If the parameter attribute of configuration file is configured with this attribute of metaItem, then it represents that this parameter value is in set interface What is returned is item field, rather than true value, needs front end to do specially treated if it is item field, addition platform is directed to item Purpose symbol # { }.And other parameters take out true value and do not need then to add this symbol, therefore are identified with metaItem.
(3) className, if newly created retrieval function realizes new ECP retrieval function interface IECPFunctionBaseLib, then className must be filled out, if function old before calling, then do not fill out here.That newly writes takes Number function realizes ECP interface, and the access execution method for needing to call ECP platform according to className carries out solution and extracts Number, therefore className must be filled out.And legacy platform function only needs to judge according to method name the class at place, then calls The retrieval function that legacy platform has been carried out is fetched, and className is not needed.
Second: as shown in Figure 6 C, according to configuration file, load configuration retrieval function.Loading result is as shown in Figure 6 D.
Third: specific retrieval function is taken.Retrieval function tree node is clicked, according to retrieval function title to server-side (letter Number caching) obtain corresponding retrieval function.Metadata schema is constructed according to retrieval function.Participating in attached drawing has specific call flow. According to the retrieval function got, parameter list, then carry out building metadata schema, structure such as MetaModelVO if it exists.According to Metadata schema builds interface, and display renderings are as illustrated in fig. 6e.
Another embodiment according to the present invention correspondingly provides a kind of based on ECP platform retrieval function setting device, comprising:
File configuration module, for the corresponding configuration file based on legacy platform creation retrieval function;
Function chooses module, and for choosing retrieval function, server-side scan profile simultaneously loads corresponding retrieval function;
Setup module obtains corresponding retrieval function in server end for the title according to the retrieval function.
Described device further include: metadata schema constructs module, for the retrieval function according to acquirement, if there is parameter List then constructs metadata schema.
Described device further include: interface setup module, for building interface according to the metadata schema.
Apparatus above and module correspond to the setting method of retrieval function, repeat no more.
In conclusion the method is according to this spy since there are a large amount of retrieval function set interfaces to have unified rule Set pattern rule offer, which only needs to configure file, can be realized function migration and function expansion.It can be seen that, it is only necessary to pass through business Developer develops configuration file, and providing set interface subsequently through state can realize that retrieval function migration and function are expanded Exhibition, therefore can avoid bringing duplicate development amount, it is greatly improved working efficiency, saves a large amount of manpower and object Power.
Being described in module involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described module also can be set in the processor, for example, can be described as: a kind of processor packet Request receiving module, information reading module are included, view constructs module and function enables module.Wherein, the title of these modules exists The restriction to the module itself is not constituted in the case of certain.
As on the other hand, present invention also provides a kind of computer readable storage medium, the computer-readable storage mediums Matter can be computer readable storage medium included in device described in above-described embodiment;It is also possible to individualism, not The computer readable storage medium being fitted into terminal.The computer-readable recording medium storage have one or more than one Program, described program is used to execute by one or more than one processor is described in using under full frame application for the application The method of widgets.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from the inventive concept, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (6)

1. one kind is based on ECP platform retrieval function setting method characterized by comprising
Based on the corresponding configuration file of legacy platform creation retrieval function;
Retrieval function is chosen, server-side scan profile simultaneously loads corresponding retrieval function;The selection retrieval function is into one Step includes: that the description file of the retrieval function is scanned and loads, and scans the function file loaded on interface with tree-like Structure is shown;Retrieval function tree node is clicked in the tree structure;
According to the title of the retrieval function, corresponding retrieval function is obtained in server end;
Metadata schema is then constructed if there is parameter list according to the retrieval function of acquirement.
2. retrieval function setting method according to claim 1, which is characterized in that the method also includes:
Interface is built according to the metadata schema.
3. any retrieval function setting method according to claim 1~2, which is characterized in that the configuration file includes One fixed suffix name, the retrieval function configuration file that the configuration file is provided by IDE generates template and automatically generates, and is stored in Under particular category.
4. retrieval function setting method according to claim 3, which is characterized in that the fixed entitled .funcx of suffix, The particular category is the config/funcs file of the impl project of bundle.
5. retrieval function setting method according to claim 3, which is characterized in that the method also includes:
Exploitation customization retrieval function, and the description file of the customization retrieval function is placed under the particular category.
6. device is arranged based on ECP platform retrieval function in one kind characterized by comprising
File configuration module, for the corresponding configuration file based on legacy platform creation retrieval function;
Function chooses module, and for choosing retrieval function, server-side scan profile simultaneously loads corresponding retrieval function;
Setup module obtains corresponding retrieval function in server end for the title according to the retrieval function;
Metadata schema constructs module and if there is parameter list, then constructs metadata mould for the retrieval function according to acquirement Type;
Interface setup module, for building interface according to the metadata schema.
CN201410827534.1A 2014-12-26 2014-12-26 One kind being based on ECP platform retrieval function setting method and device Active CN105786472B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410827534.1A CN105786472B (en) 2014-12-26 2014-12-26 One kind being based on ECP platform retrieval function setting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410827534.1A CN105786472B (en) 2014-12-26 2014-12-26 One kind being based on ECP platform retrieval function setting method and device

Publications (2)

Publication Number Publication Date
CN105786472A CN105786472A (en) 2016-07-20
CN105786472B true CN105786472B (en) 2019-05-10

Family

ID=56388525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410827534.1A Active CN105786472B (en) 2014-12-26 2014-12-26 One kind being based on ECP platform retrieval function setting method and device

Country Status (1)

Country Link
CN (1) CN105786472B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110224973B (en) * 2019-04-24 2021-09-03 深圳点猫科技有限公司 Multi-server parallel implementation method based on programming game, electronic equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101689259A (en) * 2007-06-08 2010-03-31 埃森哲环球服务有限公司 Migration of legacy applications
CN102207887A (en) * 2011-05-04 2011-10-05 中兴通讯股份有限公司 Method and device for rapidly transplanting embedded operation system
US8429645B2 (en) * 2007-08-14 2013-04-23 International Business Machines Corporation Method for optimizing migration of software applications to address needs
CN103473072A (en) * 2013-09-24 2013-12-25 北京大学 Mobile cloud computing application program development method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101689259A (en) * 2007-06-08 2010-03-31 埃森哲环球服务有限公司 Migration of legacy applications
US8429645B2 (en) * 2007-08-14 2013-04-23 International Business Machines Corporation Method for optimizing migration of software applications to address needs
CN102207887A (en) * 2011-05-04 2011-10-05 中兴通讯股份有限公司 Method and device for rapidly transplanting embedded operation system
CN103473072A (en) * 2013-09-24 2013-12-25 北京大学 Mobile cloud computing application program development method

Also Published As

Publication number Publication date
CN105786472A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
CN108279932B (en) Method and device for dynamically configuring user interface of mobile terminal
CN110795195B (en) Webpage rendering method and device, electronic equipment and storage medium
Paterno et al. One model, many interfaces
US8930824B2 (en) Facilitating propagation of user interface patterns or themes
US20150295781A1 (en) Cloud object
CN108073435B (en) Multi-information integrated display method and system
CN109376316B (en) Method, system and server for dynamically loading route
CN103051652B (en) A kind of mobile terminal cloud computing distribution platform
US20150220496A1 (en) Dynamic sprite based theme switching
US9003433B2 (en) Off-premise and codeless process-centric business mashup to integrate BPEL based processes and web 2.0 widgets
US10372812B2 (en) Combining aspects of a template into multiple web pages
US20170212964A1 (en) System and method for dynamic content rendering
CN104793966A (en) Display and loading method and system of Android local application
Gao et al. CoWebDraw: a real-time collaborative graphical editing system supporting multi-clients based on HTML5
US9053442B2 (en) Multiple project areas in a development environment
CN110807162A (en) Method and device for loading occupation bitmap
CN103942037A (en) Method and device for theme replacement of mobile device
CN105786472B (en) One kind being based on ECP platform retrieval function setting method and device
CN110673827B (en) Resource calling method and device based on android system and electronic equipment
US20180074674A1 (en) Process initiation
Fujima Building a meme media platform with a JavaScript MVC framework and HTML5
US11843679B2 (en) Automated dependency management based on page components
CN102637128A (en) Method for generating selection controls of general levels
US9384251B2 (en) Synchronization of off-line reports and off-line mobile content packages
CN111124386B (en) Animation event processing method, device, equipment and storage medium based on Unity

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