Hi,
I need to access a global var from a java service I’ve created. Of course, I can use a workaround (assigning the global var to the pipeline var, or to the input parameters) but does exist any instruction to call this var within my java service please ?
Regards
maybe it is not permitted ?
Below is code sample:
import com.wm.app.b2b.server.globalvariables.GlobalVariablesManager;
import com.wm.util.GlobalVariables.GlobalVariableValue;
public void getGlobalVariableValue(String key)
{
GlobalVariablesManager mgr = GlobalVariablesManager.getInstance();
GlobalVariables.GlobalVariableValue gvv = mgr.getGlobalVariableValue(key);
System.out.println(gvv.getValue());
System.out.println(Boolean.toString(gvv.isSecure()));
}
Excellent, that’s great !
Thanks Prasad.
Regards