private static void BuildDiscountDecision() { DiscountDecision = RuntimeEngine.FromXml(InMemoryFileStore.GetByName("DiscountDecision.xml").AsBytes()); // Capture events DiscountDecision.Events = EventNames.All; // registering custom function DiscountDecision.RegisterFunction(typeof(AgeExtensions)); // build validation plan for executing decision table // Creates a reader to access an excel file DiscountDecision.Entries.Add("Y", "true", true); DiscountDecision.Entries.Add("N", "false", true); }
public static string Read(string name) { return(InMemoryFileStore.GetByName(name)); }
private static void BuildValidator() { InputValidator = RuntimeEngine.FromXml(InMemoryFileStore.GetByName("inputValidator.xml").AsBytes()); }