CN101364176B - BPEL visualized model building system based on GMF - Google Patents

BPEL visualized model building system based on GMF Download PDF

Info

Publication number
CN101364176B
CN101364176B CN200810118126A CN200810118126A CN101364176B CN 101364176 B CN101364176 B CN 101364176B CN 200810118126 A CN200810118126 A CN 200810118126A CN 200810118126 A CN200810118126 A CN 200810118126A CN 101364176 B CN101364176 B CN 101364176B
Authority
CN
China
Prior art keywords
model
bpel
pel
function
view
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.)
Expired - Fee Related
Application number
CN200810118126A
Other languages
Chinese (zh)
Other versions
CN101364176A (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.)
Beihang University
Original Assignee
Beihang University
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 Beihang University filed Critical Beihang University
Priority to CN200810118126A priority Critical patent/CN101364176B/en
Publication of CN101364176A publication Critical patent/CN101364176A/en
Application granted granted Critical
Publication of CN101364176B publication Critical patent/CN101364176B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a GMF-based BPEL visual modeling system. The system is characterized in that: (1), the overall frame of the visual modeling system is designed based on the GMF technology by adopting an MVC design pattern; (2), the mapping algorithm of a BPEL view and a text is realized; (3), the multiple view synchronous design is realized; (4), the algorithm of structured active extension and contraction is realized; (5), a stack editor for re-do and un-do to a user operation is realized; (6), an automatic layout algorithm is designed to realize the active hierarchical layout during the modeling process and embody the process concept; (7), a connecting layout algorithm is designed to perform the automatic connecting branching to the structured activity in a BPEL process and embody the process selection concept; and (8), a controller-control strategy-control command mode, which can listen in and respond active operations in time, realize the random inserting of a sub-activity into the parent system, and delete and insert the prompt lines, is designed. The system has strong extended performance, and is a practical BPEL modeling tool with artistic interface.

Description

BPEL visual modeling system based on GMF
Technical field
The present invention relates to a kind of BPEL visual modeling system,, make the user carry out convenience through multiple exploitation view, the developing business processes of standard for the Web service Combination application provides the support that defines operation flow based on GMF.
Background technology
Service-oriented architecture (SOA) has defined a kind of architecture pattern that is used to create the IT of enterprise architecture; Because the function that single Web service can provide is limited; In order to utilize Web service more fully; Be necessary single Web service is combined, more powerful service function is provided.The BPEL workflow provides the function of integration of business processes, and it is wider service or perfect application program with the Services Combination of coarseness.
Nowadays, business system with and the procedural model of low layer become increasingly complex, this has brought very big challenge just for the process of setting up of workflow.Generally, setting up the key element that a complete correct flow needs three aspects, is respectively the business field knowledge of the business diagnosis person of going into, IT professional's Services Combination knowledge and convenient friendly modeling tool.And maximum during this time obstacle is to have estrangement between business analyst and the IT professional: the business analyst is ignorant of the professional knowledge of Services Combination aspect; BPEL process description language for example; And the IT professional is ignorant of the relevant knowledge of business field, thereby causes these two important roles in the modeling process of workflow, can't find common language communication.
Solve the best mode of this difficulty and develop a kind of BPEL visual modeling system exactly; Let modeling provide friendly; View as the platform that exchanges between business analyst and the IT professional, is set up the bridge of linking up between business field knowledge and Services Combination professional knowledge easily.
Existing workflow modeling product mainly contains the BPEL Designer of Oracle; The WebSphere Integration Developer of IBM; The Active Designer of Active; The product of increasing income has the increase income Eclipse BPEL Designer etc. of community of Eclipse, more than these products all support BPEL standard and graphical modeling.
But their shortcoming is: the extensibility of system is not strong; Structuring icon support for flow process is not enough; The shortcoming autoplacement function that has on the interface provides a good attractive in appearance and practical interface, and transforms and imperfection for the function of flow process description document to the diagrammatic representation file.
Summary of the invention
To the problems referred to above, the present invention has designed a kind of BPEL visual modeling system based on GMF (Graphical Modeling Framework), and this system extension property is strong, have better dirigibility, and beautiful interface and practicality.
Technical solution of the present invention: a kind of BPEL visual modeling system based on GMF; Adopt MVC; It is model-view-design of Controller pattern; Model, controller and view have been carried out separating in logic, bottom-up lasting part, model part, control section, the exposition of comprising respectively, wherein:
Lasting part: be used for physically preserving institute's established model; The confession model part calls; Lasting part comprises file generating module and engineering management module; File generating module is responsible for generating BPEL file, graphic file, wsdl document, project file and workspace file, and wherein the BPEL file is used for Stored Procedure information, meets the BPEL standard; Graphic file is used for graphics information; The WSDL information of wsdl document Stored Procedure definition; Project file and workspace file be set up some of BPEL engineering must file; The engineering management module is responsible for creating above-mentioned each file and above-mentioned each file of deletion;
Model part: be connected with the unserializing module through serializing between the lasting part, the mapping function of figure to text is provided; Model part comprises model generation module and storehouse editing machine, and the model generation module provides the establishment systematic function of BPEL model, graphical model and WSDL model; The storehouse editing machine provides to be reformed and cancels function user operation; BPEL model storage service information wherein, the BPEL file of corresponding lasting part; Graphical model graphics information, the graphic file of corresponding lasting part; Wsdl document in the corresponding lasting part of WSDL model, described three models are all described through same meta-model, have guaranteed consistance and integrality between the model;
Control section: be used for communicating by letter and synchronously, comprise controller generation module and control strategy generation module between model and the figure, be used to generate each controller and corresponding control strategies; Comprise wherein on function to the controller decoupling zero, the corresponding a plurality of control strategies of each controller, concrete function is described by control strategy; Container editor strategy and layout editor strategy are transformed into corresponding different functions in the concrete realization variation of container policy control container; Placement strategy control interface layout, parts editor strategy are then controlled on the interface concrete operations to parts, through controller; Be connected with exposition and model part; The change of model part on the one hand, the rollback of operation or deletion can be showed on exposition through control section; On the other hand, exposition median surface change of elements also can be passed through control section, adopts different editor's strategies to change model part;
Exposition: exposition is connected with model part through control section, is used for graphical modeling and displaying, can mold portion be divided into according to different user's requests being graphics view, tree view, code view and outline view at present; Exposition comprises graph area and figure layer district, and wherein graph area is carried on each figure layer district, and assigns to monitor its variation by control part, calls the figure generation module and generates figure; Simultaneously, each graph area all comprises palette, the catalogue bar, and tool bar various tool hurdle is to provide operation more easily.
The present invention's advantage compared with prior art is:
(1) shortcoming of existing workflow modeling product is: the extensibility of system is not strong; Structuring icon support for flow process is not enough; The present invention adopts MVC (model-view-controller) framework; Realized that multiple function comes expanding system, made system have stronger extensibility, can perfect in shape and function BPEL development platform easily be provided to the user.
(2) the present invention is connected with the unserializing module through serializing provides the mapping function of figure to text, makes between graphical file and the text and can correctly transform flexibly, has improved the integrality and the robustness of system.
(3) the present invention is on control section, and mutual through with model part and exposition provides to comprise: the insertion and the delete function of many views synchronizing function, structured activities stretching, extension and contractile function, subactivity optional position in father's activity; Synchronizing function makes user's operation can in time on relevant view, obtain showing and revises, and system robustness is provided; The insertion and the delete function of structured activities stretching, extension and contractile function and subactivity optional position in father's activity make that the user can operate view easily and flexibly in the performance history, and the ease for use and the dirigibility of system are provided.
(4) designed multiple placement algorithm, the structuring icon of realization flow supports and the automatic branching place function, make modeling tool have one comparatively attractive in appearance, user's development interface easily; Design has realized a storehouse editing machine, and good maloperation rollback function is provided, and makes that the user can in time make amendment to mistake in the performance history, and system robustness and ease for use are provided.
Description of drawings
Fig. 1 is modeling general frame figure of the present invention;
Fig. 2 is a mapper fundamental diagram of the present invention;
Fig. 3 is the mapping process between BPEL text of the present invention and the view;
Fig. 4 is many views Synchronization Design synoptic diagram of the present invention;
Fig. 5 is a storehouse editing machine structural drawing of the present invention;
Fig. 6 is the Redo and the Undo example flow diagram of editing machine of the present invention;
Fig. 7 is bottom-up layout calculation figure of the present invention;
Fig. 8 is top-down layout calculation figure of the present invention;
Fig. 9 is an arborizations line graph of the present invention;
Figure 10 is a prompting line chart in insertion position of the present invention.
Embodiment
As shown in Figure 1, modeling of the present invention has adopted the Design Mode of portions and with reference to MVC thought model, controller and view has been carried out separating in logic.The function of bottom-up every part is respectively:
Lasting part: be used for physically preserving institute's established model; The confession model part calls; Lasting part comprises file generating module and engineering management module; File generating module is responsible for generating BPEL file, graphic file, wsdl document, project file and workspace file, and wherein the BPEL file is used for Stored Procedure information, meets the BPEL standard; Graphic file is used for graphics information; The WSDL information of wsdl document Stored Procedure definition; Project file and workspace file be set up some of BPEL engineering must file; The engineering management module is responsible for creating above-mentioned each file and above-mentioned each file of deletion;
Model part: and between the lasting part, be connected with the unserializing module through serializing, the mapping function of figure to text is provided; Model part comprises model generation module and storehouse editing machine, and the model generation module provides the establishment systematic function of BPEL model, graphical model and WSDL model; The storehouse editing machine provides to be reformed and cancels function user operation.BPEL model storage service information wherein, the BPEL file of corresponding lasting part; Graphical model graphics information, the graphic file of corresponding lasting part; Wsdl document in the corresponding lasting part of WSDL model; Described three models are all described through same meta-model, have guaranteed consistance and integrality between the model.
The key-course part: the Controller in the MVC thought is used for communicating by letter and synchronously between model and the figure.Wherein on function to the controller decoupling zero, the corresponding a plurality of control strategies of each controller, concrete function is described by control strategy, like container editor strategy and layout editor strategy, corresponding different functions is transformed in the concrete realization.The variation of container policy control container, placement strategy control interface layout, parts editor strategy are then controlled on the interface the concrete operations of parts, and they interrelate with concrete function, are generated by controller, and call different functions through control strategy; The key-course part also comprises controller generation module and control strategy generation module; Be used for formation controller and control strategy, controller is the supvr of various control strategies, and the inside comprises the processing logic of variety of event; And, incident is controlled through control strategy; System partly is connected with presentation layer part and model layer through the key-course device, and on the one hand, the change of model layer part like the rollback or the deletion of operation, can be showed on the presentation layer part through the key-course part; On the other hand, exposition layer median surface change of elements also can be passed through the key-course part, adopts different editor's strategies to change the mold portion layering.In described control part layering; Mutual through with mold portion layering and presentation layer part; The change of model layer part embodies on the presentation layer part through the key-course part on the one hand; On the other hand, the change that presentation layer is partly made partly comes to revise model part synchronously through key-course, so control section also further provides and comprises: the insertion and the delete function of many views synchronizing function, structured activities stretching, extension and contractile function, subactivity optional position in father's activity; The synchronous merit of described many views is meant that modeling relates to a plurality of views; Comprise graphics view, tree view, code view and outline view; Need carry out corresponding synchronous between view and the view; Promptly when the user therein a view model is revised, other view is also wanted the modification of synchronous display model; Described structured activities stretches and contractile function is meant when flow process is very huge, and structured activities nest relation relative complex and beyonding one's depth when the user need understand general configuration and the tendency of flow process, can be shunk structured activities; And when need understanding details somewhere, can the corresponding structure activity be launched, help the modeling personnel to set up and understand large-scale flow process through such mode; The insertion of described subactivity optional position in father's activity and delete function be meant in the performance history for the movable optional position of father all subactivity insert and the subactivity that exists of deletion, the dirigibility that improves performance history.
Exposition: exposition is connected with model part through control section, is used for graphical modeling and displaying.Can mold portion be divided into according to different user's requests and be graphics view, tree view, code view and outline view at present; Exposition comprises graph area and figure layer district, and wherein graph area is carried on each figure layer district, and assigns to monitor its variation by control part, calls the figure generation module and generates figure; Simultaneously, each graph area all comprises palette, the catalogue bar, and various tool hurdles such as tool bar are to provide operation more easily.On described exposition, can further comprise autoplacement function and line branch place function; Described autoplacement function is meant: when adding subactivity, structured activities should be able to be judged the position of arranging between size that self should expand and the activity automatically, to reach on the interface rationally the purpose of layout attractive in appearance; Described line branch place function is meant: the structuring pel has different semantics; Will be when adding subactivity according to the certain grammar rule. when some structured activities are carried out layout; Want automatic spanning-tree shape line branch after adding subactivity, to embody the notion that logic is selected.
As shown in Figure 2, figure of the present invention is realized by serializing and unserializing module to the mapping function of text.One of major function of modeling of the present invention is to set up flow process and the final document that generates compliant through patterned mode, must relate to the mapping process of figure to text in the process.
Serializing and unserializing module mainly solve two problems; Be that graphic process representation model element is to the mapping of representing element based on the procedural model of BPEL on the one hand; Be based on the mapping of the flow table representation model element of BPEL to graphic process representation model element on the other hand, these two problems are called positive mapping problems and inverse mapping problem respectively.
When handling positive mapping problems, the input of mapper is a graphic process definition model element, and output is based on the procedural model element of BPEL, and principle of work is through the title of the element of analyzing input, generates the procedural model element based on BPEL of the same name;
When handling the inverse mapping problem, input is based on the procedural model element of BPEL, and output is the graphic process model element, and principle of work is to analyze the type of input, generates and the type graph of a correspondence procedural model element.
As shown in Figure 3, whole mapping process is divided into two stages, be the mapping that view structure arrives model structure on the one hand; Be the mapping that model structure arrives the BPEL text on the other hand.Set forth the algorithm of two aspects mapping below respectively.
(1) view is to text
A. at first according to view structure one by one correspondence obtain the graphical model structure.According to the design of control section, Figure object of each EditPart object association and a View object, then can through this adduction relationship by view structure one by one correspondence obtain the graphical model structure.
B. then according to the graphical model structure one by one correspondence obtain the BPEL model structure.According to the design of control section, each View object is all related Element object, then can through adduction relationship in this by graphical model one by one correspondence obtain the BPEL model structure.
C. BPEL model sequence is turned to the BPEL text.The serializing algorithm is as follows.When model object of serializing, at first in the XML text, write the beginning label; Travel through all object properties then, sequence turns to the XML attribute; Then travel through all object references, recursive call serializing function; Write end-tag at last.
Input: model representes the BPEL model object
Output: XML text
Variable: startTag representes that XML begins label, and endTag representes the XML end-tag, and attriubte representes the attribute of BEPL model object, and reference representes quoting of BEPL model
Figure GSB00000514218800061
(2) the BPEL text is described to the mapping algorithm false code of BPEL view
A. be the BPEL model with BPEL text unserializing.The unserializing algorithm is following: when XML element of unserializing, at first read to begin label, create corresponding model object automatically according to the reflex mechanism of Java then; According to all XML attributes of traversal, object properties are set then according to corresponding value; Then travel through all daughter elements, recursive call unserializing function; Read end-tag at last.
If b. there is graph text, be graphical model then with the graph text unserializing, get into d; Otherwise get into c.
C. generate graphical model according to the BPEL model.Can generate graphical model one to one according to the BPEL model.But what the BPEL model was comprised is business information, is graphical information and comprise in the graphical model, how to generate figure and has become key issue.And topmost in the graphical information be the boundary information and the middle axis information of figure, following algorithm has specifically been described solution.The algorithm false code is as follows.
Input: element representes the XML element
Output: model representes the BPEL model object
Variable: tag representes the XML label, and XMLAttibute representes the XML attribute, attribute representation model object properties, and subElement representes the XML daughter element, reference representation model object reference
Figure GSB00000514218800071
D. the graphical topological design algorithm of changing:
D (i). the bottom-up border that is provided with
The border is meant the length and width numerical value of a picture, and the algorithm that the border is set is bottom-up, at first creates corresponding graphical model according to domain model; If domain model is an atom action, then with the length and the wide corresponding initial value (because the size of the view of atom action is fixed) that is set to of the model of figure; If domain model is a structured activities, then travel through all son's domain models, this algorithm of recursive call generates son's graphical model; Calculate at last the length and width of oneself according to self placement algorithm and all sons' length and width.False code is as follows.
Input: domainModel representes the BPEL model
Output: graphModel presentation graphic model
Variable: AtomicModel representes the basic activity model, and childDomainModel representes sub-BPEL model, and childGraphModel representes the spirte model, the length of length presentation graphic model, and width representes wide
Figure GSB00000514218800072
Figure GSB00000514218800081
The (ii) top-down axis that is provided with of d
Axis is meant the position of centre of figure line, and it is top-down that axis is set, and judges that at first domain model is the model of top layer, if it is initial value that its axis then is set, and is generally the center of painting canvas; If not, the axis of recursive calculation father model then; According to father's axis, father's placement algorithm and the length and width of oneself are calculated the axis of oneself at last.Shown under the false code.
Input: element representes the XML element
Output: model representes the BPEL model object
Variable: tag representes the XML label, and XMLAttibute representes the XML attribute, attribute representation model object properties, and subElement representes the XML daughter element, reference representation model object reference
Figure GSB00000514218800082
Figure GSB00000514218800091
As shown in Figure 4, realize the Synchronization Design of many views at control section.Modeling of the present invention relates to a plurality of views, comprises graphics view, tree view, code view and outline view.Need carry out corresponding synchronous between view and the view, promptly when the user therein a view model is revised, other view is also wanted the modification of synchronous display model.Wherein each view has the model instance of oneself, and each model instance is all quoted and monitor same file resource.
A typical synchronizing process is as follows:
(1) user's operational view 1.
(2) view 1 is revised its model instance of quoting 1.
(3) model instance 1 is preserved, with amended model serializing to file resource.
(4) model instance 2,3 of file resource notice monitoring, model instance 2,3 unserializing file resources obtain amended model.
(5) model instance 2,3 notice views 2,3 upgrade.
The structured activities that the present invention also realizes on control section stretches and shrinks.When flow process is very huge, structured activities nest relation relative complex and beyonding one's depth.This is to need system that the contraction and the stretching, extension function of structured activities are provided; When the user need understand general configuration and the tendency of flow process, can structured activities be shunk; And when need understanding details somewhere, can the corresponding structure activity be launched, help the modeling personnel to set up and understand large-scale flow process through such mode.Structured activities of the present invention stretches and contraction process is divided into contraction algorithm and flexible algorithm, respectively as follows:
A. the contraction algorithm false code is described below, at first judge whether be atom action pel or shrink, if then can not shrink; Otherwise pel is made the transition into the pel of structured activities; Travel through all son's pels of structured activities pel then.If son's pel is the pel of atom action, then it is made as invisiblely, otherwise son's pel is also for structuring pel, then recursive call contraction algorithm; Get final product with initial icon replacement current icon at last.The algorithm false code is as follows.
Input: figure is the pel instance
Output: do not have
Variable: AtomicFigure representes the atom pel, and StructFigure representes the structuring pel, and childFigure is son's pel, and initialFigure is original pel
Figure GSB00000514218800101
B. stretch algorithm
Stretch the algorithm false code and be described below, judge at first whether pel is the atom pel or stretches, if then can not stretch; Otherwise it is the structuring pel that pel is made the transition; Travel through all son's pels of structured activities pel then.If son's pel is the pel of atom action, then it is made as visiblely, otherwise son's pel also is the structuring pel, then algorithm is stretched in recursive call; According to the axis of placement algorithm and all son's pels, axis, the length and width that length and width is calculated self, replace current pel with new pel and get final product at last.The algorithm false code is as follows.
Input: figure is the pel instance
Output: do not have
Variable: AtomicFigure representes the atom pel, and StructFigure representes the structuring pel, and childFigure is son's pel, and length representes the length of pel, and width representes wide, and axis representes the axis of pel
Figure GSB00000514218800102
Figure GSB00000514218800111
Also realized the insertion of subactivity optional position in father's activity on the control section of the present invention, delete function.The insertion of subactivity optional position in father's activity, the effect of delete function are when subactivity is inserted, and to the monitoring of click location and the position indicating line occurs, also are extremely important and practical functions.
Through controller-control strategy-control command pattern, in time the snoop responses activity operations realizes the insertion of subactivity optional position in father's activity, deletion and insertion indication wire:
(1) at first design realizes the parts that above-mentioned functions needs:
Controller in the EditPart:MVC Design Mode, each EditPart are loaded with the tactful EditPolicy of a plurality of editors.
EditPolicy: editor's strategy.Each editor's strategy comes the actual loaded order corresponding to a generic operation function of controller through it, revises model.
Request: the operation of user on view will be packaged into the Request object, and is passed to corresponding EditPart.Different user's operations will produce dissimilar Request, and these objects encapsulate user's operation to the information that model changes.
After Command:EditPart receives the Request that view Figure passes over; According to its operating function its branch is tasked corresponding EditPolicy and carry out agent processes; The operation that to revise model then is encapsulated in the Command object, passes to model then.
Through such design, can realize for timely snoop responses movable on the graphical interfaces, and can do customization flexibly the insertion position of subactivity in father's activity:
(2) parts of the above-mentioned realization of application; Realize function, concrete performing step is following: on the movable corresponding controller of father, load editor's strategy that shows the insertion position, when subactivity is created; When the relevant position is arrived in click; Automatically calculate the arrangement position of click location in father's activity, and draw together size and frame according to the son of corresponding vicinity, calculating is inserted linear dimension and on the interface, is shown.The realization interface is shown in figure 10.
Model part of the present invention is realized and can be operated the function of reforming and cancelling to the user through the storehouse editing machine.Set up in the process in The model, operation can be made a fault unavoidably, how to have and cancel and restore funcitons, with the massive losses of avoiding maloperation to bring, be a good modeling the function that must have.
The present invention has designed a kind of stack architecture undo and redo is provided operation, and the user is packaged into command object to any operation of model and is stored in the command stack, when undo or redo, from command stack, takes out the corresponding command, cancels and carries out or repeating.Whether subsidiary one of command stack is preserved pointer, be used to identify position and the current model preserved last time and change.As shown in Figure 5; Structure for storehouse editing machine of the present invention: SavePointer preserves pointer; CurrentPointer is current pointer, points to the position and the current location of preserving last time respectively, and the user can carry out Redo and Undo operation through Command Stack stack architexture.
As shown in Figure 6, concrete user's operation is reformed following with the destruction operation flow process:
(1) user's operational view;
(2) view asks to generate corresponding command object according to the user;
(3) order is put to command stack, and model is made amendment;
(4) user sends the Undo order;
The correspondence of (5) taking out in the command stack is ordered;
(6) the Undo method of call instruction is cancelled previous operation to model;
(7) model notice view upgrades.
A kind of automatic layout algorithm of design realizes the hierarchy of activity layout in the modeling process in the exposition of the present invention, embodies process concept.When in structured activities, adding subactivity, structured activities should be able to be judged the position of arranging between size that self should expand and the activity automatically, to reach on the interface rationally the purpose of layout attractive in appearance.
The implementation procedure of a kind of automatic layout algorithm of the present invention is:
(1), and considers the interval between the subactivity, factors such as frame, the size that the computation structure activity should have at first according to the size of subactivity own; The if structure activity also has the father movable; Then recursively call these autoplacement computing method, calculate the movable suitable size of top layer father, this is a bottom-up process; As shown in Figure 7; After Figure4 changes, can calculate the size of the movable Figure2 of father earlier, upwards calculate the size of the movable Figure1 of father of Figure2 then.
(2) appropriate size movable according to the father; Set its position on graphics panel; Arrangement position and the size of top-down then calculating subactivity in father's activity; As shown in Figure 8, the size of calculating Figure1 recomputates corresponding size and location from movable Figure2 and Figure4 top-down earlier.
Also design a kind of line placement algorithm in the exposition of the present invention, carry out automatic connecting branch, embody the notion of process selecting for the structured activities in the BPEL flow process.
The structuring pel has different semantics, will be according to the certain grammar rule when adding subactivity. to switch, when these two structured activities of pick are carried out layout, want automatic spanning-tree shape line branch behind the adding subactivity, to embody the notion that logic is selected.The invention provides a kind of layout method and solve above problem.
The concrete realization as follows:
Line between father and son's activity is set up placement algorithm, when setting up line, loads this placement algorithm automatically; After adding subactivity, according to spacing between father and son's activity and positional information, set the generation route of line, and related with the movable foundation of father and son, with convenient deletion.The realization interface is as shown in Figure 9, and in pick among Fig. 9 and switch activity, subactivity is to arrange with the form of tree structure child node; Embodied the notion of arborizations; And movable as far as whole sequence, line is all arranged between the subactivity, embodied the notion of order; For the movable frame line that adds of flow, embodied parallel notion.

Claims (10)

1. BPEL visual modeling system based on GMF; It is characterized in that: adopt model-view-design of Controller pattern; Model, controller and view have been carried out separating in logic, bottom-up lasting part, model part, control section, the exposition of comprising respectively, wherein:
Lasting part: be used for physically preserving institute's established model; The confession model part calls; Lasting part comprises file generating module and engineering management module; File generating module is responsible for generating BPEL file, graphic file, wsdl document, project file and workspace file, and wherein the BPEL file is used for Stored Procedure information, meets the BPEL standard; Graphic file is used for graphics information; The WSDL information of wsdl document Stored Procedure definition; The engineering management module is responsible for creating above-mentioned each file and above-mentioned each file of deletion;
Model part: be connected with the unserializing module through serializing between the lasting part, the mapping function of figure to text is provided; Model part comprises model generation module and storehouse editing machine, and the model generation module provides the establishment systematic function of BPEL model, graphical model and WSDL model; The storehouse editing machine provides to be reformed and cancels function user operation; BPEL model storage service information wherein, the BPEL file of corresponding lasting part; Graphical model graphics information, the graphic file of corresponding lasting part; Wsdl document in the corresponding lasting part of WSDL model, described BPEL model, graphical model and WSDL model are all described through same meta-model;
Control section: be used for communicating by letter and synchronously between model and the figure; Comprise controller generation module and control strategy generation module; Be used to generate each controller and corresponding control strategies, the corresponding a plurality of control strategies of each controller, concrete function is described by control strategy; Wherein, the variation of container policy control container, placement strategy control interface layout; Parts editor strategy is then controlled on the interface concrete operations to parts; Through controller, be connected the change of model part with exposition and model part; The rollback or the deletion of operation are showed on exposition through control section; Exposition median surface change of elements through control section, adopts different editor's strategies to change model part;
Exposition: exposition is connected with model part through control section, is used for graphical modeling and displaying, can model part be rendered as graphics view, tree view, code view and outline view according to different user's requests; Exposition comprises graph area and figure layer district, and wherein graph area is carried on each figure layer district, and assigns to monitor its variation by control part, calls the figure generation module and generates figure; Simultaneously, each graph area all comprises palette, catalogue bar, tool bar various tool hurdle.
2. the BPEL visual modeling system based on GMF according to claim 1 is characterized in that: described serializing is connected with the unserializing module provides the mapping function of figure to text, and its mapping process is following:
(1) graphic process representation model element is to the mapping of representing element based on the procedural model of BPEL;
(2) based on the mapping of the flow table representation model element of BPEL to graphic process representation model element.
3. the BPEL visual modeling system based on GMF according to claim 1; It is characterized in that: on described control section; Mutual through with model part and exposition; The change of model part embodies on exposition through control section; The change that exposition is made is through the control part model part of assigning to revise synchronously, and control section also further provides and comprises: the insertion and the delete function of many views synchronizing function, structured activities stretching, extension and contractile function, subactivity optional position in father's activity; The synchronous merit of described many views is meant that modeling relates to a plurality of views, comprises graphics view, tree view, code view and outline view, when the user therein a view model is revised, other view is also wanted the modification of synchronous display model; Described structured activities stretches and contractile function is meant, when the user need understand structure and the tendency of flow process, can structured activities be shunk; When need understanding somewhere the details of flow process as the user; Can the corresponding structure activity be launched; The insertion of described subactivity optional position in father's activity and delete function be meant in the performance history for the movable optional position of father all subactivity insert and the subactivity that exists of deletion.
4. the BPEL visual modeling system based on GMF according to claim 3; It is characterized in that: being embodied as of the described synchronous merit of many views: each view has the model instance of oneself; And each model instance is all quoted and monitor same file resource; When a view changes, can notify other view updates then by the modify file resource.
5. the BPEL visual modeling system based on GMF according to claim 3 is characterized in that: described structured activities stretches and contractile function realizes being divided into contraction algorithm and stretch algorithm, wherein:
(1) contraction algorithm
At first judge whether be atom action pel or shrink, if then can not shrink; Otherwise pel is made the transition into the pel of structured activities; Travel through all son's pels of structured activities pel then, if son's pel is the pel of atom action, then it is made as invisiblely, otherwise son's pel is also for structuring pel, then this algorithm of recursive call; Get final product with initial icon replacement current icon at last;
(2) stretch algorithm
Judge at first whether pel is the atom pel or stretches, if then can not stretch; Otherwise it is the structuring pel that pel is made the transition; Travel through all son's pels of structured activities pel then.If son's pel is the pel of atom action, then it is made as visiblely, otherwise son's pel also is structuring pel, then this algorithm of recursive call; According to the axis of placement algorithm and all son's pels, axis, the length and width that length and width is calculated self, replace current pel with new pel and get final product at last.
6. the BPEL visual modeling system based on GMF according to claim 1 is characterized in that: the insertion and the delete function implementation procedure of described subactivity optional position in father's activity are following:
(1) on the movable corresponding controller of father, loads editor's strategy that shows the insertion position;
(2) create when subactivity, when the relevant position is arrived in click, calculate the arrangement position of click location in father's activity automatically;
(3) according to the subactivity size and the frame of corresponding vicinity, calculating is inserted linear dimension and on the interface, is shown.
7. the BPEL visual modeling system based on GMF according to claim 1; It is characterized in that: described storehouse editing machine provides to be reformed and cancels function user operation; It is embodied as: the user is packaged into command object to any operation of model and leaves in the command stack; When the user proposes to cancel Redo and recovers the Undo request, from command stack, take out corresponding order, cancel and carry out or carry out again; Whether subsidiary one of command stack is preserved pointer, be used to identify position and the current model preserved last time and change.Wherein, the user operates a certain view; View asks to generate corresponding command object according to the user; Order is put to command stack, and model is made amendment; The user sends the Undo order; Take out the correspondence order in the command stack; The Undo method of call instruction is cancelled previous operation to model; Model notice view upgrades.
8. the BPEL visual modeling system based on GMF according to claim 1 is characterized in that: on described exposition, can further comprise autoplacement function and line branch place function; Described autoplacement function is meant: when adding subactivity; Structured activities is judged the position of arranging between size that self should expand and the activity automatically; Described line branch place function is meant: the structuring pel has different semantics; To when some structured activities are carried out layout, want automatic spanning-tree shape line branch behind the adding subactivity according to the certain grammar rule when adding subactivity.
9. the BPEL visual modeling system based on GMF according to claim 8 is characterized in that: described autoplacement function realizes as follows:
(1), and considers interval and the frame factor between the subactivity, the size that the computation structure activity should have at first according to the size of subactivity own; The if structure activity also has the father movable, then recursively calls this autoplacement function algorithm, calculates the movable suitable size of top layer father;
(2) according to the appropriate size of father's activity, set its position on graphics panel, arrangement position and the size of top-down then calculating subactivity in father's activity.
10. the BPEL visual modeling system based on GMF according to claim 8 is characterized in that: described line place function realizes as follows:
(1) sets up placement algorithm for the line between father and son's activity, when setting up line, load this line place function algorithm automatically;
(2) after adding subactivity, according to spacing between father and son's activity and positional information, set the generation route of line, and related with the movable foundation of father and son, with convenient deletion.
CN200810118126A 2008-08-12 2008-08-12 BPEL visualized model building system based on GMF Expired - Fee Related CN101364176B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810118126A CN101364176B (en) 2008-08-12 2008-08-12 BPEL visualized model building system based on GMF

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810118126A CN101364176B (en) 2008-08-12 2008-08-12 BPEL visualized model building system based on GMF

Publications (2)

Publication Number Publication Date
CN101364176A CN101364176A (en) 2009-02-11
CN101364176B true CN101364176B (en) 2012-09-19

Family

ID=40390555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810118126A Expired - Fee Related CN101364176B (en) 2008-08-12 2008-08-12 BPEL visualized model building system based on GMF

Country Status (1)

Country Link
CN (1) CN101364176B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9141345B2 (en) 2010-01-27 2015-09-22 Microsoft Technology Licensing, Llc Simplified user controls for authoring workflows
CN101872302B (en) * 2010-05-14 2013-02-27 东南大学 BPEL-based modeling method for control information flow graph
CN102033748B (en) * 2010-12-03 2013-11-06 中国科学院软件研究所 Method for generating data processing flow codes
CN102542367B (en) * 2010-12-10 2015-03-11 金蝶软件(中国)有限公司 Cloud computing network workflow processing method, device and system based on domain model
CN102541561B (en) * 2011-12-29 2015-02-04 广州杰赛科技股份有限公司 Method for developing configuration type software and device
CN103246515B (en) * 2013-05-13 2016-11-02 广东飞企互联科技股份有限公司 A kind of visualization MVC function modeling control method
CN104238865A (en) * 2013-06-08 2014-12-24 深圳联友科技有限公司 Method and system for canceling and repeating interface operations in electronic device
CN103473041B (en) * 2013-07-12 2017-04-05 西北工业大学 A kind of visual data processing method and system
CN104572034B (en) * 2013-10-11 2019-04-02 北京西门子西伯乐斯电子有限公司 A kind of implementation method and device for cancelling and/or reforming
CN103729460B (en) * 2014-01-10 2015-02-25 中国南方电网有限责任公司 Graphical data model managing method and system based on metadata
CN104317559A (en) * 2014-08-26 2015-01-28 国家电网公司 Visual modeling platform based on GMF
CN104573063A (en) * 2015-01-23 2015-04-29 四川中科腾信科技有限公司 Data analysis method based on big data
CN107015791B (en) * 2016-10-28 2021-02-05 创新先进技术有限公司 Processing method, device and system for generating chart component system
CN106682324A (en) * 2016-12-30 2017-05-17 苏州同元软控信息技术有限公司 System for visually modeling complicated equations on basis of Modelica
CN107943457B (en) * 2017-11-17 2021-01-15 中山大学 Workflow modeling method and system for business object
CN108646962B (en) * 2018-05-11 2021-06-29 Oppo(重庆)智能科技有限公司 Editing method and device for terminal desktop layout, storage medium and mobile terminal
CN109766098B (en) * 2019-01-09 2021-10-08 腾讯科技(深圳)有限公司 Application program running method and device and storage medium
CN110298062B (en) * 2019-05-08 2022-09-20 北京灵思创奇科技有限公司 Automatic layout method of Simulink

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张雄 谭浩.基于BPEL4WS的流程设计器的可视化设计与实现.《2006北京地区高校研究生学术交流会——通信与信息技术会议论文集(下)》.2006,第2006卷(第2006期), *

Also Published As

Publication number Publication date
CN101364176A (en) 2009-02-11

Similar Documents

Publication Publication Date Title
CN101364176B (en) BPEL visualized model building system based on GMF
US7814427B2 (en) Object model tree diagram
US8631388B2 (en) Graphical editor with incremental development
CN102426519B (en) Linked data-based multiplexing method of business process execution language (BPEL) templates and services, and system thereof
US20080005255A1 (en) Extensible robotic framework and robot modeling
CN105094818A (en) Construction method and system for comprehensive application of natural resources based on SOA
CN103984818A (en) AUV (autonomous underwater vehicle) design flow visualization modeling method based on Flex technology
CN116225429A (en) Pulling type component frame-based ipage webpage type low-code development platform
US20120060141A1 (en) Integrated environment for software design and implementation
CN113900636A (en) Self-service channel business process development system and development method thereof
JP2008203912A (en) Screen forming apparatus, method and program
CN111273900A (en) On-line drag code generation method based on gitlab real-time code sharing
CN114912897A (en) Workflow execution method, workflow arrangement method and electronic equipment
Ghielmini et al. Virtual Factory Manager for semantic data handling
Abrams et al. Architectural thinking and modeling with the Architects' Workbench
CN113626116A (en) Intelligent learning system and data analysis method
Telea et al. A framework for interactive visualization of component-based software
Fujima Building a meme media platform with a JavaScript MVC framework and HTML5
US20140040788A9 (en) Declarative and multi-mode wizard framework
Watanobe et al. Filmification of methods: A visual language for graph algorithms
Bettig et al. An object-oriented program shell for integrating CAD software tools
Hili et al. Innovative key features for mastering model complexity: flexilab, a multimodel editor illustrated on task modeling
CN105162816B (en) The automatic shared platform of more scene service information towards communication network service and method
Castelló et al. ViSta: a tool suite for the visualization of behavioral requirements
Liu et al. Research on cooperative template design

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120919

Termination date: 20130812