Document to be processed has not yet been uploaded
Content:
The document is uploaded (different requirement)
[ ] The recommendation pipeline can be started from an interface
[ ] The created recommendations can be stored in the database (requires interface)
Post-Condition
Document recommendations are stored in the database
Desired process
sequenceDiagram
participant Frontend
participant Controller
participant Service
participant PipelineFactory
participant Repository
box concrete example for Tokenizer
participant PipelineStepTokenizer
end
box Grey for all PipelineSteps
participant PipelineStepX
end
Frontend ->>+ Controller: /uploadDocument
Controller ->>+ Service: saveDocument()
Service ->>+ Repository: saveDocument()
Repository ->>+ Service:
activate Service
Service ->>+ PipelineFactory: getPipeline()
PipelineFactory ->>+ Service: Pipeline
Service ->>+ PipelineStepTokenizer: run(Document)
PipelineStepTokenizer ->>+ Service: Result
Service ->>+ Repository: saveTokens()
Repository --> Service:
loop every other pipeline steps x
Service ->>+ PipelineStepX: run(Document)
PipelineStepX ->>+ Service: Result
Service ->>+ Repository: save()
Repository --> Service:
end
deactivate Service
Service ->>+ Controller:
Controller ->>+ Frontend:
Description
Pre-Condition:
Content:
Post-Condition
Desired process
Related Issues
7