Page 1 of 1

Interrupt an active event

PostPosted: Mon Mar 21, 2022 3:12 pm
by dlclark
In the NG CLIENT, how do you interrupt an active form process that is running - to either cancel or pause?

The application I am working on has a global variable that gets set when you want to interrupt the running form process; but have not been able to get the process that checks this variable to actually get triggered.


Daryl

Re: Interrupt an active event

PostPosted: Mon Mar 21, 2022 4:06 pm
by jcompagner
this is not directly possible
because the event thread, that handles the incoming events, that wants to set that global variable is busy handling the form process..
in a single client we don't really have a way for this to do this, because also application.updateUI() will only force a push from server to browser, it will not allow the browser to do stuff on the server.
So the only real way todo this currently is doing the long processing in a headless client through the headless client plugin.

Re: Interrupt an active event

PostPosted: Tue Mar 22, 2022 7:26 pm
by dlclark
So, no way to set up and event to trigger the server to interrupt processing. It used to work on the JNLP client.

Daryl

Re: Interrupt an active event

PostPosted: Tue Mar 22, 2022 7:49 pm
by jcompagner
how would this work for smartclient? what would you then do?
because the smart client has the same problem, the event thread is busy doing stuff..