Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

A dynamic Rehosted Workflow Designer for WF 4

, 29 Jul 2012 CPOL
This article presents a framework allowing you to integrate the workflow designer more easily in your own applications
demo.zip
demo
ICSharpCode.AvalonEdit.dll
Microsoft.Practices.Prism.dll
Microsoft.Practices.Prism.UnityExtensions.dll
Microsoft.Practices.ServiceLocation.dll
Microsoft.Practices.Unity.Configuration.dll
Microsoft.Practices.Unity.dll
Microsoft.Practices.Unity.Interception.Configuration.dll
Microsoft.Practices.Unity.Interception.dll
Microsoft.VisualStudio.Activities.dll
RehostedDesigner.Designer.PropertyInspectorViewModule.dll
RehostedDesigner.Designer.PropertyInspectorViewModule.pdb
RehostedDesigner.Designer.ViewModels.Contracts.dll
RehostedDesigner.Designer.ViewModels.Contracts.pdb
RehostedDesigner.Designer.ViewModels.dll
RehostedDesigner.Designer.ViewModels.pdb
RehostedDesigner.Designer.ViewModule.dll
RehostedDesigner.Designer.ViewModule.pdb
RehostedDesigner.FileSystemManagerModule.dll
RehostedDesigner.FileSystemManagerModule.pdb
RehostedDesigner.LoadErrorHandling.dll
RehostedDesigner.LoadErrorHandling.pdb
RehostedDesigner.Services.Contracts.dll
RehostedDesigner.Services.Contracts.pdb
RehostedDesigner.Services.dll
RehostedDesigner.Services.pdb
RehostedDesigner.ToolboxModule.Contracts.dll
RehostedDesigner.ToolboxModule.Contracts.pdb
RehostedDesigner.ToolboxModule.dll
RehostedDesigner.ToolboxModule.pdb
RehostedDesigner.XamlViewModule.dll
RehostedDesigner.XamlViewModule.pdb
Selen.ActivityWorkflowType.dll
Selen.ActivityWorkflowType.pdb
Selen.GenericAppTree.Contracts.dll
Selen.GenericAppTree.dll
Selen.WorkflowDesigner.Contracts.dll
Selen.WorkflowDesigner.Contracts.pdb
Selen.WorkflowDesigner.exe
Selen.WorkflowDesigner.pdb
Selen.WorkflowDesigner.Storage.Contracts.dll
Selen.WorkflowDesigner.Storage.Contracts.pdb
Selen.WorkflowDesigner.ViewModels.dll
Selen.WorkflowDesigner.ViewModels.pdb
Selen.WorkflowSaveModule.dll
Selen.WorkflowSaveModule.pdb
Selen.WorkflowSaveModule.ViewModels.dll
Selen.WorkflowSaveModule.ViewModels.pdb
Selen.WorkflowStoragePropertyInspectorModule.dll
Selen.WorkflowStoragePropertyInspectorModule.pdb
Selen.WorkflowTypeManagementModule.dll
Selen.WorkflowTypeManagementModule.pdb
Selen.WorkflowTypeManagementModule.ViewModels.dll
Selen.WorkflowTypeManagementModule.ViewModels.pdb
System.Windows.Interactivity.dll
source.zip
source
lib
ICSharpCode.AvalonEdit.dll
Microsoft.Practices.Prism.dll
Microsoft.Practices.Prism.UnityExtensions.dll
Microsoft.Practices.ServiceLocation.dll
Microsoft.Practices.Unity.Configuration.dll
Microsoft.Practices.Unity.dll
Microsoft.Practices.Unity.Interception.Configuration.dll
Microsoft.Practices.Unity.Interception.dll
Microsoft.VisualStudio.Activities.dll
Selen.GenericAppTree.Contracts.dll
Selen.GenericAppTree.dll
System.Windows.Interactivity.dll
RehostedDesigner.Designer.PropertyInspectorViewModule
Properties
RehostedDesigner.snk
RehostedDesigner.Designer.ViewModels
RehostedDesigner.Designer.ViewModels.Contracts
Properties
RehostedDesigner.snk
Properties
RehostedDesigner.snk
RehostedDesigner.Designer.ViewModule
Properties
RehostedDesigner.snk
RehostedDesigner.FileSystemManagerModule
Properties
RehostedDesigner.snk
RehostedDesigner.LoadErrorHandling
Properties
RehostedDesigner.snk
RehostedDesigner.Services
RehostedDesigner.Services.Contracts
Properties
RehostedDesigner.snk
Properties
RehostedDesigner.snk
RehostedDesigner.ToolboxModule
RehostedDesigner.ToolboxModule.Contracts
Properties
RehostedDesigner.snk
Properties
Settings.settings
RehostedDesigner.snk
RehostedDesigner.XamlViewModule
Properties
RehostedDesigner.snk
Selen.ActivityWorkflowType
Selen.ActivityWorkflowType.TestHost
Properties
RehostedDesigner.snk
Selen.ActivityWorkflowType.TestHost.csproj.user
Data
Helpers
PlaceholderActivity
Properties
RehostedDesigner.snk
Selen.WorkflowDesigner
Selen.WorkflowDesigner.Contracts
Properties
RehostedDesigner.snk
Selen.WorkflowDesigner.Storage.Contracts
Properties
RehostedDesigner.snk
Selen.WorkflowDesigner.ViewModels
Properties
RehostedDesigner.snk
Background.png
error.png
logo.png
Properties
Settings.settings
RehostedDesigner.snk
Selen.WorkflowSaveModule
Selen.WorkflowSaveModule.ViewModels
Properties
RehostedDesigner.snk
Properties
RehostedDesigner.snk
Selen.WorkflowStoragePropertyInspectorModule
Properties
RehostedDesigner.snk
Selen.WorkflowTypeManagementModule
Selen.WorkflowTypeManagementModule.ViewModels
Properties
RehostedDesigner.snk
Properties
RehostedDesigner.snk
tools
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Selen.WorkflowDesigner.Contracts;
using RehostedDesigner.Services.Contracts;
using System.Drawing;
using Selen.WorkflowDesigner.Storage.Contracts;

namespace Selen.ActivityWorkflowType
{
    class VoidActivityType : IWorkflowType
    {
        public VoidActivityType()
        {
            var adapter = new ActivityStorageAdapter();
            this.ToolboxCreatorService = new ToolboxCreatorServiceWithCustomActivities(adapter);
            this.StorageAdapter = adapter;
        }

        public IToolboxCreatorService ToolboxCreatorService
        {
            get;
            private set;
        }

        public IStorageAdapter StorageAdapter
        {
            get;
            private set;
        }

        public string Description
        {
            get
            {
                return "This template does not create a workflow, but an activity-module, that can be reused in other workflows or activities. " +
                    "The activities you create with this template can normally be found in the toolbox after you loaded or created another workflow or activity, if supported by the concerning workflow type. " +
                    "It is possible to define arguments that you can pass into this activity or return from the activity, but there is no pre-defined return value";
            }
        }

        public Bitmap Icon
        {
            get { return null; }
        }

        public string Name
        {
            get { return "Activity without return value"; }
        }

        public string Path
        {
            get { return "Standard"; }
        }

        public bool CanBeDisplayed
        {
            get { return true; }
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Winfried Lötzsch
Student
Germany Germany
I´m a student and hobby programmer (mostly C#) from Germany.
For those German guys, who might be looking for a translated version of my stuff, I´m running a blog.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.141220.1 | Last Updated 29 Jul 2012
Article Copyright 2012 by Winfried Lötzsch
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid