Hi All,
My aim is to update and then store a hi-fi form in docbase so that the user can see the form in Taskspace's default hi-fi form view.
I created and installed a high fidelity form using Form builder. All my versions are 6.5 SP2. I then want to use that form in a workflow and read/write data from/to that hi-fi form. The workflow has a package which is of the type "XML Instance" for this hi-fi form. First I use "FTP Read" activity to get the hi-fi form in the 'XML Instance' type package of the work flow from a specific location. I attach the hi-fi form in the content->data node of the 'XML Instance' data-type package in the activity 'FTP Read' and give the format as 'odt'. Then in the source pane of the activity "Process Data Mapping" I try to read some value from the form elements to some process variables. But when I debug the process, the process variables are still empty. I can see the content of the 'XML Instance' package in debug mode and the hi-fi form is present there.

Again, when I try to write data using "Process Data Mapping" activity (from process variable to hi-fi form elements), (this hi-fi form imported by the 'FTP Read' activity in the previus step as in picture), I get the following error .
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Caused by: DfException:: THREAD: http-0.0.0.0-9080-5; MSG: Error in setting value of package schema data : /Packages/abb_form_view/content/data/[-1,S]ABBForm/[1,S]Document_Number, 09de75d1800047b9; ERRORCODE: ff; NEXT: null
at com.documentum.bps.utils.PackageUtils.setContentInfo(PackageUtils.java:648)
at com.documentum.bps.utils.PackageUtils.setNodeValue(PackageUtils.java:604)
at com.documentum.bps.utils.PackageUtils.setPackageNodeValue(PackageUtils.java:491)
at com.documentum.bps.utils.PackageUtils.setPersistentNodeValue(PackageUtils.java:431)
at com.documentum.bps.utils.DocbaseUtils.setProcessDataValue(DocbaseUtils.java:199)
at com.documentum.bps.pkgcopy.runtime.PackageCopyService.setInputNodeValue(PackageCopyService.java:42)
at com.documentum.bps.outbound.AbstractService.executeInputMappingRules(AbstractService.java:146)
at com.documentum.bps.outbound.AbstractService.execute(AbstractService.java:66)
... 30 more
Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:98)
at com.documentum.bps.utils.XMLUtils.parse(XMLUtils.java:221)
at com.documentum.bps.utils.XMLUtils.parse(XMLUtils.java:216)
at com.documentum.bps.utils.PackageUtils.getContentAsDocument(PackageUtils.java:251)
at com.documentum.bps.utils.PackageUtils.getDocumentFromContext(PackageUtils.java:215)
at com.documentum.bps.utils.PackageUtils.setContentInfo(PackageUtils.java:637)
... 37 more
_---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Strange is that If I do not use the 'FTP Read' activity and just attach on the fly the hi-fi form in the 'XML Instance' package in the 'Process Data Mapping' activity, then it can write to the form fields. But there is one problem in that case also. I save this form as a dm_xfm_instance in the docbase for users to see this hi-fi form from Task Space's 'Default hi-fi form view'. When I see this hi-fi form in taskspace, I see it just as a xml file in the hi-fi form view template and not as a hi-fi form. I want to see it as hi-fi form.
Please help.
Thanks a lot,
Raj Sen