Skip to content

Instantly share code, notes, and snippets.

@ashkrit
Created August 11, 2020 10:35
Show Gist options
  • Save ashkrit/8627da54f1bfb267be85cd0b28ed9b25 to your computer and use it in GitHub Desktop.
Save ashkrit/8627da54f1bfb267be85cd0b28ed9b25 to your computer and use it in GitHub Desktop.
public class FXTradeTemplate$REPLACE {
static RuleSchema<FXTransaction> tradeSchema = schema("Trade", schema -> {
schema.attribute("source", FXTransaction::getSource);
schema.attribute("target", FXTransaction::getTarget);
schema.attribute("amount", FXTransaction::getAmount);
schema.attribute("date", FXTransaction::getTransactionDate);
schema.attribute("bankCode", FXTransaction::getBankCode);
schema.attribute("accountNo", FXTransaction::getAccountNum);
});
public RuleEngine<FXTransaction> create() {
RuleEngine<FXTransaction> ds = null;
//CODE
return ds;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment