Halt processing on getting error

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Halt processing on getting error

Harshal
Hello All,

I have a trigger with multiple actions. Some of the action calls submission. I
want to stop processing as soon as any of the submission throws an exception.

I tried redirecting(using xforms:load) to error page on xforms-submit-error
event, but xforms:load executes only after all other actions inside trigger.

Is there a way to stop xforms processing immediately on getting error?

- Harshal


--
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
Reply | Threaded
Open this post in threaded view
|

Re: Halt processing on getting error

Erik Bruchez
Administrator
Harshal,

The most reliable way is probably to chain actions using xforms-submit-done.

The first submission, when successful, dispatches xforms-submit-done.

Upon xforms-submit-done, execute the next sequence of action,
including sending the second submission.

Etc.

It is not as intuitive as one would hope, but it will do the job in most cases.

-Erik

On Mon, Aug 30, 2010 at 12:28 PM,  <[hidden email]> wrote:

> Hello All,
>
> I have a trigger with multiple actions. Some of the action calls submission. I
> want to stop processing as soon as any of the submission throws an exception.
>
> I tried redirecting(using xforms:load) to error page on xforms-submit-error
> event, but xforms:load executes only after all other actions inside trigger.
>
> Is there a way to stop xforms processing immediately on getting error?
>
> - Harshal
>
>
> --
> 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
>
>


--
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