Asynchronous PX-extension
We tried to create an asyncronous px-extension as it was mentioned in the "SDK Developer Guide - Developing PLM Extensions" in the chapter "Process Extensions FAQ" by spawning a new thread.
In the px-extension we have something like the following lines:
MyThread th = new MyThread(session);
new Thread(th).start();
When we do this in Agile 9.3.1.0 it works as expected - the px-extension is running and the thread is also running. When the px-extension is finished, the thread still runs an the seesion is valid.
But going to 9.3.1.2 the behaviour changes: the px-extension is running and the thread is also running - that is the same. But when the px-extension is finished, the thread still runs but the session isn't valid anymore and we get an error of the form:
In the px-extension we have something like the following lines:
MyThread th = new MyThread(session);
new Thread(th).start();
When we do this in Agile 9.3.1.0 it works as expected - the px-extension is running and the thread is also running. When the px-extension is finished, the thread still runs an the seesion is valid.
But going to 9.3.1.2 the behaviour changes: the px-extension is running and the thread is also running - that is the same. But when the px-extension is finished, the thread still runs but the session isn't valid anymore and we get an error of the form:
0