Pre-mövcud Conditions: Xilasetmə SharePoint Alert Şablonlar (?)

One of my clients worked with a previous contractor to build out a small but useful HR application for the enterprise. That contractor used SharePoint Designer to implement the workflow portion of the solution. It’s a bit of a mess. Məsələn, there are nine SPD workflows in support of a single logical workflow process and up to five of them may fire simultaneously at any given time given the right conditions. It’s not easy to debug 🙂

Mənim müştəri hələ də görkəmli tələbləri bir sıra, one of which is to generally provide more context when the system sends out email alerts – both in the email itself as well as associated task forms. As SPD workflow implementers know, the “collect data from user” SPD action actually creates a task with a custom content type. When we use that action, we don’t get to specify much. We can prompt for some values (e.g. "Təsdiq" və ya "inkar") and we can specify a hard coded value in the title and description. That’s about it.

Mənim müştəri tələbinə iki qat:

  1. SharePoint tapşırıq tapşırıq haqqında e-poçt göndərir zaman, e-poçt orqan vəzifə haqqında məlumat bir çox daxildir.
  2. Daha da önemlisi, xeyli yaxşı – istifadəçi e-poçt vəzifə link tıkladığında, the task form should have all the information the approver needs in order to make his/her approve or deny decision. Right now, the manager needs to click on the item link itself to drill down into the underlying details and no one likes that. You have to click in the email. Then you need to click a sort of obscure link on the task item. Then you can look at the underlying data (Bu halda bir InfoPath form). Then you click back/back, və s.. Everyone hates it.

Mən bu qədər messy texniki həll miras etdik və mən mümkün ən az müdaxilə yolu ilə dəyişikliklər etmək istəyirik.

The approach I’m taking right now is to create a custom alert template. Siz burada oxuya bilərsiniz. The flow works like this:

  • SPD iş çalışır.
  • Bir anda, bir menecerə tapşırıq verir.
  • SharePoint system automatically sends out an alert to that manager. This is not part of the SPD workflow but rather “what SharePoint does.” (SharePoint timer xidmət, İnanıram).
  • Xüsusi siqnalı handler standart siqnalı prosesinin xeyrinə çağrıldığında (Yuxarıda istinad məqalədə təsvir olunduğu kimi sehrli qaydalarına riayət).
  • Xüsusi siqnalı handler çalıştığında, it generates a beautiful email. Daha da önemlisi, bu tərəfdən vəzifə var, bu da biznes tələblərinə cavab üçün lazım olan bütün kontekstində informasiya ilə faktiki vəzifə bəzəyir.
  • Istifadəçi e-poçt alır və faydalı kontekstində informasiya tam deyil.
  • Vəzifəsi link və vəzifə özü İstifadəçi klik faydalı kontekstində informasiya doludur.
  • Hər kəs qarpız və dondurma üçün ev gedir.

I did a quick POC and it works well in a lab environment. I get my custom email alert as expected. I also get to update the task description and title itself.

Yalnız çətin bit, indiyə qədər, burada uyarı yenilikləri maddə bir vəziyyət qarşısını almaq üçün, triggering another alert. This doesn’t worry me.

Bu günə qədər ümidverici görünür ...

The great thing about this is that I don’t need to muck about with any of the existing SPD workflows. They are blissfully unaware that an alert handler is “IIZ RUNNIN IN DA BAKGROUND, DECORATIN Teh görev siyahısını WIF MOAR MƏZMUNU".

</son>

Blog abunə.

Da Twitter məni izləyin http://www.twitter.com/pagalvin

Şəkil Yükləmə

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