Menu
  • HOME
  • TAGS

Accessing PendingChanges on a custom CodeActivity on TFS

.net,tfs,tfs2012,workflow-foundation,build-process-template

There is a variable in the Process called Workspace. Pass this into you activity and then you can call GetPendingChanges(), or one of the overloads to inspect the pending changes. You can use a Convert Workspace Item to get the local path from Sources Directory and pass that in too,...

Starting mulitple windows workflows

c#,asp.net,workflow-foundation

Sorry..it had nothing to do with the work flow infact. It was the session that was causing problems...:)

Visual Studio does not generate client proxy code when adding service reference

c#,.net,wcf,visual-studio-2013,workflow-foundation

Instead of a simple Reference.cs file Visual Studio kindly adds 7 more files to the service reference folder. When I recompile the project and build it all the methods of my WCF service appeared on the toolbox [and became available] and now I can use them in my Work Flows....

Pass a local variable to CodeMethodInvokeExpression in workflow foundation

c#,workflow-foundation,rule-engine,business-rules

Pass the local variable as CodePrimitiveExpression codeMethodInvokeExpression.Parameters.Add(new CodePrimitiveExpression(error)); ...

Workflow foundation custom Assign Activity

workflow-foundation-4,workflow-foundation,workflow-activity

Rather than dealing with each variable type just convert the expression to its base interface. ITextExpression vbr = ass.To.Expression as ITextExpression; You can then just access the expression text property without caring about the type of variable assigned to the expression. GlobalFunctions.WatchWindowViewModel.VariableDefinition existingVariable = GlobalFunctions.WatchWindowViewModel.Instance.VariableExists(vbr.ExpressionText); This should cater for (I...

Workflows not being started when app deployed to another computer

c#,workflow,workflow-foundation-4,workflow-foundation,workflow-foundation-4.5

My first check would be to make the console app display something when it receives the remote call so you can be sure the app really got the command.

Powershell Workflow Chugging at Memory and Crashing

powershell,memory-management,workflow-foundation

The problem here appears to be with the retention of object data. Adding a select reduces the size of the returned object data so much so that searching 100GB+ did not cause it to crash. Solution is as followed: Workflow Test-Me { Param ( $Path = "c:\temp", $Days = 0...

WF4 Rules and MS BRE performance comparison

c#,biztalk,workflow-foundation-4,workflow-foundation

It's unlikely you'll ever find a direct, and meaningful, comparison of the two, particularly on performance. So, having direct experience with the BizTalk BRE and vicarious experience with the WF Rules Engine, I'll say that there are no 'risks' choosing one over the other, especially with Performance. Even if you...

Windows Workflow Serialization Error

c#,linq,entity-framework,serialization,workflow-foundation

It turned out to be that I was unintentionally returning an EF class from a code activity. The Type that the error was complaining about was a property of the EF class that was being returned, so that is what made it difficult to find.

While activity in WF 4 rehosted designer

workflow-foundation-4,workflow-foundation,workflow-activity

I might need more of your code posting to bb able to help more, and understand fully what you want to achieve. But from the screen shot I can see that your not accessing the Runtime Arguments in the cache meta data method. Subsequently the console writeline method you are...

Powershell Workflow DynamicActivity Compiler Error '.' Expected Using $Date Variable

powershell,compiler-errors,workflow-foundation

I don't know the actual cause, but if you rename the variable $date to $something_else, the workflow works. Such as: Workflow Test-Date { $aDate = Get-Date Get-Date -format yyyyMMddHHmm $New_Date = Get-Date -format yyyyMMddHHmm Write-Output $aDate Write-Output $New_Date } I assume it's triggering a keyword in .NET during the conversion....

Why Does the ActivityId of a Child Activity Not Change In Each Loop Iteration

workflow-foundation-4,workflow-foundation

Turns out there is an additional property on the ActivityInfo object that I wasn't "tracking". InstanceId does not refer to the workflow instance id but instead it is an instance of the ActivityId. Essentially you have only one activity in the diagram but it can have multiple instances (if I'm...

Performance considerations with nested activities in Workflow Foundation

workflow-foundation

Yes there are negetive performance issues with nested activities. The reason for this is that the workflow instance is run on a single thread in both activities. The WF runtime schedules work on that thread using a queue-like structure. When the activity executes, it simply schedules its child activities with...

WF 4 OnUnhandledException not hit

workflow-foundation-4,workflow-foundation,workflow-activity

As Will suggested, i will post what i did to handle my scenario. Basically, in my custom activity i have hosted an Assign : [Browsable(false)] public Activity Body { get; set; } Activity System.Activities.Presentation.IActivityTemplateFactory.Create(System.Windows.DependencyObject target) { return new Assignment() { Body = new Assign() { DisplayName = "" } };...

WF 4 Rehosted Designer - get foreach InArgument Value

workflow-foundation-4,workflow-foundation,workflow-activity

you can access the DelegeateInArgument of a ForEach activity by inspecting the ModelItem trees parent and checking for DelegeateInArgument's. If you need a specific code example to achieve this I may need a some time to code the example. As it has been a long time since I did this,...

Call WF Workflow from Browser

wcf,url,workflow-foundation,param

I ended up implementing the workflow as a regular activity (non service) inside WCF. This gave me the ability to use their parameters and pass them to the workflow directly. In the end, not too difficult to implement.