2 answers
- 10-1
Why and for what purpose user would need those auto-generated files? Why it's not kept as internal process of CDS?
I agree, it really should be kept internal, and it might be the case in Frankfurt.
The idea is that the CBA is a self-sufficient package, hence requires all the various types definition its using.
Reason for this is the types its using might evolve. In order for the CBA to be bounded to the version it has been using when it has been designed, these types are embedded in the CBA, so if they change, the CBA is not affected.
We could also take a different route and say each time a type change, all its users need to update to the new version of the type. But then they are some backward-compatibility concerns that needs to be considered.Most confusing is that example CBAs [ ... ] are stored to GIT with these auto-generated files.
This is so they can be utilized without having to perform the enrichment.
It's not told anywhere but assuming that if your CBA already has those files you don't need enrichment?
Right, good point.
But what happens if you still do enrichment?
These auto-generated files will get overwritten.
Tried APIs and seems:
Posting CBA to /api/v1/blueprint-model fails if CBA is not enriched.
Posting CBA to /api/v1/execution-service/upload fails if CBA is not enrichedSo obviously ServiceExecution API to work it needs enriched CBA.
This is correct. As part of current dev workflow, you need to enrich first before load the CBA. Here is the general steps:
- push custom data type
- push data dictionary
- zip the CBA
- Enrich CBA
- Load CBA
I tried capturing some element of the response in the documentation: Modeling Concepts#Enrichment
Add your comment... - 10-1
Enrichment → Is the process of validating and enhancing the cba package to fulfill and complete the dependence requirement specific in the tosca file as part of the design time. Please reference wiki for detail explanation: Modeling Concepts#818143235
- Samuli Silvius
Unfortunately this generic answer does not answer my basic questions above.
I have read quite much the Modeling Concepts wiki and posting questions here only if I don't get answer already from those pages.
Add your comment...
So obviously ServiceExecution API to work it needs enriched CBA.