You are in the middle of a Mbo class and you have to perform some logic only if your piece of code is invoked by a user sitting in front of of Maximo UI.
How would you understand if the Mbo method has been invoked by an interactive user session or by a background process like an escalation, crontask or MIF?
Here is a Java snippet to retrieve this information.
boolean isInteractive = getUserInfo().isInteractive();
Just put it in your Java method and use the isIntercative flag as you want.