The problem statement is quite simple actually but i guess i am just very new to Custom workflows and InfoPath.
This is what i do with my code:
Use a custom infoPath form to save values into a forms library.
On Form Submit a custom Sequential WF is triggered and creates a task in the tasks list. I have a custom infoPath form in the tasks list as well.
Through my custom code using xml i set values in the fields of the custom InfoPath form.
Please Note: I have a requirement that if a field value (say 'Department') is modified in the Forms Library then it should be updated in the corresponding task as well.
I am writing custom code for this solution.
Thank You. :)