Package org.apache.provisionr.activiti.karaf.commands.util

Examples of org.apache.provisionr.activiti.karaf.commands.util.TextTable.addRow()


        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);
    }

    private void printProcessDefinitions(PrintWriter out, RepositoryService repo) {
View Full Code Here


        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);
    }

    private String getExecutions(RuntimeService rt, String pi) {
View Full Code Here

        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

        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

            "[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

            "[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

        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

            "[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

            "[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

        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

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.