[MAGNOLIA-3312] Unable to implement scheduled publication within workflow Created: 06/Oct/10  Updated: 23/Jan/13  Resolved: 14/Oct/10

Status: Closed
Project: Magnolia
Component/s: workflow
Affects Version/s: 4.1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Tony Soper Assignee: Magnolia International
Resolution: Not an issue Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: XML File config.modules.standard-templating-kit.dialogs.pages.home.stkHomeProperties.xml    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

We have a requirement to enable scheduled publication of items. The workflow module otherwise seems to be operating as expected, however we are unable to schedule items for future publication. The workflow definition is correct, and we have added the startDate control node to the tabActivation node of the startActivationWorkflow dialog. We have searched through the Magnolia developer documentation but can find no trace of the properties expected for the startDate node, so we have had to make a best guess. The start date field appears on the activation dialog and a future date/time can be selected, however items are still being activated immediately. We need to understand how scheduled publication works and have step-by-step instructions on how we can correctly implement it.



 Comments   
Comment by Philipp Bärfuss [ 14/Oct/10 ]

This was solved in 4.3 by MAGNOLIA-3124. In case you want to use the feature in older versions you have to add the tab/control to the page dialog and not to the activation dialog. It is then the page nodedata startDate which is used.

Comment by Tony Soper [ 21/Oct/10 ]

Thank you for the update. I've tried adding the startDate control to the page properties dialog, but it has no effect. Is this what you meant? Does it need to be on a specifically named tab within the page properties dialog (eg tabActivation)? Ultimately it may just be easier for us to move onto version 4.3 of Magnolia, but if I can get this feature to work on our current version it would be better.

Comment by Jan Haderka [ 21/Oct/10 ]

Hi Tony,
you might want to take your questions to the user list where there will be wider target audience for your questions.
In general, no the startDate doesn't need to be in special tab, since tabs are irrelevant when saving nodeData values. The only requirement is that the value is saved directly under the page node. This you can verify by looking at the page in JCR browser.
Additionally, if you upgrade to the latest version of Magnolia, you do not need to do anything at all. The start and stop dates will be shown in the activation comment dialog when starting the activation.
The way this feature works is clear when you look at workflow definition itself (Configuration/Workflow) In the workflow there is a sleep loop to wait until the startDate occurs before the activation and to sleep again until the end data occurs before the de-activation.

Comment by Zdenek Skodik [ 21/Oct/10 ]

Or find attached a sample for demo-project home page dialog.

Generated at Mon Feb 12 03:45:16 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.