Skip to main content
All CollectionsSystem TasksWorking with Groovy ScriptsGroovy Script Library
Groovy Script - Read Attribute Values for File Status Change and Write those Attribute Data into Custom XML parts of the .docx file

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

Updated over 3 weeks ago

Description: Sample Groovy script to read attribute values for file status change and write those attribute data into custom XML parts of the .docx file.

Context: Document

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?