I need a progress bar to be appear similar to the one in the screenshot below .
I call runOperation method in the main of the the class and overwrite method canRunInNewSession and make it return true .
the problem that I face is that I have variables in the class must be filled from args so I add required code in the main before calling of prompt when I try to use the variables in the run method I find them empty although they are filled in the main. to solve this issue I make method canRunInNewSession it return false but the progress bar does not appear.
Can any one explain to me the meaning of the method canRunInNewSession and how can I obtain the progress bar without missing the values of the variables filled in the main method ?