Prijevremena Workflow Aktivacija — Non-Medicinski rješenje

UPDATE: Vidi ovu raspravu MSDN, pogotovo zadnji upis: http://forums.microsoft.com/MSDN/showpost.aspx?postid=2631057&siteid=1. It describes a condition that may short circuit this whole thing. In short, može biti kao jednostavan kao što barem jedan od polja obvezna.

Imam biblioteku dokumenata koja podržava osam vrsta sadržaja.

I have a SharePoint Designer workflow that wants to calculate and assign a "reminder date" jednostavnim oduzimanjem 30 dana od drugog stupca, "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." (Možete pročitati više o ovoj vrsti KPI i jači drill-down ovdje).

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.

Ova strategija ne radi kada ću uploadati dokument.

I upload the document and I am presented with the meta data entry screen. U ovom trenutku, I’m already in trouble. SharePoint has already, prerano iz moje perspektive, fired the workflow. I haven’t had a chance to pick the correct content type nor assign a due date. Istovremeno, 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. Tako … Moj workflow je pucao i kada je izvršena, 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, Sam odabrati ispravnu vrstu sadržaja, enter the meta data and submit. The pause completes and the workflow proceeds as needed. (Imajte na umu da u mom okruženju, timer workflow activities from SPD do not work out of the box. You may have the same trouble. Vidjeti ovdje za više detalja).

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, ali ja još uvijek se ne sviđa.

Napisao sam o tome na MSDN forumima ovdje: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2430725&SiteID=1

8 misli o „Prijevremena Workflow Aktivacija — Non-Medicinski rješenje

  1. Nyi Htway

    hej momački, Dobio sam rješenje. mjesto aktivnost EventDriven uz Workflow inicijalizirati slučaju. staviti OnWorkflowItemChanged događaj. U njoj, uhvatiti ažuriranu vrijednost iz stupca prilagođeni. Ona radi za mene.

  2. Saurabh Singh
    Bok,
    Ja sam stvaranje podsjetnika wrokflow koristeći SharePoint Designer, and when i using "Pause Until Date" aktivnost. It doesn’t resume and Workflow status does not change from "In Progress".
    (i.e it displays "Pausing for 0 minuta" pod povijesti tijeka rada, ali to ne poduzmu određene mjere).
    I have created it many times but found same problem.
    Ja sam učinio neki googling za to u posljednjih nekoliko dana, i od tamo sam dobio hot fix  KB 932394 te ga instalirali, ali još uvijek sam u istom nevolje s Pauza do datuma Aktivnost.
    Također sam promijenio posao tijek rada vrijeme trajanja korištenja stsadm naredbu iz 5 minuta 1 minuta kao ispod:
    stsadm -o setproperty -propertyname "job-workflow" -propertyvalue "every 1 minuta između 0 i 59" -url http://localhost
    , ali je utvrdio isti problem.
    Što trebam učiniti za to?
    Please suggest me why "Pause Until Date" doesn’t resume and Workflow status does not change from "In Progress" u mom rada.
    Ako bilo tko imati bilo koji rješenje o to onda molim vas da mi odgovorite na saurabhsinghmca@gmail.com
    Hvala,
    Saurabh Singh Kumar
  3. Marc Anderson
    Ne može se samo priključiti tijek rada vrsti sadržaja, a od samog popisa? It sounds like you want the workflow only to fire for a specific Content Type, u svakom slučaju.
  4. bogat napisao:
    Vidio sam post na sličan problem koji je rekao da je potrebno napraviti polja potrebno i da će zaustaviti tijek rada od plamena dok se obvezatna polja popuniti. Nisam testirao je samo dokumentiranje ovdje što sam pročitao negdje drugdje.
  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" Vrsta sadržaja (i ne pucaju na stvaranje) ti si dobar to ići.
  6. Joe je napisao:
    Znam što znači… moju riječ ovdje u mom uredu je da se o SharePoint 90% od onoga što stvarno trebate učiniti… ali da je prošle 10% da ne učiniti je obično stvarno ubojica.
  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.
    Hvala za dijeljenje,
    –Pavao G
  8. Joe je napisao:
    Otkrio sam ovaj problem i – ne samo s datum orijentirana tijek rada, ali svaki tijek rada na doc knjižnici, gdje će korisnici uploadati dokumente.
    Ako tijek rada ovisi o bilo metapodataka, 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" datumi, umjesto tijeka rada, 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.

Dopust jedan Odgovor

Vaša email adresa neće biti objavljena. obavezna polja su označena *