Існуючыя ўмовы: SharePoint абвесткі Шаблоны для выратавання (?)

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. Напрыклад, 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 🙂

Мой кліент мае шэраг ўсё яшчэ нявыкананых патрабаванняў, 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. "Дазволіць" або "Забараніць") and we can specify a hard coded value in the title and description. That’s about it.

Мае патрабаванні кліента складаецца з двух частак:

  1. Калі SharePoint пасылае ліст аб прызначанай задачы, ўключаюць у сябе шмат інфармацыі аб задачы ў целе паведамлення электроннай пошты.
  2. Што яшчэ больш важна, нашмат – калі карыстальнік націскае на задачы спасылку ў лісце,, 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 (InfoPath форму ў гэтым выпадку). Then you click back/back, і г.д.. Everyone hates it.

Я атрымаў у спадчыну гэтую некалькі брудных тэхнічнае рашэнне, і я хачу ўнесці змены ў найменш дакучлівым спосабам.

The approach I’m taking right now is to create a custom alert template. Вы можаце прачытаць пра гэта тут. The flow works like this:

  • СПД рабочым працэсам.
  • У нейкі момант, ён прызначае задачу мэнэджара.
  • SharePoint system automatically sends out an alert to that manager. This is not part of the SPD workflow but rather “what SharePoint does.” (Службы таймера SharePoint, Я лічу,).
  • Карыстацкі апрацоўшчык абвесткі выклікаецца ў карысць стандартнае папярэджанне працэсу (пасля магічны правілы, як апісана ў вышэйпаказанай артыкуле).
  • Калі мой персаналізаванага абвесткі выкананні апрацоўшчыка, it generates a beautiful email. Што яшчэ больш важна, так як ён мае пастаўленай задачай, яно таксама ўпрыгожвае актуальнай задачай з усімі кантэксце інфармацыі, неабходнай для задавальнення бізнес-патрабаванняў.
  • Карыстальнік атрымлівае ліст, і гэта поўна карыснай інфармацыі кантэксту.
  • Карыстальнік націскае на спасылку задачай і задачай само па сабе поўны карыснай інфармацыі кантэксту.
  • Усе ідуць дадому, каб кавуны і марозіва.

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.

Адзінай хітрасцю, да гэтага часу, , Каб пазбегнуць сітуацыі, у якой апавяшчэнне абнаўляе элемент, triggering another alert. This doesn’t worry me.

Выглядае шматабяцальным да гэтага часу ...

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 бегчы In Da Bakground, DECORATIN ТЫХ спіс задач WIF MOAR КАНТЭКСТ".

</канец>

Падпісацца на мой блог.

Выконвайце за мной на Twitter у http://www.twitter.com/pagalvin

Пакінуць каментар

Ваш электронны адрас не будзе апублікаваны. Абавязковыя палі пазначаныя * *