Skip to main content

Groovy Script – Apply Activity Locks on Placeholders

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?