workflow-foundation

Exception escapes from workflow despite TryCatch activity

北城余情 提交于 2019-12-11 12:02:11
问题 I have a workflow inside a Windows Service that is a loop that performs work periodically. The work is done inside a TryCatch activity. The Try property is a TransactionScope activity that wraps some custom activities that read and update a database. When the transaction fails, I would expect any exception that caused this to be caught by the TryCatch . However, my workflow aborts. The workflow I have is the following: var wf = new While(true) { Body = new Sequence { Activities = { new

WF 4 Rehosted Designer - get foreach InArgument Value

谁说我不能喝 提交于 2019-12-11 11:19:25
问题 After reading this article: http://blogs.msdn.com/b/tilovell/archive/2009/12/29/the-trouble-with-system-activities-foreach-and-parallelforeach.aspx I have defined the ForEachFactory as follows: public class ForEachFactory<T> : IActivityTemplateFactory { public Activity Create(DependencyObject target) { return new ForEach<T> { DisplayName = "ForEachFromFactory", Body = new ActivityAction<T> { Argument = new DelegateInArgument<T>("item") } }; } } All works well but is it possible to check how

Workflow foundation deserialization from business objects

故事扮演 提交于 2019-12-11 06:55:52
问题 I'm studying Microsoft WF samples and have found that they serializing/deserializing workflows that are not finished to hold its state. I don't like it as workflow is a process and it doesn't need any additional data to continue from a different thread or code part. Maybe I've missed something. Can you share examples of saving/loading unfinished workflows if it's possible? Maybe alternative workflow frameworks can do without serialization/deserialization. For example it could be restored from

Problem developing WF4 application - The requested resource has moved to the one of the following locations

荒凉一梦 提交于 2019-12-11 05:21:08
问题 I am developing a WF4 application. The workflows are hosted in an ASP.NET website. For development, I am using IIS express. When debugging between edit cycles I get this error: System.ServiceModel.FaultException`1 was unhandled by user code Message=The requested resource has moved to the one of the following locations: https://localhost:44305/Workflows/PerformanceAppraisal/Exempt.xamlx StackTrace: at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply,

Workflow foundation 4.0 message correlation and error reporting

落爺英雄遲暮 提交于 2019-12-11 05:02:43
问题 I have a workflow service that runs and performs a number of different operations (such as web service calls). If one of these operations fails I call an error reporting web service to notify a seperate system that one of my workflow operations has failed. As the error could be something like the web service being down, I loop and retry this operation until it works. There can be times though when the data I'm passing to this web service is faulty and it needs changing. So I need to be able

Using ASP.NET with windows workflow foundation

眉间皱痕 提交于 2019-12-11 03:54:09
问题 I try to build up a asp.net web application with windows workflow foundation. I have found some useful sites like: http://msdn.microsoft.com/en-us/library/bb628441%28v=vs.90%29.aspx http://msdn.microsoft.com/en-us/library/bb675262%28v=vs.90%29.aspx The workflow is an Activity <Activity mc:Ignorable="sap" x:Class="ApproachWithWorkflows.WriteLineActivity" sap:VirtualizedContainerService.HintSize="654,676" mva:VisualBasic.Settings="Assembly references and imported namespaces for internal

XAMLX Workflow with c# expressions

拈花ヽ惹草 提交于 2019-12-11 01:47:07
问题 I'm developing a self host workflow in vs2012/.Net 4.5/WF 4.5 and having quite a hard time figuring out the following message Expression Activity type 'CSharpValue`1' requires compilation in order to run. Please ensure that the workflow has been compiled. This error happens when i call a activity generated by a service reference (When you add a WCF service reference, each action on the endpoint become a activity). Looking around in MSDN i've came across these articles: http://msdn.microsoft

Simple app using Windows Workflow and winforms NOT console

北战南征 提交于 2019-12-11 00:31:53
问题 I'm looking for a simple starter app that allows you to type in a value 1 - 10 this value is passed to a WF rule that evaluates if it is greater, less than or equal to 5 and returns the results to the windows forms app which displays the results in a label. I can find a lot of .net 3.5 console app tutorials but nothing that shows how to pass into and receive the result back using windows forms and .net 4! it doesn't need to be the above example but it needs to show me how to pass a value into

Windows Workflow Foundation - schedule activities to run at certain times

笑着哭i 提交于 2019-12-10 23:58:25
问题 I'm evaluating whether WF would be a good fit for a design I'm working on. I'm in that chicken-and-egg conundrum where I don't want to invest too much time in learning all the details until I have a good idea that it's going to be suitable. The one thing that I can't seem to find much on that could be significant is scheduling. And by that I mean scheduling of activities to start at a certain time. E.g. I have a workflow that, on starting, executes the first two activities - but then must

How can I use workflows with older versions of activity libraries in (rehosted) workflow designer?

最后都变了- 提交于 2019-12-10 23:30:38
问题 I used the rehosted workflow designer in an ASP.NET application to generate images of workflows, basically adopting the WorkflowMonitor sample in a similar way like the Atlas Workflow Monitor. Now I have started to worry about the behavior of this solution after redeployment when the installed version of the libraries no longer match the original one from old workflow definitions (especially from tracked workflows and history entries within the database that contains the XOMLs of workflows