Cloning an entity structure in mendix.

0
I am trying to clone an entire entity structure in mendix, with complex associations and up to 4-level of a tree structure domain model. I have tried using deep clone for the same, but the output is not as expected. Is there any other way that this can be achieved in mendix?
asked
1 answers
0

Not with just one action. IN this case I would build the logic for this in a microflow by retrieving the correct entities and then use clone actions or create & copy actions to create the copies and set the correct associations afterwards.

An alternative approach might be to have look at the java code behind the deep clone function and expand on this with a new java action to allow you to create a complete clone of the complex structure in one go. This might be a complex task, depending on your proficiency in java of course.

answered