Examples of LookupCommand


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

Examples of org.xdams.page.command.LookupCommand

  @RequestMapping(value = "/lookup/{archive}/{archiveLookup}")
  public String lookup(@ModelAttribute("userBean") UserBean userBean, @ModelAttribute("confBean") ConfBean confBean, @PathVariable String archive, @PathVariable String archiveLookup, @ModelAttribute("lookupBean") LookupBean lookupBean, ModelMap modelMap, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    common(confBean, userBean, archive, archiveLookup, modelMap, request, response);
    LookupCommand lookup = new LookupCommand(request.getParameterMap(), modelMap);
    lookup.execute();
    if (!lookupBean.getJspOutPut().equals("")) {
      return "lookup/" + StringUtils.remove(lookupBean.getJspOutPut(), ".jsp");
    } else {
      return "lookup/lookup";
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.