Calling Scheduled Page/Asset Activation Workflow
We have a requirement where an author calls a custom workflow that assigns a page to a reviewer who can either activate it immediately or schedule it for activation at a later time (like using Activate Later from the Site Admin toolbar). We have a step for the assignment and a custom process step and dialog so they can choose to activate later and set a date/time (which behind the scenes we set as the value for absoluteTime in the metadata of the workflow). We then use a Container Step to call the "Scheduled Page/Asset Activation" workflow. This all works fine however, unlike when using the "Activate Later" action, the only status icon in the site admin list of pages next to that page is for workflow . There is no scheduled task icon
. Users need to be able to read the scheduled activation date/time by hovering over this icon just like when using "Activate Later". I have verified that the "Scheduled Page/Asset Activation" workflow is indeed running for the given payload. What's more is that if I reboot the CQ instance I now see the workflow icon
as well as the scheduled task icon
next to the page as I expect. Hovering over that icon now displays the date/time for activation. Obviously we can't be restarting the instance every time a reviewer schedules an activation like this.
One thing to note, the scheduled task icon never appears for any workflows other than "Scheduled Page/Asset Activation" (and I think "Scheduled Page/Asset Deactivation") even if I try to mimic it exactly in my custom workflow, therefore the Container Step is necessary.
We are running on Adobe CQ, Version 5.6.0.20130125.
Thanks,
Bryan