Class ProcessExecutorUtils

java.lang.Object
com.kingsrook.qqq.middleware.javalin.executors.utils.ProcessExecutorUtils

public class ProcessExecutorUtils extends Object
  • Constructor Details

    • ProcessExecutorUtils

      public ProcessExecutorUtils()
  • Method Details

    • serializeRunProcessResultForCaller

      public static void serializeRunProcessResultForCaller(ProcessInitOrStepOrStatusOutputInterface processInitOrStepOutput, String processName, RunProcessOutput runProcessOutput)
      Whether a step finished synchronously or asynchronously, return its data to the caller the same way. One-time secrets are deliberately excluded here; only the synchronous init/step executor attaches them to its response.
    • serializeRunProcessExceptionForCaller

      public static void serializeRunProcessExceptionForCaller(ProcessInitOrStepOrStatusOutputInterface processInitOrStepOutput, Exception exception)
    • recordsForCaller

      public static List<QRecord> recordsForCaller(String processName, List<QRecord> records)
      Copy records before applying current session policy to persisted process results.
    • recordsForCaller

      public static List<QRecord> recordsForCaller(String processName, ProcessState state, List<QRecord> records)
      Prefer the current record-list component table when it identifies one.
    • valuesForCaller

      public static Map<String,Serializable> valuesForCaller(String processName, Map<String,Serializable> processValues)
      Share process value masking between legacy and versioned HTTP routes.