Forum RSS Feed

Top Posters

Last 30 days

  • Antoine (145)
  • gayatri.chandak (26)
  • gemor.roj (25)
  • juanjo.hernandez (21)
  • metabyte (20)
  • talita.pezzi (15)
  • danielandross (14)
  • liu.zhengyang (14)
  • hellonico (13)
  • Konstantin.Melnik (13)

All time

  • Antoine (2270)
  • Shivanand (1194)
  • cshekhar (933)
  • psq (797)
  • metabyte (411)
  • jag (393)
  • dfrench (358)
  • arnaud (328)
  • jalateras (325)
  • venkaiah.k (214)

Show last 4 hrs - 12 hrs - 24 hrs

POLL

We are looking for more information to tailor our training to better meet the needs of our customers. Please indicate all options that apply.

I would like to attend specialized training from Intalio on BPM as it relates to my application area:


I would like to attend specialized training from Intalio on BPM as it relates to my job function:


I would like to attend specialized training from Intalio on BPM as it relates to my industry:

Login

MAIN arrow FORUMS
Re:How to debug xforms-submit-error? (0 viewing) 
Go to bottom Post Reply Favoured: 0
TOPIC: Re:How to debug xforms-submit-error?
#16754
richard.berger (User)
Junior Boarder
User Offline Click here to see the profile of this user
How to debug xforms-submit-error? 8 Months ago Karma: 0  
I am trying to merge two xforms (both of which were working), but am getting the error "Can not complete task because the form is not correctly filled out" when I push the Complete button. The first few lines in the console are shown below:

13:31:26,309 ERROR [XFormsServer] XForms - submission - xforms-submit-error throwable: org.orbeon.oxf.xforms.XFormsModel
Submission$XFormsSubmissionException: line 27 of oxf:/config/xforms-widgets.xsl (checking instance validity): xforms:sub
mission: instance to submit does not satisfy valid and/or required model item properties.
oxf:/config/xforms-widgets.xsl, line 27, column -1: xforms:submission: instance to submit does not satisfy valid and/or
required model item properties.
at org.orbeon.oxf.xforms.XFormsModelSubmission.createDocumentToSubmit(XFormsModelSubmission.java:1126)
at org.orbeon.oxf.xforms.XFormsModelSubmission.performDefaultAction(XFormsModelSubmission.java:422)
at org.orbeon.oxf.xforms.XFormsContainingDocument.dispatchEvent(XFormsContainingDocument.java:1210)
at org.orbeon.oxf.xforms.control.controls.XFormsSubmitControl.performDefaultAction(XFormsSubmitControl.java:48)
at org.orbeon.oxf.xforms.XFormsContainingDocument.dispatchEvent(XFormsContainingDocument.java:1210)
at org.orbeon.oxf.xforms.XFormsContainingDocument.executeExternalEvent(XFormsContainingDocument.java:966)

My question is how can I debug this? Is there a relatively straightforward way to see what Intalio is trying to validate against the model? I looked at xforms-widgets.xsl, but that was not enlightening.

For anyone interested in the next level of detail, in form #1 (a standard Intalio form with a dynamic select), the only action was an xforms-ready that set the values for the output as shown below:
<xforms:action ev:event="xforms-ready">
<xforms:action xforms:if="string(instance('taskoutput')/@saved) != 'true'">
<xforms:setvalue ref="instance('taskoutput')/fe:Acts" value="instance('taskinput')/fe:Acts"/>
<xforms:setvalue ref="instance('taskoutput')/fe:Subject" value="instance('taskinput')/fe:Subject"/>
</xforms:action>
</xforms:action>

In form #2 (a form I built from scratch - see other posts), I used the xforms-submit to set the taskoutput as follows:
<xforms:action ev:event="xforms-submit">
<xforms:insert
nodeset="instance('taskoutput')/fe:appdatas/fe:appdata"
origin="instance('taskinput')/fe:appdatas/fe:appdata"
context="instance('taskoutput')"
at="last()" position="before" />
</xforms:action>

For the merged form (merging form #2 into form #1), I updated the xsd, then added the appdatas into the taskinput and taskoutput. I left the existing xforms-ready event and added the xforms-submit. Got the error shown above. Removed the xforms-ready event, no difference. Added the setvalues from the xform-ready event into the xforms-submit, no difference.

If I could what the system is trying to do, the error would likely be obvious.

Thanks in advance for any suggestions,
RB
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#16795
richard.berger (User)
Junior Boarder
User Offline Click here to see the profile of this user
Re:How to debug xforms-submit-error? [~Answer] 7 Months, 4 Weeks ago Karma: 0  
Not really a true answer, as I never did figure out how to do any real debugging. But I did solve my problem, and like a few others in my Intalio travels, Whereas I thought my problems were related to the mechanics of xforms;insert and origins, contexts, and nodesets, the problem was actually a namespace typo.

Maybe this will help someone in the future. Most likely it will be me Googling for things I have long since forgotten :).
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#16921
hellonico (User)
Moderator
User Offline Click here to see the profile of this user
Re:How to debug xforms-submit-error? 7 Months, 2 Weeks ago Karma: 7  
There is quite a bit of documentation on the tempo website on how to see what's going through the form manager:
http://www.intalio.org/confluence/display/TEMPO/Custom+xforms+with+Orb...

If you need something more, please feel free to send mails to the:


mailing list to get faster answers.

Cheers,

Niko
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#16927
richard.berger (User)
Junior Boarder
User Offline Click here to see the profile of this user
Re:How to debug xforms-submit-error? 7 Months, 2 Weeks ago Karma: 0  
Thanks for the pointer - the inspector widget is already very useful.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop