Hi,
I have a requirement to publish a SharePoint 2013 workflow form a re-hosted designer and associate it with a site. I have managed to extract the xaml from the designer and published it using Client Object Model
These are the general steps I followed
- Get workflow service manager instance
- Get workflow deployment service instance
- Create a WorkflowDefinition object
- Save and Publish definition using workflow deployment service
Now that I have published this workflow how do I associate it with a SharePoint site using OM ?