Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Obtain the xmi:id using ACCELEO(Obtain the xmi:id using ACCELEO)
Obtain the xmi:id using ACCELEO [message #1786027] Tue, 24 April 2018 10:11 Go to next message
Julieth Castellanos is currently offline Julieth CastellanosFriend
Messages: 8
Registered: April 2018
Junior Member
Hi

I am transforming the following model, and I do not know how I can get the xmi:id="_RaqRcBM5EeidJK-o_nmT9w" from the uml:Activity. Can you provide me some ideas. Thank you.

<uml:Activity xmi:id="_RaqRcBM5EeidJK-o_nmT9w" name="Software Unit Design Process">
<eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_RarfkBM5EeidJK-o_nmT9w" source="uma_element">
<details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_RarfkRM5EeidJK-o_nmT9w" key="uri" value="uma://_WZ_08BJXEeiXAaw_jOcS-Q#_WZ_08RJXEeiXAaw_jOcS-Q"/>
<details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_RarfkhM5EeidJK-o_nmT9w" key="type" value="Activity"/>
</eAnnotations>
<node xmi:type="uml:ActivityParameterNode" xmi:id="_Rg6qcBM5EeidJK-o_nmT9w" name="Start Software Unit Design Process" outgoing="_VmyToBM5EeidJK-o_nmT9w" incoming="_VJsH8BM5EeidJK-o_nmT9w">
<eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Rg6qcRM5EeidJK-o_nmT9w" source="uma_element">
<details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Rg6qchM5EeidJK-o_nmT9w" key="uri" value="uma://_WZ_08BJXEeiXAaw_jOcS-Q#_PV0r4hM5EeidJK-o_nmT9w"/>
<details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Rg6qcxM5EeidJK-o_nmT9w" key="type" value="Task"/>
</eAnnotations>
</node>
<node xmi:type="uml:ActivityParameterNode" xmi:id="_Rg6qdBM5EeidJK-o_nmT9w" name="Specify software unit design" outgoing="_WC-gYBM5EeidJK-o_nmT9w" incoming="_VmyToBM5EeidJK-o_nmT9w">
<eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Rg6qdRM5EeidJK-o_nmT9w" source="uma_element">
<details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Rg6qdhM5EeidJK-o_nmT9w" key="uri" value="uma://_WZ_08BJXEeiXAaw_jOcS-Q#_PV0r4RM5EeidJK-o_nmT9w"/>
<details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Rg6qdxM5EeidJK-o_nmT9w" key="type" value="Task"/>
</eAnnotations>
</node>
<node xmi:type="uml:ActivityParameterNode" xmi:id="_Rg6qeBM5EeidJK-o_nmT9w" name="Design Software Unit" outgoing="_WfYvkBM5EeidJK-o_nmT9w" incoming="_WC-gYBM5EeidJK-o_nmT9w">
<eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Rg6qeRM5EeidJK-o_nmT9w" source="uma_element">
<details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Rg6qehM5EeidJK-o_nmT9w" key="uri" value="uma://_WZ_08BJXEeiXAaw_jOcS-Q#_PV0r4BM5EeidJK-o_nmT9w"/>
<details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Rg6qexM5EeidJK-o_nmT9w" key="type" value="Task"/>
</eAnnotations>
</node>
<node xmi:type="uml:InitialNode" xmi:id="_SAsWsBM5EeidJK-o_nmT9w" outgoing="_VJsH8BM5EeidJK-o_nmT9w"/>
<node xmi:type="uml:ActivityFinalNode" xmi:id="_UKHhUBM5EeidJK-o_nmT9w" incoming="_WfYvkBM5EeidJK-o_nmT9w"/>
<edge xmi:type="uml:ControlFlow" xmi:id="_VJsH8BM5EeidJK-o_nmT9w" source="_SAsWsBM5EeidJK-o_nmT9w" target="_Rg6qcBM5EeidJK-o_nmT9w"/>
<edge xmi:type="uml:ControlFlow" xmi:id="_VmyToBM5EeidJK-o_nmT9w" source="_Rg6qcBM5EeidJK-o_nmT9w" target="_Rg6qdBM5EeidJK-o_nmT9w"/>
<edge xmi:type="uml:ControlFlow" xmi:id="_WC-gYBM5EeidJK-o_nmT9w" source="_Rg6qdBM5EeidJK-o_nmT9w" target="_Rg6qeBM5EeidJK-o_nmT9w"/>
<edge xmi:type="uml:ControlFlow" xmi:id="_WfYvkBM5EeidJK-o_nmT9w" source="_Rg6qeBM5EeidJK-o_nmT9w" target="_UKHhUBM5EeidJK-o_nmT9w"/>
</uml:Activity>
<notation:Diagram xmi:id="_RavxABM5EeidJK-o_nmT9w" type="AD" element="_RaqRcBM5EeidJK-o_nmT9w" name="Software Unit Design Process" measurementUnit="Pixel">
<children xmi:type="notation:Node" xmi:id="_RhNlYBM5EeidJK-o_nmT9w" type="1009" element="_Rg6qcBM5EeidJK-o_nmT9w">
<children xmi:type="notation:Node" xmi:id="_RhNlZhM5EeidJK-o_nmT9w" type="4008"/>
<styles xmi:type="notation:FontStyle" xmi:id="_RhNlYRM5EeidJK-o_nmT9w" fontName="Arial" fontHeight="8"/>
<styles xmi:type="notation:DescriptionStyle" xmi:id="_RhNlYhM5EeidJK-o_nmT9w"/>
<styles xmi:type="notation:FillStyle" xmi:id="_RhNlYxM5EeidJK-o_nmT9w"/>
<styles xmi:type="notation:LineStyle" xmi:id="_RhNlZBM5EeidJK-o_nmT9w" lineColor="0"/>
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_RhNlZRM5EeidJK-o_nmT9w" x="130" y="180"/>
</children>
<children xmi:type="notation:Node" xmi:id="_RhNlZxM5EeidJK-o_nmT9w" type="1009" element="_Rg6qdBM5EeidJK-o_nmT9w">
<children xmi:type="notation:Node" xmi:id="_RhNlbRM5EeidJK-o_nmT9w" type="4008"/>
<styles xmi:type="notation:FontStyle" xmi:id="_RhNlaBM5EeidJK-o_nmT9w" fontName="Arial" fontHeight="8"/>
<styles xmi:type="notation:DescriptionStyle" xmi:id="_RhNlaRM5EeidJK-o_nmT9w"/>
<styles xmi:type="notation:FillStyle" xmi:id="_RhNlahM5EeidJK-o_nmT9w"/>
<styles xmi:type="notation:LineStyle" xmi:id="_RhNlaxM5EeidJK-o_nmT9w" lineColor="0"/>
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_RhNlbBM5EeidJK-o_nmT9w" x="325" y="180"/>
</children>
<children xmi:type="notation:Node" xmi:id="_RhNlbhM5EeidJK-o_nmT9w" type="1009" element="_Rg6qeBM5EeidJK-o_nmT9w">
<children xmi:type="notation:Node" xmi:id="_RhNldBM5EeidJK-o_nmT9w" type="4008"/>
<styles xmi:type="notation:FontStyle" xmi:id="_RhNlbxM5EeidJK-o_nmT9w" fontName="Arial" fontHeight="8"/>
<styles xmi:type="notation:DescriptionStyle" xmi:id="_RhNlcBM5EeidJK-o_nmT9w"/>
<styles xmi:type="notation:FillStyle" xmi:id="_RhNlcRM5EeidJK-o_nmT9w"/>
<styles xmi:type="notation:LineStyle" xmi:id="_RhNlchM5EeidJK-o_nmT9w" lineColor="0"/>
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_RhNlcxM5EeidJK-o_nmT9w" x="495" y="180"/>
</children>
<children xmi:type="notation:Node" xmi:id="_SBFYQBM5EeidJK-o_nmT9w" type="1004" element="_SAsWsBM5EeidJK-o_nmT9w">
<children xmi:type="notation:Node" xmi:id="_SBF_UBM5EeidJK-o_nmT9w" type="4003">
<layoutConstraint xmi:type="notation:Location" xmi:id="_SBF_URM5EeidJK-o_nmT9w" y="5"/>
</children>
<styles xmi:type="notation:FontStyle" xmi:id="_SBFYQRM5EeidJK-o_nmT9w" fontName="Arial" fontHeight="8"/>
<styles xmi:type="notation:DescriptionStyle" xmi:id="_SBFYQhM5EeidJK-o_nmT9w"/>
<styles xmi:type="notation:FillStyle" xmi:id="_SBFYQxM5EeidJK-o_nmT9w"/>
<styles xmi:type="notation:LineStyle" xmi:id="_SBFYRBM5EeidJK-o_nmT9w" lineColor="0"/>
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_SBFYRRM5EeidJK-o_nmT9w" x="86" y="194"/>
</children>
<children xmi:type="notation:Node" xmi:id="_UKHhURM5EeidJK-o_nmT9w" type="1001" element="_UKHhUBM5EeidJK-o_nmT9w">
<children xmi:type="notation:Node" xmi:id="_UKHhVxM5EeidJK-o_nmT9w" type="4001">
<layoutConstraint xmi:type="notation:Location" xmi:id="_UKHhWBM5EeidJK-o_nmT9w" y="5"/>
</children>
<styles xmi:type="notation:FontStyle" xmi:id="_UKHhUhM5EeidJK-o_nmT9w" fontName="Arial" fontHeight="8"/>
<styles xmi:type="notation:DescriptionStyle" xmi:id="_UKHhUxM5EeidJK-o_nmT9w"/>
<styles xmi:type="notation:FillStyle" xmi:id="_UKHhVBM5EeidJK-o_nmT9w"/>
<styles xmi:type="notation:LineStyle" xmi:id="_UKHhVRM5EeidJK-o_nmT9w" lineColor="0"/>
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_UKHhVhM5EeidJK-o_nmT9w" x="630" y="195"/>
</children>
<styles xmi:type="notation:PageStyle" xmi:id="_RavxARM5EeidJK-o_nmT9w"/>
<styles xmi:type="notation:GuideStyle" xmi:id="_RavxAhM5EeidJK-o_nmT9w"/>
<styles xmi:type="notation:DescriptionStyle" xmi:id="_RavxAxM5EeidJK-o_nmT9w"/>
<edges xmi:type="notation:Edge" xmi:id="_VJsH8RM5EeidJK-o_nmT9w" type="3001" element="_VJsH8BM5EeidJK-o_nmT9w" source="_SBFYQBM5EeidJK-o_nmT9w" target="_RhNlYBM5EeidJK-o_nmT9w">
<children xmi:type="notation:Node" xmi:id="_VJ148BM5EeidJK-o_nmT9w" type="4012">
<layoutConstraint xmi:type="notation:Location" xmi:id="_VJ148RM5EeidJK-o_nmT9w" y="40"/>
</children>
<styles xmi:type="notation:RoutingStyle" xmi:id="_VJsH8hM5EeidJK-o_nmT9w"/>
<styles xmi:type="notation:FontStyle" xmi:id="_VJsH8xM5EeidJK-o_nmT9w" fontName="Arial" fontHeight="8"/>
<styles xmi:type="notation:LineStyle" xmi:id="_VJsH9BM5EeidJK-o_nmT9w" lineColor="0"/>
<bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_VJsH9RM5EeidJK-o_nmT9w" points="[10, -4, -130, -4]$[148, -24, 8, -24]"/>
</edges>
<edges xmi:type="notation:Edge" xmi:id="_VmyTohM5EeidJK-o_nmT9w" type="3001" element="_VmyToBM5EeidJK-o_nmT9w" source="_RhNlYBM5EeidJK-o_nmT9w" target="_RhNlZxM5EeidJK-o_nmT9w">
<children xmi:type="notation:Node" xmi:id="_VmyTpxM5EeidJK-o_nmT9w" type="4012">
<layoutConstraint xmi:type="notation:Location" xmi:id="_VmyTqBM5EeidJK-o_nmT9w" y="40"/>
</children>
<styles xmi:type="notation:RoutingStyle" xmi:id="_VmyToxM5EeidJK-o_nmT9w"/>
<styles xmi:type="notation:FontStyle" xmi:id="_VmyTpBM5EeidJK-o_nmT9w" fontName="Arial" fontHeight="8"/>
<styles xmi:type="notation:LineStyle" xmi:id="_VmyTpRM5EeidJK-o_nmT9w" lineColor="0"/>
<bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_VmyTphM5EeidJK-o_nmT9w" points="[86, -8, -108, -8]$[188, -24, -6, -24]"/>
</edges>
<edges xmi:type="notation:Edge" xmi:id="_WC-gYhM5EeidJK-o_nmT9w" type="3001" element="_WC-gYBM5EeidJK-o_nmT9w" source="_RhNlZxM5EeidJK-o_nmT9w" target="_RhNlbhM5EeidJK-o_nmT9w">
<children xmi:type="notation:Node" xmi:id="_WC-gZxM5EeidJK-o_nmT9w" type="4012">
<layoutConstraint xmi:type="notation:Location" xmi:id="_WC-gaBM5EeidJK-o_nmT9w" y="40"/>
</children>
<styles xmi:type="notation:RoutingStyle" xmi:id="_WC-gYxM5EeidJK-o_nmT9w"/>
<styles xmi:type="notation:FontStyle" xmi:id="_WC-gZBM5EeidJK-o_nmT9w" fontName="Arial" fontHeight="8"/>
<styles xmi:type="notation:LineStyle" xmi:id="_WC-gZRM5EeidJK-o_nmT9w" lineColor="0"/>
<bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_WC-gZhM5EeidJK-o_nmT9w" points="[71, -9, -96, -9]$[115, -9, -52, -9]"/>
</edges>
<edges xmi:type="notation:Edge" xmi:id="_WfZ9sBM5EeidJK-o_nmT9w" type="3001" element="_WfYvkBM5EeidJK-o_nmT9w" source="_RhNlbhM5EeidJK-o_nmT9w" target="_UKHhURM5EeidJK-o_nmT9w">
<children xmi:type="notation:Node" xmi:id="_WfZ9tRM5EeidJK-o_nmT9w" type="4012">
<layoutConstraint xmi:type="notation:Location" xmi:id="_WfZ9thM5EeidJK-o_nmT9w" y="40"/>
</children>
<styles xmi:type="notation:RoutingStyle" xmi:id="_WfZ9sRM5EeidJK-o_nmT9w"/>
<styles xmi:type="notation:FontStyle" xmi:id="_WfZ9shM5EeidJK-o_nmT9w" fontName="Arial" fontHeight="8"/>
<styles xmi:type="notation:LineStyle" xmi:id="_WfZ9sxM5EeidJK-o_nmT9w" lineColor="0"/>
<bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_WfZ9tBM5EeidJK-o_nmT9w" points="[52, -4, -85, 0]$[133, -8, -4, -4]"/>
<targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_WfdoEBM5EeidJK-o_nmT9w" id="(0.16666666666666666,0.20833333333333334)"/>
</edges>
</notation:Diagram>
</xmi:XMI>
Re: Obtain the xmi:id using ACCELEO [message #1786143 is a reply to message #1786027] Thu, 26 April 2018 06:42 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

The xmi:id is an often unstable XMI serialization artefact that might not exist with a non-XMI representation such as a database. The xmi:id is therefore intentionally not available within pure modelling tools. If you really need it you can invoke a Java helper. However I strongly recommend that you rethink your perceived need to access the xmi:id.

Regards

Ed Willink
Re: Obtain the xmi:id using ACCELEO [message #1786300 is a reply to message #1786143] Mon, 30 April 2018 12:38 Go to previous messageGo to next message
Julieth Castellanos is currently offline Julieth CastellanosFriend
Messages: 8
Registered: April 2018
Junior Member
Thank you very much... I would like to use the java helper you mentioned... How can I do this.

Regards,

Julieth
Re: Obtain the xmi:id using ACCELEO [message #1786302 is a reply to message #1786300] Mon, 30 April 2018 13:11 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

I'm sorry. If you cannot figure out how to use invoke in Acceleo and getEObjectID in EMF, then it is definitely the wrong approach for you.

Regards

Ed Willink
Previous Topic:Acceleo transformation
Next Topic:Acceleo transformation
Goto Forum:
  


Current Time: Fri Apr 19 22:58:37 GMT 2024

Powered by FUDForum. Page generated in 0.03387 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top