title: Set InArgument value from a cs
body: <p>I'm working in a workflow foundation project and I find a trouble. I explain my project:</p>
  
  <ul>
  <li><p>I have a MainWindow where I set the workflowname that I would like to run. When I run this workflow I call VisualTracking.cs class to see where the debug is. This cs class constructor has the following method (WorkflowDesigner wd,string filePath,string name)
  The name is the workflowname that i set in mainwindow. </p></li>
  <li><p>I have a dll project with some custom activities that I use in the previous rehosted workflow. In one of these activities I have a InArgument that It's call textValue. I would like that this InArgument get the workflowname value, So to do It I do the following code:</p></li>
  </ul>
  
  <p>MainWindow:</p>
  
  <pre><code>    ......
      VisualTracking tracker = new VisualTracking(wd, workflowFilePathName, this.workflowName);
      .....
  </code></pre>
  
  <p>VisualTracking class:</p>
  
  <pre><code>    .......
      private string workflowName { get; set; }
      .......
      public VisualTracking(WorkflowDesigner wd,string filePath,string name) {
      .......
      foreach (Activity v in idActivityMap.Values)
          {
              string val = v.GetType().FullName;
              activityLists.Add(val);
              if (v.GetType().FullName == "RulesDll.Status_Activity.StatusActivity")
              {
                  ((StatusActivity)v).textValue = this.workflowName;                   
              }
          }
      ........
  </code></pre>
  
  <p>In this foreach for each workflow activity i check if his namespace is the target activity that i want to set the workflowname. </p>
  
  <p>StatusActivity</p>
  
  <pre><code>    ........
      public InArgument&lt;string&gt; textValue;
  
      public InArgument&lt;string&gt; Text
      {
          get { return this.textValue; }
          set { this.textValue = value; }
      }
      ........
      protected override void Execute(CodeActivityContext context)
      {
         ...........
          string text = context.GetValue(this.Text);
         ...........
  </code></pre>
  
  <p>So I would like that in string text has the workflowName value that i associated in visualtracking class.... But When I debug, always retrieve a value as a null....</p>
  
  <p>Any solution will be appreciated!!!!!</p>