invoke wm.tn.submit to put the bizdoc into TN (you’ll have to get your document to a bizdoc by using wm.tn.doc.xml:recordToBizdoc or some other method that create the bizdoc).
if the processing rule for the document uses “Deliver document by,” then there will be a a variable called ‘deliveryId’ placed onto the pipeline when the wm.tn:submit service is invoked.
you can then pass that deliveryId to wm.tn.delivery:getDeliveryStatus service.
I did this in a repeating sequence, and I branch on the ‘deliveryStatus’ variable that getDeliveryStatus returns to determine what action to take…
‘DONE’ : signal success and exit the repeat
‘FAILED’ : signal failure, send an email, run a database query, then exit the repeat
$default : do nothing - don’t exit the repeat, so it will continue to getDeliveryStatus until it either gets DONE or FAILED.
hope that helps.
#B2B-Integration#Integration-Server-and-ESB#webMethods