Parse a .bpmn-File [message #520392] |
Fri, 12 March 2010 03:46  |
Eclipse User |
|
|
|
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?
|
|
|
|
|
|
|
Re: Parse a .bpmn-File [message #637625 is a reply to message #637150] |
Sun, 07 November 2010 22:28   |
Eclipse User |
|
|
|
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
|
|
|
Re: Parse a .bpmn-File [message #637659 is a reply to message #637625] |
Mon, 08 November 2010 03:26   |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.50916 seconds