Hi All,
I had a quick scour of the forums for this and I didn't find anything obvious, maybe I'm looking for the wrong terms.
Anyway, in my current contract, our client has always used Powershell to automate the deployment of Nintex assets. This worked for us as our sites follow a framework so certain workflows are always deployed to all sites. This would be tiresome to do manually.
Anyway, whilst Powershell is great, it's also a skill that someone has to possess in order for it to be used/maintained.
So when I was studying the workflow.asmx service, and noticed the options for publishing workflows, I thought I'd run a little side project to see if I could simplify the process of automated deployment of workflows and it works, it's also quite simple.
I have a list, a library and workflow.
The developer uploads their workflow.nwf file to the library, fills in a form that has a few parameters required for deployment, and away it goes. I used a web service to get all the webs in our site collections (we only have a few due to our setup) and then pulled out the URL from the XML that service returns, put them in a collection and iterate through each one. I do a quick error check to ensure the site has the library/list that was defined in the form by the dev (we have a few non-standard sites), and if it does, fetch the nwf file into a variable and tidy up the XML (<,>,& need tidying), then run the web service call to deploy the workflow.
This was so simple I assume others must have done before. Has anyone done this sort of thing, and if so, how far have you taken your automated deployment through Nintex? Workflows? Forms? Lists? Sites? Or is it that not many people have this sort of structure in their environments that requires repetitive deployment?
Between Nintex and and Microsoft they must have given us enough in the API's to do most repetitive tasks.