aem-plugin / com.cognifide.gradle.aem.common.instance.service.workflow / WorkflowManager / toggleTemporarily

toggleTemporarily

fun toggleTemporarily(type: String, flag: Boolean, action: () -> Unit): Unit
fun toggleTemporarily(typeFlags: Map<String, Boolean>, action: () -> Unit): Unit

Temporarily enable or disable workflows, do action, then restore workflows to initial state.