SharePoint Designer — Istifadəçi müəyyən C # funksiyaları yerinə yetirmək üçün xüsusi fəaliyyət

UPDATE: Burada CodePlex buraxmışdır olunub: http://www.codeplex.com/spdwfextensions

UPDATE: Son qeydləri üçün buraya baxın: http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!381.entry

UPDATE: Bu layihə kommersiyalaşdırlmasına haqqında mənim fikirlərimi üçün buraya baxın: 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 (göndərmək) any C# function that you incorporated into the linked assembly.

Mərhum oktyabrın kimi, 2007, this is just an initial version of the project. I plan to expand it with a number of additional functions, substring o cümlədən, indeks, dəyişdirmək, 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.

Hər hansı bir şərh varsa,, sual və ya təkliflər, şərh onları tərk və ya mənə e-məktub göndərin.

Disclaimer:

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

Quraşdırma adımları (çiftlikte hər WFE üçün riayət ediləcək):

1. Edir. Zip Download və çıxarış.

2. Install the .dll into the GAC. I usually open c:\windows toplaşmaq Windows Explorer-istifadə edərək orada kopyalayın.

3. Təhlükəsiz kontrol akt əlavə web.config dəyişdirmək:

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

<authorizedType Assembly="SpdGenericInterface, Version = 1.0.0.0, Mədəniyyət = neytral, PublicKeyToken = abe076fd8125f3c4" Namespace="Nivlag" TypeName="*" Authorized="True" />

4. Copy "SpdGenericInterface.actions" C:\Program Files Common Files Microsoft Shared Web Server Extensions 12 ŞABLONU 1033 Workflow

Yuxarıda yer İngilis dili qurğuları xüsusi Qeyd edək ki,.

5. Yaxın SharePoint Designer (artıq açmaq varsa).

6. iisreset

7. SPD açın və yeni bir iş yaratmaq.

Bütün yaxşı giderse, Əgər hərəkət bir yeni kateqoriya ilə təltif edilir:

image

Qeydlər:

Görmək burada (http://blogs.msdn.com/sharepointdesigner/archive/2007/03/15/adding-activities-to-spd.aspx) yaradılması prosesinin bir dəhşətli Baş, bu kimi bir həll quraşdırma və konfiqurasiya.

The. Zip siz c birbaşa çıxarmaq üçün nəzərdə tutulmuşdur:\ drive. If you do this, Əgər layihə aça bilər və bütün yollarını ardıcıl olacaq.

Visual Studio Bu istifadə etmək üçün, you probably need to install "Extensions for Windows WF".

The initial upload contains just one "dispatcher function", "ToLower()". To add more functionality, kimi üsulu yerinə yetirmək üçün əlavə:

 müdafiə alıqlamaq ActivityExecutionStatus
          Yerinə(ActivityExecutionContext executionContext)
        {

            sim functionToDispatch;
            = functionToDispatch bu.DispatchFunction.ToLower();

            keçid (functionToDispatch)
            {
                hal "tolower()":
                    {
                        bu.OutResult1 = bu.InParam1.ToLower();
                        sındırmaq;
                    }

                default:
                    {
                        bu.OutResult1 = "Unknown function: [" + bu.DispatchFunction + "].";
                        sındırmaq;
                    }
            }

            qayıtmaq ActivityExecutionStatus.Qapalı;
        } // ActivityExecutionStatus

    }

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

9 Haqqında "fikirləriSharePoint Designer — Istifadəçi müəyyən C # funksiyaları yerinə yetirmək üçün xüsusi fəaliyyət

  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.
    Mən problem özüm həll.
    Past the actions from "SpdGenericInterface.actions" into the "WSS.actions" file and it everything worked. I hope this helps others.
    Cavab
  2. Marco mancinelli
    bütün hi,
    hər kəs i dəyişdirmək üçün olan web.config fayl izah edə bilər? tezliklə cavab verin.
    Cavab
  3. Marco mancinelli
    yaxşı səslənir, amma məsləhət yüklemek bilməz =(
    mənim Designer con görürəm amma tıkladığınızda heç bir şey görünür… kömək edin… tnx.
    Cavab
  4. Bernard Lambeth

    I’m using this custom activity to Replace() funksiyası. 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(), as well. Have you seen this error? Do you have any suggestions on how to resolve it?

    Cavab
    1. Paul Galvin Post müəllif

      Sorry I never responded. At thi’s point, it’s probably moot. I hope you were able to resolve it.

      Cavab

Bir cavab buraxın Marco mancinelli Cavab ləğv

E-poçt ünvanından dərc olunmayacaq. Lazım alanlar qeyd olunur *