Package org.drools.command

Examples of org.drools.command.WorkingMemoryEntryPointBuilder


    }

    public Collection< ? extends WorkingMemoryEntryPoint> execute(Context context) {
        StatefulKnowledgeSession ksession = ((KnowledgeCommandContext) context).getStatefulKnowledgesession();
        Collection< ? extends WorkingMemoryEntryPoint> eps = ksession.getWorkingMemoryEntryPoints();
        WorkingMemoryEntryPointBuilder epBuilder = (WorkingMemoryEntryPointBuilder)context.get(WorkingMemoryEntryPointBuilder.class.getName());
        if (epBuilder == null) {
            return eps;
        }
        Collection<WorkingMemoryEntryPoint> result = new ArrayList<WorkingMemoryEntryPoint>();
        for (WorkingMemoryEntryPoint ep : eps) {
            result.add(epBuilder.getWorkingMemoryEntryPoint(ep.getEntryPointId()));
        }
        return result;
    }
View Full Code Here


        WorkingMemoryEntryPoint ep = ksession.getWorkingMemoryEntryPoint(name);
        if (ep == null) {
            return null;
        }

        WorkingMemoryEntryPointBuilder epBuilder = (WorkingMemoryEntryPointBuilder)context.get(WorkingMemoryEntryPointBuilder.class.getName());
        return epBuilder != null ? epBuilder.getWorkingMemoryEntryPoint(name) : ep;
    }
View Full Code Here

TOP

Related Classes of org.drools.command.WorkingMemoryEntryPointBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.