Interface KogitoWorkItemHandler
public interface KogitoWorkItemHandler
-
Method Summary
Modifier and TypeMethodDescriptionabortTransition(String phaseStatus, Policy... policies) allowedTransitions(String phaseStatus) This will allow access other part of the system.default StringgetName()Returns name that it should be registered with, by default simple class name;voidstartingTransition(Map<String, Object> data, Policy... policies) The given work item should be activate.transitionToPhase(KogitoWorkItemManager manager, KogitoWorkItem workItem, WorkItemTransition transition)
-
Method Details
-
getApplication
Application getApplication()This will allow access other part of the system.- Returns:
-
setApplication
-
getName
Returns name that it should be registered with, by default simple class name;- Returns:
- name that should this handler be registered with
-
transitionToPhase
Optional<WorkItemTransition> transitionToPhase(KogitoWorkItemManager manager, KogitoWorkItem workItem, WorkItemTransition transition) -
allowedTransitions
-
newTransition
-
startingTransition
The given work item should be activate.- Parameters:
workItem- the work item that should be executedmanager- the manager that requested the work item to be executed
-
completeTransition
-
abortTransition
-