Showing pipeline errors in the GUI

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Showing pipeline errors in the GUI

Ralf Jung
Hi list,

is there an easy/recommended way to show errors occurring within a pipeline in
the XForms frontend? I am dealing with two different kinds of errors:

- my pipelines contain custom Java processors, that can detect errors.
Currently I then return an error-Tag instead of the normal root tag, and the
consuming pipeline has to <p:choose> on this tag, and not touch the data if it
contains an error. Then the GUI has to test for this tag as well, and show the
message contained in it. That's quite intransparent, and complicates the
structure of the pipeline
- my pipelines also talk to webservices using the xforms:submission processor
(I need POST requests). The submission contains the following snippet:
<xf:action ev:event="xforms-submit-error">
        <xf:delete nodeset="/*/node()"/>
        <xf:setvalue ref="/*" value="event('response-body')"/>
</xf:action>
However, that gives me no control over the root tag - it seems to me the name
of the root tag of the input is chosen. Then again I have to <p:choose> on the
tag name in the pipeline, and test for that tag name in the GUI.

Especially with several error conditions, this becomes quite cumbersome and
hard to maintain. Now, I wonder whether I could do better - I can accept the
current situation for the custom processors, since these are possibly user-
triggered errors, and I need full control over what happens. However, the
submission errors should usually not happen, I do not need any kind of pretty
error dialog there, just the message, somehow. If however I do not handle the
error at all, the message is only printed to the logfile (above a  stacktrace
of around 500 lines...), and the GUI times out (after 60 to 120 seconds, it
says something like "resource-error". Not very helpful). Can I, for example,
trigger one of the error dialogues Orbeon shows when it detects an internal
error?

Kind regards,
Ralf


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws