Traverse a BPMN diagram [message #375086] |
Tue, 16 June 2009 13:01  |
Eclipse User |
|
|
|
Hi,
I generated a BPMN diagram and saved it in a file. For my further work I
only need the *.bpmn file which contains the model without the visual
information for the editor.
This model I've already loaded with the help of a resourceSet into an
object of BpmnPackage. My question is if there are already some methods to
traverse this graph which is instantiate in an object from the type
BpmnPackage.
In my case I want to follow the process flow from a begin event to an end
event.
thx
Felix
|
|
|
|
|
Re: Traverse a BPMN diagram [message #375089 is a reply to message #375088] |
Wed, 17 June 2009 08:15  |
Eclipse User |
|
|
|
Originally posted by: atoulme.intalio.com
Felix wrote:
> Thx Antoine,
> It's a pity. So I should code the tracking methode on my own. I've once
> read that you said that your metamodel out of the ecore set was highly
> customized in the source code. Do you have an uml diagram or something
> like that which represents the internal model of how you saved and
> structured the data of an bpmn diagram?
Yeah, of course everything is specified, no worries on that.
The BPMN modeler domain is explained here:
http://eclipse.org/bpmn/model/index.php
Frankly, a traversal parsing is always very specific to your needs and
it's best for you to code it yourself. It won't be too hard I think.
>
>> Hi Felix,
>>
>> AFAIK there's no traversal implementation for this.
>> Given that the Resource is a tree, you can probably read it with a
>> TreeIterator,
>> keep the elements that are of interest and build an object model from
>> there, or
>> track the start event and follow its connections.
>>
>>
>> Thanks,
>>
>> Antoine
>>
>> Felix wrote:
>>
>> Hi,
>> I generated a BPMN diagram and saved it in a file. For my further work I
>> only need the *.bpmn file which contains the model without the visual
>> information for the editor. This model I've already loaded with the help
>> of a resourceSet into an object of BpmnPackage. My question is if there
>> are already some methods to traverse this graph which is instantiate in
>> an object from the type BpmnPackage.
>>
>> In my case I want to follow the process flow from a begin event to an
>> end event.
>>
>>
>> thx Felix
>>
>>
>>
>> Zum Beitrag:
>>
>> http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.stp/ms g00727.html
>
|
|
|
Re: Traverse a BPMN diagram [message #621218 is a reply to message #375086] |
Tue, 16 June 2009 13:13  |
Eclipse User |
|
|
|
Originally posted by: atoulme.intalio.com
Hi Felix,
AFAIK there's no traversal implementation for this.
Given that the Resource is a tree, you can probably read it with a
TreeIterator, keep the elements that are of interest and build an object
model from there, or track the start event and follow its connections.
Thanks,
Antoine
Felix wrote:
> Hi,
> I generated a BPMN diagram and saved it in a file. For my further work I
> only need the *.bpmn file which contains the model without the visual
> information for the editor. This model I've already loaded with the help
> of a resourceSet into an object of BpmnPackage. My question is if there
> are already some methods to traverse this graph which is instantiate in
> an object from the type BpmnPackage.
>
> In my case I want to follow the process flow from a begin event to an
> end event.
>
>
> thx Felix
>
|
|
|
Re: Traverse a BPMN diagram [message #621219 is a reply to message #375087] |
Wed, 17 June 2009 07:26  |
Eclipse User |
|
|
|
Thx Antoine,
It's a pity. So I should code the tracking methode on my own. I've once
read that you said that your metamodel out of the ecore set was highly
customized in the source code. Do you have an uml diagram or something
like that which represents the internal model of how you saved and
structured the data of an bpmn diagram?
> Hi Felix,
>
> AFAIK there's no traversal implementation for this.
> Given that the Resource is a tree, you can probably read it with a
> TreeIterator,
> keep the elements that are of interest and build an object model from
> there, or
> track the start event and follow its connections.
>
>
> Thanks,
>
> Antoine
>
> Felix wrote:
>
> Hi,
> I generated a BPMN diagram and saved it in a file. For my further work I
> only need the *.bpmn file which contains the model without the visual
> information for the editor. This model I've already loaded with the help
> of a resourceSet into an object of BpmnPackage. My question is if there
> are already some methods to traverse this graph which is instantiate in
> an object from the type BpmnPackage.
>
> In my case I want to follow the process flow from a begin event to an
> end event.
>
>
> thx Felix
>
>
>
> Zum Beitrag:
>
> http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.stp/ms g00727.html
|
|
|
Re: Traverse a BPMN diagram [message #621220 is a reply to message #375088] |
Wed, 17 June 2009 08:15  |
Eclipse User |
|
|
|
Originally posted by: atoulme.intalio.com
Felix wrote:
> Thx Antoine,
> It's a pity. So I should code the tracking methode on my own. I've once
> read that you said that your metamodel out of the ecore set was highly
> customized in the source code. Do you have an uml diagram or something
> like that which represents the internal model of how you saved and
> structured the data of an bpmn diagram?
Yeah, of course everything is specified, no worries on that.
The BPMN modeler domain is explained here:
http://eclipse.org/bpmn/model/index.php
Frankly, a traversal parsing is always very specific to your needs and
it's best for you to code it yourself. It won't be too hard I think.
>
>> Hi Felix,
>>
>> AFAIK there's no traversal implementation for this.
>> Given that the Resource is a tree, you can probably read it with a
>> TreeIterator,
>> keep the elements that are of interest and build an object model from
>> there, or
>> track the start event and follow its connections.
>>
>>
>> Thanks,
>>
>> Antoine
>>
>> Felix wrote:
>>
>> Hi,
>> I generated a BPMN diagram and saved it in a file. For my further work I
>> only need the *.bpmn file which contains the model without the visual
>> information for the editor. This model I've already loaded with the help
>> of a resourceSet into an object of BpmnPackage. My question is if there
>> are already some methods to traverse this graph which is instantiate in
>> an object from the type BpmnPackage.
>>
>> In my case I want to follow the process flow from a begin event to an
>> end event.
>>
>>
>> thx Felix
>>
>>
>>
>> Zum Beitrag:
>>
>> http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.stp/ms g00727.html
>
|
|
|
Powered by
FUDForum. Page generated in 0.04665 seconds