SharePoint డిజైనర్ — వినియోగదారుడు నిర్వచించిన C # విధులు నిర్వర్తించుటకు కస్టమ్ సూచించే

UPDATE: ఈ ఇక్కడ CodePlex విడుదల చేయబడింది: http://www.codeplex.com/spdwfextensions

UPDATE: తాజా విడుదల నివేదిక కోసం ఇక్కడ చూడండి: http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!381.entry

UPDATE: ఈ ప్రాజెక్ట్ వ్యాపారీకరించడంలో నా ఆలోచనలు కోసం ఇక్కడ చూడండి: 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. . 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" సి కి:\Program Files Common Files Microsoft పంచబడ్డ వెబ్ సర్వర్ పొడిగింపులు 12 TEMPLATE 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, చూపిన విధంగా పద్ధతి అమలు జోడించడానికి:

 రక్షణ భర్తీ 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 "న ఆలోచనలుSharePoint డిజైనర్ — వినియోగదారుడు నిర్వచించిన C # విధులు నిర్వర్తించుటకు కస్టమ్ సూచించే

  1. క్రిస్టియన్ గ్లెస్నర్
    ఎక్కువ గావిన్,
    ఈ కేవలం బాగుంది!
    నేను పోలి ఏదో చేశాను: PowerActivity.
    ప్రత్యక్షంగా ఉద్దేశించబడని వస్తువు లేక విషయం, క్రిస్టియన్
  2. గెర్రీ విట్వర్త్
    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.
  3. Marco mancinelli
    ఇది మంచి ధ్వనులు, కానీ నేను పొడిగింపు ఇన్స్టాల్ చెయ్యడం సాధ్యం కాదు =(
    నా డిజైనర్ కాన్ అది చూడండి కానీ నేను క్లిక్ చేసినప్పుడు ఏమీ కనిపిస్తుంది… సహాయం దయచేసి… tnx.
  4. మైక్ మోగీయు

    ఖచ్చితంగా ఒక మంచి ఆలోచన వంటి ధ్వనులు. నేను విధులను వినియోగం మరియు పరీక్ష లో పాల్గొనడానికి ఇష్టం. అది స్ట్రింగ్ ఫంక్షన్లు SPD పరిమితం అని నిజం, but the "Dynamic String Builder" అందంగా శక్తివంతమైన.

    <a href ="http://dataformwebpart.com">-Monjo </ఒక>

  5. 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 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(), అలాగే. Have you seen this error? Do you have any suggestions on how to resolve it?

ఒక Reply వదిలి Marco mancinelli ప్రత్యుత్తరం రద్దు

మీ ఇమెయిల్ చిరునామా ప్రచురితమైన కాదు. లు గుర్తించబడతాయి *