Skip to content

Immutability in the EDC #3664

Closed Answered by paullatzelsperger
arnoweiss asked this question in Q&A
Discussion options

You must be logged in to vote

Immutability of objects is highly influenced by business rules, and possibly even legal requirements. Whether it's acceptable to change an asset, that's referenced in a contract, may vary from jurisdiction to jurisdiction. EDC can't make assumptions about that with any degree of certainty. We do, however, enforce mutability rules where they are technically necessary, for example deleting an asset that is referenced by a contract would leave us with an inconsistent state thus we disallow it.

Thus, changing a contracted asset may be "unlawful", or against business rules in a particular use case, but those must be enforced elsewhere.

So a PUT on an asset should indeed change it, regardless w…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@arnoweiss
Comment options

Answer selected by arnoweiss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants