Skip to main content

Groovy Script - Cancel Workflows of the Current Form

Updated over a week ago

Description: Sample Groovy script to cancel workflows of the current Form. This script should be directly used with Trigger and shouldn't be used within a workflow definition.

Context: App

Remark: Accessible in 'Post' task mode only.

Script:

def execute(){

formService.cancelWorkflow();

}



Did this answer your question?