[ 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:
Carlos Ruiz 2008-02-02 19:58:55 +00:00
parent d7c31694e4
commit c722164b1f
1 changed files with 8 additions and 5 deletions

View File

@ -459,11 +459,14 @@ public class MWFProcess extends X_AD_WF_Process
{
// Start first Activity with first Node
MWFActivity activity = new MWFActivity (this, AD_WF_Node_ID);
Thread workerWF = new Thread(activity);
workerWF.setName(activity.getAD_Workflow().getName() + " "
+ activity.getAD_Table().getName() + " "
+ activity.getRecord_ID());
workerWF.start();
//
// Thread workerWF = new Thread(activity);
// workerWF.setName(activity.getAD_Workflow().getName() + " "
// + activity.getAD_Table().getName() + " "
// + activity.getRecord_ID());
// workerWF.start();
activity.run();
}
catch (Exception e)
{