wttech / gradle-aem-plugin

Swiss army knife for Adobe Experience Manager related automation. Environment setup & incremental AEM application build which takes seconds, not minutes.
https://tech.cognifide.com/tag/gradle-aem-plugin
Apache License 2.0
157 stars 32 forks source link

Implement workflow manager instance service #425

Closed pun-ky closed 5 years ago

pun-ky commented 5 years ago

...instance.service.workflow.WorkflowManager.kt , methods: enable(name), enable(names), disable(name), disable(names), toggle(name, callback), toggle(names, callback),

Consider path changed affectings workflows, see https://helpx.adobe.com/pl/experience-manager/6-4/sites/deploying/using/repository-restructuring-in-aem64.html

aem.sync {
    //etc/workflow/launcher/config/update_asset_create
    workflowManager.toggle(Workflow.DAM_UPDATE_ASSET, false)  {
        packageManager.deploy(pkg) // be able to deploy package with temporarily disabling asset processing, because package already contains rendition / processing not needed to be run again
    }
}

covers #224

pun-ky commented 5 years ago

extra requirements:

to be considered if GAP should contain a list / enum of workflow names stored by AEM so that GAP could have also workflowManager.disableDamAssetProcessing() -> this will disable create and update dam asset workflows (potentially most often used) or alternatively workflowManager.disable(Workflows.DAM_ASSET) (enum with workflow predefined sets as param) (+ enable, toggle methods accepting same args). in that case packageDeploy param could be even more simplified to -Ppackage.deploy.workflow.disable=dam_asset (firstly looking for sets by name, fallback to single workflow by name under instance version depending path)

pun-ky commented 5 years ago

to be released in 7.1.0