Interface TimeManagement

All Known Implementing Classes:
DefaultTimeManagementImpl, PlanTimeMgmt

public interface TimeManagement
Pluggable time management. Your implementation should implement this interface.
  • Method Details

    • calculateProcessDueDate

      Date calculateProcessDueDate(ProcessDefinition process)
      Returns a default duedate for a process start.
    • calculateActivityDueDate

      Date calculateActivityDueDate(ActivityInstance instance, ActivityInstance prevStep)
      Compute the duedate for the given ActivityInstance. Called when the instance is created.
    • duedateChanged

      void duedateChanged(ActivityInstance ai)
      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

      void archiveProcessInstance(ProcessInstance pi)
      If something is to do when processes are archived (clean up).
      Parameters:
      pi -
    • deleteProcessDefinition

      void deleteProcessDefinition(ProcessDefinition pd)
      If something is to do when process definitions are deleted (clean up).
      Parameters:
      pd -
    • getProcessStartInfo

      String getProcessStartInfo(ProcessDefinition procdef)
      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

      String getWorklistInfo(ActivityInstance ai)
      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

      Component getHistoryInfo(ActivityInstance ai)
      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