Element Deletion and Creation in the same transaction #314
Unanswered
jmenzies12
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there,
On deletion of a particular node in a tree, I want to let the user decide if they would like to replace the left over link with a different kind of link. I've tried writing code to do this, however it doesn't work if I delete the node and it's connecting links and create the new link in the same method. It ends up causing a rollback due to an index out of bounds exception in the list that contains all of the DNodes. If I comment out the deletion or the creation it works fine.
I've implemented this by using the Element Deletion functionality with a change context calling a java method.
If anyone has ran into this before or has any suggestions that would be great.
Cheers
Jonathan
Beta Was this translation helpful? Give feedback.
All reactions