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 .docx file
Groovy Script - Read attribute values for file status change and write those attribute data into custom XML parts of .docx file
Updated this week

Description: Sample groovy script to read attribute values for file status change and write those attribute data into custom XML parts of .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?