Runtime APIs: getData() vs getVariables()

0
Can anyone elaborate on the difference between getData() and getVariables() within the Runtime API and why you might choose one or the other?   I have a fairly expensive java object that I want to push into the context of a parent microflow and use that "handle" within a child microflow behind the scenes. (eg, open a pdf reader and not parse it more than once, but splice it appropriately).   I see that the csv module uses getData() for setting context objects, but I'm not sure why they use that vs getVariables().   Thanks!
asked
1 answers
0

getData() is typically used to retrieve the actual data objects within the context of the microflow. These are typically persistent objects like Entity instances from the Mendix database, which represent your application's core data structures.

 

getVariable() is used for retrieving non-persistent values or variables (such as primitive data types, strings, numbers, boolean, or references to more transient objects) that are stored in the context of a microflow.

 

 

answered