[ 1854603 ] Prepare method is being called twice
Make main and children workflows run in the same thread as the window caller
This commit is contained in:
parent
d7c31694e4
commit
c722164b1f
|
|
@ -459,11 +459,14 @@ public class MWFProcess extends X_AD_WF_Process
|
||||||
{
|
{
|
||||||
// Start first Activity with first Node
|
// Start first Activity with first Node
|
||||||
MWFActivity activity = new MWFActivity (this, AD_WF_Node_ID);
|
MWFActivity activity = new MWFActivity (this, AD_WF_Node_ID);
|
||||||
Thread workerWF = new Thread(activity);
|
//
|
||||||
workerWF.setName(activity.getAD_Workflow().getName() + " "
|
// Thread workerWF = new Thread(activity);
|
||||||
+ activity.getAD_Table().getName() + " "
|
// workerWF.setName(activity.getAD_Workflow().getName() + " "
|
||||||
+ activity.getRecord_ID());
|
// + activity.getAD_Table().getName() + " "
|
||||||
workerWF.start();
|
// + activity.getRecord_ID());
|
||||||
|
// workerWF.start();
|
||||||
|
activity.run();
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue