انالز Culpa — شیرپوینت طراح * حالت، گردش ماشین را ایجاد کنید

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, من در سراسر آمد این ارسال انجمن MSDN as well. 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 بلاگ مورد با استفاده از سمافورها به آن دسته.
  • شیرپوینت اجازه می دهد تا چند گردش مستقل فعال در برابر یک قلم اول از اقلام لیست خاص.

آن را پیکربندی کنید:

  • طراحی ماشین دولت خود را (به عنوان مثال, دولتها و چگونگی انتقال کشور از یک به بعد).
  • اجرای هر ایالت را به عنوان گردش کار جداگانه.
  • پیکربندی هر یک از این گردش دولت به اجرا در پاسخ به هر گونه تغییر در قلم اول از اقلام لیست.

هر گردش کار دولت به دنبال این الگوی خشن:

  • پس از مقداردهی اولیه, determine whether it should really run by inspecting state information in the "current item". Abort if not.
  • انجام کار.
  • Update the "current item" with new state information. This triggers an update to the current item and fires off all the state workflows.

گذشته از منافع آشکار است که می تواند اعلانی گردش دستگاه دولتی ایجاد, تمام اطلاعات دولت فوق العاده برای KPI ها ساختمان و دیدگاه های جالب.

دارای اشکال نسبتا قابل توجهی — استاندارد ردیابی تاریخ گردش کار است و حتی بیشتر بی فایده تر از حد نرمال 🙂 که به راحتی رفع, اما. Store all of your audit type information in a custom list. That’s probably a good idea even for vanilla sequential workflow, اما این برای وبلاگ دیگر 🙂

I call this a "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.

</پایان>

مشترک شدن در وبلاگ من.

برچسب ها:

4 دیدگاه در "انالز Culpa — شیرپوینت طراح * حالت، گردش ماشین را ایجاد کنید

  1. Jaustral نوشت:
    سلام پل,
    که چگونه بسیاری از کشور با خرید و فروش? I only get to have two different active workflows when I go to the workflow settings page?
    بهترین,
    یوحنا.
    پاسخ
  2. Sanjeev Rajput
    من واقعا می خواهم به خواندن نمونه کامل. امیدوارم یکی از شما می تواند کمک به روشن شدن برخی از کابوس من شده است با فرآیند مشابهی من. من در نقطه ای هستم که در آن من آماده ام تا از تازه شروع.
    پاسخ
  3. پل گالوین
    That’s a really interesting approach puts an exclamation point on the larger point that SPD can create state machine workflows.
    I don’t know if there are substantial differences performance-wise between what you outline and what I outline. In my case this week, عملکرد یک مسئله نیست چرا که این گردش خاص یک امر طولانی مدت (16 و یا چند هفته از آغاز تا پایان) and there are never more than a few dozen active at any time. If there were a few dozen starting up and running every hour … that would be a different story. I think that performance and workflow in general is a very hazy subject.
    I don’t know if you run your own blog or not. If you do, you ought to consider writing about your approach in more detail. If not, I’d be more than happy to call you a "guest blogger" و آپلود خود را به وبلاگ من.
    با تشکر برای نظر. It’s one of the best I’ve been able to elicit on my blog!
    –پل G
    پاسخ
  4. مایک اتکینز
    پیاده سازی دستگاه دولت با استفاده از یک لیست جداگانه برای نگه داشتن دولت در انتقال دولت. The main workflow created an item here and set the initial state. I used a single, جداگانه, workflow to handle all of the states, using an "IF-THEN-ELSEIF" ساختار (in "Step 1") on the possible states.
    برای هر ایالت, من نیاز به به دست آوردن پاسخ از کاربر.
    My example was a multiple-level sequential approval, که در آن هر مرحله (نشان داده شده توسط دولت) could have various possible successors. This meant that each user had (به طور بالقوه) different options made available in a choice menu. My "Step Two" was also an "IF-THEN-ELSE" ساختار است که همه پاسخ های ممکن را در نظر گرفته (از تمام مراحل), and then decided on what the next state should be. "Step 3" پس از آن مجموعه است که دولت, و گردش کار به پایان رسید.
    این روش (واضح) استفاده از اتفاق می افتد در یک (دوم) گردش کار. اما, the scope of what could be accomplished in this workflow is more limited that one would have with workflows for each state. من میخواستم بدونم که, اما, چه نوع از بهترین عملکرد را می گیرد اگر همه از گردش دولت به صورت انفرادی شروع (البته پایان دادن بلافاصله پس از آن).
    همچنین, من استفاده از یک لیست ثانویه (با گردش خود را) to represent the transition between states as this process might be only part of a larger workflow. When the main workflow starts the state machine process, آن را به حالت انتظار می رود, and proceeds when the "looping" has termintaed. I was also contemplating the possibility that my main workflow may well want to change data in the original List Item, and I wanted to avoid having unnecessary "firings" دولت دستگاه گردش کار.
    پاسخ

ترک پاسخ به پل گالوین لغو پاسخ

آدرس ایمیل شما منتشر نخواهد شد. بخشهای موردنیاز علامتگذاری شدهاند *