Hi,
I have a condition where i need to trigger a service 48 hours after a certain service is executed.
For example
If service “A” is executed on 04/11/2005 @ 17:00 Hours
then my service “B” should be executed on 04/13/2005 @ 17:00 Hours.
anyhow , use one of the secheduler service in sechedule folder, i mean to say use pub.schedule.addOneTimeTask service orelse try with pub.schedule.addRepeatingTask service , if this wont work in ur senario then u have to create ur own service.
In your service A, add the following few steps after its main processing is completed successfully:
Get the current date-time (you may use pub.date:getCurrentDateString)
Use a custom java service to add 48 hours to the current date-time to get the date-time at which the service B should be scheduled for.
Just as Muneer suggested, use pub.schedule:addOneTimeTask as the last step to schedule Service B.
I don’t think you will need to use addRepeatingTask because the Service B is dependent on Service A - depends on the pattern of schedule in which your services need to run.
Hi,
Thank you all for the response. But i have a few questions regarding the pub.schedule:addOneTimeTask service.
The service has an input parameter called “INPUT” which takes a document as the input to the service. Does anyone know where is this document stored, and is there a way i can view the input being passed to the service.
Hi,
My question was where does webMethods store that INPUT parameters that i pass for the service i am scheduling.
Does it store it in the REPO server, is yes- is there a way i can see the input parameters.