Skip to main content
Question

WorkspaceReader - Find annotation linked to transformers


mart
Contributor
Forum|alt.badge.img+2
  • Contributor

I’m am using WorkspaceReader to document my workspaces. Is there a way determine what annotations are linked to what transformers?

5 replies

j.botterill
Influencer
Forum|alt.badge.img+34
  • Influencer
  • March 17, 2025

Reader format = FME Workspace 2024.2 FME-Readers 2025.0 FME-Readers

 

If you select the annotation feature type, run it on an existing FMW, you'll find attribute output text you could use a StringSearcher on, ideally with a Regexpression to extract/find transformer names they are linked to. Also noter there is annotation type of REGULAR or SYSTEM 

 


mart
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • March 17, 2025

Thanks James

I appreciate your prompt reply.

I can see the transformer name for summary annotation shown in my example below. This would be similar to annotation_id’s 7 and 11 from your example.

 

However, I would like to get the transformer name for custom annotations that are attached to a transformer.

My annotations are general quite descriptive and help me to remember what I’ve done and why I’ve done it.

The image below is an example of custom annotation (“Sort Output”) attached to a Sorter transformer. I can’t see any reference to the transformer.

Any ideas?

I using version 2021.1.

 

 


j.botterill
Influencer
Forum|alt.badge.img+34
  • Influencer
  • March 18, 2025

Then it seems only system annotation contain the ‘annotation’ text referencing the transformer…so custom annotations would need to have started out as system ones then been converted… and retain the text of the transformer. Otherwise the above method of searching the text string for the transformer it references, won’t be consistent.

Looking at the other feature types, such as transformers, there isn’t any fields that could be used to relate to the annotation feature type. I did a search for ‘annotation_id’  for example, but alas I can’t see it there. Maybe an idea to post to Safe


ebygomm
Influencer
Forum|alt.badge.img+31
  • Influencer
  • March 18, 2025

It’s not straightforward but it can be done, reading the FME as a text file the comments have an anchor_node which is a reference to the transformer_id


mart
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • March 19, 2025

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings