feat: support multiple start annotations on one entity#69
Conversation
There was a problem hiding this comment.
The PR introduces well-structured support for multiple @bpm.process.start annotations via CDS qualifiers, with good test coverage for the main scenarios. A few substantive issues were flagged: the return type of prefetchStartDataForDelete is incorrect (declared as EntityRow | void but actually returns a DeleteProcessObject-shaped record), the businessKey CSN value extraction in findStartAnnotations uses a loose cast that could silently yield undefined, and there is no collision guard when two annotations share the same qualifier key during prefetch. Please address these before merging.
PR Bot Information
Version: 1.19.9 | 📖 Documentation | 🚨 Create Incident | 💬 Feedback
- File Content Strategy: Full file content
- LLM:
anthropic--claude-4.6-sonnet - Correlation ID:
78336e20-2ce7-11f1-935f-c289eaab9b21 - Event Trigger:
pull_request.opened
SummaryThe following content is AI-generated and provides a summary of the pull request: Support Multiple
|
There was a problem hiding this comment.
The PR introduces well-structured support for multiple @bpm.process.start qualifiers, but there are several correctness concerns: a duplicate-qualifier race condition in prefetchStartDataForDelete that silently overwrites entity data, a failure-isolation gap in Promise.all when dispatching multiple start annotations (one rejection aborts the rest), and a silent no-op path on DELETE when the where clause resolves to nothing for all annotations. The shared businessKey being broadcast to all qualifiers also warrants explicit documentation to avoid future confusion.
PR Bot Information
Version: 1.19.9 | 📖 Documentation | 🚨 Create Incident | 💬 Feedback
- Event Trigger:
pull_request.ready_for_review - File Content Strategy: Full file content
- LLM:
anthropic--claude-4.6-sonnet - Correlation ID:
3737b250-2cf6-11f1-98e1-f572856b8f5a
Kronprinz03
left a comment
There was a problem hiding this comment.
okay now i am finished with reviewing
SirSimon04
left a comment
There was a problem hiding this comment.
from my side for the tests okay, refer to yannis comments for impl
Have you...