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.

9 xav txog"SharePoint Designer — Kev ua kev cai rau txim tuag neeg txhais C# zog

  1. Gerry Whitworth
    Kuv raws li nws cov lus qhia thiab txhua yam kev ua hauj lwm kom txog thaum kuv xaiv qhov txiav txim hauv SP Designer seemed. Daim designer twg tsis paste cov cai nyob hauv lub workflow. Kuv xa mus no txiv leej tub ib tug thiab kuv twv nws heev teb cov lus no.
    Kuv solved qhov teeb meem kuv tus kheej.
    Yav tas los rau tej yam kev ua ntawm "SpdGenericInterface.actions" hauv "WSS.actions cov" cov ntaub ntawv thiab muab txhua yam kev ua hauj lwm. Kuv vam tias qhov no yuav pab lwm tus.
    Teb
  2. Marco mancinelli
    nyob zoo sawv daws,
    leej twg yuav piav txog yam ntaub ntawv web.config kuv muaj lug hloov? Thov teb sai sai.
    Teb
  3. Marco mancinelli
    Nws suab zoo, tab sis, kuv tsis tau nruab ib ncua ntxiv =(
    Kuv Designer con pom nws tab sis thaum kuv nias rau nws tsis muaj dab tsi tshwm sim… thov pab… tnx.
    Teb
  4. Mike Mongeau

    Twv yuav raug hu nrov zoo li ib lub tswv yim zoo. Kuv yuav hlub yuav muab kev koom tes rau cov kev pab thiab kev tshuaj ntsuam txog ntawm lub zog. Yog muaj tseeb tias cov hlua zog yog txwv nyob rau hauv SPD, tab sis qhov "Dynamic hlua Builder" yog zoo nkauj haib.

    <ib tug href ="http://dataformwebpart.com">-Monjo </ib tug>

    Teb
  5. Bernard Lambeth

    Kuv yuav siv qhov kev ua kev cai kom hloov() muaj nuj nqi. Cov ua liaj ua teb yog SharePoint 2007, cov qhov web load balanced pem hauv ntej-hnub. Kuv tabtom tau txais sib quas ntus yog tsis pib kom raug, tab sis cov workflows mas Updated 10/22/07/f.Triplett nyob rau 5 – 15 min. Kuv ntseeg tias txoj hauj lwm hauv timer Workflow thiab cov Workflow Failover no restarting lub workflows. Kuv saib daim SharePoint cav, thiab thaum kawg ntes tau qhov yuam kev.

    RunWorkflow: Microsoft.SharePoint.SPException:
    tom Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.LoadXomlAssembly(Txoj hlua assmNameIn, SPWeb Web site)
    tom Microsoft.SharePoint.Workflow.SPWinOeHostServices.CreateInstance(Guid trackingId, SPWorkflow workflow)
    tom Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(Guid trackingId, SPWorkflowHostService party, SPWorkflow workflow, phau txheej xwm, TimeSpan timeOut)
    tom Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflowElev(SPWorkflow originalWorkflow, SPWorkflow workflow, phau txheej xwm, SPRunWorkflowOptions runOptions)

    Kuv pom ib tug siv tau qhov no yuam kev rau lwm blog, http://www.kentd.com/index.php/all-blog/218-nivlag-and-spdgenericinterface. Tus sau qhia nws tau siv cov kev cai actitivity hloov(), zoo li. Koj puas pom muaj qhov yuam kev? Koj puas muaj tswv yim daws nws yuav ua li cas?

    Teb

sau ntawv cia

Koj email chaw nyob yuav tsis muab luam tawm. Search cim *