workflow-foundation-4

User Defined Dynamic Workflows in Workflow Foundation 4?

给你一囗甜甜゛ 提交于 2019-12-18 12:36:31
问题 I have been, exhaustively, looking at examples of WF4 and am not sure it will work for my project. I need to be convinced otherwise. I am struggling with how we would implement a system to use WF4 so users have the ability to define workflows. It seems you need VS2010 experience to design and implement a WF4 workflow. I love wheat it can offer, but feel it may be too complicated for non techical users. Do we just define a ton of custom activies that a user can move into a workflow? How can we

Workflow 4 runtime compiling

烈酒焚心 提交于 2019-12-13 16:19:55
问题 In WF 4, is there a way to compile XAML at runtime? In WF 3.5 you were able to do this via WorkflowCompiler Is there something similar in WF 4? 回答1: You can in fact load an run XAML at runtime. Here are a couple links. But let's be clear that it's not compiling it -- it's interpreting it -- because that's how XAML works. Walkthrough Video by Ron Jacobs Let me know if you have any questions! 来源: https://stackoverflow.com/questions/9417102/workflow-4-runtime-compiling

InvokeMethod of Windows Workflow 4 can encounter Exception C0000005

天大地大妈咪最大 提交于 2019-12-13 15:52:33
问题 Thank you for reading at first. I designed a WPF application which rehosted the Designer, Toolbox and Properties of Windows Workflow. My Idea is really simple that I just want have visualization at runtime about my workflow and design them in the runtime as well. ISSUE: Now I try to Invoke a Method of a class under the same namespace of whole application. The class is called MyTwsClass. Please have a look below: It is extremely Simple. The TwsClass is from a Reference ActiveX of Interactive

Choosing Between WF CodeActivity and AsyncCodeActivity for DB Operations

浪尽此生 提交于 2019-12-13 13:21:28
问题 I'm still fairly new to WF so bear with me if I don't get this worded correctly the first time. ;) If you're doing selects against a well-normalized database, using primary keys, returning single records, in a fairly low volume environment (a few hundred requests per day), does it really make a difference whether you use CodeActivity vs AsyncCodeActivity ? While I've got some additional research to do on hosting and execution, it will be possible, but not probable, for multiple requests to be

WF4: How do I evaluate an expression only known at runtime?

痴心易碎 提交于 2019-12-13 12:09:51
问题 I am trying to create a simple WF4 activity that accepts a string that contains a VB.NET expression (from say the database), evaluates that string using the variables available in the current scope of the workflow and returns the result. Unfortunately, with the ways I've tried it, whether it be with a plain on Activity or a full-fledged NativeActivity , I keep hitting a wall. My first attempt was with a simple Activity, and I was able to make a simple class that evaluates an expression given

How to programmatically terminate a workflow instance running as a workflow service

天涯浪子 提交于 2019-12-13 08:44:18
问题 I am using windows workflow service and would like to programmatically terminate a specific workflow instance via a web service request without building this into the workflow itself. By building it into the workflow itself, I mean having a specific Receive activity which will be responsible for terminating the activity. So I am imagining something like: http://myhost/myworkflowservice/myworkflow.xamlx/terminate Does this type of functionality exist? Thanks, Eric 回答1: Just add a Workflow

Setting ExpressionTextBox's ExpressionType to a generic type

核能气质少年 提交于 2019-12-13 06:41:48
问题 I'm having a slight problem using the ExpressionTextBox control in a designer for an activity that I have. How does one go about setting its ExpressionType property in XAML to a Type object that defines the IEnumerable`1 generic? I can get away with not setting it at all, but ideally I'd like to get validation support at design time for the control with this. I've tried the following, which doesn't work: <View:ExpressionTextBox VerticalContentAlignment="Center" Expression="{Binding Path

WWF: SqlWorkflowInstanceStoreBehavior verus SqlWorkflowInstanceStore

本小妞迷上赌 提交于 2019-12-13 04:39:49
问题 I have a Windows Service wrapping a WCF Service, which contains a WorkflowApplication, which runs Activities. I have also configured SQL Server 2008 Express (I know, it's approaching EOL, but the documentation explicitly states that only SQL Server 2005 or SQL Server 2008 are supported) to host the database and the connection works . To be even clearer: The entire process of the Activity completes and receives the return (I'm calling it via the WCF client wrapped in PowerShell). The issue

While activity code condition in WF4

a 夏天 提交于 2019-12-13 04:29:26
问题 When the following is executed, the while loop never ends. I'm calling a method to get the value for the while loop condition here. Please tell me what I'm doing wrong? using System; using System.Linq; using System.Activities; using System.Activities.Statements; using System.IO; namespace BuildActivities { public sealed class CheckFile : CodeActivity { public InArgument<string> DirectoryName; protected override void Execute(CodeActivityContext context) { Activity workflow = new Sequence {

Windows Workflow Foundation: Multiple applications

人走茶凉 提交于 2019-12-13 02:35:31
问题 We are running several ASP.NET applications (one per customer) based on our custom framework (which just extend ASP.NET). Each web application use its own database (Initial Catalog in the term of connection string). Now we would like to add workflow capability to the applications (to our framework respectively). The particular workflows will be the same for all the applications only some initial settings of each workflow can vary, e.g. in one application the e-mail will be send to the user X,