Skip navigation
Currently Being Moderated

How to Schedule a workflow Item?

Aug 2, 2012 1:53 PM

Tags: #component #workflow #apache_sling #scheduled_tasks #programmatically #cq5.5



I need to schedule a workflow item to trigger at a particular date specified by the content author.


My Existing Workflow :


Approval1 ----> Approval2 ------>Approval3-----> MyCustomWorkFlowProcessStep----> Archive&ActivateItem( ------> Activate Page/Asset(



In MyCustomWorkFlowProcessStep, I want to schedule the next 2 steps to execute on the particular date specified by the author. How can this be done?



My Approach :


I created a class which implements WorkflowProcess. In that class I am scheduling a job using sling schedulig jobs to fire the job at the particular day. Now I need to call the other 2 pending workflow Items in the workflow, How can I achieve this? Can I directly call the CreateVersionProcess and ActivatePageProcess since they are osgi services? Also, is this the right way to do this?


Thanks a lot in advance



More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points