How to execute workflow step as per scheduler in AEM | Community
Skip to main content
Level 3
Oct 28, 2018 12:54 PM UTC
Solved

How to execute workflow step as per scheduler in AEM

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.
arunpatidar
arunpatidarAccepted solution
New Participant
Oct 28, 2018 3:47 PM UTC

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

2 replies

smacdonald2008
Level 10
Oct 28, 2018 7:56 PM UTC

Great response Arun!

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Oct 28, 2018 3:47 PM UTC

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.

Translate
Arun Patidar