workflow-foundation-4

Async ctp MVC4 and workflows

我是研究僧i 提交于 2019-12-04 06:38:33
问题 I have the below code which calls a workflow. I am wondering if I can changed the controller to be asynchronous using the async ctp. public ActionResult Index() { var input = new Dictionary<string, object>(); input["ViewData"] = this.ViewData; var userState = "BeginInvoke example"; var invoker = new WorkflowInvoker(HelloMvcDefinition); Task workflowTask = Task.Factory.FromAsync<IDictionary<string, object>>( invoker.BeginInvoke(input, WorkflowCompletedCallback, userState), invoker.EndInvoke);

Why is the Workflow Designer so extremely slow when editing build process templates?

落爺英雄遲暮 提交于 2019-12-04 03:04:05
There's not much more to add really than the above question. I have a fairly simple build process template, which has hardly deviated from the default one. I have two custom activities, which by recommendation live in a separate assembly within the same solution. However.... Opening the template takes about two minutes. Changing properties on an activity in the workflow, reordering activities in the workflow, adding activities to the workflow, all take between 30-60 seconds. It's completely unusable at the moment and I'm beginning to regret moving from Cruise Control to TFS for build

IObservable<> missing .Subscribe extension methods

大憨熊 提交于 2019-12-03 23:53:34
I'm using RX extensions and WF4 to create a workflow which reacts to observable messages to progress the workflow. To do this, I bring in an object containing an IObservable (ModuleMessage being my abstract class.) The problem I'm having is that .Subscribe fails to recognize any of its extension methods, namely the one for lambda extpressions/method groups. In the following code, I have references: using System.Activities; using System.Activities.Hosting; using System.Collections.Generic; using System.Reactive.Linq; And also the following line of code: internal void AddModuleCallback(IModule

How to correctly save a WF4 ActivityBuilder

孤街醉人 提交于 2019-12-03 17:12:38
I am currently saving my .NET FX 4.0.1 StateMachine activity like this: var sb = new StringBuilder(); var xamlWriter = ActivityXamlServices.CreateBuilderWriter( new XamlXmlWriter(new StringWriter(sb), new XamlSchemaContext())); XamlServices.Save(xamlWriter, activityBuilder); return sb.ToString(); This works fine and the generated XAML looks good. Unfortunately, it is invalid. I can read it back in using ActivityXamlServices.Load but when I execute it, it says that it doesn't know the properties defined in the workflow. Opening it in the Visual Studio designer yields the same errors: Compiler

What are the differences between open source BPM tools (such as Activiti, bonita) & Windows Workflow Foundation

旧城冷巷雨未停 提交于 2019-12-03 15:52:34
I was trying to find a free and open source BPM tool which is based on asp.net, but unfortunately i fail to find such a tool. But recently I read an article about Windows Workflow Foundation, so does it provide functionality that are similar to open source BPM tools such as Activiti , bonita, Joget, etc. Or Windows Workflow Foundation can not be used to build as full business process workflow as in Activiti and other open source BPM tools. Mike Perrenoud The first thing to remember is that WF is not a BPM tool - but rather a framework that can be leveraged to build a reliable and flexible set

Please confirm: Is Windows Workflow Foundation a good horse to be backing right now?

给你一囗甜甜゛ 提交于 2019-12-03 11:20:53
We are in the process of selecting a workflow solution for a company that uses Microsoft products end to end. Given the news on WF4, in that it seems to be essentially a rewrite of previous versions, is it a wise move to back the current version or should we be looking elsewhere? Ie - is the current version so bad that we would not be wise to try and use it? gbanfill Haiving just launched a project which .NET 3.5 and workflow I'd say that the current release of WF is good enough to use and run with. It has helped us to get a product out quickly (we have the usual feature creep and requirements

WF4 workflow versioning using WorkflowServiceHost

我与影子孤独终老i 提交于 2019-12-03 08:53:10
Related to this question . I understand how to implement versioning of workflows using WorkflowApplication . If you keep the original XAML definition for older versions of your workflow around, you can load them using the right WorkflowApplication constructor. How could you ensure that WorkflowServiceHost uses the correct workflow definition when you want to host your workflows in IIS? There is a WorkflowServiceHost constructor that you can use to load a workflow definition, but when you are hosting inside IIS through a XAMLX file, you do not call WorkflowServiceHost yourself, this is handled

Windows Workflow Foundation 4.0 Tutorials / Introductions [closed]

╄→尐↘猪︶ㄣ 提交于 2019-12-03 02:54:19
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Pretty much all of the tutorials/introductions to Windows Workflow Foundation seem to be targeted at versions prior to 4.0, or are

Windows Workflow Foundation 4 and ASP.NET MVC

妖精的绣舞 提交于 2019-12-02 15:29:55
We are evaluating Windows Workflow Foundation 4 to use in MVC 3 based Web Applications. We would like to create flexible order workflows for different projects. Does anybody know good information about the general architecture or hands-on-labs for this kind of application? Some concrete questions would be: how can you activate a specific controller/action from the workflow? what is the best way to communicate between the workflow and the web application (events, wcf services, ...)? This is a nice article on how to start working with WF4 in your ASP.NET MVC app. Integrating a persisted WF4.0

How can I Host the WorkflowDesigner of WorkflowFoundation 4 in a Winforms application?

荒凉一梦 提交于 2019-12-02 13:16:50
问题 I don't have much explanation that the tittle himself, lol. But, what I really want to do is load de WorkflowDesigner on an Winform ElementHost Control. I try doing this: Host WorkflowDesigner in a WPF Application, but it doesn't work. Thanks! 回答1: Solved! private void Form1_Load(object sender, EventArgs e) { new DesignerMetadata().Register(); //Missing Line des = new WorkflowDesigner(); des.Load(mFileName); elementHost1.Child = des.View; } Only was needed to add the missing line " new