Roimh Am Gníomhachtaithe Sreabhadh oibre — A Réiteach Neamh-leighis

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

8 smaointe ar "Roimh Am Gníomhachtaithe Sreabhadh oibre — A Réiteach Neamh-leighis

  1. Nyi Htway

    hug guys, Fuair ​​mé an réiteach. cuir gníomhaíocht EventDriven in aice leis an ócáid ​​thúsú Sreabhadh Oibre. a chur ar ócáid ​​OnWorkflowItemChanged. Inside ann, breith ar an luach cothrom le dáta as an gcolún saincheaptha. Oibríonn sé dom.

    Freagra
  2. Saurabh Singh
    Hi,
    Tá mé ag a chruthú wrokflow meabhrúchán ag baint úsáide as SharePoint Dearthóir, and when i using "Pause Until Date" gníomhaíocht. It doesn’t resume and Workflow status does not change from "In Progress".
    (i.e it displays "Pausing for 0 nóiméad" faoi ​​Stair Sreabhadh Oibre ach ní chuireann sé a ghlacadh gníomh sonraithe).
    I have created it many times but found same problem.
    Déanta agam ar roinnt Googling chun gur i roinnt laethanta seo caite, agus ó ann go bhfuair mé a shocrú te  KB 932394 agus suiteáilte sé ach fós tá mé i dtrioblóid céanna le Sos Go dtí Dáta Gníomhaíocht.
    Mé tar éis athrú freisin post-sreabhadh oibre fad ama ag baint úsáide as orduithe stsadm ó 5 nóiméad 1 nóiméad mar atá thíos:
    stsadm -o setproperty -propertyname "job-workflow" -propertyvalue "every 1 nóiméad idir 0 agus 59" -moladh http://localhost
    ach fuair fhadhb chéanna.
    Cad ba chóir dom a dhéanamh ar an?
    Please suggest me why "Pause Until Date" doesn’t resume and Workflow status does not change from "In Progress" i mo sreabhadh oibre.
    Má tá duine ar bith aon réiteach maidir leis seo le do thoil ansin freagra a thabhairt dom ar saurabhsinghmca@gmail.com
    Go raibh maith agat,
    Saurabh Kumar Singh
    Freagra
  3. Marc Anderson
    Ní féidir leat a chur ag gabháil ach an sreabhadh oibre chun an Ábhar Cineál féin seachas ar an liosta? It sounds like you want the workflow only to fire for a specific Content Type, mar sin féin.
    Freagra
  4. saibhir Scríobh:
    Chonaic mé post le ceist den chineál céanna a dúirt gá duit a dhéanamh na réimsí atá riachtanach agus go mbeidh sé stopadh ansin an sreabhadh oibre ó lámhaigh go dtí na réimsí riachtanacha a líonadh i. Nach bhfuil mé tástáil dhoiciméadú sé ach anseo cad a léigh mé áit éigin eile.
    Freagra
  5. Corey
    We had this same issue and what we wound up doing was to create an "Unclassified" content type which was the default. As long as your workflows ignore the "Unclassified" cineál ábhar (agus nach bhfuil tú ag lámhaigh ar chruthú) tá tú go maith chun dul.
    Freagra
  6. Joe Scríobh:
    Tá a fhios agam cad is ciall agat… mo rá thart anseo i mo oifig a dhéanann go SharePoint faoi 90% an méid is gá duit é i ndáiríre a dhéanamh… ach go deireanach 10% nach ndéanann sé é de ghnáth i ndáiríre a killer.
    Freagra
  7. Paul Galvin
    Joe,
    I’m glad to know I’m not the only one. This is another case where SharePoint brings you soooo close to a solution but leaves you short and no really good option to finish the crossing line.
    I went down the same path you describe but didn’t finish it entirely. I expect I will end up doing exactly that in the end.
    Go raibh maith agat as roinnt,
    –Paul G
    Freagra
  8. Joe Scríobh:
    Fuair ​​mé an fhadhb seo freisin – ní hamháin le sreabhadh oibre atá dírithe ar an dáta, ach aon sreabhadh oibre ar leabharlann doc áit a mbeidh úsáideoirí a uaslódáil doiciméid.
    Má bhíonn an sreabhadh oibre ar aon meiteashonraí, you can’t have it fire automatically because the upload fires the workflow before the metatdata is filled in. This is a flaw in SharePoint in my opinion.
    As for "reminder" dátaí, seachas úsáid a bhaint sreabhadh oibre, I ended up writing a timer job that scans the list every day and sends out e-mail reminders based on a date field.
    I tried having users manually start the workflow after the metadata was entered, but I still had a problem using workflow for the reminders because it would pause the workflow until the reminder date, but if the user later edited the document data and changed the date, the old reminder workflow was still out there.
    Freagra

Leave a Reply

Ní thabharfar do sheoladh r-phoist a fhoilsiú. Réimsí riachtanacha atá marcáilte *