Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public class BusPassService {
private final KieContainer kieContainer;
public BusPassService(KieContainer kieContainer) {"Initialising a new bus pass session.");
this.kieContainer = kieContainer;
* Create a new session, insert a person's details and fire rules to
* determine what kind of bus pass is to be issued.
public BusPass getBusPass(Person person) {
KieSession kieSession = kieContainer.newKieSession("BusPassSession");
BusPass busPass = findBusPass(kieSession);
return busPass;
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment