private FabProcess CheckProcess(string factoryID, string shopID, string processID, string where, ref bool hasError) { FabProcess process = BopHelper.FindProcess(shopID, processID); if (process == null) { hasError = true; ErrHist.WriteIf(where + processID, ErrCategory.PERSIST, ErrLevel.WARNING, factoryID, shopID, Constants.NULL_ID, Constants.NULL_ID, Constants.NULL_ID, processID, Constants.NULL_ID, Constants.NULL_ID, "NOT FOUND PROCESS", string.Format("Table:{0}", where) ); } return(process); }
public static void BuildProcess( FabProcess proc, List <LcdStep> steps ) { BopBuilder builder = new BopBuilder(Mozart.SeePlan.Lcd.BopType.SINGLE_FLOW); builder.ComparePrevSteps = ComparePrevSteps; builder.CompareSteps = CompareSteps; builder.BuildBop(proc, steps); }
public static FabStep FindStep(string shopID, string processID, string stepID) { FabProcess proc = BopHelper.FindProcess(shopID, processID); if (proc != null) { return(proc.FindStep(stepID) as FabStep); } else { return(null); } }
public static void BuildProcess( FabProcess proc, Dictionary <string, LcdStep> steps, Dictionary <string, PrpInfo> prps ) { BopBuilder builder = new BopBuilder(Mozart.SeePlan.Lcd.BopType.SINGLE_FLOW); builder.ComparePrevSteps = ComparePrevSteps; builder.CompareSteps = CompareSteps; builder.BuildBop(proc, steps, prps); foreach (var step in proc.Mappings.Values) { if (step.HasJoins == false && step.HasSplits == false) { if (proc.NonPathSteps.ContainsKey(step.StepID) == false) { proc.NonPathSteps.Add(step.StepID, step); } } } }