Actualización: I’ve been researching how to embed a SPD workflow into a site definition. Esta cadea foro MSDN ten algunhas informacións interesantes. It’s not conclusive, pero apunta camiño a través da selva.
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.
A xente está sempre pregunta / pregunta / fretting over moving SPD workflows from one place to another. Hoxe, Seguín estes pasos e fixo estas observacións:
- Eu creei un fluxo de traballo mediante o SharePoint Designer nun sitio conectado a unha biblioteca de documentos.
- A biblioteca de documentos asociados xa abrigou varios documentos.
- Salvei o sitio web como un modelo.
- Cando eu salvo a web como un modelo, Salvei o contido ben.
- Eu creei un novo sitio web no mesmo conxunto de sitios usando este modelo.
Neste punto, 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.
Eu continúe:
- Inaugurado o sitio no SharePoint Deseño.
- Had a peek at the workflow. It seemed fine.
- I clicked "Finish".
- Corre o fluxo de traballo.
Este tempo, funcionou moi ben.
I’ll add that this workflow used the "collect data from user" acción que é unha acción en concepto complexo baixo o capo.
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.
O que significa isto? 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, enteiras novas granxas (e.g. dev ao escenario para cutucar).
Se estás lendo isto e inclinado, por favor engada un comentario ou enviar correo-e me your SharePoint Designer migration story. I’ll gladly update this posting with any insights thus offered.
</final>