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

Pages: [1] 2 3 ... 7
1
General Board / Hide element name on diagram?
« on: November 01, 2018, 09:30:12 pm »
Hi!

I was looking for a way to only show the classifier name on a diagram, but didn't find any. Is there a way to hide element name, to only show the classifier?

I was thinking of show alias, and perhaps make a script that sets the alias to the classifier name, but the instances have no alias?

Thanks!

2
General Board / Re: When to use instance and property
« on: October 29, 2018, 09:42:02 pm »
Hmm, apples and pears being compared here? An instance is something concrete made from a blueprint. A property is something that makes the blueprint (and its instance) unique.

q.

I define a System-of-systems where a system is defined as
Quote
An integrated set of elements, subsystems, or assemblies that accomplish a defined objective. These elements include products (hardware, software, firmware), processes, people, information, techniques, facilities, services, and other support elements.

Every system is consists of an organization and a technical subsystem (which can consist of several systems).

The organization have roles.

What I have a hard time grasping is how "deep" the blueprint should be.

We want to use the blueprint for different occasions, let's say two times a year. Role A and Role B are defined as properties, blueprinted, of the organization for System 1.

I create an instance of System 1 for the first occasion, and inherit, the organization and roles. I can select from the parts/properties window which role should be a part of the system 1 organization instance.

Lets say for the first occasion and instance we only have Role A, and the multiplicity is 3.

The next occasion, I create a new instance of System 1, inherit the Organization and once again use the parts/properties window to select roles. This time I choose both Role A and Role B. For Role A I change the multiplicity to 2, and the multiplicity for Role B is 1.

But since I now changed the multiplicity for Role A, if I have a look at the instance for the first occasion and organization, it says Role A has a multiplicity of 2, which is not correct.

I might be over explaining this, because I think you all catch my drift, and I guess my main issue is:

What should be blueprinted (parts/properties) and what should be instances? When do I inherit parts/properties?

3
General Board / When to use instance and property
« on: October 29, 2018, 06:49:13 pm »
Hello!

We are modelling with the UAF-mdg, and we would say we follow the framework correctly.

I do wonder though, is there any "correct" situation when to use instance instead of property or vice versa?

The new objects which are created when making an instance/property are not the same. Is there any "golden rule" for when to create an instance or property?

The problem we encountered was when setting multiplicity on inherited roles.

Situation A use role 1 (inherited), with multiplicity 3.

In situation B role 1 (inherited) is used as well but with multiplicity 2. Since the role is inherited it changes the role 1 in situation A multiplicity to 2 also. This is a situation where we decided to create instances instead.

Is the use of instances/properties situational? Use what best fits your demands?

I would appreciate guidance!

Thank you!

4
Solution:

pdata1 = guid, not objectid

...

 :-X

5
Hi!

I have an SQL query where I collect roles which are inherited, denoted with the ^-sign.

Code: [Select]
select roll.ea_guid as CLASSGUID, roll.Object_Type as CLASSTYPE, roll.Name as rName, roll.Note as rNote, rollclassifier.Name as rcName, rollclassifier.Note as rcNote, org.Name as oName, org.Note as oNote, instans.Name as iName, instans.Note as iNote

from (((t_object roll
inner join t_object org on roll.parentid = org.object_id)
inner join t_object instans on org.parentid = instans.object_id)
left join t_object rollclassifier on rollclassifier.Object_ID = roll.pdata1)

where instans.Object_ID = #OBJECTID#
and roll.stereotype = 'ResourceRole'

roll.Note is empty, although when I select it in the project browser, or on a diagram, the Notes section has text. My best guess is that it is an inherited property and therefore not displayed?

Also I try to find the classifier/pdata1 of this role, with no results, i.e. rollclassifier.Name and .Note is empty. Perhaps wrong type of join?

org.Name and .Note as well as instans.Name and .Note are displayed.


Thank you for your time!

6
Automation Interface, Add-Ins and Tools / Re: SQL to find classifier
« on: October 18, 2018, 08:22:11 pm »
Solved it like this:

Code: [Select]
select o.ea_guid as CLASSGUID, o.Object_Type as CLASSTYPE, o.Name as Classifier, o2.Name as Instance
from t_object o
inner join t_object o2 on o.ea_guid = o2.PDATA1
where o2.Object_ID = #OBJECTID#

7
Automation Interface, Add-Ins and Tools / Re: SQL to find classifier
« on: October 18, 2018, 08:10:55 pm »
When I run that positioned on an object it works and lists its classifier.

q.

Well nothing happens for me. I have triple checked that the #OBJECTID# I use is an instance of an object, therefore it definitely should have an classifier? Looks like it on a diagram at least.

Ok, might have figured out the problem. They are properties. If I right click on the object I have "Locate Property Type", not "Locate Classifier".


8
Automation Interface, Add-Ins and Tools / Re: SQL to find classifier
« on: October 18, 2018, 07:44:36 pm »
When I run that positioned on an object it works and lists its classifier.

q.

Well nothing happens for me. I have triple checked that the #OBJECTID# I use is an instance of an object, therefore it definitely should have an classifier? Looks like it on a diagram at least.

9
Automation Interface, Add-Ins and Tools / Re: SQL to find classifier
« on: October 18, 2018, 07:42:39 pm »
Classifier_id matches the object_id, not the GUID.

q.

What do you mean? .Classifier_ID doesn't event exist? Only .Classifier and .Classifier_guid, I tried using .Classifier as Object_ID

10
Automation Interface, Add-Ins and Tools / SQL to find classifier
« on: October 18, 2018, 06:51:13 pm »
Hello!

I don't really get why I don't get any results for this SQL-query...

Code: [Select]
select o.ea_guid as CLASSGUID, o.Object_Type as CLASSTYPE, o.Name
from t_object o, t_object o2
where o2.Object_ID = #OBJECTID#
and o.ea_guid = o2.Classifier_guid

If I change the and statement to
Code: [Select]
and o.Object_ID = o2.ParentID

I get the correct parent, but it doesn't work with classifier?

What am I missing? It's such a small and simple search  :-\

and what does o2.Classifier return? I googled and found:

Quote from: Inside Enterprise Architect by Thomas Kilian
NULL or 0 where not defined. If > 0 then it is the
    primary key of the element which classifies the element

Tried to use it as a returning object ID with no result.

Thanks!

11
Solved it by showing the children through SQL-fragment.

12
That is the only feasible way.

Geert

Hey Geert!

I think we discussed my new problem before;

I send an element for documentation with a document script with assigned template. I want to show the following:

sent to documentation:
<<ActivityPartition>>
(element) Element.name (Element.Classifier) performs (child element) Element.Name (Element.Classifier) (/child element) (/element)

No child elements in documentation. I think you told me this was a bug before.

Using v14.1

13
Hello  ;D

I'm going to try a SQL query, seems easiest.

14
Automation Interface, Add-Ins and Tools / Get what element is classifier of?
« on: September 28, 2018, 12:14:03 am »
Hi!

When handling an element there are a lot of attributes (?) to use in order to get classifier information, e.g. ClassifierID, ClassifierName, ClassifierType.

How do I go the other way?

Element A is a classifier for a, aa and aaa. I don't see any link/relation to the instances.

The reason I want this is because I have used Post elements as classifier of ActivityPartitions. I have all my Posts accesible in my script, all I want to do is collect all the ActivityPartitions and list all owned actions.

Can I do this an easy way?  8)


15
I'm also no SQL guru but string operations are likely to b RDBMS dependent. Google for something like "sql server string concat" which gives you plenty of results.

q.

Thank you!

Pages: [1] 2 3 ... 7