Package com.groiss.timemgmt
Interface TimeManagement
- All Known Implementing Classes:
DefaultTimeManagementImpl
,PlanTimeMgmt
public interface TimeManagement
Pluggable time management. Your implementation should implement this interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
If something is to do when processes are archived (clean up).calculateActivityDueDate
(ActivityInstance instance, ActivityInstance prevStep) Compute the duedate for the given ActivityInstance.calculateProcessDueDate
(ProcessDefinition process) Returns a default duedate for a process start.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).Return a href to a detail page for the time management of the process instance.getProcessStartInfo
(ProcessDefinition procdef) Return a href to a detail page for the process start mask If the result is empty, nothing is done.Return a href to a detail page for the time management of the activity instance.
-
Method Details
-
calculateProcessDueDate
Returns a default duedate for a process start. -
calculateActivityDueDate
Compute the duedate for the given ActivityInstance. Called when the instance is created. -
duedateChanged
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.- Parameters:
ai
- activity or process instance
-
archiveProcessInstance
If something is to do when processes are archived (clean up).- Parameters:
pi
-
-
deleteProcessDefinition
If something is to do when process definitions are deleted (clean up).- Parameters:
pd
-
-
getProcessStartInfo
Return a href to a detail page for the process start mask If the result is empty, nothing is done. Otherwise a link is created showing the details in an iframe on the process start mask.- Parameters:
procdef
-- Returns:
- an url or null
-
getWorklistInfo
Return a href to a detail page for the time management of the activity instance. It is used in the worklist in the duedate column. If the result is empty, nothing is done. Otherwise a link is created with the result value as href. An additional tab "scehdule" is created in the activity instance detail page- Parameters:
ai
-- Returns:
- an url or null
-
getHistoryInfo
Return a href to a detail page for the time management of the process instance. It is used in the worklist in the duedate column. If the result is empty, nothing is done. Otherwise a link is created with the result value as href.- Parameters:
ai
-- Returns:
- an url or null
-