usually following line of code in WFTypeSubmitManager class does the work automatically
args.caller().updateWorkFlowControls();
It is a standard workflow VendProcessInvoice.
Kindly have a look at following two methods
\Classes\VendInvoiceHeaderWorkflow\submit
\Classes\VendInvoiceHeaderWorkflow\SubmitToWorkflow
check updateWorkFlowControls is there, if not add it and build Incremental CIL and test it