workflow-foundation

Improving speed of Windows Workflow

I have the following code which lets me execute a workflow. This could be called repeatedly. And often is. It's also living in a webservice, so there could be multiple calls to it at the same time. This currently works. But it's slow, since instantiating a WorkflowRuntime each time is very slow. How can I improve this? public clas...

Windows Workflow 4, Persistance, and Data Services

Hi All, So I'm starting to work with the new workflow enginge (wf4) after previously working with 3.5. And I must say it is greatly improved! However, now I am trying to port over some existing workflows to WF4 and have ran into some snags (as is always the case). So my main problem is that in WF3, it was all interface based and the ...

USE of XAML not related to WPF or silvelight

Hi, I am trying to understand the use of XAML instead using it as markup in creating WPF and silverlight applications. Where else could i use XAML. Please provider all the possible uses of XAML. Could XAML be used as regular XML to provider mapping and related stuff? Please provider some links where i could learn about XAML. Thanks...

WF: Check if the workflow application was cancelled from a custom activity

Hi, How can i check from my NativeActivity if the 'Cancel' method of the workflow application was invoked? I tried to use the 'IsCancellationRequested' property of the context but it doesn`t much. Here is my sample: public class Program { static void Main(string[] args) { ManualResetEventSlim mre = new ManualResetEve...

How to force workflow runtime to use more CPU power?

Hello I've quite unordinary problem because I think that in my case workflow runtime doesn't use enough CPU power. Scenario is as follow: I send a lot of messages to queues. I use EnqueueItem method from WorkflowRuntime class. I create new instance of workflow with CreateWorkflow method of WorkflowRuntime class. I wait until new workfl...

Is there a way to use lambda expressions in a RuleSetDialog to define a condition?

I'm using the rules engine from WF in an application and some of the conditions involve searching a collection for a condition. It would be ideal to do something like: this.CollectionObject.Select(x => x.WantedProperty == searchValue).Count() > 0 Unfortunately I don't seem to have access to the Linq extensions for collections. I've ...

Windows Workflow 4.0 & implementing activity timeouts

I have a scenario whereby we need an activity to have a timeout associated with it so that if the activity doesn't complete within a defined period then we move on to a different activity. How would i go about implementing this with Windows Workflow 4.0? Clearly a parallel activity doesn't give me what we want? e.g. If i had an activi...

Dependency injection / IcC in Workflow Foundation 4

Hi Is it possible to use DI in your workflow activities? and if yes, how? For example if you have an activity like public sealed class MyActivity : CodeActivity { public MyClass Dependency { get; set; } protected override void Execute(CodeActivityContext context) { Dependency.DoSomething(); } } how can i set...

Windows Workflow (WF): Passing the output of one activity as the input of the next in a sequence

Hi, I am brand new to WF so forgive what might be a simple question. I am creating multiple activities which will execute in a sequence and pass data down the chain. I know that one way to do this is to set a context variable in the parent Sequence from Activity A, and then read this value in Activity B (thus the output of A is effecti...

Windows Workflow Foundation - schedule activities to run at certain times

I'm evaluating whether WF would be a good fit for a design I'm working on. I'm in that chicken-and-egg conundrum where I don't want to invest too much time in learning all the details until I have a good idea that it's going to be suitable. The one thing that I can't seem to find much on that could be significant is scheduling. And by t...

Is Windows Workflow Foundation(WWF) right choice for me?

I promise I will follow up with more detailed investigations on my part but I need some direction here : In our typical workflow user has to go through sequence of steps. THe sequence may vary for each type of workflow. I can imagine we will have 15-20 diffrent types of steps but these will result in few hundred workflows(15-20 steps or...

Schedule a Microsoft Dynamics CRM 4.0 Workflow

I am in the process of puting together a custom workflow activity to be used in Microsoft Dynamics CRM 4.0 What I would like to ultimatly acheive is configure a workflow that runs on a schedueled basis i.e run every 2 hours Monday to Friday, rather than on a particular "CRM event" like create, delete status change ect. Does anyone ha...

Workflow authorisation with many clients, workflows and users

Hi All, I can't seem to find any documentation/examples for situations where a WF application has multiple workflows, a single one selected and started against a single user. I have a scenario where I have multiple clients using a WF enabled web application. Each of these clients will have 1 or more workflows available to them that th...

Sharepoint 2007 workflow WhileActivity

Hi All: I'm trying to build worflow (on Sharepoint 2007 ) which contains a WhileActivity ,The workflow works successfully without WhileActivity ,When i added WhileActivity to workflow designer , the workflow stops after InitializeComponent() method. Is There any idea to solve this issue? ...

WCF service show exception when securing service with wshttpbinding and username authentication

I have created a workflowservice in .net 4.0 I am trying to secure this (WCF) service and used the following link to see how this is done. I followed the instructions, however when a define a servicebehavior everthing works fine. The configuration is like this: <behaviors> <serviceBehaviors> <behavior> <servi...

How can I add tooltips to activities in Rehosted Workflow Designer?

I have a Rehosted Workflow 4.0 Designer that includes both stock and custom activities. I can see icons through AttributeTableBuilder.AddCustomAttributes if I set ToolBoxBitmap attribute. However I am unable to see the tooltips on activities even if I set DescriptionAtribute. This is something I can see in case of VS designer. ...

Firing only the first of multiple HandleExternalEvent in ParallelActivity

I have a workflow that at some point contains a parallel activity with two external event handler activities in each parallel branch. Both HandleExternalEvent activities wait for the same event on the local service. I would like to execute only one of them based on parameter that comes from the local service. So far only the first branch...

Why does WF 3.5 Resume() immediately Suspend again?

Tearing my hair out. The code for my Resume is pretty simple: var instance = _runtime.GetWorkflow(instanceID); instance.Resume(); But the Resume method does absolute nothing, it doesn't even trigger a SQL hit when I SQL Trace. My logging extract is: System.Workflow.Runtime.Hosting Information: 0 : TimerEventSubscriptionQueue: adb...

is there any free usable component for workflow editor/designer?

I am trying to find a .NET component that allows GUI (drag-and-drop) workflow design, and I need it as a part of a bigger software so I prefer it to be a usable component. What I imagine is it is similar to the GUI used to design workflows in Visual Studio 2008 and 2010. Is there any such component? I tried searching for a while and didn...

Is there a way to tie SharePoint list template to a workflow

Is there any way to tie a workflow or a custom workflow develop in WWF to a list template. This workflow would be generic where I can deploy this list template to any site. ...