SharePoint Designer — Pertsonalizatua jarduera erabiltzaileak definitutako C # funtzio exekutatu

UPDATE: Hori CodePlex kaleratu hemen: http://www.codeplex.com/spdwfextensions

UPDATE: Ikusi hemen oharra Azken oharrak: http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!381.entry

UPDATE: Ikusi hemen nire pentsamenduak proiektu honi buruzko merkaturatzea: http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!569.entry

This project provides a custom activity in SharePoint Designer. Use this custom activity to invoke (bidaltzea) any C# function that you incorporated into the linked assembly.

Urria berandu gisa, 2007, this is just an initial version of the project. I plan to expand it with a number of additional functions, azpikateak barne, indizea, ordeztu, invoking web services and anything that seems useful or interesting. I also plan to post this to codeplex once I have my act together on that front. This will also be deployable as a solution at some point.

Behar duzu iruzkinak egin nahi izanez gero, galderak edo iradokizunak, Mesedez, utzi iruzkin edo posta elektroniko.

Lege-oharra:

I make absolutely no claims as to the suitability of this for any purpose. Use at your own risk.

Instalazioa urrats (WFE bakoitzean jarraitu beharreko etxalde batean):

1. Deskargatzeko. Zip eta erauzteko.

2. Install the .dll into the GAC. I usually open c:\Windows muntaia Windows Explorer erabiliz, eta berau ez.

3. Aldatzeko web.config muntaia gehitzeko seguru kontrolak:

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

<authorizedType Assembly="SpdGenericInterface, 1.0.0.0 bertsioa =, Kultura = neutrala, PublicKeyToken = abe076fd8125f3c4" Namespace="Nivlag" TypeName="*" Authorized="True" />

4. Copy "SpdGenericInterface.actions" C:\Program Files Common Files Microsoft Shared web zerbitzari hedapenak 12 PLANTILLA 1033 Workflow

Kontuan gainetik kokapena dela ingelesaren instalazio espezifikoak.

5. Itxi SharePoint Designer (da dagoeneko ireki).

6. iisreset

7. Ireki SPD eta workflow berri bat sortzeko.

Dena ondo badoa bada, duzun jarduera-kategoria berri bat behar da saria:

image

Oharrak:

Ikusi hemen (http://blogs.msdn.com/sharepointdesigner/archive/2007/03/15/adding-activities-to-spd.aspx) prozesuaren ikuspegi orokor bat sortzeko emanaldirik for, instalatu eta konfiguratzen hau bezalako irtenbide bat.

. Zip diseinatuta dago zuzenean erauzi nahi duzu c:\ drive. If you do this, Proiektuaren ireki ahal izango duzu, eta bide guztiak koherentea izango da.

Hau erabili ahal izateko ikusmen estudioan, you probably need to install "Extensions for Windows WF".

The initial upload contains just one "dispatcher function", "ToLower()". To add more functionality, gehitu exekutatu metodoa erakusten:

 babesa baliogabetzeko ActivityExecutionStatus
          Exekutatu(ActivityExecutionContext executionContext)
        {

            katea functionToDispatch;
            functionToDispatch = honetan.DispatchFunction.ToLower();

            aldatzeko (functionToDispatch)
            {
                Kasu "tolower()":
                    {
                        honetan.OutResult1 = honetan.InParam1.ToLower();
                        apurtu;
                    }

                lehenetsi:
                    {
                        honetan.OutResult1 = "Unknown function: [" + honetan.DispatchFunction + "].";
                        apurtu;
                    }
            }

            itzultzeko ActivityExecutionStatus.Itxita;
        } // ActivityExecutionStatus

    }

Gero, re-build the project and copy the assembly to the GAC. I expect an iisreset would be required.

9 buruzko gogoeta "SharePoint Designer — Pertsonalizatua jarduera erabiltzaileak definitutako C # funtzio exekutatu

  1. Gerry Whitworth
    I followed his directions and everything seemed to work until I choose the action in SP Designer. The designer did not paste the code in the workflow. I sent this guy an email and I guess he is too busy to respond.
    Arazoa konpondu dut.
    Past the actions from "SpdGenericInterface.actions" into the "WSS.actions" file and it everything worked. I hope this helps others.
    Erantzun
  2. Marco mancinelli
    ona soinuak, baina ezin dut instalatu luzapena =(
    nire diseinatzailea con ikusten baina egin klik i deus agertzen… lagundu… tnx.
    Erantzun
  3. Bernard Lambeth

    I’m using this custom activity to Replace() funtzioa. The farm is SharePoint 2007, with load-balanced web front-ends. I am getting intermittent failure to start errors, but the workflows usually restart in 5 – 15 min. I believe the timer jobs Workflow and Workflow Failover are restarting the workflows. I reviewed the SharePoint logs, and finally caught this error.

    RunWorkflow: Microsoft.SharePoint.SPException:
    at Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.LoadXomlAssembly(String assmNameIn, SPWeb web)
    at Microsoft.SharePoint.Workflow.SPWinOeHostServices.CreateInstance(Guid trackingId, SPWorkflow workflow)
    at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(Guid trackingId, SPWorkflowHostService host, SPWorkflow workflow, Collection`1 events, TimeSpan timeOut)
    at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflowElev(SPWorkflow originalWorkflow, SPWorkflow workflow, Collection`1 events, SPRunWorkflowOptions runOptions)

    I found a reference to this error on another blog, http://www.kentd.com/index.php/all-blog/218-nivlag-and-spdgenericinterface. The author indicated he was using the custom actitivity Replace(), baita. Have you seen this error? Do you have any suggestions on how to resolve it?

    Erantzun

Utzi iruzkin bat Marco mancinelli Utzi erantzuna

Zure e-posta helbidea ez da argitaratuko. Beharrezko eremuak markatu dira *