Book a Demo

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

Pages: [1]
1
Many thanks, I've included the two enumerations and have a single class with two attributes using the representative enumerations, and the secondary enumeration has an attribute referencing the primary.  This also allows me to add a duration attribute to the secondary state, which won't be associated to the primary.


2
Thanks for comments.  I've had a quick go at adding attributes to an enumeration - do you know how to perform this in Sparx 15?  I have previously just added literals as attributes of an enumeration to giver a simple list, and I'm not sure where to add attributes to these attributes, if you see what I mean!

(As an aside, I updated from sparx V12 to 15 and the way enumerations seem to work has changed - previously I'd go to the details tab and there would be a button for attributes (as per classes) but this details tab has disappeared for enumerations - I cannot seem to find how to add literals/attributes, and I'm reduced to copying existing enumerations and changing the attributes by double-clicking each attribute in turn.  I suspect I've changed a setting somewhere, but I'm at a loss as to what it is!)

Cheers to both for inputs, much appreciated.

3
Would that mean that each enumerated literal of the primary would reference out to its own enumeration of permissible secondary literals? 

Could do so, although think we might run into issues if the set of primary enumerations was in any way volatile (I have of course been assured these wont change, but that usually means they'll change!)

I'll mull it through - cheers for comment, much appreciated.

4
Hi all
I'm trying to model out a class diagram and I'm struggling with how best to approach a particular aspect.

It's probably best to give the business explanation - I have two availability statuses, one primary and one secondary, and the secondary is effectively a further enumeration of the first - e.g. a primary might be 'busy' and the secondary 'in a meeting' or 'attending a training course' - the secondary is therefore limited by the primary. 

The primary is used to see if work can be assigned, the secondary to understand how long until the status will expire, so they both need to be modelled out.  I can easily set the primary to refer to one enumeration, the secondary to a separate enumeration, but I'm not sure how to represent that the secondary enumerations are partitioned by primary (e.g. 'In a meeting' is valid for primary state of busy, but not for primary state of 'on break' which might have enumerations of 'comfort break', 'meal break' etc.)

Would I better just having one class of availability, with attributes of Primary and Secondary each with separate associations to the requisite enumeration classes, or is there a means of modelling out this dependency having these statuses as separate classes?

I'm probably missing an easy trick here, but I'm going round in circles on this one.

Many thanks!

5
Hi Geert

The add-in seems to be working fine, it was an error on my part with the pathname.

Thanks again for sharing the add-in and for your help in identifying the problem

Regards

Matt

6
Many thanks again Geert - email sent

7
Hi Geert - I've created a simple JSON model and, when trying to export the JSON schema, I get the following error:
an error has occurred while attempting to communicate with an Addin:
EA JSON (EAJSON:EAJSONAddin)
"EA_Menuclick Invalid URI: The format of the URI could not be determined"
Please contact the add-in provider for assistance.

would this indicate I've installed the Addin incorrectly or utilised the addin incorrectly?  I created a schema and associated a single element to it (using a simple UML-type assocation), with two attributes added to the element.  I right-clicked on the schema entity and used extension - Ea JSON - Generate JSON schema which kicked up the error.

I appreciate your guide states to use the 'specialisation' menu but I cannot locate this on my version of Sparx (still on 12)

All advice gratefully received

8
Great, many thanks - I'll give your add-in a try, much appreciated!

9
Many thanks Geert, much appreciated.

I've had a look at the add-in you've kindly pointed me to, am i correct in saying that I'd need to model out the JSON entities as a separate diagram/model prior to exporting?  Or does the add-in allow me to create JSON straight from UML class?  Having to model separately would not be the end of the world, as at least the logical design and implementation design would be in the same tool, making version control etc easier.

(Apologies if there is an obvious response to my question, I'm afraid I've not used the schema generation aspects before and I certainly can't see how to do this through my version of EA!  I think an upgrade may well be worth investing in)

10
Hi all

I generally use Sparx to capture high-level information and UML class models as part of an enterprise architectural view, and hand off to solution designers/data modellers who use a different tool for datatable/object design and development.

I'm looking now to do all of this this within Sparx (eta: focusing in the first instance upon JSON), keeping a direct line between the logical design and the implementation objects, but i'm not sure if V12 Desktop supports the creation of a schema/object - the schema generator tool appears to be either a later addition or part of a more fully featured licence.

I assume upgrading to V15 professional would give me the appropriate functionality?  I would also appreciate any guidance on whether a project created in V12 would load/be fully usable with V15 before i pay for upgrade (v12 is a bit date,d so should perhaps upgrade anyway).

Apologies if answered elsewhere, I've found quite a few dated threads on this but none quite answered the question.

All advice gratefully received.

Pages: [1]