workflow-foundation-4

WF and Hierarchical State Machines

自闭症网瘾萝莉.ら 提交于 2020-01-04 02:52:13
问题 Searching bing and google I'm finding some, but surprisingly little information about state charts in relation to windows work flow. The only clear answer I've derived is "yes it can handle state charts, and here is a tutorial." But what I'm trying to determine is: Does it support hierarchical state machines as richly as Samek's QHSM. For example: Can it handle a transition from a nested state to another nested state, where all entry and exit events are correctly fired? Does it handle or

Get a list of persistent objects stored in database

纵饮孤独 提交于 2020-01-02 20:26:07
问题 I should insert a list of objects in a database using a workflow for each object, the inserting process could take several time and waiting for some external input so I have to save persistent state in db, and it works correctly. Now I need to show pending objects in my user interface, how can I retrieve variables of stored data?? Thank you, Marco 回答1: See How to: Deserialize Instance Data Properties 来源: https://stackoverflow.com/questions/7530839/get-a-list-of-persistent-objects-stored-in

Assembly must be registered in isolation error

我们两清 提交于 2020-01-02 04:34:10
问题 I'm trying to load a custom workflow activity onto a crm server. I loaded the project onto the server and have been using the CRM Plug-in Registration Tool. The server is CRM2011 and thus supports .NET 4.0 activities. However, when I press the "Register" button (After the assembly has successfully loaded onto the Tool) the following error occurs: `Unhandled Exception: System.ServiceModel.FaultException'1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture

Hosting a self-hosted WF in IIS

本小妞迷上赌 提交于 2020-01-01 19:29:06
问题 Does anyone know if it's possible to host a self-hosted WorkflowServiceHost application in IIS without turning it into a XAMLX file? If so, how? Furthermore, does anyone have any good guidelines for deploying XAMLX files in general to IIS 7? Thanks in advance 回答1: You can do the same basic thing by writing your own hosting engine instead of the XAMLX one. You can then load applications via ASP.NET, but have complete control on it's lifespan/lifecycle. You have to create your own host to load

Listing Currently Running Workflows in .Net 4.0

荒凉一梦 提交于 2020-01-01 17:37:12
问题 I've got a .Net 4.0 Workflow application hosted in WCF that takes a request to process some information. This information is passed to a secondary system via a web service and returns a bool indicating that its going to process that information. My workflow then loops, sleeping for 5 minutes and then querying the secondary system to see if processing of the information is complete. When its complete the workflow finishes. I have this persisting in SQL, and it works perfectly. My question is

Argument validation in custom activity designer

核能气质少年 提交于 2020-01-01 12:02:47
问题 I am having problems getting validation to work properly in the designer for my custom activity. The simplest sample to reproduce the behavior is as follows: I have a custom WF4 activity with a dynamic collection of arguments stored in a dictionary: [Designer(typeof(DictionaryActivityDesigner))] public class DictionaryActivity : NativeActivity { [Browsable(false)] public Dictionary<string, InArgument> Arguments { get; set; } public InArgument<string> StringArg { get; set; } public

What string do I use to connect to an SQL Server?

旧巷老猫 提交于 2019-12-31 05:25:12
问题 I'm trying to execute an SQL Job using a CRM Workflow by making a custom activity. In my code, an online tutorial had me construct it like this (in c#): [CrmWorkflowActivity("A test activity to run SQL Jobs")] public sealed class ExecuteSQLJob : System.Activities.CodeActivity { #region Inputs [Input("Job Name")] [Default("BMS_ExtractTransformLoad")] public InArgument<String> JobName { get; set; } [Input("Server Connection")] [Default("HBSSQL2008/MSSQLSERVER")] //<--This String public

Workflow 4 tracking records viewer

守給你的承諾、 提交于 2019-12-25 05:32:50
问题 there was an application called 'WorkflowMonitor' that was included with the samples kit for workflow 3 which gave you a visual playback through previously run workflows. The tracking records that app works against appear to be a different shape to those in workflow 4, is there a similar viewer that anyone knows of that can give me an insight into previously run workflows in workflow 4? I am really just looking for the best way to interpret the data, the Workflow Monitor would have been

Workflow with two receive activities and correlation

柔情痞子 提交于 2019-12-25 02:22:46
问题 I've a workflow that has two receive activities in a pick activity. Whenever I get a request in the first request activity the workflow has to create a new instance while if the second receive activity get requests it should not create a new instance instead the messages should be routed to the already running instance (there should be an instance running already). How can I handle this? 回答1: I did some blog posts about how to setup message correlation to do this. Check here for a good

Restrict number of threads in parallel foreach in Windows workflow foundation 4.0

余生颓废 提交于 2019-12-24 13:42:50
问题 I have WF in which I am using parallel foreach to enumerate through a list of items and do some Processing on each item. The requirement is to run the parallel foreach infinitely until the user intervenes and stops the process. However when there are more than 20 items, I see multiple threads are spun off and the CPU usage will spike to 99 percentages and eventually the entire system slows down to respond. How can I limit the number of threads that can be created in parallel foreach of WWF.