Skip to content

Instantly share code, notes, and snippets.

@ashkrit
Created August 11, 2020 10:52
Show Gist options
  • Save ashkrit/b39a822be29aef7dc30427d266ad184e to your computer and use it in GitHub Desktop.
Save ashkrit/b39a822be29aef7dc30427d266ad184e to your computer and use it in GitHub Desktop.
String dsl = args[0];
System.out.println(dsl);
CompilationContext context = new CompilationContext("FXTradeTemplate", dsl);
Function<CompilationContext, RuleEngine<FXTransaction>> pipeline = RuleEnginePipeline.pipeline();
RuleEngine<FXTransaction> rules = pipeline.apply(context);
System.out.format("Rule Name %s \n", rules.name);
System.out.format("Rules %s \n", rules.constraints);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment