I haven't worked on this scenario before but I am guessing you might be able to use doc.getParentIBean() method to check if the supplier is created independently or as a follow on to another process. In case there is an alternate better way it would be great if you let us know as well.
Thanks,
Arijeet