How to get all the resulting variables from each DMN element?

How to get all the resulting variables from each DMN, for example in the form of a list (param1Result, param2Result, dishResult, dish2Result, beveragesResult)?

Please check the related post: Get complete tree of decisions of DMN instance from REST API