SharePoint Designer — საბაჟო საქმიანობაში, რათა შესრულდეს მომხმარებლის განსაზღვრული C # ფუნქციები

განახლების: ეს უკვე გაათავისუფლეს CodePlex აქ: http://www.codeplex.com/spdwfextensions

განახლების: აგრეთვე აქ უახლესი ვერსიის შენიშვნები: http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!381.entry

განახლების: აგრეთვე აქ ჩემი მოსაზრებები იმის შესახებ commercializing ამ პროექტის: 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 (გააგზავნა) any C# function that you incorporated into the linked assembly.

რაც შეეხება საქართველოში ოქტომბრის ბოლოს, 2007, this is just an initial version of the project. I plan to expand it with a number of additional functions, მათ შორის substring, ინდექსი, შეცვლის, 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.

თუ თქვენ გაქვთ რაიმე კომენტარი, შეკითხვა ან წინადადებები, გთხოვთ, დატოვონ მათ კომენტარი ან მომაწოდეთ.

პასუხისმგებლობის:

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

დაყენების ნაბიჯები (მოჰყვება თითოეული WFE ფერმაში):

1. Download. Zip და ამონაწერი.

2. Install the .dll into the GAC. I usually open c:\Windows ასამბლეის იყენებთ Windows explorer და კოპირება არსებობს.

3. შეცვლა web.config დაამატოთ ასამბლეის უსაფრთხო კონტროლი:

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

<authorizedType Assembly="SpdGenericInterface, მობილური = 1.0.0.0, კულტურის = ნეიტრალური, PublicKeyToken = abe076fd8125f3c4" Namespace="Nivlag" TypeName="*" Authorized="True" />

4. Copy "SpdGenericInterface.actions" რომ C:\Program Files Common Files Microsoft საერთო სერვერზე გაგრძელება 12 თარგი 1033 სამუშაოს

გაითვალისწინეთ, რომ ზემოთ ადგილმდებარეობა სპეციფიკური ინგლისური ენის დანადგარები.

5. დახურვა SharePoint დიზაინერი (თუ ეს უკვე გახსნა).

6. iisreset

7. გახსნა SPD და ახალი სამუშაო პროცესის.

თუ ყველაფერი კარგად, თქვენ უნდა დაჯილდოვდა ახალ კატეგორიას აქცია:

იმიჯი

შენიშვნები:

აგრეთვე აქ (http://blogs.msdn.com/sharepointdesigner/archive/2007/03/15/adding-activities-to-spd.aspx) ამისთვის შესანიშნავი მიმოხილვა პროცესი ქმნის, დაყენების და კონფიგურაციის გამოსავალი მსგავსი.

. Zip განკუთვნილია ამონაწერი უშუალოდ თქვენ გ:\ drive. If you do this, შეგიძლიათ გახსნათ პროექტი და ყველა გზები იქნება თანმიმდევრული.

რომ გამოიყენოთ ეს ვიზუალური სტუდიაში, you probably need to install "Extensions for Windows WF".

The initial upload contains just one "dispatcher function", "ToLower()". To add more functionality, დაამატეთ იგი შეასრულოს მეთოდი როგორც ნაჩვენებია:

 დაცული override ActivityExecutionStatus
          სიკვდილი(ActivityExecutionContext executionContext)
        {

            სიმებიანი functionToDispatch;
            functionToDispatch = ამ.DispatchFunction.ToLower();

            გადართვის (functionToDispatch)
            {
                შემთხვევაში "tolower()":
                    {
                        ამ.OutResult1 = ამ.InParam1.ToLower();
                        შესვენება;
                    }

                სტანდარტული:
                    {
                        ამ.OutResult1 = "Unknown function: [" + ამ.DispatchFunction + "].";
                        შესვენება;
                    }
            }

            დაბრუნდნენ ActivityExecutionStatus.დახურვის;
        } // ActivityExecutionStatus

    }

მაშინ, re-build the project and copy the assembly to the GAC. I expect an iisreset would be required.

9 thoughts on "SharePoint Designer — საბაჟო საქმიანობაში, რათა შესრულდეს მომხმარებლის განსაზღვრული C # ფუნქციები

  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.
    მე გადაჭრა პრობლემა თავს.
    Past the actions from "SpdGenericInterface.actions" into the "WSS.actions" file and it everything worked. I hope this helps others.
  2. Marco mancinelli
    ჟღერს კარგი, მაგრამ მე ვერ ვაყენებ გაგრძელების =(
    ჩემი დიზაინერი con დანახვა, მაგრამ როცა დაწკაპეთ იგი არაფერი გამოჩნდება… გთხოვთ… tnx.
  3. მაიკ Mongeau

    ნამდვილად ჟღერს, კარგი იდეა. მე მიყვარს ჩაერთოს გამოყენება და ტესტირების ფუნქციები. მართალია, სიმებიანი ფუნქციები იზღუდება SPD, but the "Dynamic String Builder" საკმაოდ ძლიერი.

    <ტექნიკური კონფერენცია"http://dataformwebpart.com">-Monjo </a>

  4. Bernard Lambeth

    I’m using this custom activity to Replace() ფუნქცია. 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 ვებგვერდი)
    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(), as well. Have you seen this error? Do you have any suggestions on how to resolve it?

დატოვე პასუხი უნდა Marco mancinelli პასუხის გაუქმება

თქვენი ელ-ფოსტა არ გამოქვეყნდება. აუცილებელი ველები მონიშნულია *