public Process(String id, String modelName) throws SQLException { this.id = id; model = new Model(modelName); ptnet = new PTNet(); pTNetMem = new PTNetMemory(this); ParseModelToPTNet(model); DrawGraph dg = new DrawGraph(ptnet); g = dg.drawGraph(); g.adjustPosition(); Log.getLogger(Config.FLOW).debug(g); scheduler = new Scheduler(ptnet, ForwardParameters.MAX_THREAD, this); this.startTime = new Timestamp(System.currentTimeMillis()); }