SharePoint Texniki Dizayn Nümunələr doğru: SharePoint Designer Workflow + Hadisə Alıcı = Yüksək Təsirli Cocktail

Mən SharePoint həllər crafting tapa ortaya çıxan nümunələri SharePoint Designer iş və bir hadisə qəbuledici yararlanmaktadır.

Burada kontekstində onun işgüzar ssenari deyil:

  • Mən doc lib bir sənəd yüklemek.
  • SharePoint Designer istifadə edərək, yaratdığınız mən çıxartmaq çox addım iş.
  • Ki, proses zamanı bir anda, iş kimsə bir tapşırıq verir (istifadəçi məlumatları toplamaq və ya bir vəzifə təyin vasitəsilə).
  • We want to use a KPI to track how long that task is awaiting completion. The KPI shows green for tasks that are completed or due more than 3 days from now. It shows yellow if the task is due tomorrow or today. It shows red if the task is past due.
  • Burada soncuqlayan var: Mən KPI bayram-agah olmaq üçün süren tarixi istəyirəm.

I can’t calculate a holiday-aware due date in SharePoint Designer workflow very easily. I would have to create a custom action or use a 3rd party tool. Lakin, it’s easy enough to calculate such a date in an event receiver. Merge those two together and we get a pattern like this:

  • "DoCalcualteDueDate" etiketli sənəd kitabxana bir gizli hə / yox site sütun müəyyən.
  • Yalan da başlamaq.
  • Bu iş müvafiq zamanda (e.g. yalnız "toplamaq data əvvəl" fəaliyyət), Doğrudur ki, dəyərin təyin.
  • Bir ItemUpdate() hadisə alıcı "DoCalculateDueDate görmek üçün görünür" is true. Since the event receiver runs on every update, "DoCalculateDueDate" normal yalan.
  • Iş əsl üçün DoCalculateDueDate verir zaman, Tədbirdə qəbuledici bayram-xəbərdar görə tarix hesablayır.
  • Tədbirdə alıcı bu hesablanması nə zaman, bu saxta üçün DoCalculateDueDate bayraq edir.

Sonda, SPD workflow is communicated with an event receiver via the DoCalculateDueDate semaphore and we have holiday-aware due dates that are assigned at the exactly correct moment in the workflow’s life. SharePoint Designer controls when the due date is assigned but the event receiver performs the actual calculation and assignment.

</son>

Blog abunə.

Şəkil Yükləmə

E-poçt ünvanından dərc olunmayacaq. Lazım alanlar qeyd olunur *