Sample code to get the catalog variables in the ServiceNow workflow

var gr  = current ;
var firstName  = gr.variables[‘first_name’] ;
var lastName  = gr.variables[‘last_name’] ;

var fullName  = lastName.getGlideObject().getValue() + ” ” + firstName.getGlideObject().getValue() ;