StatefulSession session = ruleBase.newStatefulSession(config, EnvironmentFactory.newEnvironment());
new WorkingMemoryDbLogger(session);
session.getWorkItemManager().registerWorkItemHandler("Human Task", new SystemOutWorkItemHandler());
// start process instance
long processInstanceId = session.startProcess("com.sample.ruleflow").getId();
System.out.println("Checking process instances for process 'com.sample.ruleflow'");
List<ProcessInstanceLog> processInstances =
ProcessInstanceDbLog.findProcessInstances("com.sample.ruleflow");
assertEquals(1, processInstances.size());