Interface WorkItemLifeCyclePhase
public interface WorkItemLifeCyclePhase
Definition of the life cycle phase that work item can be connected to.
-
Method Summary
Modifier and TypeMethodDescriptionexecute(KogitoWorkItemManager manager, KogitoWorkItemHandler handler, KogitoWorkItem workitem, WorkItemTransition transition) execute this life cycle phaseid()Returns unique id of this life cycle phasebooleanThe work item status source from which this transition can startthe target source in which this transition will end
-
Method Details
-
id
String id()Returns unique id of this life cycle phase- Returns:
- phase id
-
sourceStatus
WorkItemPhaseState sourceStatus()The work item status source from which this transition can start- Returns:
-
targetStatus
WorkItemPhaseState targetStatus()the target source in which this transition will end- Returns:
- phase status
-
isStartingPhase
boolean isStartingPhase() -
execute
Optional<WorkItemTransition> execute(KogitoWorkItemManager manager, KogitoWorkItemHandler handler, KogitoWorkItem workitem, WorkItemTransition transition) execute this life cycle phase
-