AEM Workflow called on click on publish Asset
Hi ,
I am able to initiate the workflow on click on publish of asset but my asset get published first then workflow get started.
I tried with these two approach to control publish event.
- Created workflow launcher
- Created custom event handler
Both are having same problem asset are publishing first then workflow get started .
As per requirement when author click on publish asset, approval workflow should triggered then asset should publish.
Question: can we control asset publish event ?