workflow-foundation

Dependency injection in custom workflow activity

為{幸葍}努か 提交于 2019-12-24 05:28:52
问题 I have a standard application that has a workflow. The customer can customize the workflow in the designer. Now we are making some custom activities for a specific customer. The custom activity is communicating against the business layer by a interface. How do I give the interface an implementation of that interface? It is very important that the standard application doesn't know about the interface and implementation of that interface because it is custom code for that specific customer. The

Managing ObjectContext in Workflow Foundation 4

我们两清 提交于 2019-12-24 00:48:11
问题 I'm working with Workflow Foundation 4 and Entity Framework 4.1. I am building my workflow with sets of ReceiveAndSendReply activities. It makes sense to me to use a single ObjectContext (or DbContext, now) per set of receive and send reply activities. How should I manage the ObjectContext? Are there activities just for this or do I need to manually manage it? 回答1: Its better not to use a DbContext or an ObjectContect directely in your worklfow. Put these in a workflow extension and let those

Powershell Workflow DynamicActivity Compiler Error '.' Expected Using $Date Variable

若如初见. 提交于 2019-12-23 15:00:31
问题 Usually powershell errors give me something to go on, but this one has thrown me through a loop. To test, execute the following code: workflow test-date{ $Date = Get-Date -format yyyyMMddHHmm -Verbose Write-Output $Date } The error I get is: The workflow 'test-date' could not be started: The following errors were encountered while processing the workflow tree: 'DynamicActivity': The private implementation of activity '1: DynamicActivity' has the following validation error: Compiler error(s)

Windows Workflow - is this a good time to start?

这一生的挚爱 提交于 2019-12-22 18:36:42
问题 I've heard rumors that the Windows Workflow team is re-implementing a lot of the existing framework for the next release. My company has a couple projects that would probably work really well with Workflow, and I'm familiar with the basics of the framework now, but I'm concerned that if we try to start implementing these in WF now, we'll end up regretting it when things supposedly get better in the near future. Should we wait for the next major release of workflow, or should we start

How to load runnable instances with multiply workflow definitions from Instance Store when server restart

一世执手 提交于 2019-12-22 17:53:21
问题 I'm evaluating Workflow Foundation 4 or 4.5, and want to know how to load runnable instances with multiply workflow definitions from instance store when server restart? It's same question as the forum topic: http://social.msdn.microsoft.com/Forums/en-US/wfprerelease/thread/b8d5ed34-054a-4e55-88e1-cd430ac42110?prof=required "When using the InstanceStore.WaitForEvents, the HasRunnableWorkflowEvent event is raised if any instance is ready. And, to call the WorkflowApplication

WF 4, WCF, cancel running workflow

↘锁芯ラ 提交于 2019-12-22 11:28:30
问题 Currently have a simple workflow exposed as a service endpoint. The service correlates on the workflow instance id and everything works as expected (2 service calls available ReceiveBegin, Execute). My problem is that I would like the user to be able to cancel the long running part of the workflow by calling another Receive on the workflow. Have had a look at the WorkflowApplication.Cancel but as I am running this as a WCF service it doesn't seem to be available. Documentation seems a bit

WF. C# expressions inside of NativeActivity

≯℡__Kan透↙ 提交于 2019-12-22 10:27:27
问题 I am trying to use custom c# expression inside of NativeActivity It works fine with simple expression like Condition = new CSharpValue("1 == 1") It doesn't work with such expressions Condition = new CSharpValue("Address == null") I cannot refer to the activity's Variable or InArgument in the expression due to expression compilation error "The name 'xxxxx' does not exist in the current context" Working code var act = new ExecuteIfTrue { Condition = new CSharpValue<Boolean>("1 == 1"), Address =

In sharepoint designer's workflow editor how do I get the workflow initiators username?

纵饮孤独 提交于 2019-12-21 01:11:11
问题 In Sharepoint designer's workflow editor I wish to retrieve the username/name of the work flow initiator (i.e. who kicked it off or triggered the workflow) - this is relatively easy to do using 3rd party products such as Nintex Workflow 2007 (where I would use something like {Common:Initiator}) - but I can't seem to find any way out of the box to do this using share point designer and MOSS 2007. Update It does not look like this rather obvious feature is supported OOTB, so I ended up writing

What are the best resources for Windows Workflow Foundation (WF)? [closed]

时间秒杀一切 提交于 2019-12-20 08:23:22
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I am looking for a few books, blogs or articles on WWF. I've read the books below; however, I need resources that cover the topic in more depth. I am especially interested in local services, persistence, tracking and viewing Workflows from a website. Any suggestions?? Pro WF: Windows Workflow in .NET 3.0

What are the best resources for Windows Workflow Foundation (WF)? [closed]

浪尽此生 提交于 2019-12-20 08:20:48
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I am looking for a few books, blogs or articles on WWF. I've read the books below; however, I need resources that cover the topic in more depth. I am especially interested in local services, persistence, tracking and viewing Workflows from a website. Any suggestions?? Pro WF: Windows Workflow in .NET 3.0