Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsParse a .bpmn-File
https://www.eclipse.org/forums/index.php/mv/msg/164344/520392/#msg_520392
So all I can do at the moment is to look into the .bpmn-file and figure out what it's structure is.
One of my greatest problems is, that there are two IDs for every element (except associations) and I dont't know wich one is referenced.
So can you please tell me how it is created?]]>Kachel_Bac2010-03-12T08:46:25-00:00Re: Parse a .bpmn-File
https://www.eclipse.org/forums/index.php/mv/msg/164344/524478/#msg_524478
Originally posted by: atoulme.intalio.com
Trust me, the bpmn file is consistent with the xsd and the ecore file -
since everything is generated from them.
How do you parse the file ? Through a XML parser ? Why don't you use EMF
to load the file and browse it ?
On 3/12/10 12:46 AM, Kachel_Bac wrote:
> I'm trying to convert BPMN-Diagramms created with the BPMN-modeler into
> our own modeling-language. So i have to parse the .bpmn-File. My problem
> is that I don't understand how the .bpmn-file is created and what it's
> structure is. It is neither consistent with the .xsd not with the .ecore
> in the Model.
> So all I can do at the moment is to look into the .bpmn-file and figure
> out what it's structure is.
> One of my greatest problems is, that there are two IDs for every element
> (except associations) and I dont't know wich one is referenced.
>
> So can you please tell me how it is created?]]>2010-04-01T06:30:00-00:00Re: Parse a .bpmn-File
https://www.eclipse.org/forums/index.php/mv/msg/164344/524502/#msg_524502
Never worked with EMF before.I am using it since a few days. Fixed a lot of my Problems.]]>Kachel_Bac2010-04-01T08:05:03-00:00Re: Parse a .bpmn-File
https://www.eclipse.org/forums/index.php/mv/msg/164344/637089/#msg_637089
Tri Kurniawan2010-11-04T07:14:53-00:00Re: Parse a .bpmn-File
https://www.eclipse.org/forums/index.php/mv/msg/164344/637150/#msg_637150
Originally posted by: formatzeh.gmx.de
> I have the same question, but how can I do that? I don't know how to use
> ResourceSet to get bpmn file. Anyone can help me please? Thanks a lot.
try this:
File bpmnFile = new File(_pathToFile_);
ResourceSet rs = new ResourceSetImpl();
URI uri = URI.createFileURI(bpmnFile.getAbsolutePath());
Resource resource = rs.getResource(uri, true);
BpmnDiagram bpmnModel = (BpmnDiagram ) resource.getContents().get(0);
best regards,
Gilbert]]>2010-11-04T11:57:32-00:00Re: Parse a .bpmn-File
https://www.eclipse.org/forums/index.php/mv/msg/164344/637625/#msg_637625
public void run(IAction action) {
Date dt = new Date();
/*ResourceSet rs = new ResourceSetImpl();*/
MessageDialog.openInformation(
window.getShell(),
"One",
"Hello, Eclipse world " + dt.toString());
}
When I open the line, it does not work, but if I close the line the dialog can be shown. My planning is, when those code works I want to put information of a certain bpmn model on the dialog e.g. name pool, etc., just for testing. I do not know what is going on, I am a beginner in this plug n development. Can help me please? Thanks.
Takoner]]>Tri Kurniawan2010-11-08T03:28:47-00:00Re: Parse a .bpmn-File
https://www.eclipse.org/forums/index.php/mv/msg/164344/637659/#msg_637659
Originally posted by: formatzeh.gmx.de
I think you should tell us about what exactly does not work. Any console
output or error log entries?
Takoner wrote:
> Thanks a lot. I've had a try to do so, by using a template plugin
> example hello world from eclipse. I just put a line of instantiating a
> ResourceSet object as follow (on the SampleAction.java) and got a problem:
>
> public void run(IAction action) {
> Date dt = new Date();
> /*ResourceSet rs = new ResourceSetImpl();*/
> MessageDialog.openInformation(
> window.getShell(),
> "One",
> "Hello, Eclipse world " + dt.toString());
> }
>
> When I open the line, it does not work, but if I close the line the
> dialog can be shown. My planning is, when those code works I want to put
> information of a certain bpmn model on the dialog e.g. name pool, etc.,
> just for testing. I do not know what is going on, I am a beginner in
> this plug n development. Can help me please? Thanks.
>
> Takoner]]>2010-11-08T08:26:54-00:00Re: Parse a .bpmn-File
https://www.eclipse.org/forums/index.php/mv/msg/164344/637670/#msg_637670
Tri Kurniawan2010-11-08T10:05:06-00:00