Skip navigation links

Oracle Fusion Middleware
Workflow Services Java API Reference for Oracle SOA Suite
11g Release 1 (11.1.1)
E10660-03


oracle.bpel.services.workflow.task
Interface IPercentageCompletionCallback


public interface IPercentageCompletionCallback

Method Summary
 double onTaskAssigned(Task parentTask, Task subTask, int totalNumberOfSubTasks, int numberOfCompletedSubTasks, double previousPercentageComplete, java.util.Map<java.lang.String,java.lang.Double> subTaskPercentageCompleted)
          Compute percentage complete on sub task assigned
 double onTaskCompleted(Task parentTask, Task subTask, int totalNumberOfSubTasks, int numberOfCompletedSubTasks, double previousPercentageComplete, java.util.Map<java.lang.String,java.lang.Double> subTaskPercentageCompleted)
          Compute percentage complete on sub task deleted
 double onTaskCompleted(Task parentTask, Task subTask, int totalNumberOfSubTasks, int numberOfCompletedSubTasks, double previousPercentageComplete, java.lang.String currentSubTaskOutcome, java.util.Map<java.lang.String,java.lang.Double> subTaskPercentageCompleted)
          Compute percentage complete on sub task completed
 double onTaskUpdated(Task parentTask, Task subTask, int totalNumberOfSubTasks, double previousPercentageComplete, java.util.Map<java.lang.String,java.lang.Double> subTaskPercentageCompleted)
          Compute percentage complete on sub task completed

 

Method Detail

onTaskAssigned

double onTaskAssigned(Task parentTask,
                      Task subTask,
                      int totalNumberOfSubTasks,
                      int numberOfCompletedSubTasks,
                      double previousPercentageComplete,
                      java.util.Map<java.lang.String,java.lang.Double> subTaskPercentageCompleted)
Compute percentage complete on sub task assigned
Parameters:
parentTask - The parent task
subTask - The subtask
totalNumberOfSubTasks - an int value, including the sub task that is created
numberOfCompletedSubTasks - an int value
previousPercentageComplete - a double value
subTaskPercentageCompleted - a Map with key as the subtask taskid and value being
Returns:
a double value

onTaskCompleted

double onTaskCompleted(Task parentTask,
                       Task subTask,
                       int totalNumberOfSubTasks,
                       int numberOfCompletedSubTasks,
                       double previousPercentageComplete,
                       java.lang.String currentSubTaskOutcome,
                       java.util.Map<java.lang.String,java.lang.Double> subTaskPercentageCompleted)
Compute percentage complete on sub task completed
Parameters:
parentTask - The parent task
subTask - The subtask
totalNumberOfSubTasks - an int value
numberOfCompletedSubTasks - an int value
previousPercentageComplete - a double value
currentSubTaskOutcome - The outcome of the subtask
subTaskPercentageCompleted - a Map with key as the subtask taskid and value being
Returns:
a double value

onTaskUpdated

double onTaskUpdated(Task parentTask,
                     Task subTask,
                     int totalNumberOfSubTasks,
                     double previousPercentageComplete,
                     java.util.Map<java.lang.String,java.lang.Double> subTaskPercentageCompleted)
Compute percentage complete on sub task completed
Parameters:
parentTask - The parent task
subTask - The subtask
totalNumberOfSubTasks - an int value
previousPercentageComplete - a double value
subTaskPercentageCompleted - a Map with key as the subtask taskid and value being the percentage complete
subTaskPercentageCompleted - a Map with key as the subtask taskid and value being
Returns:
a double value

onTaskCompleted

double onTaskCompleted(Task parentTask,
                       Task subTask,
                       int totalNumberOfSubTasks,
                       int numberOfCompletedSubTasks,
                       double previousPercentageComplete,
                       java.util.Map<java.lang.String,java.lang.Double> subTaskPercentageCompleted)
Compute percentage complete on sub task deleted
Parameters:
parentTask - The parent task
subTask - The subtask
totalNumberOfSubTasks - an int value. This cound doesn't include the sub task that is deleted
numberOfCompletedSubTasks - an int value
previousPercentageComplete - a double value
subTaskPercentageCompleted - a Map with key as the subtask taskid and value being
Returns:
a double value

Skip navigation links

Oracle Fusion Middleware
Workflow Services Java API Reference for Oracle SOA Suite
11g Release 1 (11.1.1)
E10660-03


Copyright © 2009, Oracle and/or its affiliates. All rights reserved.