Package net.sourceforge.processdash.tool.db

Examples of net.sourceforge.processdash.tool.db.WorkflowEnactmentHelper


     * Retrieve the total estimated time (in minutes) for the tasks in the
     * current process enactment
     */
    public double getCurrentEstimatedWorkflowTime() {
        // get a list of the tasks in the current process enactment
        WorkflowEnactmentHelper tasks = new WorkflowEnactmentHelper(data,
                prefix);
        Map<String, String> targetTasks = tasks.getEnactmentTasks(
            TaskMapType.PhaseName, TaskNodeType.Leaf);
        if (targetTasks == null)
            // null indicates that the database queries failed. Abort.
            return Double.NaN;

View Full Code Here


     * @param estimate
     *            the new total time estimate
     */
    public void spreadEstimatedTime(ProbeData histData, double estimate) {
        // get a list of the tasks in the current process enactment
        WorkflowEnactmentHelper tasks = new WorkflowEnactmentHelper(data,
                prefix);
        Map<String, String> targetTasks = tasks.getEnactmentTasks(
            TaskMapType.PhaseName, TaskNodeType.Leaf);
        if (targetTasks == null)
            // null indicates that the database queries failed. Abort.
            return;

        Map<String, String> pspTasks = tasks.getEnactmentTasks(
            TaskMapType.PhaseName, TaskNodeType.PSP);
        targetTasks.putAll(pspTasks);
        Set<String> workflowPspSteps = new HashSet(pspTasks.values());

        // if we were able to enumerate the tasks successfully, spread the new
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.tool.db.WorkflowEnactmentHelper

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.