FORUMS


Discussion about Intalio|BPP Community Edition.


Back to Workflow (0 viewing) 
Go to bottom Favoured: 0
TOPIC: Re:How to debug xforms-submit-error? [~Answer]
Nov 4, 2008 10:57 pm
34 posts
Junior Boarder

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
 
  The administrator has disabled public write access.
Nov 6, 2008 11:25 pm
34 posts
Junior Boarder

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 :).
 
  The administrator has disabled public write access.
Nov 18, 2008 8:23 am
hellonico (User)
149 posts
Moderator

Karma: 9  
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
 
  The administrator has disabled public write access.
Nov 18, 2008 7:47 pm
34 posts
Junior Boarder

Karma: 0  
Thanks for the pointer - the inspector widget is already very useful.
 
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop

Top Posters

Last 30 days

  • estebanf (35)
  • madhav.vodnala (21)
  • scott.hebden (17)
  • kevin.fernandez (14)
  • jigonzalez@vertice.es (8)
  • ianoboa (7)
  • spyridoula.markopoulou (6)
  • gino.de.cock (5)
  • lars.roediger (5)
  • asmaa.loudiyi (5)

All time

  • Antoine (2754)
  • Shivanand (1194)
  • cshekhar (933)
  • psq (797)
  • metabyte (415)
  • jag (393)
  • dfrench (367)
  • arnaud (329)
  • jalateras (325)
  • talita.pezzi (254)

Show last 4 hrs - 12 hrs - 24 hrs

Copyright © Intalio, 1999-2010.