workflow-foundation-4

To Workflow or Not to Workflow?

▼魔方 西西 提交于 2019-11-29 18:42:20
I am responsible for a team of developers who will are about to start development of a light weight insurance claims system. The system involves a lot of manual tasks and business workflows and we are looking at using Windows Workflow (.NET 4.0). An example of the business domain is as follows: A policy holder calls the contact centre to lodge a claim. This “event” fires two sub tasks which are manually actioned in parallel and may take a lengthy time to complete; Check customer for fraud – A manual process whereby an operator calls various credit companies to check and assess the potential of

HOW to get Context of WorkflowApplication?

邮差的信 提交于 2019-11-29 15:43:26
问题 I'm making a Workflow designer similar to Visual Workflow Tracking*. I would like add a new control to debug wf, but id don't know how to access to wf context To Run WF I Use this : WFApplication wfApp = new WorkflowApplication(act, inputs); My idea is when i recive trace event, get context of wfApp, to get vars or arguments values. It's posibble? *You can donwload VisualStudioTracking Code From : Windows Communication Foundation (WCF) and Windows Workflow Foundation (WF) Samples for .NET

Windows Workflow Custom Sequence Activity

折月煮酒 提交于 2019-11-29 12:36:39
I'm working with Windows Workflow 4, and I need to create a C# activity that, basically, inherits from the Sequence activity. I want it to look just like the Sequence activity, so a user can drag and drop other activities onto it from the designer. But, it acts differently in the code (maybe I want to run them in a different order, or do special actions between each one, it shouldn't matter). How can I do this? I see a similar question was asked about this, and only one person responded with a suggestion that only applies to Windows Workflow 3. In version 4, a sequence activity can't be

RESTful Workflow Service Endpoints in WF4 / WCF

别来无恙 提交于 2019-11-29 07:04:43
Folks, I'm building a pretty standard workflow that I want exposed via a WCF endpoint - I'm using the "WCF Service Application" project template and I've got a .xamlx service. This is a very simple document interchange workflow service - I want consumers to POST me a blob of XML as the body of an HTTP post (with HTTP headers containing authentication tokens). In response, these consumers will get a blob of XML containing the reply. 2 goals for me using REST/POX here are the document/message-based nature of the interaction AND I want to make client development easy for non-.NET environments

Implement Classic Async Pattern using TPL

萝らか妹 提交于 2019-11-29 04:04:22
I'm trying to implement a custom TrackingParticipant for WF 4. I can write the Track method, but my implementation will be slow. How can I implement the Begin/EndTrack overrides using .NET 4.0's Task Parallel Library (TPL)? I've looked at TPL and Traditional .NET Asynchronous Programming but am not sure how to apply it here. Note that TrackingParticipant is part of .NET and has the Classic Async Pattern predefined using virtual methods. public class MyTrackingParticipant : TrackingParticipant { protected override IAsyncResult BeginTrack( TrackingRecord record, TimeSpan timeout, AsyncCallback

Windows workflow 4 : difference between WorkflowApplication Cancel, Terminate and Abort

烂漫一生 提交于 2019-11-28 22:30:36
问题 Can any one explain what the difference is between the following methods of WorkflowApplication: Abort Cancel Terminate 回答1: After further investigating this issue, I want to summarize the differences: Terminate : the Completed event of the workflow application will be triggered the CompletionState (WorkflowApplicationCompletedEventArgs) is Faulted the Unloaded event of the workflow application will be triggered the workflow completes OnBodyCompleted on the activity will be called Cancel: the

RESTful Workflow Service Endpoints in WF4 / WCF

折月煮酒 提交于 2019-11-28 00:34:05
问题 Folks, I'm building a pretty standard workflow that I want exposed via a WCF endpoint - I'm using the "WCF Service Application" project template and I've got a .xamlx service. This is a very simple document interchange workflow service - I want consumers to POST me a blob of XML as the body of an HTTP post (with HTTP headers containing authentication tokens). In response, these consumers will get a blob of XML containing the reply. 2 goals for me using REST/POX here are the document/message

Implement Classic Async Pattern using TPL

旧巷老猫 提交于 2019-11-27 18:02:53
问题 I'm trying to implement a custom TrackingParticipant for WF 4. I can write the Track method, but my implementation will be slow. How can I implement the Begin/EndTrack overrides using .NET 4.0's Task Parallel Library (TPL)? I've looked at TPL and Traditional .NET Asynchronous Programming but am not sure how to apply it here. Note that TrackingParticipant is part of .NET and has the Classic Async Pattern predefined using virtual methods. public class MyTrackingParticipant : TrackingParticipant

Trace file isn't being created even though TraceEvent is called?

邮差的信 提交于 2019-11-27 08:44:43
问题 Objective Use System.Diagnostics to perform tracing. Though I have used log4net and other logging solutions, I am only interested in getting tracing to work with System.Diagnostics . Problem Even though I'm issuing the TraceEvent the file is not being created anywhere. Application Information I have an application that's hosting some WF services. One of the services is a state machine with an initial state that looks like this: the LogMessage custom activity is also very straight forward. It

Windows Workflow Custom Sequence Activity

余生颓废 提交于 2019-11-27 06:29:11
问题 I'm working with Windows Workflow 4, and I need to create a C# activity that, basically, inherits from the Sequence activity. I want it to look just like the Sequence activity, so a user can drag and drop other activities onto it from the designer. But, it acts differently in the code (maybe I want to run them in a different order, or do special actions between each one, it shouldn't matter). How can I do this? I see a similar question was asked about this, and only one person responded with