Windows Workflow Foundation (WF4) - Workflow Arguments Example

This sample demonstrates how you can pass arguments to a Workflow Activity and the various options for passing data and how you can use the Microsoft.Activities.WorkflowArguments class to create input arguments

C# (223.4 KB)
4.7 Star
2,572 times
Add to favorites
E-mail Twitter Digg Facebook
Sign in to ask a question

  • Can we send mupltiple inputs as multiple dictionary objects?
    1 Posts | Last post March 19, 2015
    • i mean ,i want to send multiple user information.every user contains UserId,UserName,MailId,Address.i want to send multiple users informations to workflow  as inputs
      IDictionary<string, object> input1 = new Dictionary<string, object>();
      IDictionary<string, object> input2 = new Dictionary<string, object>();
      IDictionary<string, object> input3 = new Dictionary<string, object>();
       IDictionary<string, object> output =WorkflowInvoker.Invoke(wf, input1,input2,input3);
      is there any another way?
      i was thinking about keeping user info in one object and sending multiple objects in dictionary as input and getting dictionary info at workflow side.
      just suggest me best workflow programming at workflow side.
  • Get arguments
    1 Posts | Last post October 20, 2013
    • Hi Dear Ron,
      Is it possible to get arguments values of a suspended workflow (for example one StateMachine that reached to a bookmark)?
      for example :
                  var stateMachine1 = new StateMachine1();
                  var wfApp = new WorkflowApplication(stateMachine1);
                  //here state machine is suspended and I want to read its output arguments
                  //It is not completed yet so WorkflowApplicationCompletedEventArgs is useless for me
      Thank you very much.