- All Known Implementing Classes:
public interface WorkflowManagerThe WorkflowManager is the general interface for a concrete implementation of a workflow management system. The Interface defines the basic methods for processing and encountering a workItem. The WorkflowManger instantiate a WorkflowKernel, an supports the platform dependent environment for concrete Workitems and Workflow models.
- Ralph Soika
- See Also:
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
getWorkItem(String uniqueid)returns a workItem by its uniuqeID ($uniqueID)
processWorkItem(ItemCollection workitem)This method processes a workItem.
removeWorkItem(ItemCollection workitem)The method removes the provide Workitem form the persistence unit managed by the WorkflowManager implementation.
ItemCollection processWorkItem(ItemCollection workitem) throws AccessDeniedException, ProcessingErrorException, PluginException, ModelExceptionThis method processes a workItem. The workItem needs at least provide the valid attributes $taskID and $EventID (integer values) to identify the current processEntity the workItem belongs to and the concrete activtyEntity which should be processed by the wokflowManager implementation. If the workItem is new the method creates a new instance for the corresponding process.
The method is responsible to persist the workItem after successfully processing. The method returns the workItem with additional workflow informations defined by the workfowManager Implementation.
The Method throws an InvalidWorkitemException if the provided workItem is invalid or the provided attributes $taskID and $EventID (integer) did not match an valid modelEntity the workItem can be processed to.
workitem- a workItem instance which should be processed
- the workItem instance after successful processing
AccessDeniedException- - thrown if the user has insufficient access to update the workItem
ProcessingErrorException- - thrown if the workitem could not be processed by the workflowKernel
AdapterExceptionAdapterException- - thrown if processing by an adapter fails
PluginException- - thrown if processing by a plugin fails
ItemCollection getWorkItem(String uniqueid)returns a workItem by its uniuqeID ($uniqueID)
void removeWorkItem(ItemCollection workitem) throws AccessDeniedExceptionThe method removes the provide Workitem form the persistence unit managed by the WorkflowManager implementation. The Method throws an InvalidWorkitemException if the provided Workitem is invalid.
uniqueid- of the WorkItem to be removed