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

Pages: [1] 2
1
General Board / Re: Changeing a Stereo Types
« on: July 12, 2012, 12:59:57 am »
Fixed
Its another bug in EA !!!!!!!

if there is no shapescript assigned to the new stereotype then the shape is no updated


argh!!!!!!!!!

2
General Board / Changeing a Stereo Types
« on: July 12, 2012, 12:16:40 am »
            

The Jscript below chnages the stereo type ok,

var currentElement as EA.Element;
currentElement = elementEnumerator.item();

currentElement.Stereotype = "New StereoType";
currentElement.Update();
currentElement.Elements.Refresh();

However whilst in the GUI the stereo type has changed the shaoe scripts associated with the new stero type  have not been run and the element still has the appearance of the old stero type.

Even a docuement reload does not have any effect.

When running vis the GUI the shapescripts are also run

Am I missing a line


Andrew

3
General Board / Using Jscript to create filters and HTML documents
« on: June 14, 2012, 11:46:59 pm »

I believe i have found a way to create HTML documents from the API, but i can't find any ways to read / set filters , is this possible from jscript ??

Andrew

4
General Board / Re: Reading duplicate generalised attributes
« on: June 14, 2012, 11:44:53 pm »
works thanks,
about 3/4 of a day to code
Andrew

5
General Board / Re: Reading duplicate generalised attributes
« on: June 13, 2012, 05:02:01 pm »
Geert,
From point 2 I assume you mean follow the connection and grab he tags locally?? As the EX is the only way to see the values remotely.
Andrew

6
General Board / Re: Reading duplicate generalised attributes
« on: June 12, 2012, 05:31:06 pm »
Bit more information. I know abotu the show duplicate tags option from the following URL
http://www.sparxsystems.com/uml_tool_guide/modeling_tool_features/showduplicatetags.htm

How ever even for the above example and using the EA sample code as a basis i can not see these values though the script. I have enclosed the script below


!INC Local Scripts.EAConstants-JScript

/*
 * Examples of how to access and use element extras - such as scenarios, constraints
 * and requirements.
 *
 * NOTE: Requires an element to be selected in the Project Browser
 *
 * Related APIs
 * =================================================================================
 * Element API - http://www.sparxsystems.com.au/EAUserGuide/index.html?element2.htm
 */
function ElementExtrasExample()
{
      // Show the script output window
      Repository.EnsureOutputVisible( "Script" );

      // Get the currently selected element in the tree to work on
      var theElement as EA.Element;
      theElement = Repository.GetTreeSelectedObject();
      
      if ( theElement != null && theElement.ObjectType == otElement )
      {
            var addedAttributeID = 0;

            Session.Output( "JScript ELEMENT EXTRAS EXAMPLE" );
            Session.Output( "=======================================" );
            Session.Output( "Working on element '" + theElement.Name + "' (Type=" + theElement.Type +
                  ", ID=" + theElement.ElementID + ")" );
            

            // ==================================================
            // MANAGE ELEMENT TAGGED VALUES
            // ==================================================
            Session.Output( "Tagged Values" );
            
            // Add a new tag
            var tags as EA.Collection;
            tags = theElement.TaggedValuesEX;

            
            
            // List all element tag
            for ( var i = 0 ; i < tags.Count ; i++ )
            {
                  var currentTag as EA.TaggedValue;
                  currentTag = tags.GetAt( i );
                  
                  Session.Output( "    Tag Name: " + currentTag.Name +"    Tag Value: " + currentTag.Value );
                  // Delete the tagged value that we just added
            }
            
            tags = null;            
            
      }      
}

ElementExtrasExample();

7
General Board / Re: Reading duplicate generalised attributes
« on: June 12, 2012, 05:06:01 pm »
No answers so far is this even possible?

Lets put this another way

If i have 3 classes each with a tag called MyTag and MyTag is set to Class1 for the 1st class
Class2 for the 2nd class
Class 3 for the 3rd Class

if Class 3 Generalises the other two classes, which can't I see all the tag values in class1, like I can if the tag names are different? What do I have to do to be able to see them?

Kind Regards
Andrew

8
General Board / Reading duplicate generalised attributes
« on: June 11, 2012, 09:05:18 pm »
Dear All,
I’m creating some Jscript to read the extended (Generalised from other elements) attributes in a class element. This works well and I can pick up and work on the attributes ok.
The only issue is if the element I am reading the attributes from, generalises two or more other elements and the names of the attributes generalised  are the same in the elements I only see one via JScript, (Although the others can be seen when viewed in the EA GUI.

I have seen an attribute called AllowDuplicates, would this allow me to see all the generalised attributes, including those with the same name. If so how do I set the AllowDuplicates to allow this?
Kind Regards
Andrew






9
General Board / Re: HasTag and realised MDG tags
« on: May 03, 2012, 07:48:50 pm »
Thanks for the help , yes your correct.
In your view is EA a suitable platform for this use ?
Andrew

10
General Board / Re: HasTag and realised MDG tags
« on: May 03, 2012, 05:58:47 pm »
Thanks qwerty,
Tried the interface (via MDG), and no luck

Let me explain what I am trying to achieve, as there is the possibility that I am going around this the wrong way.

I trying to create an overall Technical Architecture, and link this to a Technology Roadmap. So as the roadmap is changed so is the Technical Architecture diagram.

I was going to follow the deployment UML model for this but; this did not appear to meet my requirements so I tried with classes.

These classes are extended with MDG to have predefined tags, drop down menus to keep consistency, and shape scripts (this is where I am stuck).

I planned to have each item on the technical roadmap defined (including details and architectural status), and then link the execution environment and nodes (represented as classes)  to them (realised) so I could pass down the tagged values (including architectural status),more importantly one change to the technology class will  update all relevant (realised) elements.

I have been trying this with servers which realise two other classes one for the OS and one for the H/W along with the individual architectural status (yes I have used differed tagged value names for the OS and h/w classes).  I would then use shape scripts on the class representing the server to

1.      show a small Icon of the OS
2.      show the architectural status i.e. Strategic  etc of the OS
3.      show the architectural status i.e. Strategic  etc of the H/W
on each class representing a server

If this worked, it  would be extended to the Execution environments (again represented as classes.)

In this example if the OS moved from Strategic to Avoid all I would need to change would be the class representing the OS and any related classes (representing servers) would automatically update.

Additionally (not tried yet) I would like to product reports for the technical roadmap and the technical Architecture probably will be split by applications  although there will be links between the apps as the diagram would be too big otherwise.

I this possible in EA and have I used the completely wrong approach, if so what’s the correct one.

Kind Regards
Andrew

11
General Board / Re: HasTag and realised MDG tags
« on: May 03, 2012, 04:06:33 am »
Had a read , but the requirements looks different. I want to use the realised values in a shape script, so i can change the appearance of the shape depending on the value of the realised values. This way i can change one value and the value if then be automatically propigated to all reated classes, and their shapes

Is this even  possible with in EA

12
General Board / HasTag and realised MDG tags
« on: May 03, 2012, 01:01:06 am »


I understand how HasTags work as below,
if (HasTag("Tag","Value"))

{
do stuff
}

These are fine for locally defined tags or those craeted by MDG.
However how can i get them to work for realised tags. Especailly if the shape script is generic. and the script will be used for may realised values from many classes.

Kind Regards
Andrew


13
General Board / Re: MDG Shape scripts and extended nodes not worki
« on: May 01, 2012, 09:37:19 pm »
Found the issue.
I had a sterotype with the same name which also applied to nodes in the EA instance I was using for testing of the MDG.
Once i removed the sterotype everything started to work
Andrew

14
General Board / MDG Shape scripts and extended nodes not working
« on: May 01, 2012, 06:48:03 pm »
I’ve been working with MDG technologies extending both nodes and execution environments for deployment.
I can get shape scripts to trigger for extended execution environments, but not for extended nodes.
If I change the extension from node to execution environment then shape script works

I have even tried very basic shape scripts with just a println statement in

Any idea why and how to get shape scripts to work with extended nodes using MDG?

Kind Regards
Andrew

15
General Board / Deployment Diagrams - repost in correct forum
« on: April 25, 2012, 11:00:46 pm »



I’m new to EA, so hopefully there is a simple answer to this and I’m just being silly.
I am trying to create a deployment diagram which shows our entire environment and all the communications (relationships)  between the nodes for each of our applications and actors.


I understand that this diagram will be huge and unreadable; however this would be the master diagram.

The above part looks fairly easy

The part I am having difficulty with is the next section.

I plan to set up individual diagrams for each of the applications, and then by placing the actor for the application on the diagram I am looking for EA to automatically draw this diagram based on the master diagram.

I had considered using Tagged values, but I can’t find a way to draw a based on tagged values in nodes.

I have also looked at relationships (with add relationships), however although this worked to a degree, all the relationships for all applications are followed and not just the one for the application of choice. Additionally the number of levels to follow is limited to 5, so not all the nodes are included.  I could net find a way to set a tag on the relation ships so I could say follow relationships for this app only

The above is the part I am having real difficulty with, However I have also discovered that alternate images appear to be dependant on the diagram and not the node, as the alternate images being set in the master diagram are not shown on the individual app diagrams

Any help would be appreciated

Andrew

Pages: [1] 2