|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WorkItemFlowHandler
Abstract handling of workflow associated with WorkItem. WorkItem contains information about associated workflow like asset, reference documents, template etc. WorkItemHandler bean will take care of managing the associated workflow, thus decoupling Project Management from it. This bean should not directly update the state of workitem or project, rather it delegates that to the callback registered with it. As per target use cases, most of the work item flow will be based around Asset that is associated with workitem. But, the interface definition does not dictate that and is flexible in that respect.
Method Summary | |
---|---|
void |
afterGetProject(Project project)
Updates necessary changes to project before returning the project object to user. |
void |
afterGetWorkItem(WorkItem workItem)
Updates necessary changes to workitem before returning the workitem object to user. |
WorkItemCallback |
getCallback()
Retrieves registered work item callback |
String |
getStatus(WorkItem workItem)
Returns the current status of the |
void |
restart(WorkItem workItem)
Restarts the work item flow, some implementations might now support the restart and can throw appropriate exception. |
void |
setCallback(WorkItemCallback callback)
Registers callback with work item handler. |
String |
start(WorkItem workItem)
Initiates the work item flow |
String |
terminate(WorkItem workItem)
Explicitly terminate or complete the work item flow. |
void |
updateSchedule(WorkItem workItem)
Updates the schedule for associated work item flow, if applicable. |
Method Detail |
---|
String start(WorkItem workItem) throws WorkItemHandlerException
workItem
- work item definition
WorkItemHandlerException
String terminate(WorkItem workItem) throws WorkItemHandlerException
instanceId
- instance id to uniquely identify the work item flow
WorkItemHandlerException
String getStatus(WorkItem workItem) throws WorkItemHandlerException
instanceId
-
WorkItemHandlerException
void restart(WorkItem workItem) throws WorkItemHandlerException
workItem
- work item definition
WorkItemHandlerException
void setCallback(WorkItemCallback callback) throws WorkItemHandlerException
callback
- callback implementation
WorkItemHandlerException
WorkItemCallback getCallback() throws WorkItemHandlerException
callback
- callback implementation
WorkItemHandlerException
void updateSchedule(WorkItem workItem) throws WorkItemHandlerException
endDate
- provides a new end date.instanceId
- unique idenfication of the work item flow
WorkItemHandlerException
void afterGetWorkItem(WorkItem workItem) throws WorkItemHandlerException
WorkItemHandlerException
void afterGetProject(Project project) throws WorkItemHandlerException
WorkItemHandlerException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |