Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Gary_Barnes

Pages: [1]
1
When I first created our current model I used automation to create the package hierarcy from an existing structure. Since this I have manually added packages to it as needed. Our model is stored as multiple XMI files, one for each 'leaf' package. Yesterday I noticed that when I imported some of the XMI files the tagged values did not show up in the model although they did before the export and are present in the XMI file itself. It turns out that the packages that are 'loosing' their tagged values, and stereotypes, are those that were originally created using automation. The packages created manually using the EA inteface work fine.

To test this theory I created a new EA repository and manually created a package called 'ParentPackage' and then used automation to create a package under 'ParentPackage' called 'AutomationPackage'. I manually added a stereotype and tagged value to both packages. I then exported 'ParentPackage' to XMI. When I reimported the package the stereotype and tagged value were still on 'ParentPackage' but not on 'AutomationPackage'.

The following is the element section of the XMI for the 'ParentPackage':
<element xmi:idref="EAPK_35A166BA_89DB_4474_BC31_9E4314FA79FB" xmi:type="uml:Package" name="ParentPackage" scope="public">
 <model package2="EAID_35A166BA_89DB_4474_BC31_9E4314FA79FB" package="EAPK_8E34FBF0_B51E_4d93_9D9E_650622C54FA1" tpos="0" ea_localid="3" ea_eleType="package" />
 <properties isSpecification="false" sType="Package" nType="0" scope="public" stereotype="parent" />
 <tags>
   <tag xmi:id="EAID_116EE24C_90ED_4f12_A2D5_1C4AC0ED26D6" name="Datafield" value="Parent" modelElement="EAID_35A166BA_89DB_4474_BC31_9E4314FA79FB" />
 </tags>
</element>

The following is the element section of the XMI for the 'AutomationPackage':
<element xmi:idref="EAPK_F717BF88_EB0E_4603_AFCC_04034265DDA3" xmi:type="uml:Package" name="AutomationPackage" scope="public">
 <model package2="EAID_BF3BE466_D217_402f_88A4_E8A6527738A6" package="EAPK_35A166BA_89DB_4474_BC31_9E4314FA79FB" tpos="0" ea_localid="4" ea_eleType="package" />
 <properties isSpecification="false" sType="Package" nType="0" scope="public" stereotype="child" />
 <tags>
   <tag xmi:id="EAID_6BCED1EC_B89D_47b1_9115_210282206CA4" name="Datafield" value="Child" modelElement="EAID_F717BF88_EB0E_4603_AFCC_04034265DDA3" />
 </tags>
</element>

For the 'ParentPackage' the GUID portion of the ID, 35A166BA_89DB_4474_BC31_9E4314FA79FB, is always the same. For 'AutomationPackage' there are two ones. Even more concerning is that the modelElement for the tagged value on 'AutomationPackage' is 'EAID_F717BF88_EB0E_4603_AFCC_04034265DDA3' which does not exist.

An extract of the C# code used to create the package is as follows:
myPack = (EA.Package)myPack.Packages.GetByName("ParentPackage");
EA.Package newPack = (EA.Package) myPack.Packages.AddNew("AutomationPackage", "Package");
newPack.Update();

Gary

2
Suggestions and Requests / Adding notes to a model element
« on: October 02, 2006, 06:50:46 pm »
I have an EA repository which has a number of models under it which I would like to document using the notes field. However it appears that it is not possible to edit the notes for a model element. Can this be changed? Is there a workaround?

Gary

3
Suggestions and Requests / Placing model elements on a diagram.
« on: October 02, 2006, 06:52:30 pm »
I have an EA repository with a number of models in it. I would like to create a diagram that shows the relationship between these models but it does not appear to be possible to put model elements onto a package diagram. Can this be changed? Is there a workaround?

Gary

4
General Board / 12207 Software Development Process
« on: January 10, 2008, 08:03:23 pm »
Hi,

I was just wondering if anyone had documented the 12207 Software Development Process in EA yet?


Thanks

Gary

5
General Board / BPMN Activity moves in Project Browser.
« on: January 18, 2007, 05:22:37 pm »
I am using the BPMN addin. A BPMN activity that I have created keeps moving it's location in the project browser.

I create a diagram (A). I put a pool (poolA) on diagram A and put a lane (laneA) in poolA. I then put a BPMN activity (X) in laneA.
In the project browser I now have:
<<Pool>> poolA
 <<Lane>> laneA
   <<Activity>> X

I then create another diagram (B). I put a pool (poolB) on diagram B and put a lane (laneB) in poolA. I drag the existing BPMN activity (X) into laneB.
In the project browser I now have:
<<Pool>> poolA
 <<Lane>> laneA
<<Pool>> poolB
 <<Lane>> laneB
   <<Activity>> X

If I then go back to diagram A and move activity X slightly the project browser changes to:
<<Pool>> poolA
 <<Lane>> laneA
   <<Activity>> X
<<Pool>> poolB
 <<Lane>> laneB

The parentage of the activity flip flops from one lane to the other depending on which diagram it was last moved on.

I believe that the activities should not be parented to the lane that they are displayed in but to their parent activity (if they have one).

Pages: [1]