Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void loadRow(Object[] r) {
- for (int i = 0; i < columnList.length; i++) {
- columnList[i].setPayload(r[i]);
- }
- }
- public void execute() {
- StatefulKnowledgeSession session = kbase.newStatefulKnowledgeSession();
- for (int i = 0; i < columnList.length; i++) {
- session.insert(columnList[i]);
- }
- session.fireAllRules();
- Collection<Object> oList = session.getObjects(new ObjectFilter() {
- @Override
- public boolean accept(Object o) {
- if (o instanceof Column && !((Column) o).isExternalSource()) {
- return true;
- }
- return false;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement