Using the Flow Context APIs
Transient Variables
You can cause a trigger or action to return its result as a transient variable. To do so, invoke the following code in a prescript on the trigger or action:
flowContext.returnTransient();
You can also add your own transient variables to the flow context directly:
flowContext.putTransient("variable_name", value);