Package com.groiss.timemgmt
Class DefaultTimeManagementImpl
java.lang.Object
com.groiss.timemgmt.DefaultTimeManagementImpl
- All Implemented Interfaces:
TimeManagement
- Direct Known Subclasses:
PlanTimeMgmt
Default implementation computes process and task due dates based on process and task durations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
If something is to do when processes are archived (clean up).calculateActivityDueDate
(ActivityInstance instance, ActivityInstance prevStep) The activity due date is the current date plus the task duration (defined in task definition).calculateProcessDueDate
(ProcessDefinition process) The process due date is the current date plus the process duration (defined in process definition).void
If something is to do when process definitions are deleted (clean up).void
This method is called if the duedate of an activity or process instance is changed (from API or user interface).Returns nullgetProcessStartInfo
(ProcessDefinition procdef) Returns nullReturns null
-
Constructor Details
-
DefaultTimeManagementImpl
public DefaultTimeManagementImpl()
-
-
Method Details
-
calculateProcessDueDate
The process due date is the current date plus the process duration (defined in process definition).- Specified by:
calculateProcessDueDate
in interfaceTimeManagement
-
calculateActivityDueDate
The activity due date is the current date plus the task duration (defined in task definition).- Specified by:
calculateActivityDueDate
in interfaceTimeManagement
-
duedateChanged
Description copied from interface:TimeManagement
This method is called if the duedate of an activity or process instance is changed (from API or user interface). The time management may react and adapt the plan.- Specified by:
duedateChanged
in interfaceTimeManagement
- Parameters:
ai
- activity or process instance
-
archiveProcessInstance
Description copied from interface:TimeManagement
If something is to do when processes are archived (clean up).- Specified by:
archiveProcessInstance
in interfaceTimeManagement
-
deleteProcessDefinition
Description copied from interface:TimeManagement
If something is to do when process definitions are deleted (clean up).- Specified by:
deleteProcessDefinition
in interfaceTimeManagement
-
getHistoryInfo
Returns null- Specified by:
getHistoryInfo
in interfaceTimeManagement
- Returns:
- an url or null
-
getProcessStartInfo
Returns null- Specified by:
getProcessStartInfo
in interfaceTimeManagement
- Returns:
- an url or null
-
getWorklistInfo
Returns null- Specified by:
getWorklistInfo
in interfaceTimeManagement
- Returns:
- an url or null
-