Package de.iritgo.aktera.model

Examples of de.iritgo.aktera.model.ModelResponse.createCommand()


    String backModel = req.getParameterAsString("backModel");

    if (! StringTools.isEmpty(backModel))
    {
      Command cmd = res.createCommand(backModel);

      cmd.setName("back");
      cmd.setLabel("back");
      res.add(cmd);
    }
View Full Code Here


    {
    }

    if (i18n.msg(req, "Aktera", "reportFileResult", "OK").equals(lastLine))
    {
      Command cmdImport = res.createCommand(importModel);

      cmdImport.setName("cmdImport");
      cmdImport.setParameter("file", file);
      cmdImport.setParameter("bulkImport", bulkImport);
      cmdImport.setParameter("destination", destination);
View Full Code Here

      cmdImport.setParameter("mode", "import");
      cmdImport.setParameter("backModel", backModel);
      cmdImport.setParameter("handler", handler);
      res.add(cmdImport);

      Command cmdBack = res.createCommand(backModel);

      cmdBack.setName("cmdBack");
      res.add(cmdBack);
    }
    else if (i18n.msg(req, "Aktera", "reportFileResult", "ERROR").equals(lastLine))
View Full Code Here

      cmdBack.setName("cmdBack");
      res.add(cmdBack);
    }
    else if (i18n.msg(req, "Aktera", "reportFileResult", "ERROR").equals(lastLine))
    {
      Command cmdBack = res.createCommand(backModel);

      cmdBack.setName("cmdBack");
      res.add(cmdBack);

      res.add(res.createOutput("error", "Y"));
View Full Code Here

      res.add(res.createOutput("error", "Y"));
    }
    else
    {
      Command cmdReport = res.createCommand("aktera.import.analyse.report");

      cmdReport.setName("cmdReport");
      cmdReport.setParameter("file", file);
      cmdReport.setParameter("bulkImport", bulkImport);
      cmdReport.setParameter("destination", destination);
View Full Code Here

    {
    }

    if (i18n.msg(req, "Aktera", "reportFileResult", "OK").equals(lastLine))
    {
      Command cmdBack = res.createCommand(backModel);

      cmdBack.setName("cmdBack");
      res.add(cmdBack);
    }
    else if (i18n.msg(req, "Aktera", "reportFileResult", "ERROR").equals(lastLine))
View Full Code Here

      cmdBack.setName("cmdBack");
      res.add(cmdBack);
    }
    else if (i18n.msg(req, "Aktera", "reportFileResult", "ERROR").equals(lastLine))
    {
      Command cmdBack = res.createCommand(backModel);

      cmdBack.setName("cmdBack");
      res.add(cmdBack);

      res.add(res.createOutput("error", "Y"));
View Full Code Here

      res.add(res.createOutput("error", "Y"));
    }
    else
    {
      Command cmdReport = res.createCommand("aktera.import.report");

      cmdReport.setName("cmdReport");
      cmdReport.setParameter("backModel", backModel);
      res.add(cmdReport);
    }
View Full Code Here

   *            Model parameters.
   */
  public static ModelResponse callModel(ModelRequest req, String model, Properties params) throws ModelException
  {
    ModelResponse res = req.createResponse();
    Command cmd = res.createCommand(model);

    if (params != null)
    {
      for (Iterator i = params.entrySet().iterator(); i.hasNext();)
      {
View Full Code Here

   *            Model parameters.
   */
  public static ModelResponse callModel(ModelRequest req, String model, Object... params) throws ModelException
  {
    ModelResponse res = req.createResponse();
    Command cmd = res.createCommand(model);

    for (Pair<String, Object> param : new PairwiseIterator<Object, String, Object>(params))
    {
      cmd.setParameter(param.get1(), param.get2());
    }
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.