Qeb Archives: SharePoint Workflow

Ntxov ntxov Workflow ua kom — Ib cov tshuaj uas tsis yog kev kho mob

HLOOV TSHIAB: Pom tau qhov sib tham no MSDN, tus nkag teb chaws kawg tshwj xeeb: http://forums.microsoft.com/MSDN/showpost.aspx?postid=2631057&siteid=1. Nws piav ib yam mob uas tej zaum short circuit no tseem tshaj plaws. Hauv ntej, nws yuav yooj yim sai li ua yam tsawg los ib teb Individual.

Kuv muaj ib daim ntawv qiv uas tuav cov hom yim.

Kuv muaj ib tug workflow SharePoint Designer xav mus rau xam thiab cob lub "ceeb toom hnub" los cias subtracting 30 hnub ntawm ib sab, "hnub so". Qhov no yuav tsuas tshwm sim rau ib hom kawm ntawd, "Pov hwm". Lub hom phiaj ua hauj lwm yog tsim kom tau ib cov KPI uas muaj ob hom ntaub ntawv tuav pov hwm uas: "txog rau expire" thiab "tso cai?." (Koj yuav nyeem ntxiv txog yam no ntawm KPI thiab ntau ntau yam pauv loj laum-down ntawm no).

Kuv muaj configured lub workflow los txo thaum tsim ib yam tshiab thiab thaum twg ib yam hloov. Tsab cai idea yog tias thaum muaj ntawv tuav pov hwm yog uploaded, Peb xam lub "ceeb toom hnub" raws li hnub tas kas nuv. Ib nkawm views ua hauj lwm muaj feem rau ib daim ntawv teev KPI los highlight cov mob no thaum neeg siv cov ntaus lawv qhov home page.

Qhov uas zoo tsis ua hauj lwm thaum kuv upload ib qho ntaub ntawv.

Daim ntawv upload kuv thiab kuv nyob nrog lub meta tej ntaub ntawv nkag teb chaws npo. Thaum no tus taw tes, Kuv twb nyob rau teeb meem. SharePoint twb twb, ntawm kuv foundations prematurely, raug rho tawm haujlwm lub workflow. Kuv tsis muaj sij hawm rau tej yuav cob ib hnub tsis de cov seb puas muaj tseeb. Tib lub sij hawm, cov workflow nrho tsis tau thaum kuv ntaus submit khawm zaum no. Muaj ib co built-in logic uas "ntseeg hais tias" uas xub xa yog ib feem ntawm qhov "tsim" hem. Li ntawd … Kuv workflow raug rho tawm haujlwm lawm thiab thaum nws tseg, nws kis tau vim meta cov ntaub ntawv qhov tseem ceeb.

Tus zoo ua haujlwm-ncig kuv paub tias yuav mus tau ntxig "mas mus txog" yam nyob hauv lub workflow. Kuv xav mas workflow rau 1 feeb. Txawm nws yog pausing, Cov hom yog xaiv kuv, sau cov ntaub ntawv meta, thiab muab. Cov mas tub num tsoom sau thiab qhov workflow proceeds ntxiv. (Nco ntsoov tias nyob rau hauv kuv ib puag ncig, timer workflow si los SPD tsis ua hauj lwm hauv lub thawv. Tej zaum koj yuav raug qhov teeb meem qub. Saib ntawm no rau ntxiv).

Kuv tsis nyiam "magic qeeb" ua-ib ncig. Ua li cas yog hais tias tus neeg siv uploads ib qho ntaub ntawv thiab cov xov tooj rings thiab qhov sib tham ensuing outlasts tus mas? Kuv yuav ua tus mas ntev, tab sis kuv tseem tsis nyiam nws.

Kuv thiaj sau hais txog qhov no rau hauv forums no los MSDN li no: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2430725&SiteID=1

Yooj yim thiab ceev thaum: Xa tus email nrog embedded hyperlink ntawm SharePoint Designer workflow

Hli ib zaug los yog ob zaug, ib tug neeg posts ib lo lus nug hauv rooj sab laj: "Cas ua kuv li hyperlinks rau URL ntawv uas yog los ntawm ib cov SharePoint Designer email clickable?"

Hais tsis tau ntxiv saib: (zoo, yeej yog saib ntxiv tom qab daim duab):

duab

Becky Isserman raws nrog ib tus pab piav embed ib qhov txuas rau ib yam khoom rau tus email no yuav ua li cas: http://www.sharepointblogs.com/mosslover/archive/2007/11/20/addition-to-paul-galvin-s-post-about-sending-an-e-mail-with-hyperlinks-in-spd.aspx

Ntawv cim npe Technorati: , ,

Yooj yim thiab ceev thaum: Pab kom cov SharePoint Designer workflow los mus hloov ib cov ntawv InfoPath

Scenario: Kuv muaj ib daim InfoPath ntawd hauv ntej-hnub tau neej DVR siv SharePoint Designer workflow. Rau ib kis, ib tug neeg saib xyuas yuav tsum pom zoo rau tsab ntawv. Lawm kuv yuav tsis suav rau yav tas los workflow kom tau raws li kuv tus auditing yuav tsum, Kuv txiav txim siab yuav muab kuv cov lus uas koj auditing cia rau hauv daim ntawv xwb.

Txheej txheem cej luam:

Tsim muaj rau tsab ntawv thiab luam tawm tsab nws lub yog ib cov hom thiab nws tus kheej mus rau lub tsev qiv ntawv hauv daim ntawv. Kos qhov kev kawm ntawv daim ntawv teb yog ib tug updateable NTXHUAB. Daim ntawv tied rau cov hom thiab cov hom "txuas" mus rau lub tsev qiv ntawv ntaub (los ntau, yog koj xav). Sau ib cov workflow uas siab teb.

Ib ruam:

  1. Ua ib daim ntawv qiv. Qhov no yuav tau tuav koj InfoPath template.
  2. Tsim ib tug ntawv qiv.
  3. Tsim daim InfoPath. Muaj ib daim teb ntawv nyeem, "Tshawb lus".
  4. Luam tawm tsab ntawv ua ib yam uas koj kawm ntawd (TSIS muaj ntaub ntawv).
  5. Thaum uas sau teb cov dialogs publishing:
    ib tug) Txuag cov .xsn ua ntaub ntawv thov mus rau lub tsev qiv ntawv hauv daim ntawv (kauj ruam #1).
    b) Luam tawm tsab "Audit hais" teb thiab kos yeej muaj tseeb: "Cia cov neeg los kho kom raug cov ntaub ntawv nyob hauv daim teb no thaum uas siv cov datasheet los yog khoom phab".
    c) Ua kom muaj txheej ib yam tshiab thiab muab nws ua ib lub npe uas tsim nyog.
  6. Saib tau cov ntaub ntawv qiv.
    ib tug) Mus rau hauv tej chaw nws txawm zoo thiab pab tau cov tsev qiv ntawv cov ntaub ntawv uas tswj cov hom.
    b) Xaiv cov hom tshiab khiv created (5c saum toj no). Nws yuav tsum tau grouped nyob rau hauv "Microsoft InfoPath" (lossis zoo).
    c) Tshem cov default "daim ntawv" cov hom los ntawm lub tsev qiv ntawv.
    d) Suam saib koj lub tsev qiv ntawv "qhia raws li cov qhov web page" ua daim ntawv yuav tua tawm los ntawm SharePoint thiab tsis tus InfoPath workstation neeg.
  7. Rov qab mus rau hauv cov tsev qiv ntawv kom zoo thiab nias rau "New" kom tsuas muaj tseeb hais tias daim ntawv no muab lo kom raug thiab kuj raws li koj xav.
  8. Hluav taws tuaj SharePoint Designer thiab next lub site hosts koj lub tsev qiv ntawv uas yog daim ntawv (los ntawm cov kauj ruam 2).
  9. Tsim ib tug tshiab workflow uas txuas mus rau lub tsev qiv ntawv ntaub.
  10. Ntxiv ib tug nkaus nkaus xwb "Laij teb rau tam sim no yam". Koj yuav tsum npaj muaj SharePoint Designer daim ntawv teev koj nyob nraum koj thaj teb, "Tshawb lus". Cob nws muaj nqis.
  11. Nyem tag thiab rov qab mus rau lub tsev qiv ntawv hauv daim ntawv.
  12. Tsim ib daim ntawv tshiab thiab yuav muab qee tus nqi kuaj no mus rau qhov "Audit xov" teb.
  13. Txuag cia thiab rov qab mus rau lub tsev qiv ntawv hauv daim ntawv.
  14. Right-click, xaiv "Workflow" thiab pib nce koj workflow.
  15. Nws yuav tsum khiav tam sim ntawd yuav luag. Rub tau tsab ntawv (los ntawm cov kauj ruam 12) thiab yog hais tias tag nrho cov tau ncaim mus npaj, "Tshawb xov" muaj nyiaj no txawm tus nqi uas koj pab nyob rau theem 10.

Sau ntawv:

Tsis yog txhua yam ntawm lwm yam uas yuav configured kev no sib tham lis-directional. Piv txwv, nws tsis zoo li kev ua SPD workflow uas yog modifies ntawv teb qhwv hauv rov khej.

Ib qho ntawm qhov tseem ceeb mus-lawm tus no yog tias peb twb yeej tsim ib yam cov uas muaj tus mob template. Qhov no tseem enables peb khaws cov ntau InfoPath daim ntawv templates nyob rau daim ntawv qiv tib.

Qhov no yuav tsum tau cov ntaub ntawv neeg rau zaub mov. Nws yog feem coob yeej tsis mus ua hauj lwm hauv ib WSS 3.0 ib puag ncig thiab tej zaum kuj yuav tsum ua lub chaw Enterprise SharePoint.

SharePoint Designer — Kev ua kev cai rau txim tuag neeg txhais C# zog

HLOOV TSHIAB: Qhov no muaj lawm tso rau CodePlex no: http://www.codeplex.com/spdwfextensions

HLOOV TSHIAB: Ntawm no saib tseeb sau ntawv tso lus muab tawm rau cov: http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!381.entry

HLOOV TSHIAB: Saib ntawm no kuv xav nyob commercializing qhov project no: http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!569.entry

No yog ib qhov kev ib yam kev cai rau hauv SharePoint Designer. Siv txoj kev kev cai no yuav ua tau rau tus (dispatch) tej C# ua haujlwm uas koj ua tus los ua ke linked incorporated.

As of pib lub kaum hli ntuj, 2007, qhov no yog ib qho pib version ntawm qhov kev tsim. Kuv yuav nthuav nws muaj ntau zog ntxiv, xws li substring, Performance Index, hloov, invoking web kev pab thiab tej yam uas rau nkawd pab tau los nthuav. Kuv tseem npaj rau rooj vag qhov no rau codeplex thaum kuv muaj kuv cov cai ua ke rau hauv ntej ntawd. Qhov no kuj yuav deployable ua tus muab ntawm tej taw tes.

Yog hais tias koj muaj tej lus, yog muaj lus nug lossis tswv yim, thov koj cia rau hauv cov lus los yog email rau kuv.

Disclaimer:

Kuv yuav tsis thov kiag li raws li kev ntsuam no rau txhua lub hom phiaj. Siv koj tus kheej ntxim.

Installation ua ruam (yuav tau ua rau txhua tus WFE hauv lub teb):

1. Download tau lub .zip thiab extract.

2. Nruab ib lub .dll rau lub GAC. Kuv mas qhib c:\windowsassembly siv qhov rais explorer thiab daim ntawv nws muaj.

3. Hloov web.config ntxiv rau los ua ke los ntawm lwm yam uas zoo:

<System.Workflow.ComponentModel.WorkflowCompiler>
<authorizedTypes>

<authorizedType los ua ke = "SpdGenericInterface, Version = 1.0.0.0, Culture = nruab nrab, PublicKeyToken = abe076fd8125f3c4" Namespace = "Nivlag" TypeName = "*" Tso cai = "tseeb" />

4. Daim ntawv "SpdGenericInterface.actions" mus C:\Qhov kev pab cuam FilesCommon FilesMicrosoft Sharedweb neeg rau zaub mov extensions12TEMPLATE1033Workflow

Nco ntsoov tias ntawm qhov chaw nyob saum toj no yog hais rau cov kawm lus Askiv cov lus sib.

5. Kaw SharePoint Designer (Yog hais tias nws twb qhib).

6. iisreset

7. Qhib cov SPD thiab tsim tau ib cov workflow tshiab.

Yog hais tias txhua yam mus zoo, koj yuav tsum tau rewarded rau ib qeb kev tshiab:

duab

Sau ntawv:

Saib ntawm no (http://blogs.msdn.com/sharepointdesigner/archive/2007/03/15/adding-activities-to-spd.aspx) rau ib tug paub cov txheej txheem kev tsim zoo kawg li, txhim kho thiab configuring tov nyiam qhov no.

Tus .zip yog tsim extract ncaj qha tuaj rau koj c:\ tsav. Yog koj ua li no, koj tuaj yeem yuav qhib tau lub qhov project thiab tag nrho cov paths yuav zoo ib yam.

Qhov no siv rau studio nrig txog kev pom, tej zaum koj yuav nruab "Extensions rau qhov rais WF".

Tus upload thawj zaug muaj ib tug "dispatcher muaj nuj nqi", "ToLower()". Ntxiv dua functionality, ntxiv ntawd mus nug Execute li:

 kev tiv thaiv override ActivityExecutionStatus
          Txim tuag(ActivityExecutionContext executionContext)
        {

            hlua functionToDispatch;
            functionToDispatch = qhov no.DispatchFunction.ToLower();

            hloov (functionToDispatch)
            {
                rooj plaub no "tolower()":
                    {
                        qhov no.OutResult1 = qhov no.InParam1.ToLower();
                        tawg;
                    }

                neej ntawd:
                    {
                        qhov no.OutResult1 = "Tsis paub hais tias muaj nuj nqi: [" + qhov no.DispatchFunction + "].";
                        tawg;
                    }
            }

            rov qab los ActivityExecutionStatus.Kaw;
        } // ActivityExecutionStatus

    }

Ces, rov ua peb tes num thiab luam cov los ua ke rau lub GAC. Kuv cia siab tias tus iisreset yuav tsum.

SPD Workflow kev cai txiav txim – muab rau <WorkflowInfo> txoj cai lossis tsis txhob siab

Ib feem ntawm txoj kev tsim cov kev cai teem ib lub caij txiav txim rau cov SharePoint Designer yuav tsim tau ".actions ib" cov ntaub ntawv.

Kuv twb pom thiab sim siv tus qauv template uas pib tawm:

<?xml Version="1.0" encoding="utf-8" ?>
<
WorkflowInfo xmlns="http://schemas.Microsoft.com/sharepoint/">
<
Tej yam Tshwm sim los muaj="ces" Mus tib seem="thiab">

Txawm li cas los, tus xmlns attribute tsis pub kuv ib puag ncig ntawm kev ua hauj lwm. Tej yam kuv tsis tshwm nyob rau hauv SPD.

Cov tshuaj no yog strip tawm lub xmlns attribute, ua ib iisreset thiab kaw/re-open SPD.

SharePoint Designer, “Sau tej ntaub ntawv los ntawm cov neeg siv” thiab siv cov ntsiab.

Siv cov "Collect los ntawm cov neeg siv" ua tes hauj lwm tsim thiab cob ua hauj lwm ib tug rau ib tug neeg uas prompts lawv rau cov ntaub ntawv. Cov yam, Kuv twb siv kiag tus neeg siv yuav pom zoo lossis tsis yuav thov thiab sau tej lus.

Daim ntawv no yuav siv daim:

Sua cov ntaub ntawv ntawm cov neeg no (Rau cov zis Kuj sib txawv thiab: collect1)

Txhaj rau cov ntaub ntawv cia li nkaum kiag mus ib series ntawm dialog thawv uas koj qhia cov ntaub ntawv li cas tus neeg siv yuav tsum tau muab thaum ua hauj lwm thiab cov neeg no yog cuab kev.

Rau cov qhov tso zis (Kuj sib txawv thiab: collect1) yam tus ID rau tus neeg ua hauj lwm. Koj siv qhov no rau koj workflow extract tus cov lus teb ntawm tus "piv yam ntaub ntawv twg" kev mob.

Qhia tau tias mob hais li

Yog hais tias teb qhov sib npaug tus nqi

Koj nias qhov teb thiab ces tus f(x) icon thiab nws cia li nkaum kiag mus rau lwm lub thawv dialog. Siv generalized dialog lub thawv no los qhia SPD ob yam;

1. Tus sau thiab qhia kiag tus nqi uas koj yuav piv yog dab tsi.

2. Li cas yuav tsum rau workflow cav nrhiav rau ib kab nyob ntawd sau?

Ua li no:

  1. Hloov yog "qhov" dropdown taw tes rau cov neeg ua hauj lwm kom yog. Nco ntsoov tias lub dialog box expands qhia ib "nrhiav rau daim ntawv teev khoom" seem.
  2. Nyob rau hauv cov Lookup lus teb dropdown, xaiv lub tiaj tus nqi uas koj xav tau lub npe (qhov no yuav ua li cas koj hu rau tus Collect ntaub dialog box los saum maps).
  3. Nyob rau hauv lub "nrhiav yam khoom no sau" seem, xaiv "paub tab:ID" nyob rau hauv lub nras dropdown.
  4. Nyob hauv tus nqi teb, Ndliv qhov f(x). Tau lwm dialog box opens no.
  5. Hloov yog qhov "cov ntaub ntawv Workflow"
  6. Xaiv tus tus neeg kuj sib txawv thiab workflow uas ntais ntawv los kuj sib txawv qhov "tso zis rau thiab" ntawm lub Collect ntaub nkaus.
  7. Nyem OK/OK thiab koj ua nyob nraum.

Nws zoo li no rau kuv:

duab

Thaum no tus taw tes, koj tam sim no siv tau cov nqi ntawd rau koj workflow raws li.

Ntawv ntxiv:

Raws li hauv ib cag ib nyuag, Kuv ib txwm tsim tau ib tug kuj sib txawv thiab raug teev hais paab workflow yam "daim ntawv teev khoom siv" thiab siv uas tsis muaj qhov pib-generated "collect1".

No "piv txhua cov ntaub ntawv tau qhov twg los" dialog teeb yog siv nyob rau hauv ntau ntau qhov hauv SPD thiab puas zoo tsim nyog mastering.

== kawg

Ntawv cim npe Technorati: