You can retrieve data from forms that are used within tasks.
After you retrieve form data (which is typically the value of fields
located within the form), you can programmatically process the data
to meet your business requirements. For example, you can retrieve
data from a form and then update a network database.
Form data must be in the format of Adobe XML Data Package (XDP)
documents, which are XML representation of form data. In XDP, form
fields are represented as XML elements. For each form field, a corresponding
XML element exists that has the same name as the field name. The
contents of the XML element are the contents of the field. For example,
a text field named Address has the corresponding XML element Address in
the XDP document.
Generally, the order in which fields appear on a form is the
same order in which their corresponding elements appear in the XDP
document. However, the order does not affect whether data is imported
into a form. An XDP document must include the Adobe XML Forms Architecture
(XFA) document definitions. Following those definitions is an xdp element,
which contains a single xfa:datasets element. The xfa:datasets element
contains an xfa:data element, which contains the
root element of the form data.
The following mortgage application form is an example of a form
that is used within a process task.
The format of the data that is retrieved from the form is XFA-based
XML data, as shown in the following example.
<?xml version="1.0" encoding="UTF-8" ?>
- <xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
- <xfa:data>
- <data>
- <Layer>
<closeDate>1/26/2007</closeDate>
<lastName>Johnson</lastName>
<firstName>Jerry</firstName>
<mailingAddress>JJohnson@NoMailServer.com</mailingAddress>
<city>New York</city>
<zipCode>00501</zipCode>
<state>NY</state>
<dateBirth>26/08/1973</dateBirth>
<middleInitials>D</middleInitials>
<socialSecurityNumber>(555) 555-5555</socialSecurityNumber>
<phoneNumber>5555550000</phoneNumber>
</Layer>
- <Mortgage>
<mortgageAmount>295000.00</mortgageAmount>
<monthlyMortgagePayment>1724.54</monthlyMortgagePayment>
<purchasePrice>300000</purchasePrice>
<downPayment>5000</downPayment>
<term>25</term>
<interestRate>5.00</interestRate>
</Mortgage>
</data>
</xfa:data>
</xfa:datasets>
Remarque : The name of the service that is invoked when
retrieving form data that is associated with a task is TaskManagerService.
To create a proxy object that lets you invoke its operations by
using a web service, specify the following WSDL definition:
http://localhost:8080/soap/services/TaskManagerQueryService?WSDL.
(See
Invoking LiveCycle using Web Services.)