How to maintain all varible in loop?

@mahdi here is an example using a json variable that is updated as the DMN loops: