UPDATE: I’ve been researching how to embed a SPD workflow into a site definition. This MSDN forum chain has some interesting information. It’s not conclusive, lakini pointi kwa njia ya kupitia jungle.
I’m giving this post a slightly oddball "Observed Behavior" lead since I’m a little leery of drawing conclusions from it. SPD workflows are … temperamental.
People are often asking / wondering / fretting over moving SPD workflows from one place to another. Leo, I followed these steps and made these observations:
- I created a workflow using SharePoint Designer in a site attached to a document library.
- The associated document library already housed several documents.
- I saved the site as a template.
- When I saved the site as a template, I saved the content as well.
- Mimi umba tovuti mpya katika ukusanyaji sawa tovuti kutumia template.
Katika hatua hii, I tried to run the workflow. It promptly terminated itself with the log message, "Failed on start".
I expected this. I have low expectations when it comes to moving SPD workflows around.
Mimi iliendelea:
- Kufunguliwa tovuti katika SharePoint Designer.
- Had a peek at the workflow. It seemed fine.
- I clicked "Finish".
- Mimi mbio workflow.
Wakati huu, ni kazi nzuri.
I’ll add that this workflow used the "collect data from user" hatua ambayo ni hatua ya kiasi tata chini ya kofia.
I tentatively conclude that the process of "finishing" the workflow caused SPD to properly associate the SPD workflow with the new document library. I also conclude the XOML and other XML artifacts are reasonably "loose". They are not super tightly coupled to the document library.
What does this mean? Assuming it’s a reliable and reproducible process, there’s at least one rough method we can use to move them around. I don’t know if this would work if we crossed site collection boundaries or even more drastically, entire new farms (e.g. dev to stage to prod).
If you’re reading this and inclined, please post a comment or email yangu your SharePoint Designer migration story. I’ll gladly update this posting with any insights thus offered.
</mwisho>