Package org.drools.grid.command

Examples of org.drools.grid.command.LookupCommand


    public CommandExecutor lookup(String identifier) {

        try {
            String commandId = "client.lookup" + messageSession.getNextId();
            String kresultsId = "kresults_" + messageSession.getSessionId();
            Message msg = new Message(messageSession.getSessionId(), messageSession.getCounter().incrementAndGet(), false, new KnowledgeContextResolveFromContextCommand(new LookupCommand(identifier, commandId), null, null, null, kresultsId));
            //System.out.println("Looking up the session with identifier = " + identifier);
            client = connection.getDirectoryNode(null).lookup(identifier);
            try {
                Object object = client.write(msg).getPayload();
                if (object == null) {
View Full Code Here

TOP

Related Classes of org.drools.grid.command.LookupCommand

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.