workflow-activity

Localization of Workflow Activity qualified names.

Hi, We use tracking and persistence services of wf, and display current state of workflow on the asp.net page. Now in the process of localization of our application, we are able to localize all elements on the page except the activity names of workflow. These activity names are given while creating a workflow in VS 2008. How do i ach...

Is Workflow Foundation StateFinalizationActivity blocking a thread?

This is the scenario: I have a State Machine Workflow using ManualWorkflowScheduler. Say there are 2 states: State1 and State2. State1 contains an EventDrivenActivity1 that has a SetStateActivity1 moving the workflow from State1 to State2. State1 also has a StateFinalizationActivity1. So my question is: When an event is raised and Set...

Loading workflow activity dynamically from XOML

I am trying to implement an activity similar to InvokeWorkflow, which could dynamically load a XOML file, instantiate an activity tree from it, and use it as its only child. This would be similar to InvokeWorkflow except that the activities which are dynamically loaded are inlined into the main workflow (which is better from a monitorin...

Workflow activities

Let's say I have a custom activity that has a dependency property of type GUID. I want in my custom designer to show like a combobox (or my own usercontrol) with possible values to select from (the values should comes from the database). Is this possible ? ...

Add sub categories to a Dependency Property in a Workflow Activity

Hi all, I wish to create an workflow activity that has a dependancy property structure like this Setting Wait Period Days Hours Mins At the moment the code below will show Setting with the Wait Period as an Integer, but now need to expand it out to 3 sub child properties for Days, Hours and Mins. I understand i will have to cha...

Activity Databinding in wf 4.0

Hi there, i want to display some datatypes in a combobox. the datatypes are wrapped in the following class: public class TDataTypeBinder: INotifyPropertyChanged { private string name; public string Name { get { return name ; } set { name = value; On...

Running a child activity a second time

I am trying to write a custom CompositeActivity using WF3.5. Something like a WhileActivity. The problem is when I want to execute the child activity again (it previously succeeded with a final call to ActivityExecutionContext.CloseActivity()) I get an InvalidOperationException, with this message: "Activity status must be 'Initialized' ...

Dilemna : prevent StackOverflowException or improve user experience ?

Hi All, In my application, I have 2 list activities which can start one or the other by clicking on their items. |--Activity1--| |--Activity2--| |--Activity1--| | item11 | ->click-> | item21 | | item21 | ->click-> ... | item12 | | item22 | ->click-> | item12 | | ...

How can I handle the termination of a workflow ?

I have implemented a queuing mechanism including UI for running specific types of workflows (WF 3.5), where I wanted to include a possibility for a user to cancel / terminate the workflow. The termination doesn't have to be synchronous, it would be enough to show that the cancellation is in progress and let him refresh the state later. ...

UpdateTaskActivity in Sharepoint Workflows

I have a workflow activity that is responsible for checking if a certain part of the infopath form was filled out correctly. If it wasn't it creates a task for the original submitter to complete that section. The workflow starts with a CodeActivity that reads in the document and checks if it is valid. If not it then creates a task for...

Windows Workflow Delay problem

Hi all. I'm quite new to Workflow and have a question. I have a While Loop in my designer which checks a conditon. The while loop works fine and the condtion checking works fine. What I'm trying to do, is to set a delay so that the while loop only checks the condition every x seconds/minutes. I've tried the delay control inside the wh...

Workflow: How can I signal one branch of a parallel activity to end from another branch?

I have a workflow with a parallel activity, where one branch does work and the other has a receive activity that can shut the workflow down (is the proper way to do this with a HandleExternalEvent instead?). The problem, of course, is that if the receive activity is never called, the work branch completes and waits on the receive activi...

Scheduling runtime-specified Activity in Workflow 4 RC

Hi, so I have this requirement to kick off Activities provided to me at run-time. To facilitate this, I have set up a WorkflowService that receives Activities as Xaml, hydrates them, and kicks them off. Sounds simple enough ... ... this is my WorkflowService in Xaml <Activity x:Class="Workflow.Services.WorkflowService.WorkflowSe...

Is it possible to use multibinding in WF (with ActivityBind) ?

I would like to bind multiple dependency properties of other activites to a dependency property (of type object[]) in my custom activity. Is it possible to define this multibinding : In the workflow markup (probably somehow combining multiple ActivityBind's) Set up the property editor in such a way that I can even edit this binding in...

Dependency Property not getting updated value via ActivityBind

I have a Sequence Activity which holds two activities (Activity A and B), the input dependency property for Activity B is bound an output dependency property of Activity A. However, when I run the sequence activity, the Input for activity B is never updated and just uses the default value of activity A's output. My question is: is ther...

How to read the Web.Config file in a Custom Activity Designer in a WF4 Workflow Service

I have a WF service with a custom activity and a custom designer (WPF). I want to add a validation that will check for the presence of some value in the web.config file. At runtime I can overload void CacheMetadata(ActivityMetadata metadata) and thus I can do the validation happily there using System.Configuration.ConfigurationManager t...

android: pausing an activity until another finishes

When my app starts, it checks to see if it has stored login credentials. if it doesn't, it starts another activity to prompt the user for those credentials. My problem is, that when the prompt activity is started, the first activity continues execution and ends up with null pointers because the prompt activity has not yet returned the ne...

Reference an internal class from a Windows Workflow Activity

I'm creating a custom Workflow activity for use within TFS2010. In the same assembly I have a XAML activity and a C# code activity. The XAML activity references the code activity. When the assembly is deployed to our clients, I only want them to be able to use the Workflow activity. The code activity is of little use by itself and woul...

android: open a pdf from my app using the built in pdf viewer

This was my original question: I want to be able to open a pdf file in my app using the android's built in pdf viewer app, but i dont know how to start other apps. I'm sure i have to call start activity, i just dont know how to identify the app im opening and how to pass the file to that specific app. Anyone have a...

Activity diagram with alternative paths

Should the alternative paths of an use case be included in the activity diagram?? ...