com.groiss.timemgmt
Class DefaultTimeManagementImpl

java.lang.Object
  extended by com.groiss.timemgmt.DefaultTimeManagementImpl
All Implemented Interfaces:
TimeManagement

public class DefaultTimeManagementImpl
extends java.lang.Object
implements TimeManagement

Default implementation computes process and task due dates based on process and task durations.


Constructor Summary
DefaultTimeManagementImpl()
           
 
Method Summary
 void archiveProcessInstance(ProcessInstance pi)
          If something is to do when processes are archived (clean up).
 java.util.Date calculateActivityDueDate(ActivityInstance instance, ActivityInstance prevStep)
          The activity due date is the current date plus the task duration (defined in task definition).
 java.util.Date calculateProcessDueDate(ProcessDefinition process)
          The process due date is the current date plus the process duration (defined in process definition).
 Component getHistoryInfo(ActivityInstance ai)
          Returns null
 java.lang.String getProcessStartInfo(ProcessDefinition procdef)
          Returns null
 java.lang.String getWorklistInfo(ActivityInstance ai)
          Returns null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTimeManagementImpl

public DefaultTimeManagementImpl()
Method Detail

calculateProcessDueDate

public java.util.Date calculateProcessDueDate(ProcessDefinition process)
The process due date is the current date plus the process duration (defined in process definition).

Specified by:
calculateProcessDueDate in interface TimeManagement

calculateActivityDueDate

public java.util.Date calculateActivityDueDate(ActivityInstance instance,
                                               ActivityInstance prevStep)
The activity due date is the current date plus the task duration (defined in task definition).

Specified by:
calculateActivityDueDate in interface TimeManagement

archiveProcessInstance

public void archiveProcessInstance(ProcessInstance pi)
Description copied from interface: TimeManagement
If something is to do when processes are archived (clean up).

Specified by:
archiveProcessInstance in interface TimeManagement

getHistoryInfo

public Component getHistoryInfo(ActivityInstance ai)
Returns null

Specified by:
getHistoryInfo in interface TimeManagement
Returns:
an url or null

getProcessStartInfo

public java.lang.String getProcessStartInfo(ProcessDefinition procdef)
Returns null

Specified by:
getProcessStartInfo in interface TimeManagement
Returns:
an url or null

getWorklistInfo

public java.lang.String getWorklistInfo(ActivityInstance ai)
Returns null

Specified by:
getWorklistInfo in interface TimeManagement
Returns:
an url or null


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.