public class PlanTimeMgmt extends DefaultTimeManagementImpl
Constructor and Description |
---|
PlanTimeMgmt() |
Modifier and Type | Method and Description |
---|---|
void |
archiveProcessInstance(ProcessInstance pi)
If something is to do when processes are archived (clean up).
|
Date |
calculateActivityDueDate(ActivityInstance ai,
ActivityInstance prevStep)
Set the activity due date.
|
Date |
calculateProcessDueDate(ProcessDefinition process)
The process duedate is proposed, if there is a default plan for this process.
|
void |
deleteProcessDefinition(ProcessDefinition pd)
If something is to do when process definitions are deleted (clean up).
|
void |
duedateChanged(ActivityInstance ai)
This method reacts on duedate changes as follows:
If a plan exists, the plan is not changed, but the slack is recomputed.
|
String |
getWorklistInfo(ActivityInstance ai)
Returns null
|
void |
recomputePlan(ProcessInstance pi) |
void |
setPlan(ProcessInstance pi,
String pt,
Date offsetDate)
Set a plan for the given process instance
|
void |
setStepDuedate(ProcessInstance pi,
String steplabel,
Date duedate)
Set the duedate of a specific step
|
getHistoryInfo, getProcessStartInfo
public Date calculateProcessDueDate(ProcessDefinition process)
calculateProcessDueDate
in interface TimeManagement
calculateProcessDueDate
in class DefaultTimeManagementImpl
public Date calculateActivityDueDate(ActivityInstance ai, ActivityInstance prevStep)
calculateActivityDueDate
in interface TimeManagement
calculateActivityDueDate
in class DefaultTimeManagementImpl
public void duedateChanged(ActivityInstance ai)
duedateChanged
in interface TimeManagement
duedateChanged
in class DefaultTimeManagementImpl
ai
- activity or process instancepublic String getWorklistInfo(ActivityInstance ai)
DefaultTimeManagementImpl
getWorklistInfo
in interface TimeManagement
getWorklistInfo
in class DefaultTimeManagementImpl
public void archiveProcessInstance(ProcessInstance pi)
TimeManagement
archiveProcessInstance
in interface TimeManagement
archiveProcessInstance
in class DefaultTimeManagementImpl
public void deleteProcessDefinition(ProcessDefinition pd)
TimeManagement
deleteProcessDefinition
in interface TimeManagement
deleteProcessDefinition
in class DefaultTimeManagementImpl
public void setPlan(ProcessInstance pi, String pt, Date offsetDate)
pi
- the process instancept
- the id of the plan-typeoffsetDate
- the offset date, may be null. If plan is computed from end, this is the end date,
otherwise the start date.public void recomputePlan(ProcessInstance pi)
public void setStepDuedate(ProcessInstance pi, String steplabel, Date duedate)
pi
- the process instancesteplabel
- the label of the stepduedate
- the new due date@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.