Package org.jboss.bpm.report.model

Examples of org.jboss.bpm.report.model.ReportParameter


        JSOModel p = params.get(x);
        String name = p.get("name");
        String type = p.get("type");
        String dataType = p.get("dataType");

        ReportParameter pmd = new ReportParameter(name, ReportParameter.Type.valueOf(type));
        pmd.setDataType(ReportParameter.DataType.valueOf(dataType));

        // optional values
        pmd.setHelptext(p.get("helptext", ""));
        pmd.setPromptText(p.get("promptText", ""));

        reportRef.getParameterMetaData().add(pmd);
      }

      results.add(reportRef);
View Full Code Here


      ReportReference ref = reports.get(templateName);
      Iterator<String> paramNames = paramDetails.keySet().iterator();
      while(paramNames.hasNext())
      {
        Map<String, Serializable> map = paramDetails.get(paramNames.next());
        ReportParameter paramRef = new ReportParameter(
            (String)map.get("Name"), ReportParameter.Type.valueOf((String)map.get("Type"))
        );
        paramRef.setDataType(ReportParameter.DataType.valueOf((String)map.get("DataType")));
        paramRef.setHelptext((String)map.get("Help Text"));
        paramRef.setPromptText((String)map.get("Prompt Text"));
        ref.getParameterMetaData().add(paramRef);
      }


    }
View Full Code Here

    for(String paramName : metaData.getParameters().keySet())
    {
      try
      {
        ReportReference reportRef = reports.get(metaData.getReportName());
        ReportParameter reportParam = reportRef.getParameter(paramName);
        if(null==paramName)
          throw new IllegalArgumentException("No such param "+paramName);

        String paramValue = metaData.getParameters().get(paramName);
        switch(reportParam.getDataType())
        {
          case DATETIME:
            results.put(paramName,
                new java.sql.Date(new SimpleDateFormat("yyyy-MM-dd").parse(paramValue).getTime()
                ));
View Full Code Here

TOP

Related Classes of org.jboss.bpm.report.model.ReportParameter

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.