Skip to main content

Groovy Script - Read Attribute Values for File Status Change and Write the Attribute Data into Custom XML parts of the .docx file

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);
}
Did this answer your question?