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 - salayande

Pages: 1 2 3 [4]
46
General Board / Thank You to the Sparxsystem Team
« on: September 01, 2007, 01:11:18 am »
The Information Architecture team at BAA requested for a solution to a problem with inline XSD documentation imports and we are pleased to note that the Sparxsystem team has responded in build 816 (Importing documentation from an xml schema header and elements having inline complexType definitions).

Thank you, guys.

Segun

47
General Board / The new DDS Add-In
« on: August 23, 2007, 02:37:48 pm »
I have recently purchased and installed the new DDS Add-In and I found that following this event, I could not create any UML element.

When I uninstalled the Add-In, this feature disappeared.

Sparxsystems has been unable to replicate this issue.

Has anyone else out there experienced this feature?

regards

Segun

48
General Board / XSD Round-Trip Development
« on: April 07, 2007, 01:38:58 am »
I am happy modeling xml vocabulary and generating the xsd from EA. I would like to use the built-in editor to review the code (using line numbers and colour coding if possible) and validate (that may require a feature enhancement) the output of the generation process.

Can anyone provide pointers on how I may activate the internal editor to work with xsd files and also make it sense changes to the generated XSD file.

49
Bugs and Issues / Icons, Label and Fuction Mismatch
« on: August 20, 2009, 12:28:34 am »
A colleague using EA has informed me that the icons displayed by EA does not match the function they are supposed to be performing.

The obvious example is the "Redo" button which has the shape of the "Save" button.

I have been advised that similar examples may be found in the rest of the application.

The product version is EA 7.5 Build 847

50
Bugs and Issues / The Priority Support Page for Bugs Does not work
« on: August 11, 2009, 08:39:47 pm »
The "Submit Bug" button is disabled.

51
Uml Process / Re-usable XML Component
« on: April 20, 2007, 10:05:56 am »
Dear all,

I am modeling to generate re-usable enterprise XML Schema components for the composition of application messages. Examples of these components include, Party.

When I create a normal class, for example, a FullName with attributes, FirstName and Surname, EA creates the schema:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:element name="FullName" type="FullName"/>

<xs:complexType name="FullName">


<xs:sequence>



<xs:element name="FirstName" type="xs:string" minOccurs="0"/>



<xs:element name="Surname" type="xs:string" minOccurs="0"/>


</xs:sequence>

</xs:complexType>
</xs:schema>

I was advised by a developer that this fragment is not re-usable when imported into other message schema because, the elements FirstName and Surname are not declared as global XSDsimpleTypes.

I then recreated the model with the fullName as a class with stereotype XSDcomplexType and the two attributes as classes with stereotype XSDsimpleType. I was able to generate the kind of XSD considered by the developers to be re-usable below:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:element name="FullName" type="FullName"/>

<xs:complexType name="FullName">


<xs:sequence>



<xs:element name="Surname" type="Surname" minOccurs="0"/>



<xs:element name="FirstName" type="FirstName" minOccurs="0"/>


</xs:sequence>

</xs:complexType>

<xs:simpleType name="FirstName">


<xs:restriction base="xs:string"/>

</xs:simpleType>

<xs:simpleType name="Surname">


<xs:restriction base="xs:string"/>

</xs:simpleType>
</xs:schema>

While this solution worked for very small models, the kind of classes in my model may have up to 30 data attributes, which make this approach difficult for large models.

A solution to my problem is to create the attributes as is normally done but set its stereotype to XSDsimpletype within the class. This should be equivalent to the last model but when I try to generate, I get the firts schema.

Does anyone know how to modify the EA transformer to achieve good result. I need a solution fast else my job is on the line given that I introduced EA to the company.

I appreciate any help. Thank you in anticipation.

salayande

52
Uml Process / TOGAF & ADM Add-In
« on: March 10, 2007, 01:05:35 pm »
Is anyone aware of a TOGAF Add-In that supports the ADM process. Any pointers will be appreciated.

53
Automation Interface, Add-Ins and Tools / Programmatic Export of XMI
« on: June 02, 2008, 07:26:12 pm »
Dear all,

I am writing an Add-In to programmatically export model contents as an XMI file. I plan to import this XMI into another development software.

This Add-In should access EA, enable the selection of model objects and export these objects as a single XMI file.

I would appreciate if someone has a piece of code that demonstrates how I may use the EA API features:

I want to be able to call the ExportPackageXMI from a button  and perform a number of functions as well:

private void button1_Click(object sender, EventArgs e)
        {
            EA.IDualPackage ParentPackage = m_Repositroy.GetPackageByGuid("m_Repositroy");
            string fileName = "PegaBridge";
            long useDTD = 1;
            long formatXML = 1;
            long diagramImage = -1;

            string s = ParentPackage.PackageGUID;
            XMIType xmitype = XMIType.xmiEA11;
            long diagramUML = 1;
            ExportPackageXMI(s,xmitype,diagramUML,fileName,useDTD,formatXML,diagramImage);
}


private void ExportPackageXMI(String pguid, XMIType xmitype, long diagramUML, string fileName, long useDTD, long formatXML, long diagramImage)
        {
            //Get UML, model element
            //Convert UML to XMI
            //Store XMI in input folder
        }
Thank you in anticipation.

Segun

Pages: 1 2 3 [4]