SharePoint ডিজাইনার — কাস্টম করুন ইউজার সংজ্ঞায়িত সি # ফাংশন চালানো

আপডেট: এই 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, সহ সাবস্ট্রিং, সূচক, প্রতিস্থাপন করা, 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. . জিপ এবং ডাউনলোড নিষ্কর্ষ.

2. Install the .dll into the GAC. I usually open c:\জানালা সমাবেশ উইন্ডোজ এক্সপ্লোরার ব্যবহার করে এবং এটি সেখানে কপি.

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 প্রচলিত ফাইল মাইক্রোসফট শেয়ার ওয়েব সার্ভার এক্সটেনশন 12 টেমপ্লেট 1033 কার্যপ্রবাহ

উল্লেখ্য, উপরে অবস্থান নির্দিষ্ট ইংরেজি ভাষা ইনস্টলেশনের জন্য.

5. বন্ধ SharePoint ডিজাইনার (যদি ইতিমধ্যে খোলা হচ্ছে).

6. iisreset

7. SPD এবং খুলুন একটি নতুন কার্যপ্রবাহ নির্মাণ.

যদি সব ঠিক থাকে, অন্যটা, আপনি একটি কর্মের নতুন বিষয়শ্রেণীতে উচিত পুরস্কৃত:

ইমেজ

নোট:

দেখুন এখানে (http://blogs.msdn.com/sharepointdesigner/archive/2007/03/15/adding-activities-to-spd.aspx) জন্য একটি প্রক্রিয়া অপরিসীম নির্মাণের জন্য সারসংক্ষেপ, ইনস্টল এবং এই মত একটি সমাধান কনফিগার.

. জিপ থেকে সরাসরি আপনি গ থেকে নিষ্কর্ষ নির্মিত হয়েছে:\ 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 ডিজাইনার — কাস্টম করুন ইউজার সংজ্ঞায়িত সি # ফাংশন চালানো

  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
    সমস্ত হাই,
    কেউ আমি পরিবর্তন করতে আছে যা web.config ফাইল ব্যাখ্যা করতে পারেন? শীঘ্রই দয়া করে উত্তর দিন.
  3. Marco mancinelli
    এটা ভালো শোনাচ্ছে, কিন্তু আমি এক্সটেনশন ইনস্টল করা যাবে না =(
    আমার ডিজাইনার বিরূদ্ধে এটি দেখতে কিন্তু আমি এটা উপর ক্লিক করা হলে কিছুই প্রদর্শিত… সাহায্য করুন… tnx.
  4. মাইক Mongeau

    নিঃসন্দেহে একটি ভাল ধারণা মত শোনাচ্ছে. আমি ফাংশন ব্যবহার এবং পরীক্ষার জড়িত ভালোবাসতাম. এটা স্ট্রিং ফাংশন SPD মধ্যে সীমাবদ্ধ রাখা হয় সত্য যে, but the "Dynamic String Builder" বেশ শক্তিশালী.

    <একটি 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 ওয়েব)
    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 উত্তর বাতিল করুন

আপনার ইমেইল ঠিকানা প্রচার করা হবে না. প্রয়োজনীয় ক্ষেত্রগুলি চিহ্নিত করা আছে *