sort by stereotype tags

Uploaded report templates and discussions about reports.

Moderators: sarawut_w, Moderators

sort by stereotype tags

Postby shufeng.zheng@nokia.com » Tue May 03, 2022 12:56 am

When I generate document from the model, I want the elements and diagrams to be exported in a predefined order, not simply by name.
Sorting by a direct property(e.g. "name", "body", "visibility", etc) works well:
Code: Select all
#foreach($e in $sorter.sort($elementList, ‘name’))
   $e.name( $e.tags.CustomSort.sortPriority )
#end

But sorting by a tag of stereotype seems not working:
Code: Select all
#foreach($e in $sorter.sort($elementList, ‘tags.CustomSort.sortPriority’))
   $e.name( $e.tags.CustomSort.sortPriority )
#end


Is there something wrong with this code, or is stereotype tags is not supported by sortTool API?
shufeng.zheng@nokia.com
Forum Newbie
Forum Newbie
 
Posts: 1
Posts Rating:0
Joined: Tue May 03, 2022 12:05 am

Return to Report Engine

Who is online

Users browsing this forum: No registered users and 0 guests