ஷேர்பாயிண்ட் டிசைனர் — பயனர் வரையறுத்த சி # செயல்பாடுகளை விருப்ப நடவடிக்கை

புதுப்பிப்பு: இந்த இங்கே CodePlex வெளியிடப்பட்டது: http://www.codeplex.com/spdwfextensions

புதுப்பிப்பு: சமீபத்திய வெளியீட்டு குறிப்புகள் இங்கே பார்க்கவும்: http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!381.entry

புதுப்பிப்பு: இந்த திட்டத்தின் வணிகப்படுத்துதலில் என் எண்ணங்கள் இங்கே பார்க்கவும்: 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 சட்டசபை விண்டோஸ் எக்ஸ்ப்ளோரர் பயன்படுத்தி அங்கு நகலெடுத்து.

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" சி:\நிரல் கோப்புகள் பொதுவான கோப்புகள் மைக்ரோசாப்ட் பகிரப்பட்ட வலை சர்வர் நீட்சிகள் 12 வார்ப்புரு 1033 பணியோட்ட

மேலே இடம் ஆங்கில மொழி நிறுவல் குறிப்பிட்ட என்பதை குறிப்பிடவும்.

5. நெருங்கிய ஷேர்பாயிண்ட் டிசைனர் (ஏற்கனவே திறக்கிறது என்றால்).

6. iisreset

7. சமூக ஜனநாயக கட்சி திறக்க மற்றும் ஒரு புதிய முறையை உருவாக்க.

எல்லாம் நன்றாக நடந்தால், நீங்கள் நடவடிக்கை ஒரு புதிய வகை கெளரவித்தது:

படம்

குறிப்புகள்:

பார் இங்கே (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 "மீது எண்ணங்கள்ஷேர்பாயிண்ட் டிசைனர் — பயனர் வரையறுத்த சி # செயல்பாடுகளை விருப்ப நடவடிக்கை

  1. ஜெரி 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
    அனைத்து Hi,
    யாரையும் நான் மாற்ற வேண்டும் இது web.config கோப்பு விளக்க முடியும்? விரைவில் பதில் தயவு செய்து.
  3. Marco mancinelli
    இது நல்ல பாடல், ஆனால் நான் நீட்டிப்பு நிறுவ முடியாது =(
    என் வடிவமைப்புகள் கான் அதை பார்க்க ஆனால் நான் அதை கிளிக் செய்யும் போது, எதுவும் தோன்றும்… உதவி… tnx.
  4. மைக் Mongeau

    நிச்சயமாக ஒரு நல்ல யோசனையாக. நான் செயல்பாடுகளை பயன்பாடு மற்றும் சோதனை ஈடுபட விரும்புகிறோம். இது சரம் செயல்பாடுகளை சமூக ஜனநாயக கட்சி கட்டுப்படுத்தப்படும் என்று உண்மை, but the "Dynamic String Builder" அழகான வலிமையானது.

    <ஒரு படம் ="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 வலை)
    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?

ஒரு பதில் விட்டு Marco mancinelli பதிலை நிருத்து

உங்கள் மின்னஞ்சல் முகவரி வெளியிடப்பட்ட முடியாது. தேவையான புலங்கள் குறிக்கப்பட்டன *