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

Pages: [1]
1
General Board / Remove stereotypes from drop down list
« on: February 13, 2015, 03:36:51 am »
Hi,

I wonder if there is a way to remove the stereotypes from the stereotypes that exist in the stereotypes drop down in the properties, like e.g. ArchiMate_Actor and so on.

I only like to see the stereotypes, that are defined in the UML-Types of a project.

Any suggestion?

Thanks!
Markus

2
Bugs and Issues / Re: Accessing properties from the Code Template Ed
« on: October 08, 2011, 03:06:45 am »
Hi Simon, thanks a lot, that's it!  :)

I corrected the syntax to:

Code: [Select]
"%list="Connector__Assoziation" connectorGUID==linkGUID%"

... I do not even need the separator, there can always only be one link direction for each linked attribute.

cheers!  ;)

3
Bugs and Issues / Re: Accessing properties from the Code Template Ed
« on: October 07, 2011, 06:34:14 am »
Simon, I do not understand how to add a list over the connectors. I added a custom template of type connector, named "Assoziation" and placed it at the position where I want to use the connector property 'Direction'.

Code: [Select]
...
%if linkCard != ""%
$direction=%list="Connector__Assoziation" @separator="\n"%
@system.annotation.LinkDirection (
            direction="$direction"
)
%endIf%
...

the code above results in:

Code: [Select]
...
@system.annotation.LinkDirection (
            direction="connectorDirection=Source -> Destination
connectorDirection=Source -> Destination
connectorDirection=Bi-Directional
connectorDirection=Source -> Destination
connectorDirection=Source -> Destination
connectorDirection=Source -> Destination"
)
public java.util.Set<SessionStatus> sessionStatus;
...

where the "Connector__Assoziation" template is:

Code: [Select]
connectorDirection=%connectorDirection%

and the following is what I need:
Code: [Select]
...
@system.annotation.LinkDirection (
            direction="connectorDirection=Source -> Destination"
)
public java.util.Set<SessionStatus> sessionStatus;
...

What am I doing wrong?  :o

4
Bugs and Issues / Re: Accessing properties from the Code Template Ed
« on: October 05, 2011, 05:07:45 am »
... I cannot find any connector templates in the code template editor - do you mean the templates in the transformation editor? I want to access the properties from the Linked Attribute Template.

I have tried adding a custom template of type Connector, but I still cannot access the properties I need.

Is there a difference between the available field substitution macros and the template I use? - Aren't these always the same?

Any help is welcome  8-)

5
Bugs and Issues / Accessing properties from the Code Template Editor
« on: October 03, 2011, 05:59:50 pm »
Hi,

I want to read the property "Direction" of an assoziation between two classes from the Code Template Editor - there is no field substitution macro available to access it directly, so I tried %connectorTag:"Direction"%, %connectorSourceTag:"Direction"%, ... without success.

Any idea how to do this? (EA9.1.910)

Cheers,
mrks

6
Hi  ;)

I am trying to read the value of an attribut's constraint from the code template editor to create an annotation (Rules->Contraints menu).

I want to use a custom constraint type like 'columnType' that has the value e.g. 'text' to specify a database column type that is used by a following process to create a db access layer.  

... how can I read the value?  'attConst' doesnt work.

anyone?

7
Hi, I figured it out, the following does what I expect
Code: [Select]
@system.annotation.LinkProperties (
      direction="%connectorDirection%",
      %if className == connectorSourceElemName%position="Source",%endIf%%if className == connectorDestElemName%position="Destination",%endIf%      
      sourceMultiplicity="%connectorSourceMultiplicity%",
      destinationMultiplicity="%connectorDestMultiplicity%"
)

... e.g. result

Code: [Select]
     @system.annotation.LinkProperties (
            direction="Bi-Directional",
            position="Destination",
            sourceMultiplicity="1",
            destinationMultiplicity="0..1"
      )

I'm fine with that but there might be a easier way to do this - Cheers!

8
Hi Simon, I already added a connector, and I can read the values of e.g. %connectorDirection% - I just wonder how to get the values of the properties "Source" and "Target" - cheers!

9
Hi, I try to access the properties Source and Target that are visible in the accociation properties dialog from the code template editor. I was able to create a list and add it to a custom connector template.

The properties 'Name, Alias, ...' are available with the related macros, like e.g. %connectorDirection% - How can I access Source and Target?

the following all do not work:

Code: [Select]
%linkSource%
%linkTarget%
%connectorTag:"Source"%
%connectorTag:"Target"%
%attTag:"Source"%
%attTag:"Target"%
%linkTag:"Source"%
%linkTag:"Target"%
%connectorSourceTag:"Source"%
%connectorSourceTag:"Target"%
any suggestion?

10
Thanks! your blogs seem to be very useful!

I will give it a try later. for now I hope to find a more easy solution to read the link Source property - cheers!

11
Hi Geert - that looks pretty cool, ...

I have never heard about the add in framework before - it is currently confusing me a bit, can you please clearify... is this an extension or alternative to using the templates?

12
Quote
Repository.SQLQuery()

... can you give an example on this? - cheers

Pages: [1]