pass custom scheduled time value from user to scheduled_activation workflow with the help of servlet | Adobe Higher Education
Skip to main content
Level 2
August 30, 2021
Resuelto

pass custom scheduled time value from user to scheduled_activation workflow with the help of servlet

  • August 30, 2021
  • 2 respuestas
  • 1321 visualizaciones

I have a requirement where I can take time-stamp as input in page properties for scheduled_activation/deactivation. Not able to pass the time-stamp date taken from user to scheduled_activation workflow. I am able to hit it by wfsession.getModel(""). 

If anyone can guide me for how I can pass this time-stamp for scheduling, to the scheduled_activation workflow from my custom servlet.

 

Thanks.

Este tema ha sido cerrado para respuestas.
Mejor respuesta de Asutosh_Jena_

Hi @nirbhays3027754 

 

Using the below snippet you can get the payload information which will return the page path within the workflow.

workItem.getWorkflowData().getPayload().toString(); 

 Once you have the page path, you can convert into a Resource and get the page properties information which holds the time-stamp.

 

Thanks!

2 respuestas

Asutosh_Jena_
Community Advisor
Asutosh_Jena_Community AdvisorRespuesta
Community Advisor
August 30, 2021

Hi @nirbhays3027754 

 

Using the below snippet you can get the payload information which will return the page path within the workflow.

workItem.getWorkflowData().getPayload().toString(); 

 Once you have the page path, you can convert into a Resource and get the page properties information which holds the time-stamp.

 

Thanks!

Level 2
August 30, 2021

Yep, it can work for a single page.

Kiran_Vedantam
Community Advisor
Community Advisor
August 30, 2021

Hi @nirbhays3027754,

 

Please find the same use case here: https://aem4beginner.blogspot.com/how-to-trigger-workflow-in-aem-using.

 

Hope this helps.

 

Thanks,

Kiran Vedantam.

Level 2
August 30, 2021

Getting 404 for the included URL.