BPM scripts table Table The table below lists the scripts that can be used at each step of the workflow Script Validation Visibility SCIM filter on Load on Change on Prepare Transition Outgoing transitions tra userType = task.getVariables().get ("userType"); Yes Yes No Yes Yes Yes No task.getVariables().put ("action", "M"); No No No Yes No No No if ( value == null || value.equals(""))   return ("The userName is mandatory"); else    return true; Yes No No Yes Yes No No user = serviceLocator.getUserService(). getCurrentUser (); Yes Yes No Yes Yes Yes Yes lu = serviceLocator .getUserService().findUserByJsonQuery("userName eq \""+un+"\" "); Yes Yes No Yes Yes Yes Yes firstName = ( inputFields.get ("firstName")!=null) ? inputFields.get ("firstName").value : null; Yes Yes No No Yes Yes No inputFields .get("firstName").value = firstName; Yes Yes No No Yes Yes No a = executionContext.getVariable ("firstName"); No No No No No No Yes executionContext.setVariable ("firstName", a) No No No No No No Yes executionContext.getToken().addComment ("Automatic comments......."); No No No No No No Yes user = serviceLocator.getUserService().getCurrentUser(); task.getVariables().put("action", "M"); task.getVariables().put("userSelector", user.userName); workflowWindow.fetchUserAttributes() No No No Yes No No No firstName co "soffid" AND primaryGroup eq "world" No No Yes No No No No   Location Here you can find all kinds of scripts.