If I have a Site Workflow on my development machine, what's the best way to deploy it onto the production system which is hosted on Microsoft SharePoint Online?
I have found a way of doing it which involves loading up SharePoint Designer, then going to All Files > Workflows, going into the particular workflow folder and then exporting each file individually. They can then be imported in a similar fashion, using Import Files to drop all the exported files into a folder under All Files > Workflows. I have noticed I have to load up the workflows and reassociate the list IDs to the ones in the production site, and sometimes I have to load up and republish the InfoPath forms.
I notice that you can export the whole site by saving it as a template. If I import this into Visual Studio I can select to only import the Workflow modules and Workflow associations. Upon packaging the solution as a WSP, activating this on my production system and then activating the 3 features I have (Module, Workflow Association and Element) I do not get the Site Workflows appearing in All Site Content > Site Workflows. I can see the files in SharePoint Designer under All Files > Workflows, but it gets an error when opening the xoml in order to publish it.
I can't seem to find anything on the web about exporting/importing site level workflows. Is it possible to do without exporting each file individually? Any advice appreciated, thanks.