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...
Hi guys,
I have recently migrated one of my solution from SVN+CruiseControl to TFS2010. My build definition is using the Defaul Template. And I would like to customise the template. Since I have never worked with workflows before I decided to start by printing a simple message in the build log. For this purpose, I have added a WriteBuil...
I have a List array called taskItems
public class TaskItem
{
public int Intnum { get; set; }
public int ID { get; set; }
public int TaskID { get; set; }
public string Name { get; set; }
public string Value { get; set; }
}
taskItems.Find(x => (x.Name == "function")).Value
I am trying to use the Assign component in...
I need to be able to use System.Xml.XmlDocument in my workflow diagram.
Basically, I need to load an xml file and return the content of the file as Response in a Sequential Service.
I am trying to use the InvokeMethod activity, set the targetobject to 'New XmlDocument', Method to 'Load', added a Parameter to pass the xml file path.
Bu...
Hi,
I am trying to do a single instance workflow with WF4 and AppFabric. I want just one instance of a workflow running in the cluster.
I have tried a biztalk style: a method (CallService()) that creates the instance, and the same method in other receive activity (CallService()) that do not have the cancreateinstance checked. (I think...
How can I create a custom activity for Workflow Foundation 4 that host a child activity (or several)?
The idea is to create something similar to the TryCatch activity where you can specify an activity that goes in the try part and another in the finally part. However I need my own custom business logic.
...
can the workflow model be interigated at runtime.
Reason, to generate a visual web representation of it? For highlighting the current node of the workflow, for example.
...
I am using a List (Of String) in WF4 because I'd like to perform set operations (like get distinct, etc.) and had a qs. about using the AddToCollection activity. Is it possible to add a number of items with one statement?
e.g. I'd like to add "alpha", "bravo", "charlie" in one activity instead of three
The Collection - String does not w...
Ello all,
In my custom activity, when I drop an activity into the WorkflowItemPresenter, save and compile, my activity suddenly disappears and I have no freakin clue why. I'm probably making some noob mistake somewhere but, I'm not seeing it. I've gone back and made sure my code complies fine and deleted and re-added my assembly contain...
Ello,
Working with Workflow Foundations 4 (in C#) and trying to write a VB expression
Is there a way to do the following in VB.Net on one line?
SomeObj instance = new SomeObj()
{
SomeStringProp = "a",
SomeIntProp = 17
};
...
I am designing a workflow using WF4 that is supposed to be consumed by a Web client. The workflow aggregates WCF services and is triggered by a Receive activity that is in turn spawned from a Web page. While the workflow is being executed, the user's Web session is active, and certain workflow activities may need to inform a user, i.e. W...
Ello, I'm having an issue with a custom activity that preforms an evaluation of a `ActivityFunc ` and returns false even though it is evaluated in Execute to be true.
Here is my activity
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Activities;
using System.ComponentModel;
usin...
I have a Workflow 4.0 Service that is calling Activities located in an Activity Library (DLL). The problem is that after calling the Activity located in the Activity Library project, execution does not return to the parent workflow service, i.e. the call is asynchronous. However, I want it to be synchronous so that I can check the retu...
I am running Workflow 4 activities, and using SQL Durable Instancing to persist the Workflow when it's suspended. I am intermittently getting an InstanceOwnerException, which is remedied by recreating the instance store. Is there any way of avoiding this exception in the first place?
System.OperationCanceledException: An error processin...
I am using VS2010 and having an issue where upon opening my solution the Workflow.xamlx does not appear to render correctly.
The activities on the design surface only get drawn for the area that is initially visible when the xamlx loads.
To demonstrate the problem, I see the following. (I apologize for the blur)
The first problem is...
Hi all,
I'm creating an application that rehost workflow designer. What I did is following the tutorial from Apress' Pro WF 4 books.
The principle of the tutorial is:
1. Use WorkflowDesigner class to read workflow xaml file, and bind WorkflowDesigner.View and PropertyView property into ContentControl in the UI.
2. Use System.Activiti...
This article shows how to create a custom activity in a rehosted Workflow designer (with Workflow Foundation 4). In that example, a MyDelayActivity is created by implementing the IActivityTemplateFactory interface, and specifying the default value to the Delay inputs.
However, is it possible to modify the inputs of the activity as well...
I found that you can use Pick activity and this activity will contain a few PickBranches, each of which contains a Trigger and an Action. How do I tie the Trigger activity to any .NET event? for example, Timer.Tick event, Key pressed event, or perhaps my own event?
...
I am trying to make an empty custom activity so that I can have comments in the workflow designer. I have an activity designer that does not do anything but has a text block so the comments can be added. What is the easiest way to get this into my workflow toolbox? I have an empty activity that is currently in the workflow toolbox, but I...
Hi all,
I am trying to learn Workflow 4 in visual studio 10.
I have been having a play with the VisualWorkflowtracking sample found at :
http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=35ec8682-d5fd-4bc3-a51a-d8ad115a8792
Everything works fine until i add a static class and try to use the InvokeMethod o...