Skip to main content
Groovy Script - Apply Activity Locks to Document
Updated over a month ago

Description: Sample groovy script to apply activity locks to document

Context: Document

Remark: Accessible in 'Post' task mode only

Script:

/*

Arguments:

Revision Id

Activity:

1001-Revision Upload

1002-File Distribution

1003-Edit Attribute

1004-Update Status

1005-Commenting

Task Type:

1-On Document

2:On App

*/

def execute(){

def DocumentVO document = documentService.getDocumentDetails();

documentService.applyActivityLocks(document.getRevisionId(),"1003",1);

}



Did this answer your question?