I'm developing some Workflow 4 activities that will continuously loop and do some work. For example, one may watch an RSS feed and execute some steps as new items are added. I would like to be able to stop and restart this process cleanly (ie, in a windows service or Azure Worker Role). Currently, I have a While loop with an expressi...
Lets say I have a sample workflow that does the following:
Receive something
Run long activity1 (no user input)
Run long activity2 (no user input)
Send something
Usually activity2 should run automatically after activity1 is finished, but I would like to prevent the execution of activity2 until the workflow gets the go ahead from a us...
Is there a way to recover from an unhandled exception that doesn't involve cancelling, terminating, or aborting a Workflow?
What I'd like to do is have the Workflow restart or simply log the exception if possible. My workflow is long running and hosted in a WorkflowApplication, which is in a Windows Service.
As of right now, if unhandl...
Hi !
I'm building a workflow host that will manage WorkflowApplication instances.
Instances will use SqlWorkflowInstanceStore.
Tables and logic for SqlWorkflowInstanceStore are in the same database as my other tables and logic that I'm writing into with persistence participants.
I'm not using AppFabric.
My question is: do I need DTC...
Hello, I have a windows workflow foundation 4 service and a simple client .
When I add the service reference in the client the visual studio don't generate a proxy class,
only the interface and types
Anybody have any solution?
What should I do to work with the wf4 service properly? I need to use qhat kind of namespace and classes and c...
Supose that I have a flowchat with a receive, custom code activity and sendreply and
the custom code activity throws an exceptions. How can I return to the receive activity?
Any ideas?
...
Hi,
I created a sample Workflow Service. I am having a problem calling it in unordered. All the receive activity below having same correlation. When the workflow starts on GetData() and the client tries to call 4th or 3rd receive activity it results to timeout. I was expecting to throws back a
Operation
'Fourth|{http://tempuri.org...
Every time I change some InArgument of my CodeActivity or an activity defined as an XOML, it takes a couple of restarts of Visual Studio and deleting all the traces of my project's dll on the hard drive (not sure which part actually works) until the changes are reflected in the workflow designer.
Is there some way to clear the cache of ...
How do I save the XAML for a WF4 workflow in a rehosted designer, without writing it to a file? I want to store the serialised workflow in a database as an XML string.
Given a WorkflowDesigner instance called w, this saves to a file fine:
WorkflowDesigner.Flush();
w.Save("filename.xaml");
I was hoping this would serialise to a string...
It disappeared!
I'm using the standard ActivityDesigner w/Collapsible UI example:
<sap:ActivityDesigner
x:Class="WHATTHEEFF.WhaHappenToMe"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sap="clr- namespace:Blah blah standard stuff here"
...
Hi, I'm using a NativeActivity with a child activity called Body and a ActivityAction called OnFault, this is my code:
[Designer(typeof(RetryDesigner))]
public sealed class Retry : NativeActivity {
public Activity Body { get; set; }
public ActivityAction<Exception> OnFault { get; set; }
protected override void CacheMetadat...
I've got a .Net 4.0 Workflow application hosted in WCF that takes a request to process some information. This information is passed to a secondary system via a web service and returns a bool indicating that its going to process that information.
My workflow then loops, sleeping for 5 minutes and then querying the secondary system to se...
Hi,
I have been trying to use the custom designer from here
However, I can add the canvas designer to workflow designer but I can't add any activities to it.
From what I see canvasdesigner is derived from NativeActivity and not from CompositeActivity, so this might be an issue. I used re-hosted designer from wf 4 samples. Does anyone h...
I'm reading Bruce Bukovics Pro WF4 book and in chapter 16 - Advanced Customer Activites, he details emulating a Sequence activity along with a custom designer. When I drop the custom activity into a new xaml activity, I'm getting all sorts of wierdness. The custom sequence activity has a condition property that determines whether to sche...
I'm trying to write some activities with C# instead of the designer and XAML. VS2010 has been buggy and very slow for that, and it also has very poor compilation support (for variables names, properties and so on).
So I'm trying to create activities by inheriting from the Activity class directly, but I'm encountering a snag.
Here's my ...
There is a question that references the old, buggy 3.5 version here. This question is regarding the WF that comes with .NET 4.
My question is, where can I find a code sample and information on hosting the Workflow 4 Designer?
Is Silverlight Supported, or Click Once? What .NET client profiles are supported?
...
Full code:
using System;
using System.Linq;
using System.Activities;
using System.Activities.Statements;
namespace ManyAssemblies {
class Program {
public sealed class SayHelloActivity : Activity {
readonly WriteLine writeLine = new WriteLine() { Text = "Hello Workflow 4" };
public SayHelloActivity() {
Imple...
I have a website that will host many Windows Workflow 4 flowcharts and I'd like to allow an end user to double click a workflow and then launch the Workflow designer (installed as click once, or a regular app) from there.
What is the lowest friction way to achieve this? Is a file association the only way?
...
Is WF 4.0 available for Visual Studio 2010 Express? I installed VS2010 Express and I am confused about how to setup WF 4.0 templates and create a project.
Thank you for your help.
...
I am writing my own custom persistence instance store for WF4, based on the XmlWorkflowInstanceStore found in the .NET 4 WF and WCF samples. This sample is quite simplistic and the xml is produces is quite verbose. I have issues with how some of the objects are serialized.
I have tried using Red Gate Reflector to understand the Sql impl...