Hi @vaibhav2.chavan @mohamed_Aleem,
1 point to note here is that scope for Process state and process.xaml file is different.
When you set scope to general business process in Main, that means that variable will be available in process state but to be able to use that in process.xaml, you require to pass that variable as in-argument to process.xaml for use.
Refer screenshot below for more clarity.
Also, I am attaching re-framework documentation, this will help you understand in detail the working of re-framework.
REFramework documentation.pdf (507.8 KB)
Hope this answers your question.