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

Pages: 1 ... 3 4 [5]
61
Uml Process / Re: V12 - Add new package to Version Controlled pa
« on: September 11, 2015, 04:39:57 pm »
I hope I understood you correct in what you want to achieve.

When you want a newly created "sub-package" below a version cotrolled parent package to be part of the "version control" of the parent package you have to do no further steps.
When checking in the parent package the newly created sub-package (and its complete content) will automatically be exported as well and checked in inside the *.xml file of the parent package.

When you want a newly created "sub-package" below a version cotrolled parent package to be separately under "version control" you have to right-click on the sub-package'/Package Control/Configure', thus creating a separate *.xml file with only teh content of the sub-package.
The *.xml file of the parent package will then only reference the other xml file (after the "parent xml" has been exported and checked in of course).

Kind regards

62
Uml Process / Re: Set default notes for newly created elements
« on: December 18, 2012, 11:26:02 pm »
The element in the project template package is already a stereotyped one.

Size and background color are taken from the template. But the element's notes stay blank.

63
Uml Process / Re: Set default notes for newly created elements
« on: December 14, 2012, 01:21:48 am »
Since months the "template package" does not work any more :(.

I tried
- reset the template package (set to another package and set it back to the real template package)
- disconnect the template package from package control (template was under version control in ClearCase up to now)
- reimport our custom UML profile

Nothing helped. Whenever I create a new element, that has a template in the template package, the default "note" text is ignored.

As the newly created element has a "customized" stereotype with a customized shape script I fear this has to to with the problem. But I wonder why it worked for over a year until September 2012.

64
Uml Process / Re: Set default notes for newly created elements
« on: August 16, 2011, 07:30:40 pm »
Quite a helpful feature. Up to now I didn't even know that there is something like a "template package".
Thanks for the help.

65
Uml Process / Set default notes for newly created elements
« on: August 16, 2011, 05:42:05 pm »
In our UML profile we defined a stereotype "Invariant" based on the metaclass Requirement.
Is it possible to set a "default comment" for elements based on a stereotype?

I thought of extending the shape script in some way. Currently we display the notes of such an element with the shape script command printwrapped("#notes#"). But this simplay takes the notes that the user enters for the element.
I want to set a default note that may be edited by the user.

66
Args, you are right.
I saw this in the documentation but just did not "see" it.

Thanks a lot.

67
Hello,

I would like to compare the value of a tag with a fixed string.
The elements, where to script applies, have a tag called "ASIL". This tag has an enum type (only five different values selectable in drop-down list).
The shape script shall append an "A" to the name of the element in the diagram if the tag has the value "ASIL A".
The only thing what is not working is the string compare in line 3.

Any idea how strings can be compared?
If not: any alternatives?
Code: [Select]
if(HasTag("ASIL"))
{
   if( "#tag:ASIL#" == "ASIL A") {
      println("#NAME#.(A)");
   }
   else {
      println("#NAME#.(#tag:ASIL#)");
   }
}

68
Hello,

I am looking for information concerning version control (package control) in EA and the automation interface.

My search in the EA help didn't answer the question if version control of packages is accessible via the automation interfaces or not.

I would like to run a "Get all latest" on an eap file called from a python script that uses the EA automation script.
Used EA version is 9.3.

69
;) I would never test this on a "productive" model. That is why my local hard disk is filled with eap files for testing "things".
I am not very keen on being killed by my colleagues.

70
Thank you very much :).
This seems to be the way I need to go.

71
Your second points sound quite interesting.
So you say it is possible to have an mechanism that can import scripts and update the scripts stored inside the model?

Can you give me some hints or keywords for searching more info on this?
Thanks a lot.

72
Hello,

I have a bunch of scripts (JScript) that I use to create some numbers I need for a report on the EA model.
Example: A script that finds all elements in a model with a special tagged value.

As we have many EA models I need to use the same scripts in all models.
I would like to have the script source codes stored outside the models on a network share or a version control repository.
But as far as I can see the scripts have to be stored "inside" the EA model (EA 9.3 menu View -> Scripting).

Is there a way to run scripts that are stored outside EA?
It is really annoying writing /extending/bugfixing a script in one model and deploy it to all other models.

Any idea is welcome.
Except for writing add-ins where we would need something like C# or Visual whatever ;).

73
Hello,
I did not find methods in the Automation API to apply and release user locks of model elements.

The purpose of my script is to find all elements containing a special tagged value and delete that tagged value.
As our model has "enabled security" the deleting can only happen when the element is locked for me, when I am running that script.
Instead of locking the whole model (about 20 users are working at the same time) I though of only locking the current element, delete the tag and unlock the element. Then move to the next element.
The other users wouldn't even notive that the script was executed.

Thanks for any idea.

Pages: 1 ... 3 4 [5]