CN106502680B - A method of pel extension is carried out by visualization interface - Google Patents

A method of pel extension is carried out by visualization interface Download PDF

Info

Publication number
CN106502680B
CN106502680B CN201610928585.2A CN201610928585A CN106502680B CN 106502680 B CN106502680 B CN 106502680B CN 201610928585 A CN201610928585 A CN 201610928585A CN 106502680 B CN106502680 B CN 106502680B
Authority
CN
China
Prior art keywords
pel
extension
model
user
attribute
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
CN201610928585.2A
Other languages
Chinese (zh)
Other versions
CN106502680A (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.)
Yonyou Network Technology Co Ltd
Original Assignee
Yonyou Network Technology 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 Yonyou Network Technology Co Ltd filed Critical Yonyou Network Technology Co Ltd
Priority to CN201610928585.2A priority Critical patent/CN106502680B/en
Publication of CN106502680A publication Critical patent/CN106502680A/en
Application granted granted Critical
Publication of CN106502680B publication Critical patent/CN106502680B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention discloses a kind of methods for carrying out pel extension by visualization interface, and the extension of certain pel is defined in interface due to specifically including that user;It is searched whether in configuration file comprising the pel, if comprising the pel, pel is prompted to repeat, if not including the pel, the pel is defined in configuration file, i.e., pel is registered in configuration file;It is automatic to refresh interface, show newly-increased pel;User is drawn using newly-increased pel;Newly-increased pel is stored in element model;Preservation model, will be in extension pel and its attribute deposit json file;When json is converted into background model, the corresponding background model of extension primitive generating;When export, the corresponding xml of extension primitive generating;When extending pel in the prior art so as to overcome, the complexity of model is too high, and user is big using difficulty, ease for use difference defect.

Description

A method of pel extension is carried out by visualization interface
Technical field
The present invention relates to pel expansion technique fields, and in particular, to a kind of to carry out pel extension by visualization interface Method.
Background technique
Pel extension can be applied in multi-modeling tool, as long as needing to provide one group of pel in modeling tool for user, It just needs to be extended pel under normal circumstances, to adapt to the demand of different user.Such as in business process designer, need for Family provides pel extension mechanism, allows users to configure the additional pel needed for oneself.
In order to provide user's extensible mechanism, in previous realization, following methods are mainly used:
Redundancy pel mode is reserved several pels and is used to user, and this method is realized simply, but scalability is bad, still may be used It can be unsatisfactory for user demand;
Configuration file mode, user write the configuration file for meeting certain format, and program, which is read, generates the customized pel of user, This method favorable expandability, but user is required relatively high, user experience is bad;
The implementation of the description expansible pel of user for clarity, will say by taking process modeling tool as an example herein It is bright, several important concepts are described below:
Process pel: each pel is a figure in modeling tool in simple terms, this figure represents specific contain Justice has a series of attributes, can be converted one section of xml.
Procedural model: a kind of model that process modeling tool can be used to draw terminates, user task comprising starting Equal elements, can store after the completion of design as xml formatted file.
CN105786893A is stored using xml, and target and method are different from the present invention, although CN104020997A It is expansible graphical, but in the present invention compared to using method difference, application field is also different
In modeling tool, in order to realize that the user of pel is expansible, in previous realization, mainly using following several Scheme:
1. by way of increasing redundancy pel, but this realization increases the complexity of model, especially if certain There are many pel that a little users need to extend, then many redundancy pels certainly will be needed to increase, which adds the complexity of model Property, the difficulty that user uses is improved, puzzlement is caused to the user for not needing to carry out too many pel extension.
2. developer defines configuration file, need in configuration file when user needs to extend by certain format The configuration of pel, this method favorable expandability are carried out, but writes configuration file and user there are certain requirements, is brought to user's use Inconvenience, ease for use are poor.
Summary of the invention
It is an object of the present invention in view of the above-mentioned problems, propose a kind of side for carrying out pel extension by visualization interface Method, to realize to the more simple and effective advantage of the extension of pel.
To achieve the above object, the technical solution adopted by the present invention is that: one kind by visualization interface progress pel extension Method, specifically include that
Step 1: user defines the extension of certain pel in interface;
Step 2: searched whether in configuration file comprising the pel, if comprising the pel, prompt pel to repeat, if not Comprising the pel, then the pel is defined in configuration file, i.e., pel is registered in configuration file;
Step 3: refreshing interface automatically, show newly-increased pel;
Step 4: user is drawn using newly-increased pel;
Step 5: newly-increased pel is stored in element model;
Step 6: preservation model, it will be in extension pel and its attribute deposit json file;When json is converted into background model, Extend the corresponding background model of primitive generating;When export, the corresponding xml of extension primitive generating.
Further, step 1 extends specifically, providing an interface for pel;It is all by grouping display in interface Preset pel, and pel is edited, it specifically includes and deletes pel or increase pel, the deletion pel includes choosing pel Click delete button;The increase pel includes choosing the grouping, clicks increase button by right key, inputs in the dialog box of pop-up Then attribute possessed by the pel, including pel title, pel code, pel picture mark position and the position pel svg are clicked really It is fixed.
Further, step 2 specifically includes, and looks into according to the pel title and pel code of user's input into configuration file It looks for, if the pel title or code are existing, user is prompted to modify pel title or code;If pel title and code It is all not present, then need to configure the pel in configuration file, and the attribute logging that user is filled in is into the pel;If user It is unregistered to occur some attribute in the attribute filled in, then also needs to register the attribute.
Further, the step 7 specifically includes, and when model saves, the extension pel in model is by as independent one In section deposit json file, with the incoming backstage of json file, json file is then completed in the background to background model model's Conversion, at this moment the information of the extension pel and its attribute in json can be stored in model, and have extend prefix;Model export When, each pel is written in xml document as separate label in model, when model needs to modify, when importing again, Cross extension configuration file just by after extension pel and its attribute value show, extension complete.
A kind of method that pel extension is carried out by visualization interface of various embodiments of the present invention, due to specifically including that use Family defines the extension of certain pel in interface;It is searched whether in configuration file comprising the pel, if comprising the pel, prompts figure Member repeats, if not including the pel, the pel is defined in configuration file, i.e., pel is registered in configuration file;Automatically Refresh interface, shows newly-increased pel;User is drawn using newly-increased pel;Newly-increased pel is stored in element model;Preservation model will expand It opens up in pel and its attribute deposit json file;When json is converted into background model, the corresponding background model of extension primitive generating; When export, the corresponding xml of extension primitive generating;When extending pel in the prior art so as to overcome, the complexity of model is too Height, user is big using difficulty, ease for use difference defect.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, with reality of the invention It applies example to be used to explain the present invention together, not be construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of method flow that pel extension is carried out by visualization interface described in the specific embodiment of the invention Figure;
Fig. 2 is a kind of method description that pel extension is carried out by visualization interface described in the specific embodiment of the invention Application schematic diagram when user's reduced model designer;
Fig. 3 is a kind of method description that pel extension is carried out by visualization interface described in the specific embodiment of the invention The application schematic diagram of user's extended model designer.
Specific embodiment
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings, it should be understood that preferred reality described herein Apply example only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
Specifically, a method of pel extension is carried out by visualization interface, is specifically included that
Step 1: user defines the extension of certain pel in interface;
Step 2: searched whether in configuration file comprising the pel, if comprising the pel, prompt pel to repeat, if not Comprising the pel, then the pel is defined in configuration file, i.e., pel is registered in configuration file;
Step 3: refreshing interface automatically, show newly-increased pel;
Step 4: user is drawn using newly-increased pel;
Step 5: newly-increased pel is stored in element model;
Step 6: preservation model, it will be in extension pel and its attribute deposit json file;When json is converted into background model, Extend the corresponding background model of primitive generating;When export, the corresponding xml of extension primitive generating.
Step 1 extends specifically, providing an interface for pel;All preset pels are shown by grouping in interface, And pel is edited, it specifically includes and deletes pel or increase pel, the deletion pel includes choosing pel to click to delete Button;The increase pel includes choosing the grouping, clicks increase button by right key, the pel institute is inputted in the dialog box of pop-up Then determination is clicked in the attribute having, including pel title, pel code, pel picture mark position and the position pel svg.
Step 2 specifically includes, and searches according to the pel title and pel code of user's input into configuration file, if should Pel title or code are existing, then user is prompted to modify pel title or code;If pel title and code are not present, The pel need to be then configured in configuration file, and the attribute logging that user is filled in is into the pel;If the category that user fills in It is unregistered to occur some attribute in property, then also needs to register the attribute.
The step 7 specifically includes, and when model saves, the extension pel in model is by as independent one section of deposit json In file, with the incoming backstage of json file, the conversion of json file to background model model is then completed in the background, at this moment The information of extension pel and its attribute in json can be stored in model, and have extend prefix;When model exports, in model Each pel is written in xml document as separate label, when model needs to modify, when importing again, has been subjected to extension Configuration file just by after extension pel and its attribute value show, extension complete.
It is main to realize that steps are as follows in conjunction with Fig. 1:
1. user defines the extension of certain pel in interface.
2. being searched whether in configuration file comprising the pel.
3. prompting pel to repeat if setting up if 2.
4. the pel is first defined if invalid if 2 in configuration file.
5. automatic refresh design device, shows new pel.
6. user is drawn using new pel.
It, will be in extension pel and its attribute deposit json file 7. modelling is completed to save.
8. extension pel and its attribute are resolved to model model and are corresponded in graphical element model when parsing json file.
When user's reduced model, system is converted into corresponding xml for pel is extended.
The mechanism is described in detail:
Firstly, the mechanism is supplied to user one succinctly, easy to use interface is extended for pel;It is aobvious by grouping in interface Show all preset pels, pel need to be chosen to click delete button as user does not need certain pels only;As user needs at some Increase pel in grouping, then needs to choose the grouping, click increase button by right key, the input primitive title in the dialog box of pop-up, Attribute possessed by pel code, pel picture mark position, the position pel svg and the pel is clicked and is determined.
Then, we search according to the pel title and pel code of user's input into configuration file, if the pel Title or code are existing, then user is prompted to modify pel title or code;If pel title and code are not present, need The pel is configured in configuration file, and the attribute logging that user is filled in is into the pel;If in the attribute that user fills in It is unregistered to there is some attribute, then also needs to register the attribute;
Then, it needs to refresh model automatically, reload, to generate extension pel, and the category that pel will be extended Property show, at this moment user can be used extension pel and draw, and be configured to the value of its attribute, the category set Property value will be recorded in together with Property Name in the attribute of extension pel, and extending marking is set;
Finally, when model saves, extension pel in model can by as in independent one section of deposit json file, with Then json file is completed to the conversion of background model model, the at this moment expansion in json in the incoming backstage of json file in the background The information of exhibition pel and its attribute can be stored in model, and have extend prefix;When model exports, each pel meeting in model It is written in xml document as separate label.In this way, having already passed through extension when model is needed to modify and be imported again Configuration file can smoothly by after extension pel and its attribute value show, extension complete.
The application of properties user extension mechanism
Application scenarios 1: user needs reduced model designer, removes script activity therein;It only needs to choose work at this time Script activity in dynamic grouping, then clicks and deletes;Effect is as shown in Figure 2:
Application scenarios 2: user needs extended model designer, increases cashier's node and condition node;It only needs to select at this time Middle alive packet, right button selection increase, and the title of cashier's node, code, the position of icon and svg are then inputted in pop-up box It sets, and the attribute etc. that cashier's node includes, clicks and determine, effect such as Fig. 2
At least can achieve it is following the utility model has the advantages that can simply and easily extend oneself using the technical user required for Pel, user experience is good, is easily used, and does not need to increase redundant field, does not need the additional exploitation code of developer, has There are very high ease for use, flexibility and scalability.
Finally, it should be noted that the foregoing is only a preferred embodiment of the present invention, it is not intended to restrict the invention, Although the present invention is described in detail referring to the foregoing embodiments, for those skilled in the art, still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features. All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should be included in of the invention Within protection scope.

Claims (4)

1. a kind of method for carrying out pel extension by visualization interface, which comprises the following steps:
Step 1: user defines the extension of certain pel in interface;
Step 2: searched whether in configuration file comprising the pel, if prompting pel to repeat comprising the pel, if not including The pel then defines the pel in configuration file, i.e., pel is registered in configuration file;
Step 3: refreshing interface automatically, show newly-increased pel;
Step 4: user is drawn using newly-increased pel;
Step 5: newly-increased pel is stored in element model;
Step 6: preservation model, it will be in extension pel and its attribute deposit json file;When json is converted into background model, extension The corresponding background model of primitive generating;When export, the corresponding xml of extension primitive generating.
2. the method according to claim 1 for carrying out pel extension by visualization interface, which is characterized in that the step 1 extends specifically, providing an interface for pel;All preset pels are shown by grouping in interface, and pel is carried out Editor specifically includes and deletes pel or increase pel, and the deletion pel includes that pel is chosen to click delete button;The increase Pel includes choosing the grouping, clicks increase button by right key, attribute possessed by the pel is inputted in the dialog box of pop-up, is wrapped It includes pel title, pel code, pel picture mark position and the position pel svg and then clicks determination.
3. the method according to claim 1 for carrying out pel extension by visualization interface, which is characterized in that step 2 tool Body includes searching according to the pel title and pel code of user's input into configuration file, if the pel title or code It is existing, then prompt user to modify pel title or code;It, need to be in configuration file if pel title and code are not present Middle configuration pel, and the attribute logging that user is filled in is into the pel;If occurring some category in the attribute that user fills in Property is unregistered, then also needs to register the attribute.
4. the method according to claim 1 for carrying out pel extension by visualization interface, which is characterized in that the step 6 specifically include, and when model saves, extension pel in model is literary with json by as in independent one section of deposit json file The incoming backstage of part, then completes json file to the conversion of background model model in the background, at this moment the extension pel in json And its information of attribute can be stored in model, and have extend prefix;When model exports, each pel is as independent in model Label is written in xml document, and when model needs to modify, when importing again, the configuration file for having been subjected to extension just will extension Pel and its attribute value afterwards is shown, and extension is completed.
CN201610928585.2A 2016-10-31 2016-10-31 A method of pel extension is carried out by visualization interface Active CN106502680B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610928585.2A CN106502680B (en) 2016-10-31 2016-10-31 A method of pel extension is carried out by visualization interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610928585.2A CN106502680B (en) 2016-10-31 2016-10-31 A method of pel extension is carried out by visualization interface

Publications (2)

Publication Number Publication Date
CN106502680A CN106502680A (en) 2017-03-15
CN106502680B true CN106502680B (en) 2019-08-16

Family

ID=58318747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610928585.2A Active CN106502680B (en) 2016-10-31 2016-10-31 A method of pel extension is carried out by visualization interface

Country Status (1)

Country Link
CN (1) CN106502680B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109117207B (en) * 2017-06-21 2021-11-23 深圳联友科技有限公司 Data processing method of business process model
CN109521984B (en) * 2017-09-20 2021-12-10 南京南瑞继保电气有限公司 Liquid crystal panel custom icon display method based on embedded system
CN107861717A (en) * 2017-11-09 2018-03-30 用友网络科技股份有限公司 The method that primitive attribute customization is carried out in a manner of database registration
CN109471613A (en) * 2018-09-25 2019-03-15 北京广利核系统工程有限公司 The graphic file generation method and system of nuclear safe level application

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216691B (en) * 2013-05-31 2017-11-17 华为技术有限公司 A kind of method and device for creating application
CN103412744B (en) * 2013-07-18 2016-08-10 国电南瑞科技股份有限公司 A kind of methods of exhibiting of the integrated information of power plant pel
CN104020997B (en) * 2014-06-13 2017-05-10 中国民航信息网络股份有限公司 Extensible graphical rule application system
CN105740543A (en) * 2016-01-29 2016-07-06 山东鲁能智能技术有限公司 QML based graphical electric power system modeling method and modeling system

Also Published As

Publication number Publication date
CN106502680A (en) 2017-03-15

Similar Documents

Publication Publication Date Title
CN106502680B (en) A method of pel extension is carried out by visualization interface
CN105867931B (en) The variation and device at information displaying interface
US8959142B2 (en) Combining server-side and client-side user interface elements
US9038001B2 (en) System and method for graphically illustrating external data source information in the form of a visual hierarchy in an electronic workspace
US10579678B2 (en) Dynamic hierarchy generation based on graph data
CN108399130A (en) Automatically generate the method, apparatus, equipment and readable storage medium storing program for executing of test cases
CN105183475A (en) Method and system for customizing individuality pages of portal website by user himself
CN108228253A (en) A kind of APP construction methods and system
US9152619B2 (en) System and method for constructing markup language templates and input data structure specifications
US20100067113A1 (en) Apparatus and Method for Displaying Hierarchical Data
CN107122173A (en) A kind of adaptation activiti, the list generation method that can be pulled
CN104731588B (en) Page layout document generating method and page layout file creating apparatus
CN104679519A (en) Method and device for acquiring functions of graphic user interface software
CN108509199A (en) Automatically generate the method, apparatus, equipment and storage medium of Chinese annotation
CN104049974A (en) Dynamic control assembly method and system
CN108469953A (en) A kind of generation method of page table list, server and storage medium
CN109445891A (en) Picture configuration and methods of exhibiting, device, computer readable storage medium
CN104091367A (en) Three-dimensional scene storage method and device based on OGRE
CN109816754A (en) Creation method, display methods and the system and storage medium of flow chart
CN103678263A (en) Graphical interface display method and system for incidence relations among document chapters
CN106776779A (en) The method of the JSON data genaration entity files based on Mac platforms
JP5867540B2 (en) PROGRAM GENERATION DEVICE, PROGRAM GENERATION DEVICE CONTROL METHOD, AND PROGRAM
CN105867995A (en) Editing method and device for XML (extensible markup language) file
CN103778154A (en) Form property reverse writing method and device
CN102129468B (en) Method for displaying customizable cluster state

Legal Events

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