დაფიქსირდა ქცევა: მოძრავი SPD workflows ფარგლებში საიტის კოლექცია

განახლების: 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, მაგრამ მიუთითებს გზას მეშვეობით ჯუნგლებში.

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. დღეს, 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.
  • I created a new site in the same site collection using that template.

ამ ეტაპზე, 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.

ამჯერად, იგი მუშაობდა ჯარიმა.

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.

რას ნიშნავს ეს? 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, მთელი ახალი ფერმები (e.g. dev დადგმას to prod).

თუ თქვენ შორის სწყდებიან, გთხოვთ კომენტარის ან მომაწოდეთ your SharePoint Designer migration story. I’ll gladly update this posting with any insights thus offered.

</ბოლო>

გამოწერა ჩემი დღიური.

პროგრამები Tags:

დატოვე პასუხი

თქვენი ელ-ფოსტა არ გამოქვეყნდება. აუცილებელი ველები მონიშნულია *