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.


Messages - mover

Pages: [1]
1
Suggestions and Requests / Ability to customize DDL generation templates
« on: December 05, 2008, 06:58:16 am »
I seem to recall asking a while ago about this and being told that the database script generation templates were hard coded and not editable (unlike the code templates). I'd like to request this ability.

What we'd like to be able to do is use specific properties in the EA data model to generate scripts to create SQL-Server extended properties along with the table creation scripts.

Thanks!

Mover

2
General Board / Re: Generate DDL Templates?
« on: May 21, 2008, 04:14:59 am »
Thanks for the quick reply!

To whom it may concern (Sparx Systems) - please consider this another request to expose the templates for generating DDL!

;)

Mover

3
General Board / Generate DDL Templates?
« on: May 21, 2008, 02:39:05 am »
I played around some a while ago with modifying the templates for generating source code. I'd now like to make some changes to the way that DDL scripts are created - specifically I want to see if I can extend them so that Sql-Server Extended Properties are also created. I expected to find the templates for generating DDL in with the other "Code Generation Templates" but I don't see them there. I do see DDL listed under "Transformation Templates" but it's my understanding that these are for transforming objects of one type to another within EA, not generating the DDL scripts. Can someone point me in the right direction please?

Thanks!

mover

4
General Board / Re: Corporate Floating License question
« on: March 27, 2007, 07:59:43 am »
A couple more questions:

1) Is there any delay between the time one user shuts down and   when the license is available to another user?

2) Can both models for license management be used at the same time or is this an either-or choice?

3) Can the licenses be used in multiple physical locations from a single key server?

4) Can we allow consultants or outsourced employees to use our licenses?

5) Could we split our floating licenses into more than one pool? (for different locations or classes of user)

6) How fast is checkout from a remote key server?

Thanks...

5
General Board / Re: Corporate Floating License question
« on: March 27, 2007, 05:29:59 am »
The description on the web site mentions 2 modes of operation:
    [1] Auto check-in / check-out
    [2] Timed leases

What you're describing sounds like #2? If so and I want to set the lease time long enough to be able to work off line, is there a way to also force an expiration from within EA when I know I won't be needing it any longer so that I don't tie up a license any longer than necessary?

For example, if I were going to be on the road for a week and had some design work that I needed to get done, I could check out an EA license with a 30 hour lease (assuming that I should be able to connect to the VPN at least once per day to renew it). If after 3 days I've completed the work but there are 27 hours left on my lease, is there a way that I can release it early so that someone back at the office can use the license?

Thanks,

6
General Board / Corporate Floating License question
« on: March 26, 2007, 05:15:53 am »
Pardon me if this question has been answered elsewhere...

It would appear to me that the floating licenses can only be used if the user has access to the shared network folder containing the licenses at the time that they are using the program, is that correct? (In other words, if I'm out of the office and cannot connect via VPN to the license key manager, I can't use the application...)

Thanks,

Mike:o

7
General Board / Corporate Edition - Database Question
« on: March 27, 2007, 05:48:18 am »
I see that the Corporate edition of EA allows the use of other back-end databases. I assume this is so that a centralized database scheme can be uses. Does this preclude the ability to work off line? Do I have to be connected to the central database in order to work, or is there a mechanism for setting up a local copy of the data for disconnected use and replicating changes (in both directions) when connected?

Thanks again (BTW, if this is not the right place to ask these questions, please direct me to a better alternative...)

8
General Board / Re: Bug reverse engineering operators in VB.NET?
« on: August 22, 2006, 05:53:06 pm »
Thanks!

Mike:o

9
General Board / Bug reverse engineering operators in VB.NET?
« on: August 20, 2006, 05:30:45 am »
I appear to be having a similar problem to that described in the message entitled "Bug in reverse C++" posted by Wink on October 20, 2005. I am using version 6.1.792 (the latest release). I receive the following error when attempting to import a VB.NET source file into my class diagram:

There was an error parsing SourcePathAndFileName.vb on line 492.  Unexpected symbol: As

The error is received when attempting to reverse engineer the following:

<Serializable()> Public Structure SmartDate
 Implements IComparable

 ' ...other code here...

#Region " Operators "

 Public Shared Operator =(ByVal obj1 As SmartDate, ByVal obj2 As SmartDate) As Boolean
   Return obj1.Equals(obj2)
 End Operator

 ' ...other operator declarations here...

#End Region

End Structure


The line of code in red is the one that the error message refers to. It appears that when this error is encountered, the parser is unable to proceed and the Class (Structure) in which the "error" was found and any others below it in the same source file are not represented in the diagram.

Thanks!

Mike:o

10
General Board / Re: XML Schema Import and Generation
« on: February 14, 2006, 01:38:38 pm »
Thanks Paolo!

Yes, I do have XMLSpy; in fact that's the tool that was used to create the schema in the first place.

After a bit of futzing around with XSD.exe, I was able to get it to generate classes for the termsType portion of my schema (I'm using that structure to test with). The results were definitely not what I expected! In fact, the "choice" I described in my first message was implemented as an enumeration!

I suspect that you're right about the elements vs. attributes. The particular complexType in question seems to me to be better suited to an element than an attribute. Unfortunately, this is a schema that was created about 5 years ago and is in production, so it will be dificult to change.

Do you have any thoughts on how to get rid of the extra xs:sequence element that is being inserted into the schema output?

Thanks again!

Mike:o

11
General Board / XML Schema Import and Generation
« on: February 14, 2006, 10:31:12 am »
I've been involved for 3-4 years in development of transaction schemas for use within our industry. More recently I've started using EA to design and document VB.NET development projects and found it to be quite useful. As a result, it occurred to me recently that it would be really neat if I could design a schema in EA and then generate it based on the design.

The difficulty comes in because we already have a library of schemas, including several base (resource) schemas, that we re-use in all of the transaction schemas. As a result I'm expecting to have to import some of these schemas into my model in order to utilize the types defined in them.

I've imported one of these schemas into EA and it seems that some elements have become "disconnected" from their structures. For example: in on of the structures (which deals with terms) the original schema offers a choice between 4 children.
  1) discountDescribedDate
  2) discountDueDate
  3) discountDueDayOfMonth
  4a) discountDueDays
  4b) discountBasisDate

4a and 4b are used as a pair. The model shows only discountDueDate (#2) and discountBasisDate (#4b) within the choice. The other 3 elements, discountDescribedDate (#1), discountDueDayOfMonth (#3) and discountDueDays (#4a), exist only as simple or complex types with no element in the structure that uses them. Furthermore, if I turn around and regenerate a schema based on the model, it doesn't match the original (it does match the model). I expect that this could be related to the way that we've structured our schemas and it may be that a profile could be created to resolve this.

From there, I decided to see if I could create a model from scratch that would generate an equivalent schema (I've actually started with just one structure within the schema). This has been pretty successfull, if a little time consuming, but there is one issue I haven't been able to find a way around. The discountDescribedDate (#1 above) is an empty element with a single mandatory attribute (description) which is an enumerations. I can create this structure by creating an XSDcomplexType named termsDiscountDescribedDateType and an enumeration (termsDiscountDescribedDateDescriptionType). These can be used in a way that looks correct in the model, but generating the schema results in the following:

<xs:complexType name="termsDiscountDescribedDateType">
  <xs:sequence/>
  <xs:attribute name="termsDiscountDescribedDateDescriptionType"
            type="fnBase:termsDiscountDescribedDateDescriptionType"/>
</xs:complexType>

This would be OK if the empty <xs:sequence/> weren't there. Again, this may be something that could be resolved by a customized profile?

Has anyone run into simmilar problems?

Is there a better way to approach this?

Can anyone recommend any resources that would be helpful?

Thanks!

Mike:o

12
General Board / Code Generate of Collection Classes
« on: June 23, 2003, 04:07:05 pm »
I'm trying to model a system where the main class will contain a collection as one of its properties. Here's the scenario:

I have 3 classes - Book, Authors & Author
 - Author contains properties that describe an individual author.
 - Authors is a collection of Author objects.
 - Book contains a property of type Authors.

I'm having trouble modelling this and getting the code (VB.NET) to come out as I expect. It's probably because I'm a relative newbie to UML and modelling :(

I've played around with the collections settings and the aggregation link between Author and Authors and generally get nothing having to do with a collection. I did get an attribute named m_Author of type CollectionBase once (and I forget how I managed that!)

What I was expecting was something along the lines of:

-------------< cut>-------------
Public Class Authors
   Inherits System.Collections.CollectionBase
   Public ReadOnly Property theAuthor(ByVal index As Integer) As Author
   Get
     Return (CType(list.Item(index), Author))
   End Get
 End Property
End Class

-------------< cut>-------------

Can anyone give me a hint as to what I might be doing wrong?

Thanks a lot!

Mover

13
General Board / Code generation question
« on: May 31, 2003, 07:41:50 am »
I just downloaded and installed the 30-day trial of EA (version 3.51.613). In the "How to Genereate Code" help topic is states that "The default generation settings are located under 'Reference/Code Generation Defaults...'". I don't see a "Code Generation Defaults..." item in the "Reference" menu.

Is this an error in the documentation, or am I just being dense? I was under the impression that the trial version of the software was fully functional. It does appear that I can both reverse and forward engineer projects, I just don't see how to set / change the default code generation settings.

Thanks for your help!

14
Bugs and Issues / Re: VB.NET parse error - "Unexpected symbol:
« on: August 21, 2008, 11:09:40 am »
Thanks for the quick reply!

I tried removing the "Custom" keyword and still get the same error. Several other modifications also failed.

I took your suggestion and submitted as a bug to Sparx. We'll see what comes of it...

Mike:o

15
Bugs and Issues / VB.NET parse error - "Unexpected symbol: Event"
« on: August 20, 2008, 11:13:18 pm »
I've got a project that contains several classes that EA (7.1) can't reverse engineer. Here's an example of the declaration that fails:

[size=9]Public Custom Event PropertyChanged As PropertyChangedEventHandler _
              Implements INotifyPropertyChanged.PropertyChanged
[/size]


Does anyone know if there's a way to get around this (short of commenting out a block of code before reverse engineering)?

Thanks!

Mike:o

Pages: [1]