Hello Erik,
Workflow does not have built-in tokens or activities to pull annotation text from a document. You can get the text through scripting, save the text in a token, and then set a wait condition to trigger when the "Document : Annotation Text does not equal %(AnnotationTextToken)".
Since annotation text is stored in the repository database, there is another option that should work but is much more complex and involves multiple database lookups. I would also recommend extra caution in any scenario you are dealing with databases. At a basic level, we need to look up the annotation text in the appropriate database, and then base the wait condition to trigger on the change of this. I've provided a bit more instruction on how you might accomplish this below:
- Pull the entry ID of the document in question;
- Assuming you are working in an SQL environment, pull the "page_id" related to your entry ID (stored as "tocid") from the "dbo.doc" table;
- Using the "page_id", pull the related "ann_text" value from the "dbo.ann" table;
- Use this value in your wait condition
Keep in mind that if you have multiple annotations on the same page, you may have to loop the lookup and append a multi-value token with all of the retrieved values; that way, if any values change the workflow will detect it and continue.
Good luck!
Adam