شیرپوینت طراح — فعالیت های سفارشی برای اجرای تعریف شده توسط کاربر C # توابع

تکمیلی: این شده است به 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, شامل زیر رشته, شاخص, جایگزین کردن, 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:\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 TEMPLATE 1033 گردش کار

توجه داشته باشید که محل بالا مشخص شده است به نصب و راه اندازی های زبان انگلیسی.

5. بستن طراح شیرپوینت (اگر آن را در حال حاضر باز).

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 دیدگاه در "شیرپوینت طراح — فعالیت های سفارشی برای اجرای تعریف شده توسط کاربر C # توابع

  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. مارکو mancinelli
    خیلی خوب است, اما من می توانید پسوند را نصب کنید =(
    باهم طراح من آن را ببینید، اما زمانی که من بر روی آن کلیک کنید چیزی به نظر می رسد… لطفا کمک کنید… tnx.
    پاسخ
  3. 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(), as well. Have you seen this error? Do you have any suggestions on how to resolve it?

    پاسخ

ترک پاسخ به مارکو mancinelli لغو پاسخ

آدرس ایمیل شما منتشر نخواهد شد. بخشهای موردنیاز علامتگذاری شدهاند *