I’ve recently learned that it’s possible and even fairly easy to create a state machine workflow using SharePoint Designer. Necessity is the mother of invention and all that good stuff and I had a need this week that looked for an invention. Coincidentally, I ձեռքն Այս MSDN ֆորում գրառումը ինչպես նաեւ. My personal experience this week and that "independent confirmation" lends strength to my conviction. I plan to write about this at greater length with a full blown example, Բայց ահա թե էություն դրա:
- Իսկ մոտեցումը լծակները է այն փաստը, որ աշխատանքի արդյունքում կարող է փոխել ցանկ Նյութի վերաբերյալ, thereby triggering a new workflow. I’ve normally considered this to be a nuisance and even Ջավախք մասին, օգտագործելով semaphores կարգավորել այն:.
- Sharepoint թույլ է տալիս բազմաթիվ անկախ workflows լինել ակտիվ դեմ կոնկրետ ցանկ Նյութի վերաբերյալ.
Կարգավորել այն::
- Նախագծել ձեր պետական մեքենան (այսինքն,, պետությունները եւ ԱՄՆ անցումը մեկից հաջորդ).
- Իրականացնել յուրաքանչյուր պետություն առանձին աշխատանքի արդյունքում.
- Կարգավորել յուրաքանչյուր պետական workflows կատարել ի պատասխան ցանկացած փոփոխություն ցանկ Նյութի վերաբերյալ.
Յուրաքանչյուր պետություն աշխատանքի արդյունքում հետեւյալ մոտավոր այս օրինակին:
- Upon initialization, determine whether it should really run by inspecting state information in the "current item". Abort if not.
- Կատարել աշխատանքը.
- Թարմացում է ընթացիկ կետը" with new state information. This triggers an update to the current item and fires off all the state workflows.
Բացի ակնհայտ օգուտ է, որ կարելի է ստեղծել դեկլարատիվ պետական մեքենան աշխատանքի արդյունքում, որ պետությունը տեղեկատվությունը զարհուրելի շենքերի KPIs ու հետաքրքիր Դիտումներ.
Այն ինչ ունենք բավականին էական թերություն — standard workflow history tracking is even more useless than normal That’s easily remedied, սակայն. Store all of your audit type information in a custom list. That’s probably a good idea even for vanilla sequential workflow, but that’s for another blog post
Ես կոչ եմ անում այս mea culpa մի" քանի որ ես ունեմ, դժբախտաբար, said more than once on forums and elsewhere that one must use visual studio to create a state machine workflow. That simply isn’t true.
</վերջ>