بایگانی دسته بندی: شیرپوینت گردش کار

زودرس فعال سازی گردش کار — یک راه حل غیر پزشکی

تکمیلی: See this MSDN discussion, especially the last entry: http://forums.microsoft.com/MSDN/showpost.aspx?postid=2631057&siteid=1. It describes a condition that may short circuit this whole thing. In short, it may be as simple as making at least one of the fields mandatory.

I have a document library that supports eight content types.

I have a SharePoint Designer workflow that wants to calculate and assign a "reminder date" by simply subtracting 30 days from another column, "due date". This should only happen for one of the content types, "Insurance". The business objective is to produce a KPI that shows two categories of insurance documents: "about to expire" and "expired." (You can read more about this kind of KPI and more substantial drill-down اینجا).

I have configured the workflow to fire when a new item is created and when an item is modified. The idea is that when an insurance document is uploaded, we calculate a "warning date" based on the expiration date. A pair of views work in connection with a KPI List to highlight these conditions when users hit their home page.

This strategy does not work when I upload a document.

I upload the document and I am presented with the meta data entry screen. در این مرحله, I’m already in trouble. SharePoint has already, prematurely from my perspective, fired the workflow. I haven’t had a chance to pick the correct content type nor assign a due date. در همان زمان, the workflow does not fire when I hit the submit button at this time. There’s some built-in logic that "believes" that first submit is part of the "create" event. پس … my workflow has fired and when it executed, it was passed default meta data values.

The best work-around I know of is to insert a "pause until" activity in the workflow. I have the workflow pause for 1 minute. While it’s pausing, I select the correct content type, enter the meta data and submit. The pause completes and the workflow proceeds as needed. (Note that in my environment, timer workflow activities from SPD do not work out of the box. You may have the same trouble. دیدن اینجا for more details).

I don’t like "magic delay" work-around. What happens if the user uploads a document and the phone rings and the ensuing conversation outlasts the pause? I can make the pause longer, but I still don’t like it.

I wrote about this on the MSDN forums here: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2430725&SiteID=1

سریع و ساده: ارسال یک ایمیل با لینک تعبیه شده از طراح گردش کار شیرپوینت

یک یا دو بار در ماه, کسی سوال انجمن: "How do I include hyperlinks to URL’s that are clickable from a SharePoint Designer email?"

ارائه شده بدون نظر بیشتر: (خوب, در واقع بیشتر وجود دارد پس از تصویر نظر):

تصویر

، بکی Isserman زیر با توضیح مفید در مورد نحوه جاسازی یک لینک به یک آیتم در ایمیل: http://www.sharepointblogs.com/mosslover/archive/2007/11/20/addition-to-paul-galvin-s-post-about-sending-an-e-mail-with-hyperlinks-in-spd.aspx

سریع و ساده: فعال کردن شیرپوینت طراح گردش کار فرم InfoPath و برای به روز رسانی

سناریوی: I have an InfoPath form that front-ends a workflow process implemented using SharePoint Designer. At one point, a manager must approve the form. Since I cannot count on workflow history to meet my auditing requirements, تصمیم گرفتم برای ذخیره پیام های حسابرسی خود را به طور مستقیم بر روی فرم خود.

بررسی اجمالی:

Design the form and publish it as a نوع محتوا and the form itself to a document library. Mark desired form fields as being updateable from MOSS. The form is tied to the content type and the content type is "attached" to a forms library (or many, if you want). Write a workflow that updates the field.

Specific Steps:

  1. Create a document library. This will hold your InfoPath template.
  2. Create a forms library.
  3. Create the InfoPath form. Include a text field, "Audit Message".
  4. Publish the form as a content type (NOT a document).
  5. While filling out the publishing dialogs:
    a) Save the .xsn file to the document library (گام #1).
    ب) Publish the "Audit Message" field and mark true: "Allow users to edit data in this field by using a datasheet or properties page".
    ج) Create a new content type and give it an appropriate name.
  6. Access the forms library.
    a) Go to its advanced settings and enable the forms library to manage content types.
    ب) Select the newly created content type (5c above). It will be grouped under "Microsoft InfoPath" (or similar).
    ج) Remove the default "Form" content type from the library.
    d) Mark the library to "show as web page" so that the form will launch from SharePoint and not the InfoPath workstation client.
  7. Go back to the forms library proper and click "New" to simply verify that the form is posted correctly and acting as you want.
  8. Fire up SharePoint Designer and navigate to the site that hosts your form library (from step 2).
  9. Create a new workflow attached to the forms library.
  10. Add a single action "Set Field in Current Item". You should expect SharePoint Designer to list your your field, "Audit Message". Assign it a value.
  11. Click Finish and go back to the form library.
  12. Create a new form and put some test value into the "Audit Message" میدان.
  13. Save it and go back to the form library.
  14. Right-click, select "Workflow" and start up your workflow.
  15. It should run almost immediately. Pull up the form (from step 12) and if all has gone to plan, "Audit Message" has been assigned whatever value you provided in step 10.

یادداشت ها:

Not all controls may configured for this bi-directional communication. مثلا, it does not seem to implement an SPD workflow that modifies text fields wrapped inside repeating sections.

One of the key take-away’s here is that we’ve really created a content type with an associated template. This also enables us to store multiple InfoPath form templates in the same form library.

This requires forms server. It’s most certainly not going to work in a WSS 3.0 environment and probably even requires an Enterprise SharePoint environment.

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

SPD عمل گردش کار سفارشی – دریافت <WorkflowInfo> برچسب حق جلوگیری از سرخوردگی

Part of the process for creating a custom action for SharePoint Designer involves create a ".actions" پرونده.

من متوجه شده ام و سعی به استفاده از یک قالب نمونه شروع می شود که این بازی به عنوان:

<?XML نسخه="1.0" پشتیبانی می کند="UTF-8" ?>
<
WorkflowInfo xmlns="HTTP://schemas.microsoft.com / شیرپوینت /">
<
عملیات پی در پی="سپس" موازی="و">

اما, that xmlns attribute prevents my environment from working. My actions don’t show up in SPD.

راه حل این است نوار از صفت xmlns, do an iisreset and close/re-open SPD.

شیرپوینت طراح, “جمع آوری اطلاعات از کاربر” و با استفاده از این نتایج.

Use the "Collect Data from User" action to create and assign a task to a user that prompts them for data. Among other things, I’ve used it to prompt a user to approve or reject a request and enter some comments.

This action takes the form of:

Collect data از this user (Output to متغیر: collect1)

Clicking on data pulls up a series of dialog boxes where you specify what data the user should provide when completing the task and this user آشکار است.

The output part (متغیر: collect1) saves the ID of the task. You use this in your workflow to extract the user’s actual response via the "Compare any data source" condition.

That condition shows as

If میدان equals ارزش

Click on میدان and then the f(X) icon and it pulls up another dialog box. Use this generalized dialog box to to tell SPD two things;

1. What is the list and column whose value you want to compare.

2. How should the workflow engine locate the specific row in that list?

To do this:

  1. Change the "Source" dropdown to point at the correct task list. Note that the dialog box expands to show a "Find the List Item" بخش.
  2. In the Lookup Details field dropdown, select the name of the field whose value you want (this maps to what you called in the Collect data dialog box from above).
  3. In the "Find the List Item" بخش, select "Tasks:شناسایی" in the Field dropdown.
  4. In the value field, click on the f(X). This opens yet another dialog box.
  5. Change the source "Workflow Data"
  6. Select the workflow variable that matches to the "Output to Variable" from the Collect data action.
  7. Click OK/OK and you’re done.

It looks like this for me:

تصویر

در این مرحله, you can now use that value in your workflow as required.

Additional Notes:

As a brief aside, I always create an appropriately named workflow variable of type "List Item ID" and use that instead of the auto-generated "collect1".

This "compare any data source" dialog set is used in several different places in SPD and is well worth mastering.

==end

برچسب ها: