Step 1 – Activity Designers

Windows Workflow 4.0 Activity Designer assemblies must be installed into the GAC.

How to install Activity Designer assemblies into the GAC

1.       Download and unzip MyDataSetup.zip from http://desktopweb.codeplex.com/releases/view/70858

2.       Run MyDataSetup.msi and install to the default path

As an alternative from the Visual Studio Command Prompt, enter:

    gacutil /i

{FullPath}\MyData.Activities.dll

    For Example:

        gacutil /i C:\Projects\desktopWeb\MyData\Common\Activities\bin\Debug\MyData.Activities.dll

Step 2 - Managed Extensibility Framework (MEF) Extensions

Client Office workflows uses the Managed Extensibility Framework (MEF) for ModelItem expression builders. MEF allows expression builder extension plug-ins to be added by implementing certain interfaces and dropping the dll to an extensions folder. A future article will describe how to create a ModelItem expression builder plug-in. For the current code base, you will need to copy MyData.Extensions.dll into C:\Projects\desktopWeb\MyData\Extensions folder.

Note A future version will allow an extension dll to reside in the executing assembly folder.

Step 3 – SharePoint Requirements           

The SharePointUpdate activity and DocumentParts activity requires at least a SharePoint 2010 Foundation site.

SharePointUpdate activity requirements

  • The SharePointUpdate activity requires a list of items such as the Tasks list

DocumentParts activity requirements

  • The DocumentParts activity requires an Excel 2010 Workbook in a Document Library such as Shared Documents

Note The default Workflow Designer SharePoint Url is stored in MyData.Workflow.Designer settings.

Step 4 - WorkflowDesigner.exe

WorkflowDesigner.exe is a simple workflow designer host application you can use to test the SharePoint 2010 and Open XML workflow activities.

 How to use WorkflowDesigner.exe

1.       Run WorkflowDesigner.exe contained in MyDataSetup.zip

2.       Click the Open ... menu item

3.       Navigate to SampleActivity.xaml contained in MyDataSetup.zip

a.       For example,   C:\Projects\desktopWeb\MyData\Configuration\ SampleActivity.xaml

4.       Click the Open button

5.       Modify the workflow by setting activity designer arguments or changing the workflow activity logic

6.       Click Run the run the workflow

a.       Note WorkflowDesigner.exe auto-saves the workflow

Step 5 – Office Workflow VSTO Add-in

Install the ClickOnce Excel and Word VSTO Add-ins. Unzip MyData.ExcelAddin.publish.zip or MyData.WordAddin.publish.zip contained in MyDataSetup.zip.

For MyData.ExcelAddin

  • Double click on MyData.ExcelAddIn.vsto
  • Follow install steps

For MyData.WordAddin

  • Double click on MyData.WordAddIn.vsto
  • Follow install steps

Step 6 – Office Workflow Configuration

In addition, you need to change project property settings to point to the sample workflow and Office documents.

How to change Excel or Word Workflow add-in settings

  1. Install MyData.ExcelAddIn.vsto or  MyData.WordAddIn.vsto
  2. From the Workflow Ribbon tab, click the Configuration button
  3. From the Configure Managed Objects dialog form
    1. Select the Default Workflow file located at {ProjectPath}\MyData\Configuration\ SampleActivity.xaml
    2. Select the Sample Document file

                                                               i.      The Excel workbook sample is located at {ProjectPath}\MyData\Configuration\Sample.xlsx

                                                             ii.      The Word document sample is located at {ProjectPath}\MyData\Configuration\SampleDocument.docx

  1.  
    1. Enter your SharePointUrl.

 

Office Workflow Ribbon

image

Last edited Oct 10, 2011 at 4:24 AM by dvana, version 6

Comments

No comments yet.