I have a business scenario like this:
- A user uploads a document to a document library.
- She selects a content type and enters meta data as needed. One of the meta data fields is a flag, "Urgent".
- This triggers a SharePoint Designer workflow that, miongoni mwa mambo mengine, uses the "Collect Data from a User" hatua.
"Collect Data from a User" creates an item in a task list requesting approval for that document.
I needed to create a view of the task list that showed urgent requests for approval.
Ufumbuzi: Put the word "URGENT:" into the title of these tasks.
I would have preferred to specify the priority field directly. Hata hivyo, I was unable to do that for several reasons:
- The collect data action does not provide a mechanism to update any field other than title (na wale mashamba ya ziada kwa ajili ya ambayo unataka kukusanya data).
- The "assign a to do item" hatua ina tatizo moja.
- Inawezekana kuingiza bidhaa katika orodha (i.e. kuingiza bidhaa katika orodha ya kazi moja kwa moja) but this not a blocking action. That means that the workflow will not wait for the user to complete that task.
Nikaziangalia mbinu chache kabla ya (nashiriki) realizing we could just put "urgent" katika cheo.
- Kuanza workflow kwenye orodha ya kazi yenyewe ili wakati kazi mpya ni kuundwa, marejeo ni kwa namna fulani kuvuka nyuma ya hati ambayo ilianza workflow kwanza, pull out the urgent flag value and update priority as needed.
- Do something similar with an event receiver. On create of the task, Machapisho ya hati ya kuhusishwa na update kipaumbele kama inahitajika.
- Use the "create list item" action in conjunction with the "wait for field change" action and an event receiver. If we create a list item, we can specify all the fields we want. Use an event receiver to update the original item when the user completes the task and the "wait for field change" action’s condition would be met and the workflow would proceed. (Kwa sababu baadhi ya, Mimi nilikuwa zaidi au chini ya makazi ya mbinu hii kabla ya busara ya kuamua kutembea mbali kwa muda).
Kuna Drawback kwa ufumbuzi yangu (mbali ya ukweli dhahiri kwamba tu Nakala ya cheo inaonyesha uharaka). Since "collect feedback" tu anapokea ngumu coded cheo majina, I need to use two different collect feedback actions whose only difference is that hard coded title.
Lakini, angalau kuna ufumbuzi kwamba hauhitaji kupokea tukio au desturi vitendo SPD.
Kama mtu ana kutatuliwa hili kwa njia ya wajanja zaidi, tafadhali napenda kujua.
</mwisho>
Hi,
I found the following method useful:
http://riedoh.blogspot.com/2011/06/setting-priotity-of-task-in-sharepoint.html
Regards
Riedoh