workflow-foundation

WF4 - Composite custom activity throw an strange exception when using OutArgument

人盡茶涼 提交于 2021-01-28 05:32:28
问题 I'm trying to use a composite custom activity that apply a regular expression and return a boolean if it match. The pattern is something encoded in design time. The source text is coming from an activity. This activity is also specified in design time (I've made a activity designer that allow to drop an activity as source) But I also need to return what sub string match the expression, so I added an OutArgument to retrieve the string that match, and the string captured. Here is the code:

Where is the TFS build process going?

送分小仙女□ 提交于 2020-02-04 01:34:09
问题 Im having a hard time figuring out what the best approach is when designing my build process. It seems Microsoft have turned things around (again). I am using TFS 2015 and Visual Studio 2015. For earlier versions of TFS I have normally created custom code activities that I plug in to my build definition process file (xaml). I like this approach because it gives me great flexibility and enables me to code .NET classes. I used these guides: https://msdn.microsoft.com/en-us/library/dd647551(v=vs

Workflow Foundation 4.5 “Expression Activity type 'CSharpValue`1' requires compilation in order to run.”

試著忘記壹切 提交于 2020-02-03 08:08:28
问题 I am working through the Getting Started Tutorial for WF45 and have run into a problem that looks to have been experience by other people, but not in the same way that I am experiencing it. I am hoping that someone else has a solution for me. When I work through the Tutorial, all is good till I have to run it from the workflow host. At that point the instantiation of the workflow fail and returns the following message. "Expression Activity type 'CSharpValue`1' requires compilation in order to

Get username from SharePoint User field in List

本小妞迷上赌 提交于 2020-01-22 10:05:02
问题 I have a custom sharepoint workflow that I'm developing in Visual Studio. The workflow is running against a document library which has a custom content type connected to it. The content type includes a user lookup field ("owner"). I'm trying to have my workflow assign a task to the "owner" lookup field. However, I've only been able to get the display name for the user, not the account username. Can anyone help? 回答1: Refer to this Article on how to get the User Details from the Field. public

Get username from SharePoint User field in List

橙三吉。 提交于 2020-01-22 10:04:46
问题 I have a custom sharepoint workflow that I'm developing in Visual Studio. The workflow is running against a document library which has a custom content type connected to it. The content type includes a user lookup field ("owner"). I'm trying to have my workflow assign a task to the "owner" lookup field. However, I've only been able to get the display name for the user, not the account username. Can anyone help? 回答1: Refer to this Article on how to get the User Details from the Field. public

Drools.NET vs Windows Workflow Foundation (WF)

不想你离开。 提交于 2020-01-22 05:19:05
问题 I am currently in the process of searching for a rules engine that works in .NET. Our logic is pretty simple, +, -, *, /, and, or, basic order of operations stuff. However we are going to need to store this information in the database and then generate the rules file when a new version is pulled from the database. So the common UI editors are going to be useless to us, unless one of them has a web version UI editor. So my question is, given what I have said, which is going to be the best

AppFabric / WF 4.0 instances stuck despite no bookmark and pending timer

妖精的绣舞 提交于 2020-01-17 05:22:10
问题 I already posted a question about this (Abandoned instances that will not continue execution (zombie instances)), but still haven't got an answer. A difference I have noticed from the last question is that it can happen also when the configuration of the service Action on unhandled exception is set AbandonAndSuspend. So the scenario is a long term Workflow service hosted in IIS using AppFabric persistence store. This service performs some actions and then polls the result from a database.

Creating rules programmatically in WFF

最后都变了- 提交于 2020-01-17 03:12:09
问题 i need to create rule in Windows Workflow Foundation without using RuleSet editor. Maybe i didnt search enough on google but i cant find any examle of this. Example of desired result: var ra = new List<RuleAction>(); ra.Add(new RuleAction()); var rc = new RuleCondition(); var rule = new Rule("test", rc, ra, null); Thanks ahead 回答1: I think this blog-post answers your question: Programmatically Create Windows Workflow Rules 来源: https://stackoverflow.com/questions/5350144/creating-rules

Creating rules programmatically in WFF

。_饼干妹妹 提交于 2020-01-17 03:12:06
问题 i need to create rule in Windows Workflow Foundation without using RuleSet editor. Maybe i didnt search enough on google but i cant find any examle of this. Example of desired result: var ra = new List<RuleAction>(); ra.Add(new RuleAction()); var rc = new RuleCondition(); var rule = new Rule("test", rc, ra, null); Thanks ahead 回答1: I think this blog-post answers your question: Programmatically Create Windows Workflow Rules 来源: https://stackoverflow.com/questions/5350144/creating-rules

TFS 2010 Build, constant drop location, random access issue

若如初见. 提交于 2020-01-15 07:15:08
问题 We are using TFS 2010 Build to deliver libraries on a fixed location. ( \\server\product-R0\latest ) Other team projects reference the library from this location. On my build process I check if Build and unit tests passed, if it's ok I: Transform web/app.config Delete the latest folder using a "DeleteDirectory" activity Create the latest folder using a "CreateDirectory" activity Copy the binaries in the folder using "CopyDirectory" activity I delete the folder first because if we rename an