Class ProcessSpecUtilsV1
java.lang.Object
com.kingsrook.qqq.middleware.javalin.specs.v1.utils.ProcessSpecUtilsV1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddUploadedFiles(io.javalin.http.Context context, ProcessInitOrStepInput input) Read the files uploaded with a process init or step request (QRun-IO/qqq#543) the same way the legacy process routes do: every value is validated and every filename checked before anything is stored; each file is streamed to the uploaded-file archive table, and the field's process value becomes the list of StorageInputs that reference the stored files.static LinkedHashMap<String, Example> static Schemastatic SchemaOpenAPI definition of the (optional) tableVariant form field.static ParameterOpenAPI definition of the (optional) tableVariant query parameter.static Stringstatic TableVariantgetTableVariantParam(io.javalin.http.Context context) The (optional) table variant for a process request: a JSON object with the variant's `type` and `id` (as for the table routes), read from the form field or query parameter named `tableVariant`.static voidhandleOutput(io.javalin.http.Context context, ProcessInitOrStepOrStatusResponseV1 response)
-
Field Details
-
TABLE_VARIANT_PARAM
- See Also:
-
EXAMPLE_PROCESS_UUID
- See Also:
-
EXAMPLE_JOB_UUID
- See Also:
-
-
Constructor Details
-
ProcessSpecUtilsV1
public ProcessSpecUtilsV1()
-
-
Method Details
-
getTableVariantParam
The (optional) table variant for a process request: a JSON object with the variant's `type` and `id` (as for the table routes), read from the form field or query parameter named `tableVariant`. -
defineTableVariantQueryParameter
OpenAPI definition of the (optional) tableVariant query parameter. -
defineTableVariantFormProperty
OpenAPI definition of the (optional) tableVariant form field. -
getResponseSchemaRefName
-
buildResponseSchema
-
buildResponseExample
-
handleOutput
public static void handleOutput(io.javalin.http.Context context, ProcessInitOrStepOrStatusResponseV1 response) -
addUploadedFiles
public static void addUploadedFiles(io.javalin.http.Context context, ProcessInitOrStepInput input) throws IOException, QException Read the files uploaded with a process init or step request (QRun-IO/qqq#543) the same way the legacy process routes do: every value is validated and every filename checked before anything is stored; each file is streamed to the uploaded-file archive table, and the field's process value becomes the list of StorageInputs that reference the stored files.- Throws:
IOExceptionQException
-