Mapped names InArguments WPF
===

Imagine the following case:

![a busy cat](http://img402.imageshack.us/img402/9205/inij.jpg)

As you can see this is a WPF application. At the first step, I drop PositionArrayActivity to the designer and after this, inside this activity I put a Flowchart activity. 

You can see that PositionArrayActivity has a for each list in portfolio.... This List is a Array of Entity own object. So in this FlowChart I will iterate for every list of entities that the query's return.

Ok, let's inside flowchart. Here you have the picture:

![a busy cat](http://img515.imageshack.us/img515/273/secondvt.jpg)

As you can see, in flowchart activity we have 2 custom activities as aggregate functions. One of them, filterActivity has an InputArgument (statusArray) as type Entity [] (as the List that you can see in the previous picture) and an OutPutArgument (finalElements) that is an Entity array too. Now I have to put manually (as you can see in top right corner in red) the array that i want to use (this array must be the same name that arrives to Flowchart activity).

The second activity (CountActivity) has an InputArgument (entity [] too) that inside, count how many elements it has and an OutputArgument as an Int that saves this value.

The question is.... Are there some way to put automatically all of these Arguments? 

So let's simulate the ideal action in this flowchart:

1) Drop Filter activity in the designer

2) Put across between Start and FilterActivity and put manually in the right corner list argument as InputArgument, declared a new Variable in the designer as a Entity [] and put this name in the OutPutArgument in FilterACtivity 

3) Drop CountActivity to the designer

4) When I put across between FilterActivity and CountActivity **AUTOMATICALLY** put in InputArgument the previous array that results in the filter activity.


Alternative:

I think a solution that it'll be a different staff.  In a countActivity we can find a ComboBox with all of the Variables, Arguments and designer variables that I can find in the designer, and the user that runs the workflow get the functionality to choose which he wants... So, What is the way to get previous workflow execution, what are the variables that  are in the designer???

Thanks a lot!!!!!




