How to execute workflow step as per scheduler in AEM | Community
Skip to main content
New Participant
October 28, 2018
Solved

How to execute workflow step as per scheduler in AEM

  • October 28, 2018
  • 2 replies
  • 4642 views

Hi Team,

          I done customization in complete Work Item added Date Time picker.

As per given scheduler time I need to execute Approve step.

Thanks

Kotireddy Naru

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

https://aem.adobemarketingclub.com/scheduled-activation-workflows/

Have a custom workflow step that sets a workflow “metaData” with property name “abosluteTime” and value being the time in milliseconds  (calendar.getTimeInMillis()). This custom step can even use the On Time set on the page properties or use a custom dialog to capture date/time for activation depending on what you need

Screen Shot 2014-08-03 at 10.34.29 pm

b)  Have a participant step (could be called Waiting for activation), which could be assigned to admin user  and set the timeout handler to the OTB provided “Absolute Time Auto Advancer”  properties to the following

Screen Shot 2014-08-03 at 10.27.55 pm

The Absolute Time Auto Advancer times outs and advances to the next step automatically (which can be the Activate Page step) at the time provided in the absoluteTime property. Alternatively, you can write your own Timeout Advancer as well that works out of a page property directly.

2 replies

smacdonald2008
New Participant
October 28, 2018

Great response Arun!

arunpatidar
arunpatidarAccepted solution
New Participant
October 28, 2018

https://aem.adobemarketingclub.com/scheduled-activation-workflows/

Have a custom workflow step that sets a workflow “metaData” with property name “abosluteTime” and value being the time in milliseconds  (calendar.getTimeInMillis()). This custom step can even use the On Time set on the page properties or use a custom dialog to capture date/time for activation depending on what you need

Screen Shot 2014-08-03 at 10.34.29 pm

b)  Have a participant step (could be called Waiting for activation), which could be assigned to admin user  and set the timeout handler to the OTB provided “Absolute Time Auto Advancer”  properties to the following

Screen Shot 2014-08-03 at 10.27.55 pm

The Absolute Time Auto Advancer times outs and advances to the next step automatically (which can be the Activate Page step) at the time provided in the absoluteTime property. Alternatively, you can write your own Timeout Advancer as well that works out of a page property directly.

Arun Patidar