Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Avatar

Level 2

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.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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!

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

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!