Suas chun dáta: Féach ar an díospóireacht seo MSDN, go háirithe an iontráil seo caite: http://forums.microsoft.com/MSDN/showpost.aspx?postid=2631057&siteid=1. It describes a condition that may short circuit this whole thing. I mbeagán focal, d'fhéadfadh sé a bheith chomh simplí a dhéanamh ar a laghad ceann amháin de na réimsí éigeantacha.
Tá mé leabharlann doiciméad a thacaíonn le ocht cineálacha ábhar.
I have a SharePoint Designer workflow that wants to calculate and assign a "reminder date" ag simplí a dhealú 30 lá ó cholún eile, "due date". This should only happen for one of the content types, "Insurance". The business objective is to produce a KPI that shows two categories of insurance documents: "about to expire" and "expired." (Is féidir leat níos mó eolas faoi chineál seo de KPI agus a léamh níos substaintiúla druil-síos anseo).
I have configured the workflow to fire when a new item is created and when an item is modified. The idea is that when an insurance document is uploaded, we calculate a "warning date" based on the expiration date. A pair of views work in connection with a KPI List to highlight these conditions when users hit their home page.
Ní dhéanann an straitéis seo ag obair nuair a uaslódáil mé doiciméad.
I upload the document and I am presented with the meta data entry screen. Ag an bpointe seo, I’m already in trouble. SharePoint has already, ró-luath ó mo thaobhsa, fired the workflow. I haven’t had a chance to pick the correct content type nor assign a due date. Ag an am céanna, the workflow does not fire when I hit the submit button at this time. There’s some built-in logic that "believes" that first submit is part of the "create" event. Mar sin, … Tá mo sreabhadh oibre fired agus nuair a forghníomhaíodh é, it was passed default meta data values.
The best work-around I know of is to insert a "pause until" activity in the workflow. I have the workflow pause for 1 minute. While it’s pausing, Roghnaigh mé an cineál inneachair ceart, enter the meta data and submit. The pause completes and the workflow proceeds as needed. (Tabhair faoi deara gur i mo thimpeallacht, timer workflow activities from SPD do not work out of the box. You may have the same trouble. Féach anseo le haghaidh tuilleadh sonraí).
I don’t like "magic delay" work-around. What happens if the user uploads a document and the phone rings and the ensuing conversation outlasts the pause? I can make the pause longer, ach tá mé nach bhfuil fós mhaith é.
Scríobh mé faoi seo ar na fóraim MSDN anseo: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2430725&SiteID=1