workflow-foundation

While activity in WF 4 rehosted designer

时光怂恿深爱的人放手 提交于 2019-12-13 01:16:15
问题 I have written a custom activity which contains a simple ExpressionTextBox: <sapv:ExpressionTextBox HintText="List of Strings" Grid.Row ="0" Grid.Column="1" MaxWidth="150" MinWidth="150" Margin="5" OwnerActivity="{Binding Path=ModelItem}" Expression="{Binding Path=ModelItem.Test, Mode=TwoWay, Converter={StaticResource ArgumentToExpressionConverter}, ConverterParameter=In }" /> In the library, i've added Test property as follows: public InArgument<string> Test { get; set; } So, this is the

How to mandate workflows to include local types assembly name?

懵懂的女人 提交于 2019-12-13 00:58:52
问题 I am using WF4 and am having my types, activities and workflows in the same project and then I am using ActivityXamlServices.Load(path) to load my workflow activity and it throws the following exception: The type ‘InArgument(local:,,,, of property ‘InputArgs’ could not be resolved By looking at the solution to this problem at this post, I included assembly name manually in the workflow, and it all works. Problem: Everytime I make any change in the workflow, it re-writes the xaml and removes

Creating custom activity design without reference to Design DLL in Windows Workflow Foundation

[亡魂溺海] 提交于 2019-12-12 17:23:22
问题 I am using Windows Workflow Foundation with custom Activities , and I would like to create custom Design for these activities in my workflow. I am able to make the design project, and the designer xaml. Also I am able to see the custom design for them in the workflow, if I directly refer the Design project in my Workflow project . This is something that I would not like to do, because the Designer DLL should not be deployed to production environment. I would only like to have the custom

Are Windows Workflow Foundation Statemachines suitable for high performance scenarios?

萝らか妹 提交于 2019-12-12 10:56:17
问题 i´m currently dealing with a system where i have to track the state for several thousand objects in parallel that send possible state updates a few times every minute. In addition i have to perform additional computation (no slow IO stuff, just using CPU). I currently use a custom state machine implementation. however, as WF is used within other parts of the system, i wonder if the WF state machine´s may be suitable for such a scenario with a handful (<5) of states. I fear that the overhead

How to conditionally use InvokeMethod in an XAML Windows workflow foundation

自作多情 提交于 2019-12-12 04:32:02
问题 In windows workflow foundation sequence workflow, How to use invoke method tags to be invoked based on certain condition? For example, <Sequence> <Sequence.Variables> <Variable x:TypeArguments="x:String" Default="["this is an out param"]" Name="outParam" /> <Variable x:TypeArguments="x:Int32" Name="resultValue" /> <Variable x:TypeArguments="msi:TestClass" Default="[New TestClass()]" Name="varTestClass" /> </Sequence.Variables> <sap:WorkflowViewStateService.ViewState> <scg:Dictionary x

WF: Workflow Designer: List of InArgument added dynamically : How to get value during workflow execution

前提是你 提交于 2019-12-12 03:07:16
问题 I have built a workflow designer that allows to enter a list of email addresses.Each email in the list needs to be an InArgument(Of String) so they can be individually edited/added using variables. On my Activity, I have a property that is declared like so: Public Property [To] As ObservableCollection(Of InArgument(Of String)) My designer is wired up and populating this collection properly. However during the execution, I do not know how to get the run-time value for each InArgument that was

Silverlight and Windows Workflow Foundation

倖福魔咒の 提交于 2019-12-12 01:32:55
问题 private void btnUpdate_Click(object sender, RoutedEventArgs e) { xxxxxxx.Workflow1_WebServiceSoapClient zer = new xxxxx.Workflow1_WebServiceSoapClient(); zer.demanderSubmitReportCompleted += new EventHandler<xxxxxxxxxxxxxxx.demanderSubmitReportCompletedEventArgs>(service2); zer.demanderSubmitReportAsync("zzz", 20000); } public void service2(object sender, xxxxx.demanderSubmitReportCompletedEventArgs e) { string a = e.Result; } I'm trying to call a Windows Workflow Foundation published as a

In Workflow need to listen for multiple events

杀马特。学长 韩版系。学妹 提交于 2019-12-11 19:07:13
问题 I need a workflow where need to listen for multiple events any event will drive workflow further. some actions --> Call external method --> Here there 3 events any one would be the response. What kind of activity i can use there where i can have three event handler. Any event will drive it further. Thought of using state machine workflow but if there is anything i can use instead? 回答1: Whether you use a sequential workflow or state machine workflow activity as your root workflow type, you can

Failure compiling Workflow Definition

别来无恙 提交于 2019-12-11 18:41:44
问题 I'm getting this following error when try to load a workflow from its definition: Compilation failures occurred: Line 0: Unable to load assembly 'PI.Shared.WF.Activities.Tests'. Line 581: The type 'System.Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Complete results are contained in the Data property of this exception. Please correct the errors in the source

Windows Workflow Persistence data (VS 2010 RC / .NET 4.0)

强颜欢笑 提交于 2019-12-11 12:52:20
问题 I have started working with Windows Workflow recently (the VS2010 RC / .NET 4.0 version) and am stuggling to get to grips with the SQL persistence functionality. I have managed to attach persistence to my WorkflowServiceHost via an SqlWorkflowInstanceStoreBehavior object and in my database there are rows appearing in the [System.Activities.DurableInstancing].[InstancesTable] table. However, I don't know how to make sense of any of this data (it seems as though quite a few columns are in