Examples of TextTable


Examples of org.activiti.karaf.commands.util.TextTable

        final String expectedOutput = " col1                                    column2   c3                           \n" +
            "[myvalue1                              ][myvalue2][myvalue3                    ]\n" +
            "[myvalue111111111111111111111111111111x][myvalue2][myvalue3                    ]\n" +
            "[myvalue1                              ][myvalue2][myvalue33333333333333333333x]\n";

        TextTable table = new TextTable(3);
        table.addHeaders(headers);
        table.addRow(row1);
        table.addRow(row2);
        table.addRow(row3);

        table.print(out);
        assertEquals(collectOutput(), expectedOutput);
    }
View Full Code Here

Examples of org.activiti.karaf.commands.util.TextTable

        final String expectedOutput = " col1                             column2   c3                          \n" +
            "[myvalue1                       ][myvalue2][myvalue3ddddddddddddddddddx]\n" +
            "[myvalue1                       ][myvalue2][myvalue3                   ]\n" +
            "[myvalue11111111111111111111111x][myvalue2][myvalue3                   ]\n";

        TextTable table = new TextTable(3);
        table.addHeaders(headers);
        table.addRow(row1);
        table.addRow(row2);
        table.addRow(row3);

        table.print(out);
        assertEquals(collectOutput(), expectedOutput);
    }
View Full Code Here

Examples of org.apache.provisionr.activiti.karaf.commands.util.TextTable

        if (depList.isEmpty()) {
            out.println("No Activiti Deployments Found.");
            return;
        }

        TextTable txtTable = new TextTable(3);

        txtTable.addHeaders("ID", "Name", "Deployment Time");
        for (Deployment dep : depList) {
            txtTable.addRow(dep.getId(), dep.getName(), formatDate(dep.getDeploymentTime()));
        }
        txtTable.print(out);
    }
View Full Code Here

Examples of org.apache.provisionr.activiti.karaf.commands.util.TextTable

        if (pdList.isEmpty()) {
            out.println("No Activiti Process Definitions Found.");
            return;
        }

        TextTable txtTable = new TextTable(4);

        txtTable.addHeaders("Definition ID", "Name", "Version", "Resource");
        for (ProcessDefinition pd : pdList) {
            Integer ver = pd.getVersion();
            txtTable.addRow(pd.getId(), pd.getName(), ver.toString(), formatBpmResource(pd.getResourceName()));
        }
        txtTable.print(out);
    }
View Full Code Here

Examples of org.apache.provisionr.activiti.karaf.commands.util.TextTable

        if (piList.isEmpty()) {
            out.println("No Active Process Instances Found.");
            return;
        }

        TextTable txtTable = new TextTable(3);

        txtTable.addHeaders("Definition ID", "Instance ID", "Executions");
        for (ProcessInstance pi : piList) {
            txtTable.addRow(pi.getProcessDefinitionId(),
                pi.getProcessInstanceId(), getExecutions(rt, pi.getProcessInstanceId()));
        }
        txtTable.print(out);
    }
View Full Code Here

Examples of org.apache.provisionr.activiti.karaf.commands.util.TextTable

        if (hpiList.isEmpty()) {
            out.println("No History on Activiti Processes.");
            return;
        }

        TextTable txtTable = new TextTable(4);

        txtTable.addHeaders("Definition ID", "Instance ID", "Start Time", "End Time");
        for (HistoricProcessInstance hpi : hpiList) {
            Date endTime = hpi.getEndTime();
            if (endTime == null && !printActive) {
                continue// don't print active instance history if printActive is false - default.
            }
            txtTable.addRow(hpi.getProcessDefinitionId(), hpi.getId(),
                formatDate(hpi.getStartTime()), formatDate(hpi.getEndTime()));
        }
        txtTable.print(out);
    }
View Full Code Here

Examples of org.apache.provisionr.activiti.karaf.commands.util.TextTable

        final String expectedOutput = " col1                     column2   c3       \n" +
            "[myvalue111111111111111x][myvalue2][myvalue3]\n" +
            "[myvalue1               ][myvalue2][myvalue3]\n" +
            "[myvalue1               ][myvalue2][myvalue3]\n";

        TextTable table = new TextTable(3);
        table.addHeaders(headers);
        table.addRow(row1);
        table.addRow(row2);
        table.addRow(row3);

        table.print(out);
        assertEquals(collectOutput(), expectedOutput);
    }
View Full Code Here

Examples of org.apache.provisionr.activiti.karaf.commands.util.TextTable

        final String expectedOutput = " col1                                    column2   c3                           \n" +
            "[myvalue1                              ][myvalue2][myvalue3                    ]\n" +
            "[myvalue111111111111111111111111111111x][myvalue2][myvalue3                    ]\n" +
            "[myvalue1                              ][myvalue2][myvalue33333333333333333333x]\n";

        TextTable table = new TextTable(3);
        table.addHeaders(headers);
        table.addRow(row1);
        table.addRow(row2);
        table.addRow(row3);

        table.print(out);
        assertEquals(collectOutput(), expectedOutput);
    }
View Full Code Here

Examples of org.apache.provisionr.activiti.karaf.commands.util.TextTable

        final String expectedOutput = " col1                             column2   c3                          \n" +
            "[myvalue1                       ][myvalue2][myvalue3ddddddddddddddddddx]\n" +
            "[myvalue1                       ][myvalue2][myvalue3                   ]\n" +
            "[myvalue11111111111111111111111x][myvalue2][myvalue3                   ]\n";

        TextTable table = new TextTable(3);
        table.addHeaders(headers);
        table.addRow(row1);
        table.addRow(row2);
        table.addRow(row3);

        table.print(out);
        assertEquals(collectOutput(), expectedOutput);
    }
View Full Code Here

Examples of org.gridkit.util.formating.TextTable

            }
        }
    }
   
    public String formatHisto() {
        TextTable tt = new TextTable();
        List<SiteInfo> h = new ArrayList<SiteInfo>(histo.values());
        Collections.sort(h, BY_OCCURENCE);
        for(SiteInfo si: h) {
            int pc = (100 * si.getOccurences()) / traceCount;
            tt.addRow("" + si.getOccurences(), " " + pc + "%", " " + si.getHitCount(), " " + si.getSite());
        }
        return tt.formatTextTableUnbordered(200);
    }
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.