Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: gregf on December 14, 2005, 01:27:06 pm

Title: Mass change of Activities to Actions
Post by: gregf on December 14, 2005, 01:27:06 pm
I've created several activity diagrams using only Activity nodes. I'd like to redo these diagrams with activities as actions, so I can leverage Activties, Subactivities, and Actions.

Is there a way to do this?

Thanks

Greg
Title: Re: Mass change of Activities to Actions
Post by: mikewhit on December 15, 2005, 12:45:09 am
leverage is a noun ... please ?!
;-)
Title: Re: Mass change of Activities to Actions
Post by: Graham_Moir on December 15, 2005, 01:10:00 am
Yes, "leverage" is a noun, heavily used in Financial Services.

I too would be interested in doing this, but it seems the "Change type" option on the element advanced menu is only available when you have a single element selected.    May be this is an enhancement request.

Following more general thread probably also applies

http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.pl?board=suggestions;action=display;num=1131225620
Title: Re: Mass change of Activities to Actions
Post by: gregf on December 15, 2005, 12:54:48 pm
Main Entry: leverage
Function: transitive verb
Inflected Form(s): -aged; -ag·ing
: to provide (as a corporation) or supplement (as money) with leverage; also : to enhance as if by supplying with financial leverage

Ok, my usage is poor, but it is a verb...

=\


Title: Re: Mass change of Activities to Actions
Post by: thomaskilian on December 15, 2005, 01:42:09 pm
Mike 's not that bad. But probably he has a 2nd job as English teacher  ;D
Title: Re: Mass change of Activities to Actions
Post by: Graham_Moir on December 16, 2005, 04:14:09 am
It's both a verb and noun.  As a noun in Financial Services it is equivalent to "gearing".
Title: Re: Mass change of Activities to Actions
Post by: mikewhit on December 16, 2005, 05:21:44 am
No, I just hate its usage as a verb.

It presumably comes from 'leveraged buyout' where the value of shares in the purchased company is used to increase the value of the bid - or something like that.

The share values gives additional 'leverage' to themselves. That's fine.

But I increasingly notice it lazily used as a verb to just to mean "apply" or "use", without any concept of obtaining additional 'leverage' (improving a performance ratio by its own effort), and hence dislike it being used this way, since it properly refers to the property possessed by a lever.

Also on my hit list: "prepend" - what's wrong with the real word "prefix" ?

Have a good weekend, modellers !
Title: SUCCESS!!! - Mass change of Activities to Actions
Post by: gregf on December 16, 2005, 09:19:55 am
I leveraged my database skills to find a solution to this problem.

=)

1. Rename yourprojectname.EAP to yourprojectname.MDB
2. Open access database file with MS access
3. Open the t_object table
4. Update t_object set object_type = 'Action' where object_type = 'Activity'

While I DO NOT guarantee it's safety, this hack worked perfectly for me with no side effects, changing everything from an activity to an action. I presume you could hack this table to mass-change any object type.

I'm such a 733t h4xOrZ.

Yours in leverage,

-Greg
Title: Re: SUCCESS!!! - Mass change of Activities to Acti
Post by: Bruno.Cossi on December 16, 2005, 10:08:54 am
Hi,

just a note: you do not even need to rename the .EAP file to .MDB, .EAP files open in MS Access perfectly fine.

What, pray tell, is "733t h4xOrZ"? :-)

Bruno

Quote
I leveraged my database skills to find a solution to this problem.

=)

1. Rename yourprojectname.EAP to yourprojectname.MDB
2. Open access database file with MS access
3. Open the t_object table
4. Update t_object set object_type = 'Action' where object_type = 'Activity'

While I DO NOT guarantee it's safety, this hack worked perfectly for me with no side effects, changing everything from an activity to an action. I presume you could hack this table to mass-change any object type.

I'm such a 733t h4xOrZ.

Yours in leverage,

-Greg

Title: Re: SUCCESS!!! - Mass change of Activities to Acti
Post by: Eve on December 18, 2005, 01:08:57 pm
Quote
What, pray tell, is "733t h4xOrZ"? :-)

I've never been able to read or write Leet, but I think a rough translation would be 'elite hacker'.  Mind you do correct me if I'm wrong.
Title: Re: Mass change of Activities to Actions
Post by: mikewhit on December 19, 2005, 04:39:07 am
No, a h4x0r is a small fine-bladed tool for cutting metal, wood or plastic items.

733t just means it isn't heavy.
;)
Title: Re: Mass change of Activities to Actions
Post by: thomaskilian on December 21, 2005, 02:50:35 am
Google shows this (http://www.urbandictionary.com/define.php?term=h4x0r)  ;D and many more results. What a small world!
Title: Re: Mass change of Activities to Actions
Post by: mikewhit on December 21, 2005, 04:53:21 am
The item referenced by Thomas refers to people who are "lame".

No doubt this result from overuse of the "pedofile" tool referenced in the item, which must presumably be a rough-surfaced implement for abrading parts of the foot.
Title: Re: Mass change of Activities to Actions
Post by: skiwi on September 15, 2014, 02:07:57 pm
I just encountered this, wanting to change a number of artifacts to classes.

On my diagram I can select multiple artefacts (yay).
The Element > Advanced > Change Type   lets me select "Class" and then OK,
but .... (hush of anticipation)
only one of the selected objects actually changes
(sighs of disappointment)

not in EA 11
Title: Re: Mass change of Activities to Actions
Post by: qwerty on September 15, 2014, 03:22:58 pm
I better not update my time to fix statistics since this would add 9 years for a (still not) fixed bug.

q.
Title: Re: Mass change of Activities to Actions
Post by: RoyC on September 15, 2014, 04:37:17 pm
Perhaps this wasn't leveraged by a formal feature request?  Or bug report?
Title: Re: Mass change of Activities to Actions
Post by: Graham_Moir on September 15, 2014, 06:42:59 pm
or perhaps it was, but no training organisations have requested it.
Title: Re: Mass change of Activities to Actions
Post by: qwerty on September 15, 2014, 07:25:09 pm
 ;D
Title: Re: Mass change of Activities to Actions
Post by: Ian Mitchell on September 15, 2014, 09:15:13 pm
Whilst greatly enjoying the level of pedantry here, you might also open the items in eaDocX/Excel, change the ElementType to what you want, then save them back. Has the same effect as changing the element type using SQL, but a little less scary.