.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

ActivityFunc Complexity

Posted By:      Posted Date: August 30, 2010    Points: 0   Category :Windows Application
I've created a NativeActivity called Flow. Flow has an ActivityFunc property on it called Initialize. The ActivityFunc gives a Flow user the ability to build up a context that will later be used by a child collection of a Flow of type FlowStage. When trying to do this, I feel like building up a Flow w/ these Flow stages is kind of stinky. Because of the ActivityFunc requireing it's Result property to be set to a DelegateOutArgument, I have to create both a DelegateOutArgument for the returned Context as well as a Variable for it so my workflow can actually work with it and pass it as an argument to it's children FlowStage instances. Here's an example: DelegateOutArgument<SimpleFlowContext> flowContext = new DelegateOutArgument<SimpleFlowContext>() { Name = "flowContext" }; Variable<SimpleFlowContext> Context = new Variable<SimpleFlowContext>("Context"); var flowStage = new FlowStage<FlowResult, SimpleFlowContext> { Context = new InArgument<SimpleFlowContext>(ctx => Context.Get(ctx)), Activity = new Sequence { Activities = { new WriteLine { Text = "Hello from successful simple test", } } } }; var flow = new Flow<SimpleFlowContext, FlowResult> { Variables = { Context }, Initialize = new Activit

View Complete Post

More Related Resource Links

Reduce ASP.NET Page size and complexity using JQuery

This is my first post on asp.net blog. ASP.NET Ajax and JQuery are two different ajax framework. In this post I will show, how we can enhance gridview using ASP.NET Ajax and JQuery. I also compare the implementation of these frameworks. In next posts i will explain more about JQuery and ASP.NET Ajax and also tell you "How to combine the power of both framework". My Future post will related to ASP.NET and related frameworks.

Editor's Note: The Complexity of Complexity


This month our new Editor-in-Chief, Howard Dierking, ponders the convenience of metaphor and abstraction in both software design and magazine production.

Howard Dierking

MSDN Magazine October 2007

Complexity in designing our own Workflow Designer UI (WorkflowDesigner.View properties)

Hi all,

Currently our team has plan to create a simple task-sequencing-and-scheduling-module using .NET 4.0 and VS2010. The major job is to schedule and execute whatever 'task' that given to it. 
The 'task' usually represented as sequence of task with some control flow in between.

To leverage on .NET framework, we plan to use Windows Workflow since it already has runtime engine that capable to perform scheduling and sequencing activities(in our domain, we plan to use workflow 'activity' as 'task'). 

However, the default Rehosted Workflow Designer UI (WorkflowDesigner.View properties) is not really user friendly and we would like to either perform major customization on it or rewrite our own Workflow Designer. 

So could you advice me how complex if we want to create our own workflow designer? Do you think Workflow is appropriate for this kind of application? 
It's kinda different from normal Workflow usage whereby usually people use it in sharepoint to define business process. 
In our case, we plan to use it as an engine of our task-sequencing-and-scheduling module as I mentioned before.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend