Hi
EveryBody,I want to write code like this in drools4,but I got a problem that no class defined as FactType, how to refactor it ?
RuleAgent agent = RuleAgent.newRuleAgent("/rules.properties");
RuleBase rb = agent.getRuleBase();
//constructor a model ,
FactType appType = rb.getFactType("test.MerInfo");
Object merinfo = appType.newInstance();
appType.set(merinfo, "resp_code", "00");
appType.set(merinfo, "avg_amt", 5000.0);
StatelessSession ss = rb.newStatelessSession();
ss.execute(merinfo);