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
BedrockMission!

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

nirbhays3027754
Level 2
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.

models parametrized workflow workflow
1 Accepted Solution
asutosh_jena
Correct answer by
Community Advisor
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
asutosh_jena
Correct answer by
Community Advisor
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