Mæld Hegðun: Færa SPD Verkferlar innan vefsvæðis Collection

UPDATE: I’ve been researching how to embed a SPD workflow into a site definition. Þetta MSDN vettvangur keðja hefur nokkrar áhugaverðar upplýsingar. It’s not conclusive, en bendir á leið í gegnum frumskóginn.

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 … skapstór.

Fólk er oft að spyrja / spá / fretting over moving SPD workflows from one place to another. Í dag, Ég fylgdi þessum leiðbeiningum og gert þessar athuganir:

  • Ég bjó til Workflow nota SharePoint Designer í síðuna fylgir skjal bókasafn.
  • Tilheyrandi skjal bókasafn húsa þegar nokkur skjöl.
  • Ég bjargaði síðuna sem sniðmát.
  • Þegar ég vistað á síðuna sem sniðmát, Ég spara efni og.
  • Ég bjó til nýja síðu í sama staður safn með að sniðmát.

Á þessum tímapunkti, 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.

I continued:

  • Opened the site in SharePoint Designer.
  • Had a peek at the workflow. It seemed fine.
  • I clicked "Finish".
  • I ran the workflow.

Í þetta sinn, það í uppnámi fínn.

I’ll add that this workflow used the "collect data from user" action which is a relatively complex action under the hood.

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 mig your SharePoint Designer migration story. I’ll gladly update this posting with any insights thus offered.

</enda>

Gerast áskrifandi að bloggið mitt.

Technorati Tags:

Eftir svar

Netfangið þitt verður ekki birt. Nauðsynlegir reitir eru merktir *