Get Previous flow element input/output

Hi Team,

Can anyone please suggest how to get the previous flow elements input/output properties.
I want to get the input/output of the parent activities not the children activities
Is there any way to get the input/output properties of previous activities directly.

Can you please explain what do you mean with “previous” activity?