Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

How to execute workflow step as per scheduler in AEM

Avatar

Level 3

Hi Team,

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

dateTime.PNG

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

javaclass.PNG

Thanks

Kotireddy Naru

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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