Kuelekea SharePoint viashiria Design Sampuli: SharePoint Designer Workflow + Tukio kupokea = High Potency cocktail

Moja ya chati kujitokeza katika kuandika mimi kupata ufumbuzi SharePoint leverages SharePoint Designer workflow na mpokeaji tukio.

Hapa ni mazingira ya biashara na kuiweka katika mazingira ya:

  • Mimi upload hati lib doc.
  • Mimi kick off hatua mbalimbali workflow kuundwa kwa kutumia SharePoint Designer.
  • Wakati fulani wakati wa mchakato huo, workflow inateua kazi kwa mtu (kupitia kukusanya data kutoka kwa mtumiaji au hawawajui kazi).
  • 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.
  • Hapa ni kicker: Nataka tarehe ya kuendesha KPI kuwa likizo-kufahamu.

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. Hata hivyo, it’s easy enough to calculate such a date in an event receiver. Merge those two together and we get a pattern like this:

  • Define a hidden yes/no site column on the document library labeled "DoCalcualteDueDate".
  • Initialize ya uongo.
  • Kwa wakati muafaka katika workflow (e.g. just before the "collect data" hatua), hawawajui kwamba thamani ya Kweli.
  • ItemUpdate() event receiver looks to see if "DoCalculateDueDate" is true. Since the event receiver runs on every update, "DoCalculateDueDate" kawaida ni ya uongo.
  • Wakati workflow inateua DoCalculateDueDate kwa kweli, receiver tukio mahesabu ya likizo-kufahamu kutokana na tarehe.
  • Wakati receiver tukio gani hii hesabu, unaweka bendera DoCalculateDueDate ya uongo.

Katika mwisho, 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.

</mwisho>

Kujiunga na blog yangu.

Kuondoka Reply

Anwani yako si kuchapishwa. Mashamba required ni alama *