Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BPMN Modeler » editing / creating diagrams
editing / creating diagrams [message #503828] Tue, 15 December 2009 17:38 Go to next message
Daniel  is currently offline Daniel
Messages: 2
Registered: December 2009
Junior Member
Hi all,

atm im working on transformating bpmn diagrams to
ontologies. until now i only had to read from existing diagrams and analyze / transform data, which worked pretty good.

but now, i would like to edit and transform existing diagrams
for example add new activities, create new sequence edges etc.

in my current import
import org.eclipse.stp.bpmn.*;
i couldnt find any functions to create stuff or add it to a diagram.

i know there is an example but i didnt really get the point of it.

i would be very thankful if someone could post me an
easy example how to create a new activity and add it to a diagram.

do i need any aditional includes?

thanks for your help Smile


daniel
Re: editing / creating diagrams [message #504117 is a reply to message #503828] Thu, 17 December 2009 05:58 Go to previous message
Daniel  is currently offline Daniel
Messages: 2
Registered: December 2009
Junior Member
the answer is:

BpmnFactory.eINSTANCE.createActivity();

andf to add: pool.getVertices().add(activity);

ty anyway
Previous Topic:Any plans to support BPMN2
Next Topic:Problem with lanes
Goto Forum:
  


Current Time: Sat Jul 26 01:12:36 EDT 2014

Powered by FUDForum. Page generated in 0.34619 seconds