This commit is contained in:
2023-06-21 16:23:19 -05:00
parent a367ec717c
commit 18c11d3869
2 changed files with 12 additions and 8 deletions

View File

@ -1083,7 +1083,7 @@ public class GenerateOpenApiSpecAction extends AbstractQActionFunction<GenerateO
}
String description = "Value for the " + fieldLabel + " field.";
if(apiFieldMetaData.getDescription() != null)
if(apiFieldMetaData != null && apiFieldMetaData.getDescription() != null)
{
description = apiFieldMetaData.getDescription();
}

View File

@ -299,6 +299,9 @@ public class ApiScriptUtils implements QCodeExecutorAware, Serializable
validateApiNameAndVersion("runProcess(" + processApiName + ")");
Map<String, String> paramMap = new LinkedHashMap<>();
if(params != null)
{
params = processBodyToJsonString(params);
String paramsString = ValueUtils.getValueAsString(params);
if(StringUtils.hasContent(paramsString))
@ -309,6 +312,7 @@ public class ApiScriptUtils implements QCodeExecutorAware, Serializable
paramMap.put(fieldName, paramsJSON.optString(fieldName));
}
}
}
HttpApiResponse httpApiResponse = ApiImplementation.runProcess(getApiInstanceMetaData(), apiVersion, processApiName, paramMap);
return (httpApiResponse.getResponseBodyObject());