Description: Sample Groovy Script to apply activity locks on Placeholders, to restrict specific actions such as distribution, attribute editing, or reviews.
Supported lock types: You can apply one or more of the following activity locks:
IGroovyConstant.LOCK_DISTRIBUTION– Restricts file distributionIGroovyConstant.LOCK_EDIT_ATTRIBUTES– Restricts editing of AttributesIGroovyConstant.LOCK_REVIEWS– Restricts review-related activities
Context: Document
Document Type: Placeholder
Remark: Accessible in Post task mode only.
Script:
def execute(){
placeholderService.applyActivityLocks(IGroovyConstant.LOCK_EDIT_ATTRIBUTES)
}