Class ProcessPopulator

java.lang.Object
fr.gouv.vitam.processing.management.core.ProcessPopulator

public class ProcessPopulator extends Object
Temporary process populator

find and populates workflow java object

  • Method Details

    • loadWorkflow

      public static void loadWorkflow(Map<String,WorkFlow> poolWorkflows)
      loadWorkflow, find and load all workflows
      Parameters:
      poolWorkflows - map to populate with workflows
    • reloadWorkflow

      public static void reloadWorkflow(Map<String,WorkFlow> poolWorkflows, Long fromDate)
      reloadWorkflow, find and load new (added) workflow objects
      Parameters:
      poolWorkflows - poolWorkflows map of workflows to update
      fromDate - datetime on milliseconds to filter from, if null no filter is applied
    • populate

      public static Optional<WorkFlow> populate(InputStream workflowFileStream)
      populate, create workflow object (parse JSON file)
      Parameters:
      workflowFileStream - the workflow file (path)
      Returns:
      workflow's object
    • populate

      public static Optional<WorkFlow> populate(String workflowFile)