SharePoint Design Patterns teknikoa Hacia: SharePoint Designer Workflow + Gertaera hargailuen = Handia potentzia koktela

Ereduak sortzen ari diren konponbideak aurkituko SharePoint crafting dut bat SharePoint Designer workflow eta gertaera hargailu bat baliatzen du.

Hona hemen enpresa eszenatoki jarri behar da testuinguru:

  • Dokumentu bat igo dut doc lib bat.
  • Off alboratzen dut anitzeko urratsa workflow sortu SharePoint Designer erabiliz.
  • Prozesu horretan zehar uneren, workflow Zeregin bat esleitzen norbait (biltzeko bitartez erabiltzailearen datuak edo Zeregin bat).
  • 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.
  • Hemen jaurtitzailearen da: Data hori KPI gidatzen duten opor-jakitun izan nahi dut.

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. Hala eta guztiz ere, 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".
  • Hasieratu da faltsua.
  • Eu dagokion momentuan (e.g. just before the "collect data" Ekintza), esleitzeko balioa duten True.
  • ItemUpdate bat() event receiver looks to see if "DoCalculateDueDate" is true. Since the event receiver runs on every update, "DoCalculateDueDate" normalean faltsuak.
  • Noiz workflow ematean egia DoCalculateDueDate, gertaera hartzailea jai-jakitun epemuga kalkulatzen.
  • Noiz gertaera hartzailea kalkulua, hau da,, DoCalculateDueDate bandera ezartzen du faltsua.

Azkenean, 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.

</amaiera>

Nire blog Harpidetu.

Utzi iruzkin bat

Zure e-posta helbidea ez da argitaratuko. Beharrezko eremuak markatu dira *