workflow-foundation

Sharepoint workflow Tasks attachment

I have SharePoint state machine work flow(Visual Studio 2008) , in specific state i create task . when user finish this task he can upload document as attachment for this task then work flow goto another state in second state i create new task for another user which will see the previous attachments of last task and i try to see the...

How to use try catch around an activity in workflow?

Hi , I want to call a web service in Windows Workflow project using InvokeWebServiceActivity. I want to call this activity in such a manner that if the web service call fails it should get logged and in the catch block i can write some custom code. Now when the web service fails, which is on different VPN, my workflow breaks .. Any ...

How do I avoid rebuilding my database everytime I make a change to my Windows Workflow

Hi, I am building a Windows Workflow into a .Net webapp. The problem I have is that every time I add or remove or change an activity in the state machine and then re-compile and run it, it no longer matches up to what is in the database for tracking and persistence. Instead of updating the changes, or creating a new version of the wor...

StateMachineWorkflowInstance.PossibleStateTransistions returns incorrect result

Hi, I have a windows workflow state machine that was working okay. To inform the user of their possible options when working with the workflow I call StateMachineWorkflowInstance.PossibleStateTransistions which would return all the possible transitions. I then added a StateInitializationActivity to each of the states. Now when I call...

How to retrieve all instances in a State Activity

I am working with WWF and State Machine Workflow to model a business Process? Is there a way to retrieve all Workflow Instances which are in a specific State Activity? ...

TypeCast in Workflow Editor?

I created a custom activity with generic dependency property of type Object. When i use this activity in my workflow solution, and try to bind this property , I cant typecast it in the property window. I don't want to do it in code. Any advice. I came to know on a solution which says to create custom typecastingactivity. Is there any ...

How can i change workflow persistence values?

Hi, I am developing an application using state machine workflow in .Net. My workflow persisted some values based on the table contents. The persisted values should be changed when the table contents are changed. But it is not happening How can I do that? Regards Dhanraj.S ...

How to add Parallel Activity inside StateActivity?

Hi I have a State machine workflow. State Machine workflow requires EventDriven activity , This state needs to wait for set of two event, that is Either event (A1 or A2) And event (B1 or B2). In total there are four event handlers In any combination, but my state should wait for at least two to be raised. I thought of using Parallel...

Workflow versioning issue

In our project, we use WF to run workflows. .net version 3.5. Hosted inside an IIS application pool. Apparently, we run into some versioning issues: We start a workflow with version 1 of our assemblies. After we get to a persistence point, we upgrade to version 2, we need to be able to let the old instances continue to run with the old ...

how to persist my workflow

Hi I have state machine workflow using in web applicaton. I persisted my workflow in sql server. When i invoke second time in my workflow using instanceid it's invoked. but after the process it will delete my instance from InstanceState table. even i am not assign setstate = completed state. Regards Dhanraj.S ...

Problem with final branch in a parallel activity

This might seem like a silly thing to say, the final branch in a parallel activity so I'll clarify. It's a parallel activity with three branches each containing a simple create task, on task changed and complete task. The branch containing the task that is last to complete seems to break. So every task works in it's own right, but the la...

WCF + WF + IIS 7 Virtual Path Error

I'm trying something new to me using WCF and WWF to build up a set of services for use by a few client applications. I'm create 2 libraries (Workflows and Services) and 1 Web Application called API. The web application is hosted within IIS 7. In the API web application, I've added a file called InventoryService.svc file that has Service...

Workflow with id "xxxxx" not found in state persistence store.

Hi I have a workflow application which throws error when i try to invoke a event using ExternalDataExchangeService. Workflow with id "866568ab-ca1b-4404-a2f1-2c8704539ef4" not found in state persistence store. Event "QAEngOrTLReject" on interface type "RecipeChangeService.IRecipeChangeService" for instance id "866568ab-ca1b-4404-a2f...

Update EntityKey Reference in Entity Framework

I created an application that uses Asp.net, Entity Framework and Windows Workflow Foundation and everything works as expected. My asp.net page should start a Workflow that executes and update an entity passed to the workflow from the page. Everything works ok: i used Unit Of Work pattern to share the context between asp.net and WWF and...

How to verify the MaxSimultaneousWorkflows setting in WF

WF has a configuration property: MaxSimultaneousWorkflows - other than building a custom test app or workflow, how can you verify that the property is working? The reason not to build a custom test app or workflow is that it doesn't tell you about the workflow that I am actually trying to verify. Update The reason to verify it is to ma...

WF, WCF and Declarative Services (or: What does Microsoft mean by "declarative"?)

I've made this Community Wiki because some may think it's open to debate and others might think it's a question of using words to mean what they really mean (in other words, it's a matter of opinion whether it's a matter of opinion). There's a general question on SO about declarative programming, which has some great answers. But I'm a...

Windows Workflow: Why do they get stuck in persistence?

I have a Windows Workflow instance that's using SQL persistence, being hosted in the web runtime, since the workflows are started by ASP.NET form submissions. It runs great most of the time, but I've noticed instances where I have to kick things: I notice the nextTimer has gone way overdue, even by hours. Sometimes the ownerID and owned...

WF: Custom ActivityCondtion

I am currently in the process of writing a custom ActivityCondition to make it easy for an end user to setup a Condition on an IfElse Activity. When the user sets up the condition for one of the branches, they are presented with a Form to select a field and the value they want to match against. When the form is closed the Condition is au...

Dynamics CRM Workflow updating closed letter after Mail Merge

Dynamics CRM Workflow updating closed letter after Mail MergeZones: Microsoft Dynamics, CRM Software I have created a new entity (Fund Member) to create a many to many relationship between Contact and a new entity called Fund. Users will be running mail merges from this entity either via Advanced find, or associated views from the Con...

how i can create workflow at runtime in .Net

I m using .Net framework 3.5, VS IDE to work with windows application. I have requirement to Create State machine Workflow at runtime. That is, I need to define my states, Activities n target state in one windows form n based on dat i need to create entire workflow at runtime.... i require persistence and tracking too for the same...can ...