Reputation: 1599
Im am using the send
button (formally workflow-send
) to submit the data entered in an Orbeon form. Afterwards, I send this data to a custom servlet to parse this data and to send the values to a process engine.
The problem is that in the submission xml data generated by Orbeon, there is no information about the datatypes. Lets say I have an Orbeon form with a textfield, a textarea and a date field. The generated submission xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns:xxf="http://orbeon.org/oxf/xml/xforms" xxf:id="0f81046cee210b5b64db5706b6fe79f986fb539b">
<section-1 xxf:id="e7d2bb4ac261e77159fc236e7fd922c3540756f8">
<approver xxf:id="6e3c7a6f088fb15e633358f17f9a495cbbb0191f">Person 1</approver>
<duedate xxf:id="b28aedbc6f2d4bd8872a48c06d2eed65cc062498">2014-11-20</duedate>
<comments xxf:id="0f931e5351491df185889d62274e1d706c901293">This is a test comment</comments>
</section-1>
</form>
Since I will have to process different forms with the same servlet, I need to know which data types exist in the corresponding Orbeon form. Is there a way to configure this? Orbeon should also send the data types in the submission xml so that a http service is able to process those data properly.
Upvotes: 0
Views: 215
Reputation: 31753
You can do this since Orbeon Forms 4.7, with send(content = "metadata")
. You can find more on this in the documentation for the send()
action.
Upvotes: 1