How to use a variable in a different file in the same project

I think this will be useful to you.You need to invoke file 1 in file2 using invoke workflow activity.