Examples of TemplateContainer


Examples of eu.planets_project.ifr.core.wdt.gui.faces.TemplateContainer

  /*
  * @return the currently selected workflowBean implementation
  */
  protected WorkflowBean getCurrentWorkflowBean() {
    TemplateContainer templateContainer = (TemplateContainer) JSFUtil.getManagedObject("templateContainer");
    WFTemplate currentTemplate = templateContainer.getCurrentTemplate();
    WorkflowBean wfBean = (WorkflowBean) JSFUtil.getManagedObject(currentTemplate.getBeanInstance());
    return wfBean;
  }
View Full Code Here

Examples of eu.planets_project.ifr.core.wdt.gui.faces.TemplateContainer

 
  /*
  * @return true if a workflowBean is selected
  */
  public boolean isWorkflowBeanSelected() {
    TemplateContainer templateContainer = (TemplateContainer) JSFUtil.getManagedObject("templateContainer");
    if(templateContainer.getCurrentTemplate() == null) return false;
    return true;
  }
View Full Code Here

Examples of org.drools.decisiontable.parser.TemplateContainer

  }

  public String compile(final InputStream xlsStream,
      final InputStream templateStream, InputType type, int startRow,
      int startCol) {
    TemplateContainer tc = new DefaultTemplateContainer(templateStream);
    closeStream(templateStream);
    return compile(xlsStream, type, new ExternalSheetListener(startRow,
        startCol, tc));
  }
View Full Code Here

Examples of org.drools.decisiontable.parser.TemplateContainer

  }

  public String compile(final InputStream xlsStream,
      final String worksheetName, final InputStream templateStream,
      int startRow, int startCol) {
    TemplateContainer tc = new DefaultTemplateContainer(templateStream);
    closeStream(templateStream);
    return compile(xlsStream, worksheetName, new ExternalSheetListener(
        startRow, startCol, tc));
  }
View Full Code Here

Examples of org.drools.template.parser.TemplateContainer

    public void testCompilerMaps() throws Exception {
        Collection<Map<String, Object>> maps = new ArrayList<Map<String, Object>>();
        final ObjectDataCompiler converter = new ObjectDataCompiler();
        InputStream templateStream =
                this.getClass().getResourceAsStream( "/templates/rule_template_1.drl" );
        TemplateContainer tc = new DefaultTemplateContainer( templateStream );
        Column[] columns = tc.getColumns();

        for ( String[] row : rows ) {
            Map<String, Object> map = new HashMap<String, Object>();
            for ( int icol = 0; icol < columns.length; icol++ ) {
                Object value = row[icol];
View Full Code Here

Examples of org.drools.template.parser.TemplateContainer

    public String compile(final InputStream xlsStream,
                          final InputStream templateStream,
                          InputType type,
                          int startRow,
                          int startCol) {
        TemplateContainer tc = new DefaultTemplateContainer( templateStream );
        closeStream( templateStream );
        return compile( xlsStream,
                        type,
                        new TemplateDataListener( startRow,
                                                  startCol,
View Full Code Here

Examples of org.drools.template.parser.TemplateContainer

    public String compile(final InputStream xlsStream,
                          final String worksheetName,
                          final InputStream templateStream,
                          int startRow,
                          int startCol) {
        TemplateContainer tc = new DefaultTemplateContainer( templateStream );
        closeStream( templateStream );
        return compile( xlsStream,
                        worksheetName,
                        new TemplateDataListener( startRow,
                                                  startCol,
View Full Code Here

Examples of org.drools.template.parser.TemplateContainer

    public String compile(final InputStream xlsStream,
                          final InputStream templateStream,
                          InputType type,
                          int startRow,
                          int startCol) {
        TemplateContainer tc = new DefaultTemplateContainer( templateStream );
        closeStream( templateStream );
        return compile( xlsStream,
                        type,
                        new TemplateDataListener( startRow,
                                                  startCol,
View Full Code Here

Examples of org.drools.template.parser.TemplateContainer

    public String compile(final InputStream xlsStream,
                          final String worksheetName,
                          final InputStream templateStream,
                          int startRow,
                          int startCol) {
        TemplateContainer tc = new DefaultTemplateContainer( templateStream );
        closeStream( templateStream );
        return compile( xlsStream,
                        worksheetName,
                        new TemplateDataListener( startRow,
                                                  startCol,
View Full Code Here

Examples of org.drools.template.parser.TemplateContainer

     * @param templateStream the InputStream for reading the templates
     * @return the generated DRL text as a String
     */
    public String compile(final DataProvider dataProvider,
                          final InputStream templateStream) {
        TemplateContainer tc = new DefaultTemplateContainer(templateStream);
        closeStream(templateStream);
        return compile(dataProvider,
                       new TemplateDataListener(tc));
    }
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.