CN105205138A - Flow data processing method for mobile terminal - Google Patents

Flow data processing method for mobile terminal Download PDF

Info

Publication number
CN105205138A
CN105205138A CN201510591971.2A CN201510591971A CN105205138A CN 105205138 A CN105205138 A CN 105205138A CN 201510591971 A CN201510591971 A CN 201510591971A CN 105205138 A CN105205138 A CN 105205138A
Authority
CN
China
Prior art keywords
mobile terminal
field
xml
flow data
flow
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.)
Pending
Application number
CN201510591971.2A
Other languages
Chinese (zh)
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.)
Beijing Gold And Network Ltd Co
Original Assignee
Beijing Gold And Network Ltd Co
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 Beijing Gold And Network Ltd Co filed Critical Beijing Gold And Network Ltd Co
Priority to CN201510591971.2A priority Critical patent/CN105205138A/en
Publication of CN105205138A publication Critical patent/CN105205138A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/83Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/81Indexing, e.g. XML tags; Data structures therefor; Storage structures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a flow data processing method for a mobile terminal. The flow of the terminal is configured on the basis of an XML. The flow data processing method comprises a field parameter configuration step of configuring parameters of a field by an XML mode according to a table field and a demand of a user in an appointed database, a script obtaining step of obtaining an SQL script of the corresponding field, a script modification step of modifying the SQL script of the field, a naming step of naming an XML file through a main key defined by the flow, and a binding step of binding the XML file and the flow through the main key defined by the flow.

Description

The flow data disposal route of mobile terminal
Technical field
The present invention relates to data processing field, particularly relate to the method processed based on the flow data of XML to mobile terminal.
Background technology
In the past, become obstacle at the data exhibiting of mobile terminal and Data processing flow process, mainly because flow data is shown relative complex at mobile terminal and not easily process with the data volume of business datum, traditional solution the following two kinds comparatively greatly always.
The first scheme is that business datum and flow data are all returned all mobile terminals, data have been result in very too fat to move like this, and mass data to be processed for mobile device and cause its effect low, and with need to transmit a large amount of data when server interaction and need to consume a large amount of resources.Part company also takes to return business datum and flow data carries out compressing the resource occupation lowering mobile terminal and server, but does the pressure brought to mobile terminal process data like this.Cause its inefficiency, user satisfaction is lower.
The second solution is delivered to client by webpage exactly, submits to data also by submission of sheet, can lower the computing pressure of mobile terminal like this, also reduce the pressure of Service-Port simultaneously, but but underaction.Because the also transmission that a lot of data of mobile terminal need not be shown has been gone over, result in data redundancy.
The present invention is directed to the solution that the problems referred to above propose is carry out by XML the information that flexible configuration mobile terminal will show, but also the process that can be defined by which kind of mode to realize to data, so not only reduce the data processing pressure of mobile terminal, also achieve the sweetly disposition to data simultaneously.By server end, XML is resolved, and corresponding data processing is done to it.
Summary of the invention
The invention discloses a kind of flow data disposal route of mobile terminal, based on XML, terminal flow process is configured, wherein, comprises: field parameter configuration step, according to the demand of the literary name section in the database of specifying and user, be configured by the parameter of mode to field of XML; Script modify steps, obtains the SQL script of corresponding field, and modifies to the SQL script of this field; Name step, is named XML file by the major key of flow definition; And binding step, by the major key of flow definition, XML and flow process are bound.
Be preferably, described field parameter comprise the display of mobile terminal list field name, whether show, whether can write, the type of field in the database corresponding with this field and this field be at the authority information of certain node of flow process.
Be preferably, in described field parameter configuration step, the element different by XML and attribute represent and represent different effects.
Be preferably, described element comprises Root root element, ModuleName element, ModuleID element, ViewModel element, Script element, Tables element, MainTable element, SubTables element.
Be preferably, content and other marks must be placed between < root > and </root > when building document by described Root root element.
Be preferably, described ModuleName element is business module title, the corresponding XML of each business.
Be preferably, described ModuleID element is business module ID, an a kind of type of service of major key unique identification.
Be preferably, described ViewModel element is list display mode, be worth for during disabled for editing, be worth for editing during sky.
Be preferably, described Script element is the js function table in forms pages, comprises 4 total functions, realizes its function separately, and can add white defined function in each XML.
Be preferably, described MainTable element is business master meter definition format and comprises SaveTable daughter element, IInsertData daughter element, Paras daughter element and Para daughter element, and described SubTables element is that business comprises SaveTabl daughter element, IInsertData daughter element, Paras daughter element and Para daughter element from table definition form.
According to the flow data disposal route of mobile terminal of the present invention of the present invention, achieve the perfection display on multiple mobile terminal, avoid the repeated design effort to different mobile terminals, thus the software development achieving the low coupling of high cohesion realizes.By XML configuration service data flexibly, thus avoid data redundancy.Obtain by the flow definition of XML the data that data want, thus avoid the service logic of rear server end complexity.Generating in new flow process like this, only needing configuration just can achieve the display of business, convenient and swift.
Reference text
Fig. 1 is the process flow diagram representing mobile terminal configuration method involved in the present invention.
Fig. 2 is the structural drawing representing the field parameter configured in mobile terminal configuration method involved in the present invention.
Fig. 3 represents that the structured flowchart of each element comprised is calculated by XML unit.
Fig. 4 is the structured flowchart representing each daughter element that MainTable element comprises.
Fig. 5 is the structured flowchart representing each daughter element that SubTables element comprises.
Embodiment
Referring to accompanying drawing, and in conjunction with specific embodiments the specific embodiment of the present invention is described in detail.
Fig. 1 is described process flow diagram to the flow data disposal route of mobile terminal of the present invention.The flow data disposal route of mobile terminal of the present invention is the method be configured terminal flow process based on XML.In field parameter configuration step S1, according to the demand of the literary name section in the database of specifying and user, be configured by the parameter 10 of mode to field of XML.In script modify steps S2, obtain the SQL script of corresponding field.In script modify steps S3, the SQL script of this field is modified.In name step S4, by the major key of flow definition, XML file is named.In binding step S4, by the major key of flow definition, XML and flow process are bound.When different mobile terminal accessings, server end is resolved XML, and by inquiring corresponding data inside XML, and return to client.Client submits to server end to after data processing, and server carries out alternately with server by corresponding XML configuration information.
Wherein, above-mentioned field parameter 10 comprise the display of mobile terminal list field name 101, whether show 102, whether can write 103, the Class1 04 of field in the database corresponding with this field and this field be at the authority information 105 of certain node of flow process.In addition, in described field parameter configuration step, the element different by XML and attribute represent and represent different effects.Wherein, described element comprises Root root element, ModuleName element, ModuleID element, ViewModel element, Script element, Tables element, MainTable element, SubTables element.Here, content and other marks must be placed between < root > and </root > when building document by described Root root element.In addition, described ModuleName element is business module title, the corresponding XML of each business.In addition, described ModuleID element is business module ID, an a kind of type of service of major key unique identification.Described ViewModel element is list display mode, be worth for during disabled for editing, be worth for editing during sky.Described Script element is the JavaScript function table in forms pages, comprises 4 total functions, realizes its function separately, and can add white defined function in each XML.Described MainTable element is business master meter definition format and comprises SaveTable daughter element, IInsertData daughter element, Paras daughter element and Para daughter element, and described SubTables element is that business comprises daughter element SaveTabl daughter element, IInsertData daughter element, Paras daughter element and Para daughter element from table definition form.
Specifically, in step sl, configure corresponding XML, the element different by XML and attribute represent and represent different effects.The detailed annotation of concrete element, attribute is as follows:
Root root element represents that content and other marks must be placed between < root > and </root > when building document;
ModuleName element is business module title, the corresponding xml of each business;
ModuleID element is business module ID, a kind of type of service of major key unique identification;
ViewModel element is list display mode, and be worth for disabled is for editing, sky can be edited;
Script element is the JavaScript function table in forms pages, comprises 4 total functions, realizes its function separately, also can add white defined function in each xml, and using method is the same with html programming;
Tables element comprises business master meter definition format MainTable element and business from table definition form SubTables element.
MainTable element is business master meter definition format, and its concrete daughter element is defined as follows:
SaveTable element: business master meter table name;
IInsertData element: newly-built preservation master meter node elements;
Paras element: Command statement parameter list;
Para element: each parameter definition element;
Datatype attribute: represent field data types, comprise (varchar, datetime, int, float, date);
Primary attribute: true represents that this field is for table major key;
Strategy attribute: primary key generation strategies, comprises (uuid, sequence); Uuid generates 32 major keys, or the sequence in database generates major key;
Element value *: the value that the field comprised between getting is corresponding, in json string, in the SQL of this value and Command *corresponding;
Command element: for performing SQL statement;
IUpdateData element: upgrade and preserve master meter node elements, the same IInsertData of daughter element;
IGetData element: for inquiring about master meter SQL statement;
CtrlList element: represent the set of fields that list will show;
Ctrl element: represent that single field page display format defines;
Datafield attribute: be the field name that select in IGetData is corresponding;
Ctrltitle attribute: page display field Chinese describes;
Ctrlid attribute: representation page element ID;
Ctrltype attribute: representation page element control type, text, hidden, radio etc.;
Isshow attribute: this control is hidden in display: 0 is hiding, 1 is display;
Datatype attribute: represent data type;
Selnodes attribute: be that " " wait list during control, form is " value: display page value for radio, checkbox, select; Value: display page value ", multiple value is used '; ' separate.Such as: " 1: swimming; 2: reading; 3: run ";
Datasource attribute: the same with selnodes effect, but it is value from database, such as: " selecttypeId, typeNamefromTypes ";
Defaultvalue attribute: default value;
Onclick attribute: click event, literary style is the same with html form.
Business is identical from the definition of the daughter element of table definition form SubTables element with business from the definition of the daughter element of table definition form SubTables element.
Next, carry out xml parsing, generate html code, quote public style sheet and JavaScript.
Next, carry out page data assembling, data check, submit server process to.
Finally, resolved by backstage and submit json data to, by the corresponding java object type in define styles Automatic Adaptation Data storehouse, then judging insertion, renewal rewards theory according to request type.
For java exploitation, json is resolved to WFBusinessData object by backstage
Below invention has been described by reference to the accompanying drawings, makes those skilled in the art can put into practice theme disclosed in this invention by these.The present invention can certainly being implemented by other embodiments, the various changes that those skilled in the art make the present invention, when not departing from the scope disclosed in the claims in the present invention, all considereding to be in scope that the present invention contains.Therefore, detailed description above can not be understood to be restrictive sense, and scope disclosed by the invention should be limited by appended claim and equivalent thereof.

Claims (10)

1. a flow data disposal route for mobile terminal, is configured terminal flow process based on XML, it is characterized in that,
Comprise:
Field parameter configuration step, according to the demand of the literary name section in the database of specifying and user, is configured by the parameter of mode to field of XML;
Script obtaining step, obtains the SQL script of corresponding field;
Script modify steps, modifies to the SQL script of this field;
Name step, is named XML file by the major key of flow definition; And
Binding step, is bound XML file and flow process by the major key of flow definition.
2. the flow data disposal route of mobile terminal according to claim 1, is characterized in that,
Described field parameter comprise the display of mobile terminal list field name, whether show, whether can write, the type of field in the database corresponding with this field and this field be at the authority information of certain node of flow process.
3. the flow data disposal route of mobile terminal according to claim 1 and 2, is characterized in that,
In described configuration step, the element different by XML and attribute represent and represent different effects.
4. the flow data disposal route of mobile terminal according to claim 3, is characterized in that,
Described element comprises Root root element, ModuleName element, ModuleID element, ViewModel element, Script element, Tables element, MainTable element, SubTables element.
5. the flow data disposal route of mobile terminal according to claim 4, is characterized in that,
Content and other marks must be placed between <root> and </root> when building document by described Root root element.
6. the flow data disposal route of the mobile terminal according to claim 4 or 5, is characterized in that,
Described ModuleName element is business module title, the corresponding XML of each business.
7. the flow data disposal route of the mobile terminal according to claim 4 or 5, is characterized in that,
Described ModuleID element is business module ID, an a kind of type of service of major key unique identification.
8. the flow data disposal route of the mobile terminal according to claim 4 or 5, is characterized in that,
Described ViewModel element is list display mode, and for editing when its value is disabled, its value is for editing time empty.
9. the flow data disposal route of the mobile terminal according to claim 4 or 5, is characterized in that,
Described Script element is the JavaScript function table in forms pages, comprises 4 total functions, realizes its function separately, and can add self-defining function in each XML.
10. the flow data disposal route of the mobile terminal according to claim 4 or 5, is characterized in that,
Described MainTable element is business master meter definition format and comprises SaveTable daughter element, IInsertData daughter element, Paras daughter element and Para daughter element, and described SubTables element is that business comprises daughter element SaveTabl daughter element, IInsertData daughter element, Paras daughter element and Para daughter element from table definition form.
CN201510591971.2A 2015-09-16 2015-09-16 Flow data processing method for mobile terminal Pending CN105205138A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510591971.2A CN105205138A (en) 2015-09-16 2015-09-16 Flow data processing method for mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510591971.2A CN105205138A (en) 2015-09-16 2015-09-16 Flow data processing method for mobile terminal

Publications (1)

Publication Number Publication Date
CN105205138A true CN105205138A (en) 2015-12-30

Family

ID=54952821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510591971.2A Pending CN105205138A (en) 2015-09-16 2015-09-16 Flow data processing method for mobile terminal

Country Status (1)

Country Link
CN (1) CN105205138A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391175A (en) * 2017-06-20 2017-11-24 福建天泉教育科技有限公司 Control data collocation method and computer-readable recording medium
CN109377193A (en) * 2018-12-01 2019-02-22 广东鸿正软件技术有限公司 User-defined flow method, apparatus, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080021916A1 (en) * 2001-11-16 2008-01-24 Timebase Pty Limited Maintenance of a markup language document in a database
US20090287638A1 (en) * 2008-05-15 2009-11-19 Robert Joseph Bestgen Autonomic system-wide sql query performance advisor
CN101645075A (en) * 2009-09-07 2010-02-10 浪潮集团山东通用软件有限公司 Method for realizing general data list based on XML and dynamic script file configuration
CN102147726A (en) * 2011-04-01 2011-08-10 烽火通信科技股份有限公司 Script-based method for implementing service configuration
CN102339314A (en) * 2011-09-24 2012-02-01 国网电力科学研究院 Cross-terminal data form description and presentation method based on extensive makeup language (XML)
CN104778285A (en) * 2015-05-12 2015-07-15 成都广达电子股份有限公司 XML-based WEB service system and working method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080021916A1 (en) * 2001-11-16 2008-01-24 Timebase Pty Limited Maintenance of a markup language document in a database
US20090287638A1 (en) * 2008-05-15 2009-11-19 Robert Joseph Bestgen Autonomic system-wide sql query performance advisor
CN101645075A (en) * 2009-09-07 2010-02-10 浪潮集团山东通用软件有限公司 Method for realizing general data list based on XML and dynamic script file configuration
CN102147726A (en) * 2011-04-01 2011-08-10 烽火通信科技股份有限公司 Script-based method for implementing service configuration
CN102339314A (en) * 2011-09-24 2012-02-01 国网电力科学研究院 Cross-terminal data form description and presentation method based on extensive makeup language (XML)
CN104778285A (en) * 2015-05-12 2015-07-15 成都广达电子股份有限公司 XML-based WEB service system and working method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李中华: "柔性MIS及表单定义工具研究", 《中国优秀硕士学位论文全文数据库》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391175A (en) * 2017-06-20 2017-11-24 福建天泉教育科技有限公司 Control data collocation method and computer-readable recording medium
CN107391175B (en) * 2017-06-20 2021-03-30 福建天泉教育科技有限公司 Control data configuration method and computer readable storage medium
CN109377193A (en) * 2018-12-01 2019-02-22 广东鸿正软件技术有限公司 User-defined flow method, apparatus, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US10075546B2 (en) Techniques to automatically syndicate content over a network
US8037402B2 (en) Method and system for flexible creation and publication of forms
CN101496000B (en) Two-way and multi-master synchronization over web syndications
CN104731589A (en) Automatic generation method and device of user interface (UI)
US8930824B2 (en) Facilitating propagation of user interface patterns or themes
CN103607427A (en) Method and device for information display
CN102339314A (en) Cross-terminal data form description and presentation method based on extensive makeup language (XML)
CA2511912A1 (en) System and method for building and execution of platform-neutral generic services&#39; client applications
US9646103B2 (en) Client-side template engine and method for constructing a nested DOM module for a website
WO2020199423A1 (en) Automated construction method and system for yang model configuration interface
CN103577197A (en) Method for achieving android application program dynamic form
CN105138313A (en) Client application and web page integration
US20160012147A1 (en) Asynchronous Initialization of Document Object Model (DOM) Modules
US20160012144A1 (en) Javascript-based, client-side template driver system
CN103942280A (en) Automatic code generating method based on data structure
CN105205138A (en) Flow data processing method for mobile terminal
CN104199928A (en) Method for describing and analyzing semi-structured pages
CN101944133A (en) XML metadata objectification analytic method and system
CN101237449B (en) Method and system for access to IMS database
CN101815064A (en) Data interaction method and device thereof
CN105528424A (en) System and method for implementing data persistence in big data environment
US11843679B2 (en) Automated dependency management based on page components
CN102184219A (en) Method for implementing custom date selection control based on Strusts2 in WEB system
CN101867888A (en) Method and system for sending multimedia message
KR101091773B1 (en) Homepage manufacture system and method that design cording for program include

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151230