Hi!
There is a discrepancy between the code and the schema in the process
and instance management service. The document element is not set by the
code and it is a required element in the schema. The line of code that
set the
Document was commented out by revision 573153 (mszefler) with the
comment
"Merged BART branch into trunk.". On the BART branch it was commented
out
by revision 556155 (mszefler) with the comment "BART: misc".
-Doug.
I see a few ways to fix this:
1) Remove the document element from the schema.
2) Make the document element optional in the schema.
3) Uncomment the commented out code.
4) Set the document to an empty string in the code.
Because I do not know why the code is commented out I do not know which
way to proceed with a fix.
-Doug.
The schema as I see it looks like this:
<complexType name="tDeploymentInfo">
<annotation>
<documentation>Information about a BPEL process
deployment.</documentation>
</annotation>
<sequence>
<element name="package" type="xs:string">
<annotation>
<documentation>Deployment package the process was
deployed into.</documentation>
</annotation>
</element>
<element name="document" type="xs:string">
<annotation>
<documentation>File name of BPEL
document.</documentation>
</annotation>
</element>
<element name="deploy-date" type="xs:dateTime">
<annotation>
<documentation>Date the process was
deployed.</documentation>
</annotation>
</element>
The code has the setting of the document commented out:
TDeploymentInfo depinfo = info.addNewDeploymentInfo();
depinfo.setPackage(pconf.getPackage());
//depinfo.setDocument(pconf.getBpelDocument());
depinfo.setDeployDate(toCalendar(pconf.getDeployDate()));
depinfo.setDeployer(pconf.getDeployer());