Package ch.ivyteam.ivy.workflow
Interface ITaskSwitchEvent
-
public interface ITaskSwitchEventA task switch is an event where tasks are joined and new tasks are created.- Since:
- 18.07.2007
- API:
- This is a public API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ICasegetCase()Gets the case this task switch event belongs toList<ITask>getEndedTasks()Gets the task that were ended by this task switch event.DategetExecutionTimestamp()The timestamp when the tasks were joined and the new tasks were created.longgetId()The identifier of the task switch eventList<ITask>getStartedTasks()Gets the task that were started by this task switch event.ITaskElementgetTaskElement()Gets the task element this task switch event was executed on
-
-
-
Method Detail
-
getExecutionTimestamp
Date getExecutionTimestamp()
The timestamp when the tasks were joined and the new tasks were created.- Returns:
- execution timestamp
- Throws:
PersistencyException- if persistency access fails- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
getCase
ICase getCase()
Gets the case this task switch event belongs to- Returns:
- case
- Throws:
PersistencyException- if persistency access fails- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
- Security:
- SESSION OWNS CaseReadOwnCaseOfTask PERMISSION OR OWNS CaseRead PERMISSION OR OWNS CaseRead@SYSTEM PERMISSION
-
getTaskElement
ITaskElement getTaskElement()
Gets the task element this task switch event was executed on- Returns:
- the task switch element
- Throws:
PersistencyException- if persistency access fails- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
getEndedTasks
List<ITask> getEndedTasks()
Gets the task that were ended by this task switch event. The list may be empty if this is the first task switch event on a case.- Returns:
- list with the ended tasks
- Throws:
PersistencyException- if persistency access fails- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
- Security:
- SESSION OWNS TaskReadOwnCaseTasks PERMISSION OR OWNS TaskReadAll PERMISSION OR OWNS TaskReadAll@SYSTEM PERMISSION
-
getStartedTasks
List<ITask> getStartedTasks()
Gets the task that were started by this task switch event. The list may be empty if no task were started.- Returns:
- list with the ended tasks
- Throws:
PersistencyException- if persistency access fails- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
- Security:
- SESSION OWNS TaskReadOwnCaseTasks PERMISSION OR OWNS TaskReadAll PERMISSION OR OWNS TaskReadAll@SYSTEM PERMISSION
-
getId
long getId()
The identifier of the task switch event- Returns:
- the identifier
- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
-