How can I access the xml document which my workflow start with?

Hi

My workflow will be associated with infopath form documents,and I want to access some data in that form inside my workflow activties in runtime.

please tell me which object or api should I use to accomplish this.

thanks in advance

[259 byte] By [JoshHe] at [2007-12-24]
# 1

Hi Josh - there is no special API we ship for dealing with Infopath documents in WF. I am not sure if Sharepoint team has any special activities [custom activities written by them] that will help read/write infopath documents directly. At the core of it, infopath documents are xml documents so you should be able to use the .NET xml classes to read/write.

How you use it inside workflow is really very varied. You could write the .NET code inside a CodeActivity, or have it in the event handler code for one of our OOB activities. Its simply a matter of when to read that decides where you put the code.

Hope that helps!

Vignesh

VigneshKannappan-MSFT at 2007-10-8 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 2
Hi,

I have the same problem: I need to access data on my document. I think access to the data given the document is not a problem (I guess it would be just like with associationData: deserialization with a class generated by xs given the infopath form source).
But I don't know how to access to the document itself. With the association form, it's this.workflowProperties.associationData, what is it for the document on which the workflow is used?

Thanks for any help!

laurian at 2007-10-8 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...

Software Development for Windows Vista

Site Classified