ProcessDefinitionQuery processDefinitionQuery = processEngine.getModelService().createProcessDefinitionQuery();
try{
String processName = StringUtil.getString(params.get("queryProcessName"));
if(StringUtil.isNotEmpty(processName)){
processDefinitionQuery.processDefinitionNameLike(processName);
}
String processId = StringUtil.getString(params.get("queryProcessId"));
if(StringUtil.isNotEmpty(processId)){
processDefinitionQuery.processDefinitionKeyLike(processId);
}