Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
348 views
in Technique[技术] by (71.8m points)

enterprise architect - How to programatically get the fragments called in an RTFtemplate?

I need to programmatically find the fragments that are called by each rtftemplate.
So, for example in the figure, I would need to get the "GlossaryTermsAcronyms" fragment for the H2_terms_acronyms template. enter image description here

I can't seem to find any query or script solution to do this. But this should be possible, right?

question from:https://stackoverflow.com/questions/65885007/how-to-programatically-get-the-fragments-called-in-an-rtftemplate

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Unfortunately that is (almost) impossible.

The information is stored in the t_documents.bincontent column. It is binary encoded RTF. Somewhere in that RTF there should be a reference to the templates fragments that are used.

If you can figure out how to decode the bincontent to get to the actual RTF code of your template, you might have a chance.

Binary fields in EA are usually stored as a zipped text file.

In case the field is included in an xml file (or xml string in the database), it will be base64 encoded.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...