Author Topic: RTF document template with callbehavior actions  (Read 1932 times)

Paulus

  • EA User
  • **
  • Posts: 152
  • Karma: +0/-0
    • View Profile
RTF document template with callbehavior actions
« on: March 30, 2022, 06:39:37 am »
Hi All,

I wonder if/how it is possible to create a document template that can handle the following:

I have a number of activities defined, lets call them activity1, activity2, etc.
In a diagram describing a certain scenario i include actions that are callbehaviors of for those activities. So for instance actionA and actionB are callbehaviors of activity1, actionC is callbehavior of activity2

I can create in a document a table that for each step displays name and notes, but what i would like to do is include information on the activity that is refrenced as well. So for each step:
  • the name of the step
  • notes of the step
  • the name of the referenced activity
  • some notes for that activity

So in the example what i would like is a table with content:

actionA     notes for actionA    activity1    notes on activity1
actionB     notes for actionB    activity1    notes on activity1
actionC     notes for actionC    activity2    notes on activity2

The 1st two columns is easy but what about the last tow? Is this even possible in EA?

best regards,

Paul

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13241
  • Karma: +554/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: RTF document template with callbehavior actions
« Reply #1 on: March 30, 2022, 03:28:14 pm »
Definitely possible, but you'll want to use an SQL fragment to do this.

Geert

Paulus

  • EA User
  • **
  • Posts: 152
  • Karma: +0/-0
    • View Profile
Re: RTF document template with callbehavior actions
« Reply #2 on: March 30, 2022, 05:38:35 pm »
Thx Geert, i'll look into those!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13241
  • Karma: +554/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: RTF document template with callbehavior actions
« Reply #3 on: March 30, 2022, 05:45:37 pm »
Here's the query for a template I did a while ago:

Code: [Select]
select isNull(o.Name, act.name) as ActionName, o.Note as [Description-Formatted] , act.Name as ActivityName
from t_object o
left join t_object act on act.Object_ID = o.Classifier
inner join t_diagramobjects do on do.Object_ID = o.Object_ID
inner join t_diagram d on d.Diagram_ID = do.Diagram_ID
and d.ParentID = o.ParentID
where o.Object_Type =  'Action'
and o.parentID  = #OBJECTID#
order by do.RectTop DESC, do.RectLeft

Geert

Paulus

  • EA User
  • **
  • Posts: 152
  • Karma: +0/-0
    • View Profile
Re: RTF document template with callbehavior actions
« Reply #4 on: March 30, 2022, 08:52:08 pm »
Thx! That will help a lot :)