Access the OutArgument in a NativeActivity RRS feed

  • Question

  • Hi: This is probably a pretty simple question for someone who isn't new to this. I simply want to take the outargument value from a nativeactivity (using the Microsoft native activity template) and pass it to another custom nativeactivity in my workflow. I also tried just outputting firstname and lastname below in a WriteLine item, but can't seem to get the VB markup in the text field correct (By calling ReadEmployeeProperties.GetValue()). An example:


      public class Employee
        public string FirstName { get; set; }
        public string LastName { get; set; }
      public sealed class ReadEmployeeProperties : NativeActivity<Employee>
        // Define an activity input argument of type string
        public InArgument<int> EmployeeId { get; set; }
        protected override void Execute(NativeActivityContext context)
          Result.Set(context, new Employee() { FirstName = "Test", LastName = "Data" });

    Wednesday, June 15, 2011 3:34 AM


All replies