port module sale_automatic_workflow to V8