I have a requirement where I need to check the mode (author/publisher) in the workflow step.
There is different workflow for both of these wcm modes.
I was trying to write function check() using the api WCMMode.
I know there is a way to do it in the components/jsp however the same seems to be not working in the workflows:
Is there anything like the below in workflows (this is to be inside function check)?
var WCMMode = sling.getService(Packages.com.day.cq.wcm.api.WCMMode);
If you have any other suggestions/solutions, please do advise.
Thanks!!