workflow-foundation-4

Good workflow foundation samples

痴心易碎 提交于 2020-01-15 05:18:27
问题 Could you please recommend good articles about wofrlow foundation? It would be very good if it will some open source project experience about this technology. My future project will be related to WF and ASP.NET MVC3, so I wish to get some experience before I start the project. Thanks! EDIT It would be very helpful to get more information certainly about WF4 and Flowchart workflow. Thanks! 回答1: Try these blog post I did or these MSDN resources including the videos I did for the MSDN site. 回答2:

Windows Workflow Foundation 4 (WF4) Delay

风格不统一 提交于 2020-01-14 10:45:08
问题 I'm working with the the Release Candidate of Visual Studio 2010 using Wf4 to write a new workflow for approving resource requests. In my workflow, I would like for a request to expire after a few days if no approval has been made for the request. We did this in WF 3.5 (Visual Studio 2008) by adding a Delay timer into an EventDrivenActivity parallel to the EventDrivenActivity that was awaiting an approver to come and approve the request. If the Delay expired before an approval was made, the

Windows Workflow 4 Correlation Query includes website instance name in instance key calculation and fails

大城市里の小女人 提交于 2020-01-11 12:38:45
问题 I am trying to host a long running workflow service on Azure but I am having problems with correlation. I have got the timeToUnload and the timeToPersist set to 0 and I have ticked the "persist before send" in the worklow - this is not a problem with persistence, it is to do with how instance keys are calculated. When one web server starts a workflow and another then tries to take another action on the workflow, it fails with System.ServiceModel.FaultException: The execution of an

Loading persisted workflow after workflowdefinition has changed in WF4

江枫思渺然 提交于 2020-01-11 02:02:06
问题 How to solve this problem (in WF4): I create a workflow in xaml and start several instances of it, I have a persistancestore and all workflows persist on a bookmark half way their workflow. Now I stop the application If I restart te application everything is resumed, en nicely completes. But what if I want to change the workflow definition after the running instances persist? the only way to load the running workflows (that I was able to find) is the following way: WorkflowApplication wfapp =

Error when attempting to Resume a Windows Workflow

你离开我真会死。 提交于 2020-01-07 02:23:39
问题 When attempting to Resume a Workflow with the following code: public WorkflowApplication LoadInstance(Guid instanceId) { if (this.instances.ContainsKey(instanceId)) return this.instances[instanceId]; WorkflowApplication instance = new WorkflowApplication(new Tarpon.Workflows.CreateContact()); // Create Persistable Workflow SqlWorkflowInstanceStore store = new SqlWorkflowInstanceStore(ConfigurationManager.ConnectionStrings["WorkflowPersistance"].ConnectionString); store.HostLockRenewalPeriod =

Workflow 4, Why WaitForInput can not accept Input=[command]

限于喜欢 提交于 2020-01-06 02:50:12
问题 I'm trying to implement a multi steps wizard using WF4 for my MVC project. I've installed "Client Profile Platform Update 1" on my machine and I've implemented my project based on this sample : http://dotnetslackers.com/articles/aspnet/Multiple-Step-Based-Registration-via-ASP-NET-MVC-2-WF-4.aspx#1797 The problem is when I add a "WaitForInput" to first step of my 'Activity' , and I try to set Input=[command] , the expression validation shows me this error : Compiler error(s) encountered

Schedule children DynamicActivity loaded from external XAML with parameters

心不动则不痛 提交于 2020-01-04 09:37:03
问题 Scenario : I'm implementing a parent activity which executes other activity from external source(database), following this Ron Jacobs post. This approach works but have a few problems in my case, because WorkflowInvoker don't get the parent extensions: Tracking is disabled for childrens My custom data sharing extension don't work Extensions can change depending on the host, so I can't simply add new ones again. Potential solution : Instead of Invoke the children XAML, I'm scheduling it(I

Schedule children DynamicActivity loaded from external XAML with parameters

五迷三道 提交于 2020-01-04 09:33:26
问题 Scenario : I'm implementing a parent activity which executes other activity from external source(database), following this Ron Jacobs post. This approach works but have a few problems in my case, because WorkflowInvoker don't get the parent extensions: Tracking is disabled for childrens My custom data sharing extension don't work Extensions can change depending on the host, so I can't simply add new ones again. Potential solution : Instead of Invoke the children XAML, I'm scheduling it(I

WF4 While activity condition in code

做~自己de王妃 提交于 2020-01-04 06:55:36
问题 I am building a workflow in my code, and I don't know how I can add a simple (While) condition. Tried to figure out how, but no luck with it, search on the internet but no luck either. This is a simplified version of what I am trying to do: ActivityBuilder ab = new ActivityBuilder(); ab.Implementation = new Sequence() { Variables = { new Variable<int>("StepNo", 0) }, Activities = { new While() { Condition = <the_condition> Body = { //Some logic here and the StepNo is increased } } } } The

Assert the Value of a WF Service Variable During a Unit Test

半腔热情 提交于 2020-01-04 04:43:27
问题 I need to assert the value of a variable in a workflow service. I've already downloaded and am using the Microsoft.Activities.UnitTesting framework from CodePlex to test the workflow service endpoint, return values, and flow logic - but I need to verify the value of a variable after calling into an endpoint and getting a response - is that possible? If it's not is there some other type of workaround that might work that doesn't involve changing the workflow itself to produce an output