Description: Sample Groovy Script to read Attribute values for file status change and write the Attribute Data into custom XML parts of the .docx file.
Context: Document
Document Type: File
Remark: Accessible in 'Post' task mode only.
Script:
def execute(){
HashMap<String,String> attributeMapping = new HashMap<>();
attributeMapping.put(IDocumentAttribute.STATUS,"Status");
documentService.writeAdoddleAttributesToFilePropertyAttributes(attributeMapping);
}