How to get Flowchart or Squence name

Just to make sure: Are you trying to give the robot a variable/activity name and then receive the names of the workflows using that variable/activity?
For this, you could make a text search in the project’s folder to find files that have that particular variable. After that, you can read that file as a XML and traverse it using XPath to get the names of the flowcharts/sequences using those activities/variables.

Or are you trying to get the name of the workflow being executed currently? If this is the case, then take a look at: