CN106502680A - A kind of method that pel extension is carried out by visualization interface - Google Patents

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

Info

Publication number
CN106502680A
CN106502680A CN201610928585.2A CN201610928585A CN106502680A CN 106502680 A CN106502680 A CN 106502680A CN 201610928585 A CN201610928585 A CN 201610928585A CN 106502680 A CN106502680 A CN 106502680A
Authority
CN
China
Prior art keywords
pel
extension
model
user
configuration 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.)
Granted
Application number
CN201610928585.2A
Other languages
Chinese (zh)
Other versions
CN106502680B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of method that pel extension is carried out by visualization interface, due to mainly including:User's certain pel extension defined in interface;Search whether in configuration file comprising the pel, if comprising the pel, point out pel repeat, if do not include the pel, the pel defined in configuration file, will pel be registered in configuration file;Automatically refresh interface, show newly-increased pel;User is drawn using newly-increased pel;Newly-increased pel is stored in element model;Preservation model, extension pel and its attribute are stored in json files;When json is converted into background model, the corresponding background model of extension primitive generating;During derivation, the corresponding xml of extension primitive generating;When extending pel such that it is able to overcome in prior art, the complexity of model is too high, and user is big using difficulty, ease for use difference defect.

Description

A kind of method that pel extension is carried out by visualization interface
Technical field
The present invention relates to pel expansion technique field, in particular it relates to one kind carries out pel extension by visualization interface Method.
Background technology
Pel extension is can be applicable in multi-modeling instrument, as long as needing to provide the user one group of pel in modeling tool, Generally it is accomplished by being extended pel, to adapt to the demand of different user.For example in business process designer, needs are use Family provides pel extension mechanism, allows users to configure the extra pel needed for oneself.
In order to provide user extensible mechanism, in conventional realization, following several ways are mainly adopted:
Redundancy pel mode, reserves several pels and uses to user, and the method is realized simply, but autgmentability is bad, it would still be possible to no Meet user's request;
Configuration file mode, user write the configuration file for meeting certain format, and program reads and generates User Defined pel, the party Method favorable expandability, but higher to user's requirement, and Consumer's Experience is bad;
In order to clearly describe the implementation of the expansible pel of user, will illustrate by taking process modeling instrument as an example herein, Several important concepts are described below:
Flow process pel:Each pel is a figure in modeling tool in simple terms, and this figure represents specific meanings, has There are a series of attributes, one section of xml can be converted into.
Procedural model:A kind of model that can be drawn using process modeling instrument, comprising beginning, is terminated, user task Deng element, xml formatted files after the completion of design, can be stored as.
CN105786893A is stored using xml, and target and method are different from the present invention, although CN104020997A Be expansible graphical, but compare different using method in the present invention, application is also different
In modeling tool, the user in order to realize pel is expansible, in conventional realization, mainly adopts following several sides Case:
1. by way of increasing redundancy pel, but this complexity for realizing increased model, particularly when some use Family needs the pel of extension a lot, then certainly will need to increase a lot of redundancy pels, which adds the complexity of model, carry The difficulty that high user uses, causes puzzlement to the user that need not carry out too many pel extension.
2. developer defines configuration file, needs in configuration file by certain form when user needs to extend Carry out the configuration of pel, this method favorable expandability, but write configuration file there are certain requirements user, to user using bringing Inconvenience, ease for use are poor.
Content of the invention
It is an object of the invention to, for the problems referred to above, propose a kind of side that pel extension is carried out by visualization interface Method, to realize the simpler effective advantage of the extension to pel.
For achieving the above object, the technical solution used in the present invention is:One kind carries out pel extension by visualization interface Method, mainly include:
Step 1:User's certain pel extension defined in interface;
Step 2:Search whether in configuration file comprising the pel, if comprising the pel, point out pel to repeat, if not including The pel, then pel defined in configuration file, will pel be registered in configuration file;
Step 3:Automatically refresh interface, 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, extension pel and its attribute are stored in json files;When json is converted into background model, extension The corresponding background model of primitive generating;During derivation, the corresponding xml of extension primitive generating.
Further, step 1 is extended specifically, providing an interface for pel;Show by packet in interface all Preset pel, and edlin is entered to pel, specifically including deletion pel or increase pel, the deletion pel includes choosing pel Click on and delete button;The increase pel includes choosing the packet, clicks increase button by right key, is input in the dialog box for ejecting The attribute that the pel has, then clicks on really including pel title, pel code, pel picture mark position and pel svg positions Fixed.
Further, step 2 is specifically included, and is looked into in configuration file according to the pel title and pel code of user input Look for, if the pel title or code are existing, point out user's modification pel title or code;If pel title and code Do not exist, then the pel need to be configured in configuration file, and the attribute logging that user is filled in is in the pel;If user Occur certain attribute in the attribute that fills in unregistered, then also need to register the attribute.
Further, the step 7 is specifically included, and when model is preserved, the extension pel in model is by conduct independent Section is stored in json files, with the incoming backstage of json files, then completes json files in the background to background model model's Convert, at this moment the information of the extension pel and its attribute in json can be stored in model, and carries extend prefixes;Model is derived When, in model, each pel is written in xml document as separate label, when model needs to change, when importing again, Cross extension configuration file just by extension after pel and its property value show, extension is completed.
A kind of method for carrying out pel extension by visualization interface of various embodiments of the present invention, due to mainly including:With Family certain pel extension defined in interface;Search whether in configuration file comprising the pel, if comprising the pel, point out figure Unit repeat, if do not include the pel, the pel defined in configuration file, will pel be registered in configuration file;Automatically Refresh interface, show newly-increased pel;User is drawn using newly-increased pel;Newly-increased pel is stored in element model;Preservation model, will expand Exhibition pel and its attribute are stored in json files;When json is converted into background model, the corresponding background model of extension primitive generating; During derivation, the corresponding xml of extension primitive generating;When extending pel such that it is able to overcome in prior art, the complexity of model is too Height, user are 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 be become from description Obtain it is clear that or being understood by implementing the present invention.
Below by drawings and Examples, technical scheme is described in further detail.
Description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and constitutes a part for description, the reality with the present invention Applying example is used for explaining the present invention together, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of method flow diagram for carrying out pel extension by visualization interface described in the specific embodiment of the invention;
Fig. 2 is a kind of user of the method description for carrying out pel extension by visualization interface described in the specific embodiment of the invention Application schematic diagram during reduced model designer;
Fig. 3 is a kind of user of the method description for carrying out pel extension by visualization interface described in the specific embodiment of the invention The application schematic diagram of extended model designer.
Specific embodiment
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that preferred reality described herein Apply example to be merely to illustrate and explain the present invention, be not intended to limit the present invention.
Specifically, a kind of method for carrying out pel extension by visualization interface, mainly includes:
Step 1:User's certain pel extension defined in interface;
Step 2:Search whether in configuration file comprising the pel, if comprising the pel, point out pel to repeat, if not including The pel, then pel defined in configuration file, will pel be registered in configuration file;
Step 3:Automatically refresh interface, 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, extension pel and its attribute are stored in json files;When json is converted into background model, extension The corresponding background model of primitive generating;During derivation, the corresponding xml of extension primitive generating.
Step 1 is extended specifically, providing an interface for pel;Show all preset pels by packet in interface, And edlin is entered to pel, and specifically including deletion pel or increase pel, the deletion pel includes that choosing pel to click on deletes Button;The increase pel includes choosing the packet, clicks increase button by right key, is input into the pel institute in the dialog box for ejecting The attribute having, then clicks on determination including pel title, pel code, pel picture mark position and pel svg positions.
Step 2 is specifically included, and is searched in configuration file according to the pel title and pel code of user input, if should Pel title or code are existing, then prompting user modification pel title or code;If pel title and code are not present, The pel then need to be configured in configuration file, and the attribute logging that user is filled in is in the pel;If the category that user fills in Occur certain attribute in property unregistered, then also need to register the attribute.
The step 7 is specifically included, and when model is preserved, the extension pel in model is stored in json as independent one section In file, with the incoming backstage of json files, json files are then completed in the background to the conversion of background model model, at this moment The information of extension pel and its attribute in json can be stored in model, and carries extend prefixes;When model is derived, in model Each pel is written in xml document as separate label, when model needs to change, when importing again, through extension Configuration file just by extension after pel and its property value show, extension is completed.
In conjunction with Fig. 1, main realizes that step is as follows:
1. user's certain pel extension defined in interface.
2. search whether in configuration file comprising the pel.
3. if setting up if 2, point out pel to repeat.
4. first pel defined in configuration file if being false if 2.
5. automatic refresh design device, shows new pel.
6. user is drawn using new pel.
7., when modelling completes to preserve, extension pel and its attribute are stored in json files.
8. extension pel and its attribute are resolved in the corresponding graphical element models of model model when json files are parsed.
During user's reduced model, system is converted into corresponding xml by pel is extended.
The mechanism is described in detail:
First, the mechanism is supplied to user one succinctly, and easy to use interface is extended for pel;Show institute by packet in interface There are preset pel, such as user not to need some pels only choose pel to click on and delete button;As user is needed in certain packet Middle increase pel, then need to choose the packet, click increase button by right key, input primitive title in the dialog box for ejecting, pel Code, pel picture mark position, pel svg positions, and the attribute that the pel has, click on and determine.
Then, we according to user input pel title and pel code search in configuration file, if the pel Title or code are existing, then prompting user modification 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 in the pel;If in the attribute that user fills in There is certain attribute unregistered, then also need to register the attribute;
Then, need to refresh automatically model, reload, to produce extension pel, and the attribute of extension pel is shown Illustrate and, at this moment user can be drawn using extension pel, and the value to its attribute is configured, the property value for setting It will be recorded in the attribute of extension pel together with Property Name, and extending marking is set;
Finally, when model is preserved, the extension pel in model can be stored in json files as independent one section, with json texts The incoming backstage of part, then completes json files in the background to the conversion of background model model, at this moment the extension pel in json And its information of attribute can be stored in model, and carry extend prefixes;When model is derived, in model, each pel can be used as solely Day-mark label are written in xml document.So, when model needs to change, when importing again, the configuration of extension is passed through File just can smoothly by extension after pel and its property value show, extension is completed.
The application of properties user extension mechanism
Application scenarios 1:User needs reduced model designer, removes script activity therein;Now only need to choose activity point Script activity in group, then clicks on deletion;Effect is as shown in Figure 2:
Application scenarios 2:User needs extended model designer, increases cashier's node and condition node;Now only need to choose work Dynamic packet, right button select to increase, and are then input into the position of the title of cashier's node, code, icon and svg in pop-up box, with And cashier's attribute for including of node etc., click on and determine, effect such as Fig. 2
Following beneficial effect can at least be reached:The figure required for oneself can simply and easily be extended using the technical user Unit, Consumer's Experience are good, are easily used, and need not increase redundant field, it is not necessary to the extra exploitation code of developer, have Very high ease for use, motility and extensibility.
Finally it should be noted that:The preferred embodiments of the present invention are the foregoing is only, the present invention is not limited to, Although being described in detail to the present invention with reference to the foregoing embodiments, for a person skilled in the art, which still may be used To modify to the technical scheme described in foregoing embodiments, or equivalent is carried out to which part technical characteristic. All any modification, equivalent substitution and improvements that within the spirit and principles in the present invention, is made etc., should be included in the present invention's Within protection domain.

Claims (4)

1. a kind of method that pel extension is carried out by visualization interface, it is characterised in that comprise the following steps:
Step 1:User's certain pel extension defined in interface;
Step 2:Search whether in configuration file comprising the pel, if comprising the pel, point out pel to repeat, if not including The pel, then pel defined in configuration file, will pel be registered in configuration file;
Step 3:Automatically refresh interface, 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, extension pel and its attribute are stored in json files;When json is converted into background model, extension The corresponding background model of primitive generating;During derivation, the corresponding xml of extension primitive generating.
2. the method that pel extension is carried out by visualization interface according to claim 1, it is characterised in that the step 1 extends specifically, providing an interface for pel;Show all preset pels by packet in interface, and pel is carried out Editor, specifically includes deletion pel or increases pel, and the deletion pel includes that choosing pel to click on deletes button;The increase Pel includes choosing the packet, clicks increase button by right key, is input into, in the dialog box for ejecting, the attribute that the pel has, and wraps Include pel title, pel code, pel picture mark position and pel svg positions and then click on determination.
3. the method that pel extension is carried out by visualization interface according to claim 2, it is characterised in that step 2 has Body includes, is searched according to the pel title and pel code of user input in configuration file, if the pel title or code Existing, then prompting user changes pel title or code;If pel title and code are not present, need to be in configuration file Middle configuration pel, and the attribute logging that user is filled in is in the pel;If occurring certain category in the attribute that user fills in Property is unregistered, then also need to register the attribute.
4. the method that pel extension is carried out by visualization interface according to claim 3, it is characterised in that the step 7 specifically include, and when model is preserved, the extension pel in model is stored in json files as independent one section, with json texts The incoming backstage of part, then completes json files in the background to the conversion of background model model, at this moment the extension pel in json And its information of attribute can be stored in model, and carry extend prefixes;When model is derived, in model, each pel is used as independence Label is written in xml document, when model needs to change, when importing again, just will extension through the configuration file of extension Pel and its property value afterwards shows, 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 true CN106502680A (en) 2017-03-15
CN106502680B 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)

Cited By (4)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412744A (en) * 2013-07-18 2013-11-27 国电南瑞科技股份有限公司 Method for showing summarized information of power station primitives
CN104020997A (en) * 2014-06-13 2014-09-03 中国民航信息网络股份有限公司 Extensible graphical rule application system
CN104216691A (en) * 2013-05-31 2014-12-17 华为技术有限公司 Application creating method and device
CN105740543A (en) * 2016-01-29 2016-07-06 山东鲁能智能技术有限公司 QML based graphical electric power system modeling method and modeling system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216691A (en) * 2013-05-31 2014-12-17 华为技术有限公司 Application creating method and device
CN103412744A (en) * 2013-07-18 2013-11-27 国电南瑞科技股份有限公司 Method for showing summarized information of power station primitives
CN104020997A (en) * 2014-06-13 2014-09-03 中国民航信息网络股份有限公司 Extensible graphical rule application system
CN105740543A (en) * 2016-01-29 2016-07-06 山东鲁能智能技术有限公司 QML based graphical electric power system modeling method and modeling system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109117207A (en) * 2017-06-21 2019-01-01 深圳联友科技有限公司 A kind of data processing method of business process model
CN109117207B (en) * 2017-06-21 2021-11-23 深圳联友科技有限公司 Data processing method of business process model
CN109521984A (en) * 2017-09-20 2019-03-26 南京南瑞继保电气有限公司 The customized icon display methods of liquid crystal display panel 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

Also Published As

Publication number Publication date
CN106502680B (en) 2019-08-16

Similar Documents

Publication Publication Date Title
CN105867931B (en) The variation and device at information displaying interface
CN104735468B (en) A kind of method and system that image is synthesized to new video based on semantic analysis
CN106502680A (en) A kind of method that pel extension is carried out by visualization interface
WO2021051759A1 (en) Note taking and saving method, device, terminal, storage medium, and system
US9152619B2 (en) System and method for constructing markup language templates and input data structure specifications
WO2006107529A2 (en) Method and system for aggregating rules for a property associated with a document element
KR101890831B1 (en) Method for Providing E-Book Service and Computer Program Therefore
CN107122173A (en) A kind of adaptation activiti, the list generation method that can be pulled
CN105389184B (en) The configuration method and device of Product Interface information
CN104899038B (en) Interface style transformation method and device
CN102306143A (en) Method and system for generating and editing PDF (portable document format) document
CN113360619A (en) Form generation method, device, equipment and medium
CN105653255A (en) Method arranging report template to automatically generate report files in office frame
CN107728873A (en) The method and its device of contents selection
KR101646138B1 (en) Method of determing layout, layout determination server performing the same and storage medium storing the same
KR101616914B1 (en) Method of organizing user-customizable content resource, user-customizable resource server and storage media storing the same
CN103678263A (en) Graphical interface display method and system for incidence relations among document chapters
CN106970758A (en) Electronic document operation processing method, device and electronic equipment
CN109816754A (en) Creation method, display methods and the system and storage medium of flow chart
CN107621951B (en) View level optimization method and device
CN106293671B (en) Method and device for generating component template
CN107248947A (en) Expression processing method and processing device, computer equipment and storage medium
KR102175964B1 (en) Apparatus and method for creating service using prototyping design tool
CN105446967A (en) Multi-modal evaluation report generation method
CN106055416A (en) Cross-application data transfer method and apparatus

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