workflow-foundation-4

Windows Workflow 4 Correlation Query includes website instance name in instance key calculation and fails

℡╲_俬逩灬. 提交于 2019-12-02 07:02:57
I am trying to host a long running workflow service on Azure but I am having problems with correlation. I have got the timeToUnload and the timeToPersist set to 0 and I have ticked the "persist before send" in the worklow - this is not a problem with persistence, it is to do with how instance keys are calculated. When one web server starts a workflow and another then tries to take another action on the workflow, it fails with System.ServiceModel.FaultException: The execution of an InstancePersistenceCommand was interrupted because the instance key '12e0b449-7a71-812d-977a-ab89864a272f' was not

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

≯℡__Kan透↙ 提交于 2019-12-02 03:59:30
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! 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 DesignerMetadata().Register(); " Note: elementHost1 is a WinForm ElementHost Control, direct from the toolbox! ;)

How to call an Activity inside another Activity in Microsoft Workflow?

拜拜、爱过 提交于 2019-12-01 14:57:25
I have created a Native activity and I need to call another activity on a Bookmark Resume call. My First Activity name is "Apply" and Second activity is called "Approve". In Apply, i have created a property as below. public Approve Approve { get; set; } and then I have registered the CacheMetadata as below. metadata.AddImplementationChild(this.Approve); base.CacheMetadata(metadata); And then "OnResumeBookmark" method, Im scheduling it. this.Approve = new Approve(); this.Approve.ID = context.GetValue(this.ID); OutArgument<string> res = this.Approve.Result; context.ScheduleActivity(this.Approve)

How to run NUnit tests using a template in TFS build server

点点圈 提交于 2019-12-01 14:00:25
问题 I need to run nUnit tests using a workflow template in TFS Server 2010. I found all the reference bellow explaning how to configure the Build server: http://morten.lyhr.dk/2008/05/using-nunit-and-ncover-with-tfs-build.html How to run nunit with msbuild from VS2010 http://www.codewrecks.com/blog/index.php/2009/07/19/integrate-nunit-test-into-a-tfs-build/ http://msdn.microsoft.com/en-us/library/ee342461.aspx Bellow is closest to what I need: https://tfsbuildextensions.codeplex.com/wikipage

How to call an Activity inside another Activity in Microsoft Workflow?

故事扮演 提交于 2019-12-01 13:47:20
问题 I have created a Native activity and I need to call another activity on a Bookmark Resume call. My First Activity name is "Apply" and Second activity is called "Approve". In Apply, i have created a property as below. public Approve Approve { get; set; } and then I have registered the CacheMetadata as below. metadata.AddImplementationChild(this.Approve); base.CacheMetadata(metadata); And then "OnResumeBookmark" method, Im scheduling it. this.Approve = new Approve(); this.Approve.ID = context

How to Deserialize and Serialize Build Process Parameters in TFS

≯℡__Kan透↙ 提交于 2019-12-01 10:32:34
I am trying to create a new build definition using TFS 2013 API. The process template that I have to refer contains several custom activities and parameters. While creating the Build Definition, some of the Property value needs to be updated dynamically. So I tried to Deserialize the process parameters using below code: IDictionary<string, object> processParams = WorkflowHelpers.DeserializeProcessParameters(defaultTemplate.Parameters); This code always throwing below exception: An unhandled exception of type 'System.Xaml.XamlObjectWriterException' occurred in System.Xaml.dll Additional

How to Deserialize and Serialize Build Process Parameters in TFS

自作多情 提交于 2019-12-01 08:11:13
问题 I am trying to create a new build definition using TFS 2013 API. The process template that I have to refer contains several custom activities and parameters. While creating the Build Definition, some of the Property value needs to be updated dynamically. So I tried to Deserialize the process parameters using below code: IDictionary<string, object> processParams = WorkflowHelpers.DeserializeProcessParameters(defaultTemplate.Parameters); This code always throwing below exception: An unhandled

Workflow Services ReceiveAndSendReply Unordered Calls Timeout

风流意气都作罢 提交于 2019-12-01 00:57:30
I created a sample Workflow Service. I am having a problem calling it in unordered. All the receive activity below having same correlation. When the workflow starts on GetData() and the client tries to call 4th or 3rd receive activity it results to timeout. I was expecting to throws back a Operation 'Fourth|{ http://tempuri.org/ }IService' on service instance with identifier '04e7f5aa-5e01-47ac-8a6e-b20492c5ac19' cannot be performed at this time. Please ensure that the operations are performed in the correct order and that the binding in use provides ordered delivery guarantees. But when I

CRM 2011 Workflows: Finding the previous values

巧了我就是萌 提交于 2019-11-30 21:04:40
I currently have a workflow which is triggered when a certain decimal field is changed. Is it possible to get the difference between the old and new values via a workflow? Finally had the time to test this, and it is perfectly possible to retrieve the pre values in a workflow using a workflow assembly. Here's what I did: I created a workflow on Contact, with a trigger on LastName. The workflow contains a reference to the field lastname, and a custom workflow assembly . I opened a contact and changed it's lastname from 'Foo' to 'Bar' Code of the custom workflow assembly: protected override void

Workflow Services ReceiveAndSendReply Unordered Calls Timeout

╄→гoц情女王★ 提交于 2019-11-30 19:29:58
问题 I created a sample Workflow Service. I am having a problem calling it in unordered. All the receive activity below having same correlation. When the workflow starts on GetData() and the client tries to call 4th or 3rd receive activity it results to timeout. I was expecting to throws back a Operation 'Fourth|{http://tempuri.org/}IService' on service instance with identifier '04e7f5aa-5e01-47ac-8a6e-b20492c5ac19' cannot be performed at this time. Please ensure that the operations are performed