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

Pages: 1 ... 5 6 [7] 8 9 ... 40
91
Thanks Nabil. That's opened up a whole new world for me on Sparx EA functionality.

92
So I'm looking that the report template editor the other day and in the report editor tree I see Package>Element>Risk and it got me thinking how does that work? I can Package>Element>Requirement works as each element can have embedded requirements but couldn't see how I would model risks associated with an element so that I can get it out in a report by ticking Package>Element>Risk in the report tree. Any thoughts guys?
The reason I'm asking is I use Archimate work packages for roadmaps and I've been asked to capture risks associated with each work package. I could just nest the risks under each work package but when I saw the report editor it got me thinking I'm I missing something.

93
Automation Interface, Add-Ins and Tools / Re: Project Template in MDG
« on: January 27, 2018, 07:33:57 am »
Not sure why you are asking about embedding project templates in MDG. If its so you can use a wizard to create a structure in Sparx then I export the template in xml format and use model templates in the MDG. I add the following code to the MTS that generates the MDG as an example

Code: [Select]
<ModelTemplates>
<Model name="FEAF V2.0" description="FEAF V2.0 Reference Model" location="FEAF.xml" default="yes" icon="34" filter="Enterprise Architecture" />
<Model name="GEA-NZ V3.1" description="NZ Government Enterprise Architecture Reference Model V3.1" location="GEANZ V3-1.xml" default="yes" icon="34" filter="Enterprise Architecture" />
<Model name="APQC PCF V6.1.0" description="APQC Process Classification Framework" location="APQC PCF.xml" default="yes" icon="34" filter="Enterprise Architecture" />
</ModelTemplates>

I put the xml project template files and the MDG file in one location and reference it in Sparx EA from the MDG dialog advanced button.

94
PackageID is not the same as ElementID.
You have to use Package.Element.ElementID

Geert
Of course, that worked a treat. Thanks Geert.

95
I'm trying to get a jscript to work that creates a diagram for each package and adds child elements and packages to the diagram.  I've managed to get the child elements to be added to the diagram but not the child packages.

I think its because I'm passing a Package ID to Diagram.Object.ElementID

theDiagramObject.ElementID( childElement.ElementID);
//Substituted the above code that works with element with this below
theDiagramObject.ElementID( childPackage.PackageID);

Here is a snippet of code
Code: [Select]
function AddDiagramToPackage(  thePackage )
{
    // Cast thePackage to EA.Package so we get intellisense
    var currentPackage as EA.Package;
    currentPackage = thePackage;

    var theDiagram as EA.Diagram;

    theDiagram = thePackage.Diagrams.AddNew( thePackage.Name, "Logical" );
    theDiagram.Update();

    var diagramObjects as EA.Collection;
    diagramObjects = theDiagram.DiagramObjects;
 
    // iterate through all child elements and add them to the diagram -THIS DOES WORK
    var elementEnumerator = new Enumerator( currentPackage.Elements );
    while ( !elementEnumerator.atEnd() )
    {
        var childElement as EA.Element;
        childElement = elementEnumerator.item();
var theDiagramObject as EA.DiagramObject;
theDiagramObject = diagramObjects.AddNew("","");
theDiagramObject.ElementID( childElement.ElementID );
theDiagramObject.Update();
  elementEnumerator.moveNext();
    }

    // iterate through all child packages and add them to the diagram -THIS DOESN'T WORK
    var childPackageEnumerator = new Enumerator( currentPackage.Packages );
    while ( !childPackageEnumerator.atEnd() )
    {
        var childPackage as EA.Package;
        childPackage = childPackageEnumerator.item();
childPackage.ElementID;
  var theDiagramObject as EA.DiagramObject;
theDiagramObject = diagramObjects.AddNew("","");
theDiagramObject.ElementID( childPackage.PackageID);
theDiagramObject.Update();

        childPackageEnumerator.moveNext();
    }

I've scoured the help but can't seem to see how to add packages to a diagram via the automation interface. Any thoughts/help welcome.

96
General Board / Re: Enterprise Architect - User Tips
« on: January 03, 2018, 08:29:02 am »
Whilst I admire your enthusiasm I think there are two problems with your approach.

97
General Board / Re: Repository security
« on: November 28, 2017, 01:43:40 pm »
Thanks Simon,
Had a feeling the express version might not have all the features.

98
General Board / Re: Repository security
« on: November 27, 2017, 01:57:14 pm »
There is actually a feature that uses row level locking on SQL Server and Oracle repositories.

It comes with pro cloud server, but I'm not sure how to use it.


Thats good to know - not using pro cloud server just yet so in a similar boat of knowing little about it. Was hoping to have time to look into it with the recent offer Free: Pro Cloud Server Express but alas other urgent things keep drawing my attention away from it.
http://www.sparxsystems.com/forums/smf/index.php/topic,38812.0.html

99
General Board / Re: Repository security
« on: November 25, 2017, 08:34:13 am »
You can create a group and lock the package with a group lock. Then assign users to the group to grant read/write access to that package. There is no mechanism to hide content from users unless you have multiple repositories and prevent users from access a repository.

100
General Board / Re: IS there a guide to recommended security groups
« on: November 23, 2017, 12:03:31 pm »
I've set mine security up in two dimensions
a) disciplines like business analyst, architect, etc
b) competence. i.e. beginner, intermediate, advanced, admin

where a) allows packages to be locked to certain users like business processes to BAs
and b) restricts what they can do. The beginners are very limited but advanced and admin can do just about everything.

Then allocate one or more for group a) so it restricts what package tree they can edit and one for group b) to restrict what they can do in that package tree.

BTW
Follow structure similar to TOGAF/Archimate

-Business Architecture
-Application Architecture
-Data Architecture
-Infrastructure Architecture

Hope that helps.

101
:) its helpful, thanks @ Sunshine
karma points welcome  ;)

102
I use the phase field and the filter to include one or more filters. So I might have a number of elements with phase 1.0, 2.0, 3.0 etc then create filters that include phase = '1.0', '2.0', '3.0' and enable one or more filters.
Now there are two patterns I've observed using this
a) Phased approach to implementing some system so that when the last phase is reached everything is included and all the filters enabled.
b) A phased approach to adding some components and retiring others. This requires a slightly different approach where in the phase I include the phases in which the component exists. For example if component A already exists and component B is being add lets say in phase 2 to replace it I might have 3 phases.
Phase 1.0 - component A only
Phase 2.0 - component A and B exist
Phase 3.0 - component B exists and component B has been retired.

Component A phase field = '1.0, 2.0'
Component B phase field = '2.0, 3.0'

I would use a filter that says contains rather than equals a phase value like '3.0'
Hope that helps.
 :)

103
...
There are also diagram filters that can gray out or hide elements based on selection criteria, but I have no idea if these can be made to be applied during document generation...
Enable the filter then generate the doc

104
Upon reflection of the suggestions from various people in previous posts I think if I had the problem I'd use fragment template with a custom script to navigate the relationships. I must admit I'd forgotten about fragment templates with scripts in my original suggestion.

Wonderful sharing ideas in the community to get a better outcomes isn't it? Thats what I love about this community - great people sharing their thoughts and ideas.

105
I've used phase to indicate which phase the requirements should be implemented in. You can then add a filter in the doc gen template to only include requirements, usecases etc for a particular phase. Now the trick is to use the "one of..." option on the element filter so that for phase 2 you include phase 1 as well 2. For example  "1.0,2.0" - can't remember if that is the correction format comma separated values or whether its semi-colons or something else but I think you get the idea.

Pages: 1 ... 5 6 [7] 8 9 ... 40