Auto PO Confirmation after workflow approval

Hi All,

I need to make PO confirm as soon as workflow is approved in Ax 2012 R3 . Through job I have done the auto PO confirmation . But where I need to write the code so that as soon as workflow is approved , PO confirmation is done automatically.

Thanks,