I have a workflow associated with a library in a site, which is triggered automatically when a document is uploaded. I need to save this site as a template to provision new sites. However, as per my understanding, the provisioned sites will not have the same workflow associated with that particular library.
Is there any way of copying over the workflow associated with a library in a site template? If not, are there any workarounds available? (e.g.: having a site level template, or a workflow to copy the workflow)