CN103810292A - Method and device for configuring graphical interface - Google Patents

Method and device for configuring graphical interface Download PDF

Info

Publication number
CN103810292A
CN103810292A CN201410072437.6A CN201410072437A CN103810292A CN 103810292 A CN103810292 A CN 103810292A CN 201410072437 A CN201410072437 A CN 201410072437A CN 103810292 A CN103810292 A CN 103810292A
Authority
CN
China
Prior art keywords
xml
syntax rule
graphical interfaces
interface
menu
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
CN201410072437.6A
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 Institute of Technology BIT
Original Assignee
Beijing Institute of Technology BIT
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 Institute of Technology BIT filed Critical Beijing Institute of Technology BIT
Priority to CN201410072437.6A priority Critical patent/CN103810292A/en
Publication of CN103810292A publication Critical patent/CN103810292A/en
Pending legal-status Critical Current

Links

Images

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
    • 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)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a method and device for configuring a graphical interface. The method includes the steps that interface grammatical rules, map storage grammatical rules and procedural model grammatical rules required when interface elements of the graphical interface are configured are acquired; a configuration document for users to configure the interface elements of the graphical interface according to the interface grammatical rules and the map storage grammatical rules is acquired; the configuration document is analyzed, and then the analysis result is acquired; according to the analysis result and the procedural model grammatical rules, a configuration document of a procedural model is automatically generated; according to the configuration document of the procedural model, the graphical interface of the procedural model is generated. According to the scheme, enterprises or the users can fill in required functions according to XML grammatical rules, and then an interface of business process management software required by the enterprises or the users can be automatically generated.

Description

A kind of collocation method of graphical interfaces and device
Technical field
The present invention relates to computer realm, refer to especially a kind of collocation method and device of graphical interfaces.
Background technology
User is the software function of customized personal according to demand, is one of Main Trends of The Development of field of software engineering.Enterprise or user's BPM is the essential and the most numerous and diverse link of enterprise, most enterprises adopts process modeling software to carry out management and control to its operation flow, therefore, there is the Business Process Modeling software of widespread use colony more urgent to software configurability demand.
But, dissimilar enterprise, operation flow difference is very big, even if same type enterprise is same as its management mode difference, also there is very large difference in operation flow, the software of function of unity pattern is difficult to adapt to the demand of all enterprises.
Therefore, require process modeling software to there is very strong configuration feature, in Business Process Modeling software, the functional element of software interface and modeling element are to describe the core link of business event logic, and the various interface elements that customization goes out to meet self-demand have field symbol to setting up, directly perceived, understandable graphic process model is most important.
But existing process modeling software cannot allow customization go out to meet the various interface elements of self-demand, employing are all fixing interface elements, no matter be interface display style or process modeling element, with customizing modification to it per family.In the time that needs increase new interface element, need system development personnel's support, not only affect the interface update cycle, and increase the use cost of software.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of collocation method and device of graphical interfaces, can make enterprise or user according to XML syntax rule, fill in required function, can realize the automatic generation at the interface of the needed BPM software of this enterprise or user, thereby developer that need not this software modifies or upgrades to BPM software from bottom.
For solving the problems of the technologies described above, embodiments of the invention provide a kind of collocation method of graphical interfaces, comprising:
Needed interface syntax rule, picture library syntax rule and procedural model syntax rule when the interface element of acquisition graphical interfaces is configured;
Obtain user according to described interface syntax rule, picture library syntax rule, the configuration documentation that the interface element of graphical interfaces is configured;
Described configuration documentation is resolved, obtain analysis result;
According to described analysis result and procedural model syntax rule, the configuration documentation of product process model automatically;
According to the configuration documentation of procedural model, the graphical interfaces of product process model.
Wherein, described acquisition user is according to described interface syntax rule, picture library syntax rule, and the step of the configuration documentation that the interface element of graphical interfaces is configured comprises:
Obtain user according to described interface syntax rule, the XML configuration documentation that the interface element of graphical interfaces is configured; And/or
Obtain user according to described picture library syntax rule, the XML configuration documentation that the Basic Elements of Graphic User Interface of graphical interfaces is configured.
Wherein, user is according to described interface syntax rule, and the XML configuration documentation that the interface element of graphical interfaces is configured comprises:
User is according to menu syntax rule, the XML configuration documentation that the menu element of graphical interfaces is configured;
User is according to toolbar syntax rule, the 2nd XML configuration documentation that the toolbar element of graphical interfaces is configured;
User is according to process modeling element syntax rule, the 3rd XML configuration documentation that the process modeling element of graphical interfaces is configured; And
User is according to process modeling workspace syntax rule, the 4th XML configuration documentation that the process modeling workspace of graphical interfaces is configured.
Wherein, a described XML configuration documentation comprises: the XML statement of the Configuration Values of the observability of the configuration of Configuration Values, the menu display Name of the ID that includes menu forming according to XML grammer, the Configuration Values of Menu Type, menu, the availability Configuration Values of menu, Configuration Values, call function and function parameter that whether workspace is changed; Wherein, Menu Type comprises: common menu, separation menu, final election menu and single choice menu;
Described the 2nd XML configuration documentation comprises: the XML statement of the picture of the available or down state that includes toolbar button forming according to XML grammer;
Described the 3rd XML configuration documentation comprises: the XML statement that includes flow nodes and flowline forming according to XML grammer; Wherein, flow nodes comprises: node type, shape picture, pull picture, fall picture, title description, menu, click and double-click event; Flowline comprises: line type, title description, line color, setting-out mode, arrow quantity, menu, click and double-click event;
Described the 4th XML configuration documentation comprises: the XML statement of the width that includes workspace forming according to XML grammer and height and sizing grid.
Wherein, obtain user according to described picture library syntax rule, the XML configuration documentation that the Basic Elements of Graphic User Interface of graphical interfaces is configured comprises: what form according to XML grammer includes the title of picture and the XML statement in path in the picture library that toolbar in flow process interface or modeling element adopt.
Wherein, described configuration documentation is resolved, the step that obtains analysis result comprises:
Utilize Flex language syntax resolver to resolve described configuration documentation, automatically generate the Flash interface that described configuration documentation is corresponding.
Wherein, according to described analysis result and procedural model syntax rule, the step of the configuration documentation of product process model comprises automatically:
The procedural model that acquisition user sets up on described Flash interface or the existing procedural model of selection, according to described procedural model syntax rule, the XML configuration documentation of product process model automatically.
Wherein, the XML configuration documentation of described procedural model comprises: the XML statement that includes flow nodes, flowline and sub-process forming according to XML grammer, each procedural model comprises incidence relation and the sub-process between unique ID, multiple node, many flowlines, node and nodes.
Wherein, according to the configuration documentation of procedural model, the step of the graphical interfaces of product process model comprises:
XML configuration documentation to procedural model is resolved, and automatically generates the procedural model being opened in works district.
Embodiments of the invention also provide a kind of inking device of graphical interfaces, comprising:
Obtain module, needed interface syntax rule, picture library syntax rule and procedural model syntax rule while being configured for obtaining the interface element of graphical interfaces;
Configuration module, for obtaining user according to described interface syntax rule, picture library syntax rule, the configuration documentation that the interface element of graphical interfaces is configured;
Parsing module, for described configuration documentation is resolved, obtains analysis result;
Generation module, for according to described analysis result and procedural model syntax rule, the configuration documentation of product process model automatically; According to the configuration documentation of procedural model, the graphical interfaces of product process model.
The above embodiment of the present invention has following beneficial effect:
The solution of the present invention, according to predefined syntax rule, generates graphical interfaces automatically, in the time that needs are revised interface, without changing application program, only need provide corresponding data according to syntax rule.Can make enterprise or user use the BPM software forming according to method of the present invention time, can be according to XML syntax rule, fill in required function, can realize the automatic generation at the interface of the needed BPM software of this enterprise or user, thereby developer that need not this software modifies or upgrades to BPM software from bottom.
Accompanying drawing explanation
The collocation method process flow diagram of the graphical interfaces that Fig. 1 provides for embodiments of the invention;
Fig. 2 is interface automated logic diagram;
Fig. 3 of the present invention one realizes example schematic.
Embodiment
For making the technical problem to be solved in the present invention, technical scheme and advantage clearer, be described in detail below in conjunction with the accompanying drawings and the specific embodiments.
As shown in Figure 1, embodiments of the invention provide a kind of collocation method of graphical interfaces, comprising:
Step 11, needed interface syntax rule, picture library syntax rule and procedural model syntax rule when the interface element of acquisition graphical interfaces is configured;
Step 12, obtains user according to described interface syntax rule, picture library syntax rule, the configuration documentation that the interface element of graphical interfaces is configured;
Step 13, resolves described configuration documentation, obtains analysis result;
Step 14, according to described analysis result and procedural model syntax rule, the configuration documentation of product process model automatically;
Step 15, according to the configuration documentation of procedural model, the graphical interfaces of product process model.
Needed interface syntax rule, picture library syntax rule and procedural model syntax rule when this embodiment of the present invention is configured by obtaining the interface element of graphical interfaces; Obtain user according to described interface syntax rule, picture library syntax rule, the configuration documentation that the interface element of graphical interfaces is configured; Described configuration documentation is resolved, obtain analysis result; According to described analysis result and procedural model syntax rule, the configuration documentation of product process model automatically; According to the configuration documentation of procedural model, the graphical interfaces of product process model.In the time that needs are revised interface, without changing application program, only need provide corresponding data according to syntax rule.Can make enterprise or user use the BPM software forming according to method of the present invention time, can be according to XML syntax rule, fill in required function, can realize the automatic generation at the interface of the needed BPM software of this enterprise or user, thereby developer that need not this software modifies or upgrades to BPM software from bottom.
In a specific embodiment of the present invention, step 12 comprises:
Step 121, obtains user according to described interface syntax rule, the XML configuration documentation that the interface element of graphical interfaces is configured; Or
Step 122, obtains user according to described picture library syntax rule, the XML configuration documentation that the Basic Elements of Graphic User Interface of graphical interfaces is configured.
Wherein, step 121 can comprise:
Step 1211, user is according to menu syntax rule, the XML configuration documentation that the menu element of graphical interfaces is configured;
Step 1212, user is according to toolbar syntax rule, the 2nd XML configuration documentation that the toolbar element of graphical interfaces is configured;
Step 1213, user is according to process modeling element syntax rule, the 3rd XML configuration documentation that the process modeling element of graphical interfaces is configured; And
Step 1214, user is according to process modeling workspace syntax rule, the 4th XML configuration documentation that the process modeling workspace of graphical interfaces is configured.
Wherein, a described XML configuration documentation comprises: the XML statement of the Configuration Values of the observability of the configuration of Configuration Values, the menu display Name of the ID that includes menu forming according to XML grammer, the Configuration Values of Menu Type, menu, the availability Configuration Values of menu, Configuration Values, call function and function parameter that whether workspace is changed; Wherein, Menu Type comprises: common menu, separation menu, final election menu and single choice menu;
Concrete, the specific demand at the showing interface structure based on popular software and process modeling and execution interface, adopts XML to formulate the syntax rule that drives interface automatically to generate.
1) menu syntax rule:
Each menu, as shown in Figure 3, the ID(Menu Id of menu is provided), display Name (Label), Menu Type (Type, empty: common menu, separator: separator, check: final election, radio: single choice), observability (Visible, 1: visible, 0: hide), availability (Enabled, 1: available, 0: forbidding), whether workspace changes (CheckChange, 1: check, 0: do not check), call function (Invoke), function parameter (Param).Wherein, observability is as the Submenu Items of File menu below, and availability " importing " submenu as shown in Figure 3; Menu Type comprises common menu (null value), separator menu (separator), final election menu (check) and single choice menu (radio); The definition of function parameter is as shown in table 1.Shown in menu syntax rule is following, layer menu can define according to tree construction according to this form.
The definition of table 1 function parameter
Figure BDA0000471291080000061
Figure BDA0000471291080000071
Concrete, an XML configuration documentation is as follows:
Example: definition menu bar, comprise " flow process " menu, in " flow process " menu, comprise " newly-built ", " separator " and " demonstration sub-process " three submenus, wherein not trigger event of " flow process " menu, " newly-built " triggering " BP_new " event functions; " demonstration submenu " triggering " BP_showSub " event functions.
--menu bar definition beginning label-->
--definition " flow process " menu starts: be designated " m_BP ",
Display Name is " flow process "-->
--definition " newly-built " submenu starts: be designated " m_New ", display Name is " newly-built ", need to check whether workspace changes while triggering this menu, and this menu shows also available-->
--definition " newly-built " menu trigger event function is " BP_new "-->
--parameter beginning label of definition " newly-built " menu trigger event function " BP_new "-->
--defined function parameter 1, import " constant value " text-string--> into
--defined function parameter 2, import the execution result content of XPath statement "/*/Process/Nodes/Node[@Id='myid'] " into, XPath statement implication is the node content that in querying flow document, node identification is " myid ".-->
--defined function parameter 3, the procedural model mark or the flow instance that import work at present district into identify-->
--parameter end mark of definition " newly-built " menu trigger event function " BP_new "-->
--definition " newly-built " submenu end mark-->
--definition separator menu-->
--definition " demonstration sub-process " submenu starts: be designated " m_ShowSub ", display Name is " demonstration sub-process ", and this menu is final election menu-->
--definition " demonstration sub-process " menu trigger event function is " BP_showSub "-->
--parameter beginning label of definition " demonstration sub-process " menu trigger event function " BP_showSub "-->
--defined function parameter 1, import state value--the > of this final election menu into
--parameter end mark of definition " demonstration sub-process " menu trigger event function " BP_showSub "-->
--definition " demonstration sub-process " submenu end mark-->
--definition " flow process " menu end mark-->
--menu bar definition end mark-->
In the above embodiment of the present invention, described the 2nd XML configuration documentation comprises: the XML statement of the picture of the available or down state that includes toolbar button forming according to XML grammer;
Concrete, toolbar syntax rule and menu bar syntax rule are similar, and difference is that toolbar does not have hierarchical relationship, and toolbar button has available and down state picture.The syntax rule of toolbar is as follows:
Example: defining tool hurdle, comprise " setting procedure attribute ", " separator " and " drafting flowline " three buttons, wherein " setting procedure attribute " conventional push button triggers " BP_property " event functions; " drafting flowline " radio button triggers " Draw_control " event functions.
--toolbar definition beginning label-->
--definition " setting procedure attribute " button starts: be designated " b_Property ", display Name is " setting procedure attribute ", and available pictures is called " btn_processPropertity ", forbidding picture " dprop "--> by name
--parameter beginning label of definition " setting procedure attribute " button trigger event function " BP_property "-->
--defined function parameter 1, the procedural model mark or the flow instance that import work at present district into identify-->
--parameter end mark of definition " setting procedure attribute " button trigger event function " BP_property "-->
--definition " setting procedure attribute " button end mark-->
--definition separator button-->
--definition " drafting flowline " button starts: type, for " single choice ", is designated " b_CLine ", and display Name is " drafting flowline ", and available pictures is called " btn_flowLine ", forbidding picture " dcline "--> by name
--definition " drafting flowline " button trigger event function is " Draw_control "-->
--definition " drafting flowline " button trigger event function " the parameter beginning label of " Draw_control "-->
--defined function parameter 1, import state value--the > of this radio button into
--definition " drafting flowline " button trigger event function " the parameter end mark of " Draw_control "-->
--definition " drafting flowline " button end mark-->
--toolbar definition end mark-->
In the above embodiment of the present invention, described the 3rd XML configuration documentation comprises: the XML statement that includes flow nodes and flowline forming according to XML grammer; Wherein, flow nodes comprises: node type, shape picture, pull picture, fall picture, title description, menu, click and double-click event; Flowline comprises: line type, title description, line color, setting-out mode, arrow quantity, menu, click and double-click event;
Concrete, process modeling element comprises flow nodes and flowline.Flow nodes provides node type (Type), shape picture (Image), pulls picture (DragImage), falls picture (DropImage), title is described (Desc), menu (Menu), click (Click) and double-click (DBClick) event.Flowline provide line type (Type),
Figure BDA0000471291080000091
state (Desc),
Figure BDA0000471291080000092
look (Color), setting-out mode (UIClazz, HotLine: folding straight line, HotLineB: broken line, HotLineC: straight line), arrow quantity (ArrowCount, 1: single arrow, 2: double-head arrow), menu (Menu), click (Click) and double-click (DBClick) event.Process modeling element syntax rule as shown in Figure 3, for same modeling object, can be clicked its foundation, double-click and right-click menu function (the unified Shape_property function declaration of using in this example).
This concrete syntax rule is as follows:
Example 1: definition one class flow nodes, the type implication of flow nodes can be self-defined in concrete application (as value: 1 beginnings, 2 tasks, 3 judgements, 4 branches, 5 polymerizations, 6 end); Such flow nodes is containing " attribute " right-click menu, and it triggers " Shape_property " event functions; Such flow nodes support is double-clicked, and it also triggers " Shape_property " event functions.Multiclass flow nodes only need to continue definition " Shape ", but flow nodes type " Type " value can not repeat.
--flow nodes type definition beginning label-->
--definition " beginnings " node type: type is 1, Show Picture " start " by name, pulls picture by name " start ", falls picture and is called that " start is described as " start node "-->
--right-click menu beginning label that definition " beginning " node is supported-->
--definition " attribute " right-click menu starts: be designated " rm_c_Property ", display Name is " attribute "-->
--definition " attribute " right-click menu trigger event function is " Shape_property "-->
--parameter beginning label of definition " attribute " right-click menu trigger event function " Shape_property "-->
--defined function parameter 1, import work at present district into and choose the ID--> of flow object
--defined function parameter 2, import work at present district into and choose types value--the > of flow object
--parameter end mark of definition " attribute " right-click menu trigger event function " Shape_property "-->
--definition " attribute " right-click menu end mark-->
--right-click menu end mark that definition " beginning " node is supported-->
--defining the double-click beginning label that such flow nodes is supported-->
--it is " Shape_property " that trigger event function is double-clicked in definition-->
--the parameter beginning label of trigger event function " Shape_property " is double-clicked in definition-->
--defined function parameter 1, import work at present district into and choose the ID--> of flow object
--defined function parameter 2, import work at present district into and choose types value--the > of flow object
--the parameter end mark of trigger event function " Shape_property " is double-clicked in definition-->
--defining the double-click end mark that such flow nodes is supported-->
--definition " beginning " node type end mark-->
--flow nodes type definition end mark-->
Example 2: definition one class flowline, the type implication of flowline also can be self-defined in concrete application (as value: 7 flowlines, 8 line, 9 of making a copy for is recalled line), and color is black, and setting-out mode is for rolling over straight line, single arrow; Such flowline is also containing " attribute " right-click menu, and it triggers " Shape_property " event functions; Such flowline support is clicked, and it also triggers " Shape_property " event functions.Multiclass flowline only need to continue definition " Line ", but flowline type " Type " value can not repeat.
--flowline type definition beginning label-->
--definition " flowline " type: type is 7, and color is black, is described as " flowline ", and setting-out mode is " folding straight line ", single arrow-->
Figure BDA0000471291080000111
Figure BDA0000471291080000121
In a specific embodiment of the present invention, described the 4th XML configuration documentation comprises: the XML statement of the width that includes workspace forming according to XML grammer and height and sizing grid.
Concrete, process modeling workspace syntax rule only need be formulated width and height and the sizing grid of workspace, specific as follows shown in:
<Panel?Width="1000"Height="1500"GridSize="40"/>
Any number is modified, and corresponding variation all can be made in workspace.
In a specific embodiment of the present invention, in above-mentioned steps 122, obtain user according to described picture library syntax rule, the XML configuration documentation that the Basic Elements of Graphic User Interface of graphical interfaces is configured comprises: what form according to XML grammer includes the title of picture and the XML statement in path in the picture library that toolbar in flow process interface or modeling element adopt.
Concrete, the toolbar in flow process interface or modeling element generally adopt picture to represent, for the ease of the tissue to these pictures, these picture-storage, in picture library, and are defined to syntax rule it is managed and is used.Each picture comprises title and path, and picture name must be unique, and concrete form is as follows:
<Image?Name="start"Path="./picture/start.png"/>
In this way, the change of toolbar or modeling element picture is easy to, and user only need will have picture with new picture and cover.
In a specific embodiment of the present invention, step 13 comprises: utilize Flex language syntax resolver to resolve described configuration documentation, automatically generate the Flash interface that described configuration documentation is corresponding.XML is a kind of extend markup language, user's flexible definition data structure as required, and have advantages of cross-platform.Flash has good graphical interfaces processing power and bandwagon effect, and provides and can, for the Flex language of user's secondary development, can realize communicating by letter between interface and background process program by Flex language.
In a specific embodiment of the present invention, according to described analysis result and procedural model syntax rule, automatically the step of the configuration documentation of product process model comprises: the procedural model that acquisition user sets up on described Flash interface or the existing procedural model of selection, according to described procedural model syntax rule, the XML configuration documentation of product process model automatically.
Further, the XML configuration documentation of described procedural model comprises: the XML statement that includes flow nodes, flowline and sub-process forming according to XML grammer, each procedural model comprises incidence relation and the sub-process between unique ID, multiple node, many flowlines, node and nodes.
Concrete, procedural model syntax rule is made up of flow nodes, flowline and sub-process, and therefore procedural model syntax rule has been carried out respectively syntax rule definition to flow nodes, flowline and sub-process.Each procedural model comprises unique ID, multiple nodes (Nodes), many flowlines (Lines), incidence relation (Relation) between node and node, sub-process (SubProcessList), each node (Node) carries multiple supplemental characteristics (Fields), between node and node, supplemental characteristic passes through data-mapping relation (Mappings) in flowline (Line) and carries out associated, each supplemental characteristic (Field) type (Type) expresses (3: integer with integer, 5: decimal, 7: the date, 8: date+time, 135: the time, 200: character string).Specific definition is as follows:
Example: define a procedural model, containing " beginning " and " end " two each flow nodes, with flowline from " " node is connected to " end " node, with recall line from " end " node be connected to " " node; This procedural model contains " sub1 " and " sub2 " two sub-processes, and wherein " sub1 " is the sub-process of " beginning " node, and " sub2 " is discarded not to be shown.
--procedural model beginning label-->
--flow nodes set beginning label-->
--definition " beginning " node: type is 1, is designated " nodeId1 ", Shows Picture as " start ", display Name is " beginning ", be described as " start node ", coordinate position is: horizontal 275, vertical 50, contain sub-process " sub1 "-->
--supplemental characteristic that definition " beginning " node carries-->
--the supplemental characteristic that definition " beginning " node carries, be designated " fid1 ", name is called " age ", and type is integer, and length is 8-->
--supplemental characteristic end mark that definition " beginning " node carries-->
--definition " beginning " node end mark-->
--definition " end " node: type is 6, is designated " nodeId2 ", Shows Picture as " end ", and display Name is " end ", is described as " end node ", and coordinate position is: horizontal stroke 275, vertical 450-->
--the supplemental characteristic that definition " end " node carries, please refer to " beginning " node-->
<Field?Id="fid2"Label=""Type="3"Length="8"/>
</Fields>
--definition " end " node end mark-->
--flow nodes set end mark-->
--incidence relation beginning label between flow nodes-->
--definitim flow line beginning label-->
--definitim flow line from " " node is connected to " end " node, line is designated " lineId1 "-->
--definition is shone upon beginning label from " beginning " to the data transmission of " end " node-->
--the supplemental characteristic " fid1 " in " beginning " node is passed to the supplemental characteristic " fid2 " of " end " node, if " fid1 " value is sky, the value of " fid2 " is default value " 18 ", otherwise is the value of " fid1 "-->
--definition is shone upon end mark from " beginning " to the data transmission of " end " node-->
--definitim flow line end mark-->
--line beginning label is recalled in definition-->
--definition recall line from " end " node be connected to " " node, line is designated " lineId2 "-->
--line end mark is recalled in definition-->
--incidence relation end mark between flow nodes-->
<SubProcessList>LEssT.LTssT.L T!--definition sub-process beginning label-->
--definition " beginning " node sub-process, its sub-process file structure is with this flow process, and a content difference no longer explains herein, and sub-process is designated " sub1 ", shows upstate, and coordinate position is: horizontal stroke 700, vertical 325-->
--with reference to sub2-->
</SubProcessList>LEssT.LTssT. LT!--definition sub-process end mark-->
--procedural model end mark-->
In a specific embodiment of the present invention, according to the configuration documentation of procedural model, the step of the graphical interfaces of product process model comprises: the XML configuration documentation to procedural model is resolved, and automatically generates the procedural model being opened in works district.This parsing still can adopt Flex syntax rule resolver to resolve.
As shown in Figure 2, the realization flow of above-mentioned flow process of the present invention specifically comprises:
Step 1: build the XML document at interface based on interface syntax rule, build the XML document of picture based on picture library syntax rule, this process is completed as required voluntarily by user.
Step 2: under the control of interface syntax rule and picture library syntax rule, the XML document of syntax rule resolver to interface and the XML document of picture library are resolved, and this process is called syntax rule resolver by flow system and automatically completed resolving.
Step 3: syntax rule resolver is according to the Flash interface of the automatic product process modeling of syntax rule and execution.
Step 4: can, according to practical business demand Establishing process model, also can carry out existing procedural model example on interface in Flash interface.
Step 5: the procedural model that syntax rule resolver builds on can be to interface under the control of procedural model syntax rule is resolved, and the XML document of product process model.
Step 6: if the XML document of procedural model exists, when opening the procedural model of existence, syntax rule resolver is except resolving interface XML document and picture XML document, also can resolve procedural model XML document, and present the procedural model being opened in works district.
The configurable realization of graphical interfaces of the above embodiment of the present invention is according to predefined syntax rule, automatically generates graphical interfaces, in the time that needs are revised interface, without changing application program, only need provide corresponding data according to syntax rule.
Corresponding with said method, embodiments of the invention also provide a kind of inking device of graphical interfaces, comprising:
Obtain module, needed interface syntax rule, picture library syntax rule and procedural model syntax rule while being configured for obtaining the interface element of graphical interfaces;
Configuration module, for obtaining user according to described interface syntax rule, picture library syntax rule, the configuration documentation that the interface element of graphical interfaces is configured;
Parsing module, for described configuration documentation is resolved, obtains analysis result;
Generation module, for according to described analysis result and procedural model syntax rule, the configuration documentation of product process model automatically; According to the configuration documentation of procedural model, the graphical interfaces of product process model.
It should be noted that: all in said method embodiment realize in the embodiment that example is all applicable to this device, also can reach identical technique effect.
The above is the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, do not departing under the prerequisite of principle of the present invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (10)

1. a collocation method for graphical interfaces, is characterized in that, comprising:
Needed interface syntax rule, picture library syntax rule and procedural model syntax rule when the interface element of acquisition graphical interfaces is configured;
Obtain user according to described interface syntax rule, picture library syntax rule, the configuration documentation that the interface element of graphical interfaces is configured;
Described configuration documentation is resolved, obtain analysis result;
According to described analysis result and procedural model syntax rule, the configuration documentation of product process model automatically;
According to the configuration documentation of procedural model, the graphical interfaces of product process model.
2. according to the collocation method of the graphical interfaces described in 1, it is characterized in that, described acquisition user is according to described interface syntax rule, picture library syntax rule, and the step of the configuration documentation that the interface element of graphical interfaces is configured comprises:
Obtain user according to described interface syntax rule, the XML configuration documentation that the interface element of graphical interfaces is configured; And/or
Obtain user according to described picture library syntax rule, the XML configuration documentation that the Basic Elements of Graphic User Interface of graphical interfaces is configured.
3. the collocation method of graphical interfaces according to claim 2, is characterized in that, user is according to described interface syntax rule, and the XML configuration documentation that the interface element of graphical interfaces is configured comprises:
User is according to menu syntax rule, the XML configuration documentation that the menu element of graphical interfaces is configured;
User is according to toolbar syntax rule, the 2nd XML configuration documentation that the toolbar element of graphical interfaces is configured;
User is according to process modeling element syntax rule, the 3rd XML configuration documentation that the process modeling element of graphical interfaces is configured; And
User is according to process modeling workspace syntax rule, the 4th XML configuration documentation that the process modeling workspace of graphical interfaces is configured.
4. the collocation method of graphical interfaces according to claim 3, is characterized in that,
A described XML configuration documentation comprises: the XML statement of the Configuration Values of the observability of the configuration of Configuration Values, the menu display Name of the ID that includes menu forming according to XML grammer, the Configuration Values of Menu Type, menu, the availability Configuration Values of menu, Configuration Values, call function and function parameter that whether workspace is changed; Wherein, Menu Type comprises: common menu, separation menu, final election menu and single choice menu;
Described the 2nd XML configuration documentation comprises: the XML statement of the picture of the available or down state that includes toolbar button forming according to XML grammer;
Described the 3rd XML configuration documentation comprises: the XML statement that includes flow nodes and flowline forming according to XML grammer; Wherein, flow nodes comprises: node type, shape picture, pull picture, fall picture, title description, menu, click and double-click event; Flowline comprises: line type, title description, line color, setting-out mode, arrow quantity, menu, click and double-click event;
Described the 4th XML configuration documentation comprises: the XML statement of the width that includes workspace forming according to XML grammer and height and sizing grid.
5. the collocation method of graphical interfaces according to claim 2, it is characterized in that, obtain user according to described picture library syntax rule, the XML configuration documentation that the Basic Elements of Graphic User Interface of graphical interfaces is configured comprises: what form according to XML grammer includes the title of picture and the XML statement in path in the picture library that toolbar in flow process interface or modeling element adopt.
6. the collocation method of graphical interfaces according to claim 1, is characterized in that, described configuration documentation is resolved, and the step that obtains analysis result comprises:
Utilize Flex language syntax resolver to resolve described configuration documentation, automatically generate the Flash interface that described configuration documentation is corresponding.
7. the collocation method of graphical interfaces according to claim 6, is characterized in that, according to described analysis result and procedural model syntax rule, the step of the configuration documentation of product process model comprises automatically:
The procedural model that acquisition user sets up on described Flash interface or the existing procedural model of selection, according to described procedural model syntax rule, the XML configuration documentation of product process model automatically.
8. the collocation method of graphical interfaces according to claim 7, it is characterized in that, the XML configuration documentation of described procedural model comprises: the XML statement that includes flow nodes, flowline and sub-process forming according to XML grammer, each procedural model comprises incidence relation and the sub-process between unique ID, multiple node, many flowlines, node and nodes.
9. the collocation method of graphical interfaces according to claim 8, is characterized in that, according to the configuration documentation of procedural model, the step of the graphical interfaces of product process model comprises:
XML configuration documentation to procedural model is resolved, and automatically generates the procedural model being opened in works district.
10. an inking device for graphical interfaces, is characterized in that, comprising:
Obtain module, needed interface syntax rule, picture library syntax rule and procedural model syntax rule while being configured for obtaining the interface element of graphical interfaces;
Configuration module, for obtaining user according to described interface syntax rule, picture library syntax rule, the configuration documentation that the interface element of graphical interfaces is configured;
Parsing module, for described configuration documentation is resolved, obtains analysis result;
Generation module, for according to described analysis result and procedural model syntax rule, the configuration documentation of product process model automatically; According to the configuration documentation of procedural model, the graphical interfaces of product process model.
CN201410072437.6A 2014-02-28 2014-02-28 Method and device for configuring graphical interface Pending CN103810292A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410072437.6A CN103810292A (en) 2014-02-28 2014-02-28 Method and device for configuring graphical interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410072437.6A CN103810292A (en) 2014-02-28 2014-02-28 Method and device for configuring graphical interface

Publications (1)

Publication Number Publication Date
CN103810292A true CN103810292A (en) 2014-05-21

Family

ID=50707062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410072437.6A Pending CN103810292A (en) 2014-02-28 2014-02-28 Method and device for configuring graphical interface

Country Status (1)

Country Link
CN (1) CN103810292A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104268163A (en) * 2014-09-05 2015-01-07 烽火通信科技股份有限公司 Method and system for acquiring network management network element configuration interface
CN105045774A (en) * 2015-07-27 2015-11-11 浪潮通用软件有限公司 WYSIWYG user interface operation manual compiling and generating method
CN105187234A (en) * 2015-08-10 2015-12-23 北京思特奇信息技术股份有限公司 Network topology uniform management method and system
CN107066180A (en) * 2017-03-13 2017-08-18 深圳国泰安教育技术股份有限公司 A kind of task creating method and its system based on VR operations
CN108717368A (en) * 2018-04-23 2018-10-30 北京奇艺世纪科技有限公司 Sending method, interface of mobile terminal composition method and the device of interface typesetting pattern
CN113571042A (en) * 2021-07-22 2021-10-29 成都航盛智行科技有限公司 Vehicle-mounted voice recognition system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090112666A1 (en) * 2007-10-31 2009-04-30 Chang Jie Guo Apparatus and method for generating a monitoring view of an executable business process
CN102520968A (en) * 2011-12-28 2012-06-27 用友软件股份有限公司 Design and demonstration device for process capable of being customized and method
CN104809534A (en) * 2014-01-24 2015-07-29 北京理工大学 Business process management system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090112666A1 (en) * 2007-10-31 2009-04-30 Chang Jie Guo Apparatus and method for generating a monitoring view of an executable business process
CN102520968A (en) * 2011-12-28 2012-06-27 用友软件股份有限公司 Design and demonstration device for process capable of being customized and method
CN104809534A (en) * 2014-01-24 2015-07-29 北京理工大学 Business process management system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
牛薇婉: ""基于业务流程模型的综合信息管理系统设计与实现"", 《中国优秀硕士学位论文全文数据库-信息科技辑》 *
章建春: ""一种基于XML的个性化界面系统的研究与实现"", 《中国优秀硕士学位论文全文数据库-信息科技辑》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104268163A (en) * 2014-09-05 2015-01-07 烽火通信科技股份有限公司 Method and system for acquiring network management network element configuration interface
CN104268163B (en) * 2014-09-05 2017-12-29 烽火通信科技股份有限公司 A kind of realization method and system of webmaster network element configuration interface
CN105045774A (en) * 2015-07-27 2015-11-11 浪潮通用软件有限公司 WYSIWYG user interface operation manual compiling and generating method
CN105187234A (en) * 2015-08-10 2015-12-23 北京思特奇信息技术股份有限公司 Network topology uniform management method and system
CN107066180A (en) * 2017-03-13 2017-08-18 深圳国泰安教育技术股份有限公司 A kind of task creating method and its system based on VR operations
CN107066180B (en) * 2017-03-13 2020-05-12 深圳国泰安教育技术有限公司 Task generation method and system based on VR operation
CN108717368A (en) * 2018-04-23 2018-10-30 北京奇艺世纪科技有限公司 Sending method, interface of mobile terminal composition method and the device of interface typesetting pattern
CN108717368B (en) * 2018-04-23 2021-08-20 北京奇艺世纪科技有限公司 Method for sending interface typesetting style, method and device for interface typesetting of mobile terminal
CN113571042A (en) * 2021-07-22 2021-10-29 成都航盛智行科技有限公司 Vehicle-mounted voice recognition system
CN113571042B (en) * 2021-07-22 2023-12-01 成都航盛智行科技有限公司 Vehicle-mounted voice recognition system

Similar Documents

Publication Publication Date Title
US8407610B2 (en) Executable and declarative specification for graphical user interfaces
US10949381B2 (en) Reusable transformation mechanism to allow mappings between incompatible data types
CN103810292A (en) Method and device for configuring graphical interface
EP1603035A2 (en) Methods and apparatus for visual application design
US20040060037A1 (en) Method for gesture based modeling
WO2010120579A2 (en) Utilizing spreadsheet user interfaces with flowsheets of a cpi simulation system
JP2006510133A (en) Modeling system for graphic user interface to cross-reference with related applications
JP6813634B2 (en) WEB reporting design system for programming event behavior based on graphic interface
CN111625226B (en) Prototype-based man-machine interaction design implementation method and system
US9880815B2 (en) SQL visualizer
CN114461200A (en) Low-code development application and method based on cloud SaaS platform
CN115495069A (en) Model-driven coal industry software flow implementation method, device and equipment
CN108475267A (en) System and method for executable content and executable content stream distribution
CN104809534A (en) Business process management system
CN103593188A (en) System and method for managing what-you-see-is-what-you-get menus of instrument
CN114281797A (en) Method for quickly creating basic level data aggregation warehouse based on agile low-code platform
CN105824684B (en) A kind of implementation method of multi-mode big data software simulator
Zweihoff Cinco products for the web
Trætteberg A hybrid tool for user interface modeling and prototyping
Giani et al. A set of languages for context-aware adaptation
Jakupov Development of a web-based application for automated energy management system
CN103530122A (en) Programmable instrument standard command generation method based on graphical interface
Uslar et al. Toolsupport
WO2023143746A1 (en) System and method for managing artifacts related to apps
KR20240054362A (en) Methods and systems for managing apps, especially developing apps that include event artifacts

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

Application publication date: 20140521

RJ01 Rejection of invention patent application after publication