I'd like to know how to determine success on a commit in a datascope when this doesn't have any changes. The following scenario:
1 access database with mutations (stock mutations)
1 different access database with aggregates (products)
Mutations are read if they have not been succesfully processed before (processed==false)
some mutations lead to changes within an aggregate and some do not.
Now I want to read in all non-processed mutations, update associated aggregates, and first commit the aggregates, and then commit the mutations.
But sometimes the aggregates dont get updated because some mutations don't lead to a change in stock (field in the product aggregate). Now I could leave this as is, but then the count of these 'non' mutations would increase dramatically and would everytime be read. I'd like to set them to Processed=True.
Changing the order of commits (first mutations, then aggregates or first aggregates then mutations) doesn't change the outcome of the commit on no changes in the aggregates.
I would like to know if there is an easy way (or another way) to determine success on commit when there are no changes (or determine no changes just before commit, because that is also 'success' for me).