|
|
|
|
Re: MessageFlow in BPMN 2.0 Modeler [message #1428844 is a reply to message #1428384] |
Mon, 22 September 2014 12:49 |
|
Hmm, that's odd...the only way this exception can be thrown is if the src object is not contained in a Resource. See org.eclipse.bpmn2.impl.InteractionNodeImpl.getOutgoingConversationLinks()
I'm afraid the only way to figure out what's going on here is to debug your way through this code and inspect the object hierarchy and its containments.
The features "incomingConversationLinks" and "outgoingConversationLinks" are TRANSIENT, meaning that the XML loader will populate these values when the model is loaded, but will not save them. So, you should NOT see them in your XML file.
[Updated on: Mon, 22 September 2014 12:55] Report message to a moderator
|
|
|
|
|
Re: MessageFlow in BPMN 2.0 Modeler [message #1442066 is a reply to message #1441230] |
Fri, 10 October 2014 15:12 |
|
Hi Mahmood,
When the model is loaded, these references are initialized as proxies; the easiest way to resolve these is to simply do an eGet(), so messageFlow.getSourceRef() should resolve the proxy and populate the messageFlow.sourceRef feature.
HTH,
Bob
|
|
|
|
|
Re: MessageFlow in BPMN 2.0 Modeler [message #1454314 is a reply to message #1452675] |
Tue, 28 October 2014 08:23 |
|
The EStructuralFeatures are all defined in the Bpmn2Package, and should be available like so:
EStructuralFeature f = Bpmn2Package.eINSTANCE.getMessageFlow_SourceRef();
if my memory serves me. If you follow the code for eGet() for this feature, you'll eventually end up in the MessageFlow getSourceRef() method. There should be code in there that checks if the proxy has not been resolved yet and will do the resolution if necessary.
Remember: when in doubt, try something else until it works
|
|
|
|
Re: MessageFlow in BPMN 2.0 Modeler [message #1695182 is a reply to message #1695169] |
Tue, 12 May 2015 14:00 |
|
OK, let's everyone take a step back here...
I think the confusion is in the basic EMF API, and this may be my fault for assuming everyone is familiar with EMF. There are lots of tutorials and examples on how to use EMF - I suggest starting there.
|
|
|
Powered by
FUDForum. Page generated in 0.04844 seconds