If the retry fails - the document should get flagged with a ‘FAILED’ status in TN.
You can write sql against the TN database to look for failed docs. (might want to use a date parm)
SELECT *
FROM BizDoc OUTTER INNER JOIN
DeliveryJob ON OUTTER.DocID = DeliveryJob.DocID
WHERE ((DeliveryJob.JobStatus = ‘FAILED’) AND
((DeliveryJob.TimeCreated > ‘04/22/2002’) and (DeliveryJob.TimeCreated < ‘04/24/2002’)))
This will produce a results set that will have a jobid
Then check your row count - branch over the result set
and run wm.tn.task:restartTask - map the resultset jobid to the task id and it will do a restart of the failed docs.
If you can set the dates up as parms - you can schedule this to run as a scheduled job too.
#B2B-Integration#Integration-Server-and-ESB#webMethods