simulationFluent.runSimulation();
}
private void addCommand(StatefulKnowledgeSessionSimFluent session, AbstractCommandModel abstractCommand) {
if (abstractCommand instanceof InsertBulkDataCommandModel) {
InsertBulkDataCommandModel command = (InsertBulkDataCommandModel) abstractCommand;
session.insert("Hello world"); // TODO
} if (abstractCommand instanceof FireAllRulesCommandModel) {
FireAllRulesCommandModel command = (FireAllRulesCommandModel) abstractCommand;
session.fireAllRules();
for (AssertRuleFiredCommandModel assertRuleFiredCommand
: command.getAssertRuleFiredCommands()) {
session.assertRuleFired(assertRuleFiredCommand.getRuleName(),
assertRuleFiredCommand.getFireCount());
}
} else {
throw new IllegalStateException("The AbstractCommandModel class ("