Workflow and info path form are working fine.i use one info path form.when workflow run it create a task for a user.if the user open that task he can see a info path form.i need to pass some data in to that info path form when creating the task properties.
this is the method .
private void CreateTaskProperties(SPWorkflowTaskProperties taskProperties, string approverRole, string TaskTitle, Person approverPerson, StringBuilder category)
{
try
{
currentApprover = new CurrentApprover();
currentApprover.LoginName = approverPerson.AccountId;
taskProperties.AssignedTo = approverPerson.AccountId;
taskProperties.Title = string.Format("{1} - {0}", "test","test");
taskProperties.TaskType = 2;
taskProperties.ExtendedProperties["Name"] = "testing";// this the code line where i pass data in to info path form.
//other code lines...............
there is a textbox in the info path form it field name is "Name".
i binded that textbox default value in to the "ows_Name" which is in the itemMetaData.xml(Secondary data source).
info path form working fine but the data i pass is not display in the form just empty textbox.
Thanks..