Schnittstelle IDUUIProcessHandler
- Alle Superschnittstellen:
- Runnable
- Alle bekannten Implementierungsklassen:
- DUUISimpleProcessHandler
An interface for running processes with DUUI.
- Autor:
- Cedric Borkowski
- 
MethodenübersichtModifizierer und TypMethodeBeschreibungvoidcancel()Called when the process is cancelled.voidexit()Called at the end of any process to clean up resources and make final updates to the process and documents.Retrieves the pipeline id for the pipeline that is used in the current process.Retrieves the current process' id.Retrieves the current status of the process.Retrieves the user id of the user that has started the process.voidCalled when the process is completed.voidonException(Exception exception) When an exception is thrown this method should be called to handle the exception and update the process as well as documents before the exit method.voidOptional method for resource clean up when the server is stopped.voidprocess()Calls the run method of aDUUIComposerwith aDUUIDocumentReaderas the input.voidCalls the run method of aDUUIComposerwith a JCas as the input.voidshutdown()Called when the process and pipeline should be shut down.voidSet up the input reader and load documents from the specified source.voidupdate()Called every x seconds to update the state of the process and documents in the database.
- 
Methodendetails- 
startInputvoid startInput()Set up the input reader and load documents from the specified source.
- 
processTextvoid processText()Calls the run method of aDUUIComposerwith a JCas as the input. This is a single document process.
- 
processvoid process()Calls the run method of aDUUIComposerwith aDUUIDocumentReaderas the input. This method is used to process multiple documents in parallel.
- 
updatevoid update()Called every x seconds to update the state of the process and documents in the database.
- 
onExceptionWhen an exception is thrown this method should be called to handle the exception and update the process as well as documents before the exit method.- Parameter:
- exception- the exception that has been thrown during processing.
 
- 
onCompletionvoid onCompletion()Called when the process is completed.
- 
cancelvoid cancel()Called when the process is cancelled.
- 
shutdownvoid shutdown()Called when the process and pipeline should be shut down.
- 
exitvoid exit()Called at the end of any process to clean up resources and make final updates to the process and documents.
- 
onServerStoppedvoid onServerStopped()Optional method for resource clean up when the server is stopped.
- 
getProcessIDString getProcessID()Retrieves the current process' id.- Gibt zurück:
- the ObjectIdof the current process as aString.
 
- 
getPipelineIDString getPipelineID()Retrieves the pipeline id for the pipeline that is used in the current process.- Gibt zurück:
- the ObjectIdof the pipeline as aString.
 
- 
getUserIDString getUserID()Retrieves the user id of the user that has started the process.- Gibt zurück:
- the ObjectIdof the user that started the process as aString.
 
- 
getStatusString getStatus()Retrieves the current status of the process.- Gibt zurück:
- one of DUUIStatus
 
 
-