workflow-foundation-4

Rehosted Microsoft Workflow Designer UI

让人想犯罪 __ 提交于 2019-12-06 12:54:13
问题 I have recently created a rehosted Workflow Designer application and noticed that the UI looks outdated when compared with how it looks in Visual Studio. Does anyone know which could be the problem? No matter what version of .NET I'm using (for example 4.6 or 4.7), the UI still doesn't update. I have also followed the next article to enable Workflow 4.5 features, but without any success on the UI side. (WF4.5) Enabling new .Net framework 4.5 features in your rehosted designer application

VS Workflow designer not expanding activities

可紊 提交于 2019-12-06 12:13:22
I can't figure out why some activities in the WF designer do not expand. Looking at the sample documentation for the WizardActivityPack activities: But when I try to open the same file in Visual Studio 2010's WF designer: If I look at the file using the XML editor I can see all the activities are in the file, but the designer only shows me the one box and I cannot click into or expand it. You have to place the *.design.dll somewhere that visual studio can find it. Like in the %programfiles(x86)%\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies . VS looks for designers by convention;

How do you hook an editor for TFS 2010 WF BuildProcessTemplate arguments for built-in types that have a converter?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 11:25:27
I've followed the Team Foundation Server 2010 book 's custom editor for a dictionary<string,string> and can't get it to go. I have another custom editor in the same assembly, and consumed by the same build template that works. This SO hints at it being a TypeConverter issue, but I don't think any part of a custom build assembly is just run when it is loaded. I'm getting the default generic Collection Editor instead of mine. I have tried using code more like my credential UITypeEditor uses, and then tried typing exactly what's in the book for a UITypeEditor . The dialog itself should not matter

Add behaviorattribute to a WorkflowServiceHost

僤鯓⒐⒋嵵緔 提交于 2019-12-06 11:20:18
问题 Hi all i have a problem while adding a custom behavior to a WorkflowServiceHost. Here is my WorflowServiceHostFactory: public class ScoringWorkflowServiceHostFactory : WorkflowServiceHostFactory, IServiceHost<IKernel> { private static IKernel _InjectionInstance; public IKernel InjectionInstance { get { return _InjectionInstance ?? (_InjectionInstance = new StandardKernel(new ScoringWorkflowServicesNinjectModule(Scope))); } } public object Scope { get { return Guid.NewGuid(); } } public

Workflow design advice for ASP.Net web application?

痴心易碎 提交于 2019-12-06 10:41:58
问题 My team has been tasked with designing a web application that is workflow driven. I need some advice regarding the design. The workflows need to be dynamic. Meaning, users can define the workflows through some interface and apply those workflows to a given scenario (The definitions will live in a SQL 2008 Database). The scenarios are defined by the business and will never change. So there may be only 2 types of scenarios a workflow can be defined for. The workflows are not necessarily linear.

Windows Workflow Foundation 4 (WF4) ReHosting

纵然是瞬间 提交于 2019-12-06 10:25:07
问题 I've been looking at the possibility of ReHosting a WF4 Workflow to be used to debug running Workflows. All the posts and samples I've seen regarding WF4 Rehosting are using a WPF application to initially Host the Workflow, and then use the WorkflowDesigner in ReHosting it. Is there any way to Rehost a Workflow that was hosted in a non WPF application, like ASP.Net MVC? 回答1: The WorkflowDesigner is basically a big WPF control so you cannot host it in an ASP.NET application. Neither can you in

How do I handle “Receive” calls being made out of order?

左心房为你撑大大i 提交于 2019-12-06 09:47:36
问题 I have a WF4 service that emulates a sales funnel. It works by starting with a "Registration" receive call. After that, there are 10 similar stages (comprised of a 2 receives at each stage). You can't advance past a stage until after the current stage validates the data received. What I'm unsure about though is, even though my client app wouldn't allow for it, how can I make my workflow prevent anyone from calling the receive operations out of order? In my test console app, I let the user

How to make a Win Service run Long Term with Threading

半城伤御伤魂 提交于 2019-12-06 08:14:08
问题 I have a win service hosting a few workflows (a WorkflowApplication and a WorkflowServiceHost) that I need to keep long running. Because OnStart() requires that it completes and returns to the OS, I have a main method that fires on another thread in a threadpool. My Onstart() mainly looks like this protected override void OnStart(string[] args) { eventLog.WriteEntry("Service starting..."); ThreadPool.QueueUserWorkItem(new WaitCallback(ServiceMainThread)); Thread.Sleep(100); eventLogCms

How to write a long running activity to call web services in WF 4.0

蓝咒 提交于 2019-12-06 06:29:09
I created an activity which executes a web request and stores the result into the database. I found out that for these long running activities I should write some different code so that the workflow engine thread won't be blocked. public sealed class WebSaveActivity : NativeActivity { protected override void Execute(NativeActivityContext context) { GetAndSave(); // This takes 1 hour to accomplish. } } How should I rewrite this activity to meet the requirements for a long running activity You could either spawn a thread within your existing process using e.g. ThreadPool.QueueUserWorkItem() so

Tracing in WF4 doesn't work?

徘徊边缘 提交于 2019-12-06 04:23:57
I'm trying to set up a simple test case of pushing to a TraceListener in WF4. I've created an empty wcf service library app (just the default get/reply xamlx) and added the below to the config. I get no logging back. Is there something else required? <system.diagnostics> <sources> <source name="System.Workflow"> <listeners> <add name="System.Workflow" /> </listeners> </source> <source name="System.Workflow.Runtime"> <listeners> <add name="System.Workflow" /> </listeners> </source> <source name="System.Workflow.Runtime.Hosting"> <listeners> <add name="System.Workflow" /> </listeners> </source>