I have a simple requirement to convert the xfaForm type which is used to invoke the process in task manager to document type varibale.
The form developed is not following any xsd schema. But I want to read value assign into various form feild during the various operation of the process.
Is there any way by wchich I can do it. My intention to convert it into document type so that I can use export data and get the desire values but I am very much stuck up with the conversion from xfaForm to document type itself.
You don't have to convert into document type to get the data. The xfaForm variable will contain the data for your form. The following xPath /yourxfaForm/object/data gives you the data for the form.
You can also use /yourxfaForm/object/data/datasets/data/yourStructure/yourFieldName to get to the field directly.
You can also use /yourxfaForm/object//data/yourFieldName. The "//" will make a search in all the data to find the tag matching your field name.
If, for whatever reason you need to convert it into a document, then you'll need to use the RenderPDFForm operation from the Forms service.
But as I mentioned my Form is not bound to any struture. So in the set struture I can have access to /process_data/myForm/object/data/xdp/datasets/data/FSFIELDS_
Lets say I have simple form with having a text field with the name myname and its not bound to any struture xsd. I want to access the field value of myname in Set Value operation then what the struture in need to follow.
You don't need a xsd to be able to parse your form structure from xPath.
You can also use /yourxfaForm/object/data/datasets/data/yourStructure/yourFieldName to get to the field directly.
You can also use /yourxfaForm/object//data/yourFieldName. The "//" will make a search in all the data to find the tag matching your field name.
It'll follow the structure of your XDP. If in your hierarchy in Form Designer you have form1/SubForm1/MyField, then you should be able to use /yourxfaForm/object/data/datasets/data/form1/SubForm1/MyField.