SharePoint సాంకేతిక డిజైన్ పద్ధతులు వైపు: SharePoint డిజైనర్ వర్క్ఫ్లో + ఈవెంట్ స్వీకర్త = హై శక్తి కాక్టెయిల్

నేను SharePoint పరిష్కారాలను ఇమిడి కనుగొనేందుకు చెందుతున్న నమూనాల ఒక SharePoint డిజైనర్ వర్క్ఫ్లో మరియు కార్యక్రమం రిసీవర్ ప్రభావితం.

ఇక్కడ సందర్భంలో అది చాలు ఒక వ్యాపార దృశ్య:

  • నేను ఒక డిఓసి lib ఒక పత్రం అప్లోడ్.
  • SharePoint డిజైనర్ ఉపయోగించి రూపొందించినవారు నేను ఆఫ్ వదలివేయడానికి బహుళ దశల వర్క్ఫ్లో.
  • ఆ ప్రక్రియ సమయంలో కొన్ని పాయింట్ వద్ద, వర్క్ఫ్లో ఎవరైనా ఒక పని అప్పగిస్తాడు (యూజర్ నుండి సమాచారాన్ని సేకరించడానికి లేదా ఒక బాధ్యతను అప్పగించడం ద్వారా).
  • 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.
  • ఇక్కడ kicker వార్తలు: నేను KPI సెలవు-తెలుసుకోవాలి అని వెళ్ళే తేదీ అనుకుంటున్నారా.

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. అయితే, 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".
  • తప్పుడు దానిని ప్రారంభించటానికి.
  • వర్క్ఫ్లో తగిన సమయంలో (ఉదాహరణకు. just before the "collect data" క్రియ), ట్రూ ఆ లెక్కించాల్సి.
  • ఒక ItemUpdate() event receiver looks to see if "DoCalculateDueDate" is true. Since the event receiver runs on every update, "DoCalculateDueDate" సాధారణంగా తప్పుగా.
  • వర్క్ఫ్లో నిజమైన కు DoCalculateDueDate కేటాయించే సమయంలో, ఈవెంట్ రిసీవర్ సెలవు-ఎవేర్ గడువు తేదీ లెక్కిస్తుంది.
  • ఈవెంట్ రిసీవర్ ఈ లెక్కలో చేస్తుంది, అది తప్పుకు DoCalculateDueDate జెండా అమర్చుతుంది.

చివరికి, 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.

</చివర>

నా బ్లాగ్ సబ్స్క్రయిబ్.

Technorati టాగ్లు: ,

ఒక Reply వదిలి

మీ ఇమెయిల్ చిరునామా ప్రచురితమైన కాదు. లు గుర్తించబడతాయి *