Skip to main content

Groovy Script – Apply Activity Locks on Placeholders

Updated over a week ago

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 distribution

  • IGroovyConstant.LOCK_EDIT_ATTRIBUTES – Restricts editing of attributes

  • IGroovyConstant.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)

}


Did this answer your question?