return;
currentModeler.startUndo("Add Process Variable");
// Create a new parameter
ProcessVariable param = new ProcessVariableImpl();
// Provide the data type and ensure the type name gets updated
param.setDataType(type);
// Pick a unique name based on the type name
List paramList = currentProcess.getProcessVariableList();
if (name == null)
name = type.getName();
name = NamedObjectCollectionUtil.createUniqueId(paramList, name);
param.setName(name);
// Add the new parameter to the process
currentProcess.addProcessVariable(param);
param.maintainReferences(ModelObject.SYNC_GLOBAL_REFNAMES | ModelObject.SYNC_LOCAL_REFNAMES);
// Redisplay the param list
showParams();
// We modified the current object by adding a parameter