Package fr.gouv.vitam.processing.management.core

# 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 Summary

  Modifier and Type
  Method
  Description
  `static void`
  `loadWorkflow(Map<String,WorkFlow> poolWorkflows)`
  loadWorkflow, find and load all workflows
  `static Optional<WorkFlow>`
  `populate(InputStream workflowFileStream)`
  populate, create workflow object (parse JSON file)
  `static Optional<WorkFlow>`
  `populate(String workflowFile)`
  `static void`
  `reloadWorkflow(Map<String,WorkFlow> poolWorkflows, Long fromDate)`
  reloadWorkflow, find and load new (added) workflow objects

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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)