Book a Demo

Author Topic: Template Fragment issue  (Read 4180 times)

SteveDuncalf

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Template Fragment issue
« on: November 10, 2016, 05:32:35 am »
Hi,

We're current documenting using ArchiMate 2.0 within Sparx EA v11.  I have a need to report upon a View and each object displayed within the View, showing different information based upon the type of ArchiMate object. So I did a bit of reading and Template Fragments seemed to be solution?

So I created my report and template fragment 'selector' which has the following Template Selector definitions:
Class:ArchiMate_Plateau:Fragment-InitiativeDictionary-Plateau
Class:ArchiMate_WorkPackage:Fragment-InitiativeDictionary-WorkPackage
Class:ArchiMate_Goal:Fragment-InitiativeDictionary-Goal
Class:ArchiMate_Requirement:Fragment-InitiativeDictionary-Requirement
Class:ArchiMate_Value:Fragment-InitiativeDictionary-Value
Class:ArchiMate_Constraint:Fragment-InitiativeDictionary-Constraint
Class:ArchiMate_BusinessFunction:Fragment-InitiativeDictionary-BusinessFunction
Class:ArchiMate_BusinessService:Fragment-InitiativeDictionary-BusinessService

Class:ArchiMate_BusinessObject:Fragment-InitiativeDictionary-BusinessObject

This appears to work great, and for each of the ArchiMate object gets rendered differently, with the exception of two. ArchiMate_BusinessFunction & ArchiMate_BusinessService, I've tried different ways of getting these to render, but they only show if I use a default option. What's weird is if I change the Class name to another ArchiMate class, then this class is rendered using the specified fragment but still doesn't work for the two specified ArchiMate classes, any ideas?

Also, if you've got multiple objects and you want to show these within a table how would you do this?
« Last Edit: November 10, 2016, 05:42:38 am by SteveDuncalf »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Template Fragment issue
« Reply #1 on: November 10, 2016, 08:50:54 am »
That's because those stereotypes aren't applied to classes.

Activity:ArchiMate_BusinessFunction:Fragment-InitiativeDictionary-BusinessFunction
Activity:ArchiMate_BusinessService:Fragment-InitiativeDictionary-BusinessService

SteveDuncalf

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Template Fragment issue
« Reply #2 on: November 10, 2016, 09:19:50 am »
Thanks Simon, this work fine.

Any idea about my second query on getting Template Fragment to appear in a table like format when there are multiple occurrences of an object?